/* ============================================================
   ASHER MENDEZ — style.css
   Design: Dark premium — with color variety, lighter sections,
           and a fully tuned mobile / iPhone layout.
   ============================================================ */

/* ======================== DESIGN TOKENS ======================== */
:root {
  /* Backgrounds — stepped lighter so sections feel distinct */
  --bg-base:       #0b0b0b;
  --bg-primary:    #0e0e0e;
  --bg-secondary:  #141414;
  --bg-tertiary:   #181818;
  --bg-card:       #1c1c1c;
  --bg-card-alt:   #202020;

  /* Borders */
  --border:        rgba(255, 255, 255, 0.09);
  --border-mid:    rgba(255, 255, 255, 0.13);
  --border-hover:  rgba(139, 92, 246, 0.5);

  /* Text */
  --text-primary:   #efefef;
  --text-secondary: #8a8a8a;
  --text-muted:     #4e4e4e;

  /* ── Accent palette (more than just purple) ── */
  --purple:        #7c3aed;
  --purple-mid:    #8b5cf6;
  --purple-light:  #a78bfa;
  --purple-dim:    rgba(124, 58, 237, 0.13);
  --purple-glow:   rgba(124, 58, 237, 0.25);

  --gold:          #d97706;
  --gold-light:    #fbbf24;
  --gold-dim:      rgba(217, 119, 6, 0.12);

  --teal:          #0d9488;
  --teal-light:    #2dd4bf;
  --teal-dim:      rgba(13, 148, 136, 0.12);

  --blue:          #2563eb;
  --blue-light:    #60a5fa;
  --blue-dim:      rgba(37, 99, 235, 0.12);

  --rose:          #e11d48;
  --rose-light:    #fb7185;
  --rose-dim:      rgba(225, 29, 72, 0.12);

  /* Primary accent (purple stays main) */
  --accent:        var(--purple);
  --accent-light:  var(--purple-light);
  --accent-dim:    var(--purple-dim);

  /* Spacing & Shape */
  --radius:        10px;
  --radius-lg:     16px;
  --radius-xl:     22px;
  --section-pad:   110px;
  --max-width:     1180px;
  --header-height: 64px;

  /* Typography */
  --font-heading: 'Syne', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Transitions */
  --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ======================== RESET ======================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) var(--bg-secondary);
}
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

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

a      { text-decoration: none; color: inherit; }
ul     { list-style: none; }
img    { max-width: 100%; display: block; }
button { font-family: var(--font-body); }

/* ======================== LAYOUT ======================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

/* ======================== SCROLL REVEAL ======================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for grid children */
.cards__grid   .reveal:nth-child(2),
.projects__grid .reveal:nth-child(2),
.moods__grid   .reveal:nth-child(2),
.pillars__grid .reveal:nth-child(2) { transition-delay: 0.08s; }

.cards__grid   .reveal:nth-child(3),
.projects__grid .reveal:nth-child(3),
.moods__grid   .reveal:nth-child(3),
.pillars__grid .reveal:nth-child(3) { transition-delay: 0.16s; }

.cards__grid   .reveal:nth-child(4),
.projects__grid .reveal:nth-child(4),
.moods__grid   .reveal:nth-child(4),
.pillars__grid .reveal:nth-child(4) { transition-delay: 0.24s; }

.cards__grid   .reveal:nth-child(5),
.projects__grid .reveal:nth-child(5),
.moods__grid   .reveal:nth-child(5),
.pillars__grid .reveal:nth-child(5) { transition-delay: 0.32s; }

.cards__grid   .reveal:nth-child(6) { transition-delay: 0.40s; }

/* ======================== BUTTONS ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px; /* accessible tap target */
}

.btn--primary {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.30);
}
.btn--primary:hover {
  background: var(--purple-mid);
  border-color: var(--purple-mid);
  box-shadow: 0 0 36px rgba(139, 92, 246, 0.45);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-mid);
}
.btn--outline:hover {
  border-color: var(--purple-light);
  color: var(--purple-light);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--purple-light);
  border-color: rgba(124, 58, 237, 0.28);
  padding: 10px 22px;
  font-size: 0.83rem;
  min-height: 44px;
}
.btn--ghost:hover {
  background: var(--purple-dim);
  border-color: var(--purple);
  transform: translateY(-1px);
}

.btn--full { width: 100%; }

/* ======================== SECTION HEADER ======================== */
.section__header {
  margin-bottom: 60px;
  text-align: center;
}

.section__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-light);
  padding: 5px 16px;
  border: 1px solid rgba(124, 58, 237, 0.28);
  border-radius: 100px;
  background: rgba(124, 58, 237, 0.09);
  margin-bottom: 16px;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section__subtitle {
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ======================== HEADER / NAV ======================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background var(--ease), box-shadow var(--ease);
}

.header.scrolled {
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  transition: color var(--ease);
  flex-shrink: 0;
}
.nav__logo:hover { color: var(--purple-light); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 6px;
  transition: all var(--ease);
  white-space: nowrap;
}
.nav__link:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.nav__link.active { color: var(--purple-light); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1010;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ======================== HERO ======================== */
.hero {
  min-height: 100vh;
  min-height: 100svh; /* respects iOS Safari bottom bar */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
  /* Richer gradient background — breaks up the flat black */
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(124, 58, 237, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(13, 148, 136, 0.08) 0%, transparent 55%),
    #0b0b0b;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Dot-grid texture */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* Animated glow orbs */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero__glow--1 {
  width: 700px; height: 700px;
  top: -200px; right: -150px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 65%);
  filter: blur(70px);
  animation: drift1 14s ease-in-out infinite;
}
.hero__glow--2 {
  width: 500px; height: 500px;
  bottom: -100px; left: -80px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.12) 0%, transparent 65%);
  filter: blur(60px);
  animation: drift2 18s ease-in-out infinite;
}
.hero__glow--3 {
  width: 320px; height: 320px;
  top: 45%; left: 30%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.07) 0%, transparent 65%);
  filter: blur(50px);
  animation: drift1 22s ease-in-out infinite reverse;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(28px, -18px); }
  66%       { transform: translate(-16px, 14px); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(-22px, 18px); }
  66%       { transform: translate(18px, -14px); }
}

.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__content {
  max-width: 720px;
  padding: 80px 0 72px;
}

.hero__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding: 6px 18px;
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 100px;
  background: rgba(217, 119, 6, 0.09);
  margin-bottom: 30px;
}

/* Hero name — gradient text for impact */
.hero__name {
  font-family: var(--font-heading);
  font-size: clamp(3.8rem, 8.5vw, 7.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 22px;
  background: linear-gradient(130deg, #ffffff 0%, #d4c8ff 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.6vw, 1.85rem);
  font-weight: 600;
  color: #b0b0b0;
  line-height: 1.35;
  margin-bottom: 22px;
  letter-spacing: -0.015em;
}

.hero__sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 490px;
  margin-bottom: 42px;
  line-height: 1.9;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__mindset {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.03em;
  line-height: 1.6;
  border-left: 2px solid var(--gold);
  padding-left: 16px;
  max-width: 420px;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--purple-light), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; }
  50%       { opacity: 0.8; }
}

/* ======================== ABOUT ======================== */
.about {
  background: var(--bg-secondary);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 72px;
  align-items: start;
}

.about__text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.95;
  margin-bottom: 20px;
}
.about__text p:last-child { margin-bottom: 0; }

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color var(--ease), transform var(--ease);
}
.stat__card:hover {
  border-color: rgba(217, 119, 6, 0.4);
  transform: translateY(-3px);
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  /* Gold for numbers — immediate color variety */
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* ======================== WHAT I DO ======================== */
.what-i-do {
  background: var(--bg-primary);
}

.cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ── Card: full-bleed image with layered text ── */
.card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  /* Fixed height so all 6 cards are equal */
  min-height: 340px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Fallback bg color in case image hasn't loaded */
  background: #141414;
  cursor: default;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

/* ── Background image layer ── */
.card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  /* Desaturated + dimmed so it reads as moody, not stock-photo */
  filter: brightness(0.45) saturate(0.7);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.7s ease;
  will-change: transform;
}

/* ── Gradient overlay: transparent top → dark bottom ──
   Makes text at the bottom always readable regardless of image */
.card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.88) 100%
  );
  transition: background 0.5s ease;
  z-index: 1;
}

/* ── Text content — sits above both layers ── */
.card__content {
  position: relative;
  z-index: 2;
  /* Push all text to bottom where overlay is darkest */
  margin-top: auto;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Hover state ── */
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Image subtly brightens and zooms on hover */
.card:hover .card__bg {
  transform: scale(1.06);
  filter: brightness(0.55) saturate(0.85);
}

/* Overlay lifts slightly to reveal more image */
.card:hover .card__overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.0) 0%,
    rgba(0, 0, 0, 0.38) 40%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

/* Unique icon colors per card — kept from original design */
.card:nth-child(1) .card__icon { color: var(--teal-light); }
.card:nth-child(2) .card__icon { color: var(--purple-light); }
.card:nth-child(3) .card__icon { color: var(--gold-light); }
.card:nth-child(4) .card__icon { color: var(--blue-light); }
.card:nth-child(5) .card__icon { color: var(--rose-light); }
.card:nth-child(6) .card__icon { color: var(--purple-light); }

.card__icon {
  font-size: 1.4rem;
  line-height: 1;
  display: block;
  /* Small label accent line above icon */
  padding-top: 2px;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  /* Crisp white for maximum contrast over image */
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
  /* Subtle text shadow for legibility over any image */
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.card__text {
  font-size: 0.86rem;
  /* Off-white so it reads clearly but doesn't compete with title */
  color: rgba(240, 240, 240, 0.78);
  line-height: 1.75;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ======================== PROJECTS ======================== */
.projects {
  /* Slightly warmer dark background to break monotony */
  background: linear-gradient(180deg, var(--bg-secondary) 0%, #161214 100%);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.project__card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project__card--featured {
  border-color: rgba(124, 58, 237, 0.28);
  background: linear-gradient(145deg, #17131f 0%, var(--bg-card) 55%);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.1);
}

.project__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.project__category {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-light);
}

.project__badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.28);
  padding: 2px 9px;
  border-radius: 100px;
}

.project__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.project__desc {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.8;
  flex: 1;
}

/* ======================== SOUNDTRACK ======================== */
.soundtrack {
  background: var(--bg-primary);
  overflow: hidden;
}

.soundtrack::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.moods__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ================================================================
   MOOD CARDS — full-bleed image layout
   Layer order (bottom → top):
     0  .mood__card          background fallback
     1  .mood__photo-wrap    full-card image (position: absolute)
     2  .mood__overlay       gradient darkens toward bottom
     3  .mood__body          text + upload button (position: relative)
    10  .mood__card::before  colored top stripe
   ================================================================ */

.mood__card {
  position: relative;
  /* Fixed height so all cards are equal and image has room to show */
  min-height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  /* Dark fallback shown before a photo is uploaded */
  background: #111;
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

/* ── Colored accent stripe at very top of card ── */
.mood__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 10;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.mood__card:nth-child(1)::before { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.mood__card:nth-child(2)::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
.mood__card:nth-child(3)::before { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.mood__card:nth-child(4)::before { background: linear-gradient(90deg, #e11d48, #fb7185); }
.mood__card:nth-child(5)::before { background: linear-gradient(90deg, #0d9488, #2dd4bf); }

/* Per-card hover border color */
.mood__card:nth-child(1):hover { border-color: rgba(139, 92, 246, 0.55); }
.mood__card:nth-child(2):hover { border-color: rgba(217, 119, 6, 0.55); }
.mood__card:nth-child(3):hover { border-color: rgba(96, 165, 250, 0.55); }
.mood__card:nth-child(4):hover { border-color: rgba(251, 113, 133, 0.55); }
.mood__card:nth-child(5):hover { border-color: rgba(45, 212, 191, 0.55); }

.mood__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* ── Layer 1: full-card image ── */
.mood__photo-wrap {
  position: absolute;
  inset: 0;           /* fills the entire card */
  z-index: 1;
  overflow: hidden;
}

.mood__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  /* Desaturate slightly for the cinematic look */
  filter: brightness(0.55) saturate(0.8);
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              filter  0.65s ease;
  will-change: transform;
}

/* Image brightens and zooms subtly on hover */
.mood__card:hover .mood__photo {
  transform: scale(1.05);
  filter: brightness(0.65) saturate(0.9);
}

/* Smooth load-in animation */
@keyframes photoLoad {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: scale(1); }
}
.mood__photo { animation: photoLoad 0.45s ease; }

/* ── Layer 2: gradient overlay ── */
.mood__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Transparent at top → opaque at bottom
     Top of card shows the image clearly.
     Bottom is dark enough for readable text. */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.30) 35%,
    rgba(0, 0, 0, 0.82) 68%,
    rgba(0, 0, 0, 0.95) 100%
  );
  transition: background 0.5s ease;
}

/* Lift overlay slightly on hover so more image shows through */
.mood__card:hover .mood__overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.02) 0%,
    rgba(0, 0, 0, 0.22) 30%,
    rgba(0, 0, 0, 0.76) 65%,
    rgba(0, 0, 0, 0.92) 100%
  );
}

/* ── Layer 3: text content ── */
.mood__body {
  position: relative;
  z-index: 3;
  /* Push everything to the bottom of the card */
  margin-top: auto;
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mood__icon {
  font-size: 1.5rem;
  line-height: 1;
  /* Slight drop shadow so emoji reads over any image */
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.7));
}

.mood__title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.mood__desc {
  font-size: 0.84rem;
  color: rgba(230, 230, 230, 0.78);
  line-height: 1.75;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.mood__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* Tag colors per card (unchanged) */
.mood__card:nth-child(1) .mood__tags span { color: var(--purple-light); border-color: rgba(139,92,246,0.35); background: rgba(139,92,246,0.15); }
.mood__card:nth-child(2) .mood__tags span { color: var(--gold-light);   border-color: rgba(217,119,6,0.35);  background: rgba(217,119,6,0.15); }
.mood__card:nth-child(3) .mood__tags span { color: var(--blue-light);   border-color: rgba(96,165,250,0.35); background: rgba(96,165,250,0.15); }
.mood__card:nth-child(4) .mood__tags span { color: var(--rose-light);   border-color: rgba(251,113,133,0.35); background: rgba(251,113,133,0.15); }
.mood__card:nth-child(5) .mood__tags span { color: var(--teal-light);   border-color: rgba(45,212,191,0.35); background: rgba(45,212,191,0.15); }

.mood__tags span {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 100px;
  padding: 3px 10px;
  border: 1px solid;
  /* Backdrop blur makes tags legible over any photo */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ======================== VISUALS ======================== */
/* ======================== MINDSET ======================== */
.mindset {
  background: var(--bg-primary);
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px 24px;
  position: relative;
  transition: transform var(--ease), border-color var(--ease);
}
.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  opacity: 0;
  transition: opacity var(--ease);
}
.pillar:nth-child(1)::before { background: linear-gradient(90deg, var(--purple), var(--purple-light)); }
.pillar:nth-child(2)::before { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.pillar:nth-child(3)::before { background: linear-gradient(90deg, var(--teal), var(--teal-light)); }
.pillar:nth-child(4)::before { background: linear-gradient(90deg, var(--blue), var(--blue-light)); }
.pillar:nth-child(5)::before { background: linear-gradient(90deg, var(--rose), var(--rose-light)); }

.pillar:hover { transform: translateY(-5px); border-color: var(--border-mid); }
.pillar:hover::before { opacity: 1; }

/* Unique number colors per pillar */
.pillar:nth-child(1) .pillar__number { color: var(--purple-light); }
.pillar:nth-child(2) .pillar__number { color: var(--gold-light); }
.pillar:nth-child(3) .pillar__number { color: var(--teal-light); }
.pillar:nth-child(4) .pillar__number { color: var(--blue-light); }
.pillar:nth-child(5) .pillar__number { color: var(--rose-light); }

.pillar__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.pillar__title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.pillar__text {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ======================== CONTACT ======================== */
.contact {
  background: var(--bg-secondary);
}

.contact__grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 4px;
}

.contact__link-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact__link-icon {
  font-size: 1rem;
  color: var(--purple-light);
  margin-top: 3px;
  min-width: 20px;
}

.contact__link-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact__link {
  font-size: 0.93rem;
  color: var(--text-primary);
  transition: color var(--ease);
}
.contact__link:hover { color: var(--purple-light); }

.contact__note {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form__group label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form__group input,
.form__group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 16px; /* IMPORTANT: prevents iOS zoom on focus */
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  resize: vertical;
  width: 100%;
  -webkit-appearance: none;
}

.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--text-muted); }

.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* ======================== FOOTER ======================== */
.footer {
  background: #070707;
  border-top: 1px solid var(--border);
  padding: 60px 0 36px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  transition: color var(--ease);
}
.footer__logo:hover { color: var(--purple-light); }

.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__links a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  transition: color var(--ease);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.footer__links a:hover { color: var(--purple-light); }

.footer__copy {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ======================== TABLET (≤ 1024px) ======================== */
@media (max-width: 1024px) {
  :root { --section-pad: 84px; }

  .cards__grid        { grid-template-columns: repeat(2, 1fr); }
  /* Keep card heights consistent on tablet */
  .card               { min-height: 310px; }
  .mood__card         { min-height: 360px; }
  .projects__grid     { grid-template-columns: repeat(2, 1fr); }
  .moods__grid        { grid-template-columns: repeat(2, 1fr); }
  .pillars__grid      { grid-template-columns: repeat(2, 1fr); }

  .about__grid        { grid-template-columns: 1fr; gap: 48px; }
  .about__stats       { grid-template-columns: repeat(4, 1fr); }

  .contact__grid      { grid-template-columns: 1fr; gap: 48px; }

}

/* ======================== MOBILE (≤ 768px) ======================== */
@media (max-width: 768px) {
  :root {
    --section-pad:   60px;
    --header-height: 58px;
  }

  .container { padding: 0 20px; }

  /* Prevent any section from causing horizontal scroll */
  .section { overflow: hidden; }

  /* ── Nav overlay ── */
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    z-index: 1005;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav__links.open { opacity: 1; pointer-events: all; }

  .nav__link {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 12px 36px;
    min-height: 52px;
    display: flex;
    align-items: center;
  }

  /* ── Hero — fully centered on iPhone ── */
  .hero {
    min-height: 100dvh;
    padding-top: var(--header-height);
    background:
      radial-gradient(ellipse 100% 60% at 50% 0%, rgba(124, 58, 237, 0.13) 0%, transparent 55%),
      radial-gradient(ellipse 80% 40% at 20% 100%, rgba(13, 148, 136, 0.07) 0%, transparent 50%),
      #0b0b0b;
  }

  .hero .container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 0 40px;
  }

  .hero__tag { margin-bottom: 22px; }

  .hero__name {
    font-size: clamp(3rem, 13.5vw, 4rem);
    line-height: 0.92;
    margin-bottom: 20px;
  }

  .hero__headline {
    font-size: clamp(1.1rem, 4.8vw, 1.3rem);
    margin-bottom: 16px;
  }

  .hero__sub {
    font-size: 0.93rem;
    max-width: 100%;
    margin-bottom: 30px;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
    margin-bottom: 32px;
  }

  .hero__ctas .btn {
    width: 100%;
    max-width: 270px;
    justify-content: center;
  }

  /* Mindset line: swap left-border for top border so it's centered */
  .hero__mindset {
    border-left: none;
    padding-left: 0;
    border-top: 1.5px solid var(--gold);
    padding-top: 14px;
    max-width: 280px;
    text-align: center;
  }

  .hero__scroll { display: none; }

  /* ── Section headers ── */
  .section__header { margin-bottom: 36px; }
  .section__title  { font-size: clamp(1.6rem, 6vw, 2rem); }
  .section__subtitle { font-size: 0.9rem; }

  /* ── About ── */
  .about__grid  { gap: 36px; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .about__text p { font-size: 0.93rem; }

  /* ── Cards & grids → single column ── */
  .cards__grid,
  .projects__grid,
  .moods__grid,
  .pillars__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* ── Image cards ── */
  .card       { min-height: 280px; }
  .mood__card { min-height: 420px; }

  .card__content { padding: 20px 18px; }
  .card__title   { font-size: 1.05rem; }
  .card__text    { font-size: 0.84rem; }

  /* ── Mood card: lighter overlay + brighter image so collage is clearly visible ── */
  .mood__overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.0)  0%,
      rgba(0, 0, 0, 0.05) 45%,
      rgba(0, 0, 0, 0.55) 78%,
      rgba(0, 0, 0, 0.72) 100%
    );
  }
  .mood__photo {
    filter: brightness(0.85) saturate(0.9);
    object-position: center center;
  }

  /* ── Mood card body ── */
  .mood__body  { padding: 20px 18px 18px; }
  .mood__title { font-size: 1rem; }
  .mood__desc  { font-size: 0.82rem; }

  /* ── Project cards ── */
  .project__card { padding: 22px 18px; }

  /* ── Mindset pillars ── */
  .pillar { padding: 24px 18px; }

  /* ── Contact ── */
  .contact__grid { gap: 32px; }
  /* Prevent long email from overflowing on small screens */
  .contact__link { word-break: break-all; }

  /* ── Footer ── */
  .footer { padding: 44px 0 24px; }
  .footer__links { gap: 16px; }

  /* ── Remove stagger on mobile ── */
  .reveal:nth-child(n) { transition-delay: 0s !important; }
}

/* ======================== SMALL IPHONES (≤ 390px) ======================== */
@media (max-width: 390px) {
  .container { padding: 0 16px; }

  .hero__content { max-width: 100%; }
  .hero__name    { font-size: 2.7rem; }
  .hero__headline { font-size: 1.05rem; }
  .hero__ctas .btn { max-width: 100%; }

  .section__title { font-size: 1.7rem; }

  .card__content { padding: 18px 16px; }
  .mood__body    { padding: 18px 16px; }
}
