/* ============================================================
   GLOBAL STYLES — Ivena Fariza Effendy Portfolio
   Style: Neomorphism + Glassmorphism | Creamy Palette
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Variables / Design Tokens --- */
:root {
  --blush-pop:        #F29CBD;
  --sun-gold:         #FCC261;
  --rose-punch:       #EA4C75;
  --coral-flame:      #EF7853;
  --soft-shell:       #FDE9E6;

  --cream-base:       var(--soft-shell);
  --cream-light:      #FFF7F4;
  --cream-dark:       #F8D0D3;
  --cream-deeper:     #F29CBD;
  --accent:           var(--rose-punch);
  --accent-hover:     #C92F58;
  --accent-light:     rgba(234, 76, 117, 0.16);
  --accent-cool:      rgba(252, 194, 97, 0.24);
  --text-primary:     #3B1823;
  --text-secondary:   #7D4350;
  --text-muted:       #A76271;
  --white:            #FFFFFF;

  /* Neomorphism Shadows */
  --neo-shadow-out:   8px 8px 20px rgba(234, 76, 117, 0.14), -8px -8px 20px rgba(255, 255, 255, 0.9);
  --neo-shadow-in:    inset 6px 6px 14px rgba(234, 76, 117, 0.10), inset -6px -6px 14px rgba(255, 255, 255, 0.92);
  --neo-shadow-sm:    4px 4px 10px rgba(234, 76, 117, 0.12), -4px -4px 10px rgba(255, 255, 255, 0.86);
  --neo-shadow-hover: 12px 12px 28px rgba(234, 76, 117, 0.18), -4px -4px 14px rgba(255, 255, 255, 0.9);

  /* Glassmorphism */
  --glass-bg:         rgba(255, 247, 244, 0.34);
  --glass-border:     rgba(255, 255, 255, 0.58);
  --glass-blur:       blur(16px);

  /* Typography */
  --font-display:     'Playfair Display', Georgia, serif;
  --font-body:        'Inter', system-ui, sans-serif;

  /* Spacing Scale */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2rem;
  --space-xl:   3.5rem;
  --space-2xl:  5rem;

  /* Border Radius */
  --radius-sm:  12px;
  --radius-md:  20px;
  --radius-lg:  32px;
  --radius-full: 999px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth!important;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream-base);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

/* --- Typography Scale --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- Layout Container --- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* --- Section Base --- */
.section {
  padding: var(--space-2xl) 0;
}

/* Scroll offset for fixed navbar (~70px) */
section[id] {
  scroll-margin-top: 80px;
}

#hero {
  scroll-margin-top: 0;
}

/* --- Section Heading --- */
.section-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.section-title {
  margin-bottom: var(--space-lg);
}

.section-title span {
  color: var(--accent);
}

/* --- Neomorphic Card Base --- */
.neo-card {
  background: var(--cream-base);
  border-radius: var(--radius-md);
  box-shadow: var(--neo-shadow-out);
  transition: box-shadow 0.45s var(--ease-soft), transform 0.45s var(--ease-soft);
}

.neo-card:hover {
  box-shadow: var(--neo-shadow-hover);
  transform: translateY(-3px);
}

/* --- Glass Card Base --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-md);
}

/* --- Accent Button --- */
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 4px 4px 12px rgba(234, 76, 117, 0.34), -2px -2px 8px rgba(255,255,255,0.76);
  transition: background var(--transition), box-shadow 0.4s var(--ease-soft), transform 0.4s var(--ease-soft);
  text-decoration: none;
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 6px 6px 18px rgba(201, 47, 88, 0.36), -2px -2px 8px rgba(255,255,255,0.76);
}

/* --- Ghost Button --- */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow 0.4s var(--ease-soft), transform 0.4s var(--ease-soft);
}

.btn-ghost:hover {
  background: var(--accent);
  color: var(--white);
  box-shadow: 4px 4px 12px rgba(234, 76, 117, 0.3);
  transform: translateY(-2px);
}

/* --- Text Link Button (Tertiary) --- */
.btn-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition), gap var(--transition);
}

.btn-text-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  gap: 0.55rem;
}

/* --- Divider --- */
.divider {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  transform-origin: left center;
}

/* --- Scroll Reveal Utility --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft), filter 0.8s var(--ease-soft);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { background: var(--cream-deeper); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* --- Responsive Breakpoints --- */
/* Mobile:  320–767px  → handled inline in index.html or via media queries below */
/* Tablet:  768–1023px */
/* Desktop: 1024px+   */

@media (max-width: 767px) {
  .section { padding: var(--space-xl) 0; }
  .container { width: 92%; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
