/* ═══════════════════════════════════════════
   KOUSHIK SUNDARAM KAILASH — Personal Site
   v2 — "Precision & Build"
   ═══════════════════════════════════════════ */

/* ─── LIGHT THEME (default) ─── */
:root {
  --c-bg:        #FAF9F6;
  --c-bg-alt:    #F2F0EB;
  --c-surface:   #FFFFFF;
  --c-border:    #E4E1DB;
  --c-text:      #1B1B18;
  --c-text-mid:  #5C5A54;
  --c-text-mute: #9B978F;
  --c-accent:    #2B4C4C;
  --c-accent-l:  #3A6B6B;
  --c-accent-bg: #EDF3F3;
  --c-highlight:  #D4A853;
  --c-nav-bg:    rgba(250, 249, 246, 0.92);
  --c-marquee-bg: #2B4C4C;

  /* Typography */
  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body:    'Manrope', system-ui, sans-serif;

  /* Spacing */
  --s-section: clamp(80px, 10vw, 140px);
  --s-gap:     clamp(16px, 3vw, 32px);

  /* Layout */
  --max-w: 1200px;

  /* Transitions */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --t-fast: 0.3s;
  --t-med:  0.6s;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
}

/* ─── DARK THEME ─── */
[data-theme="dark"] {
  --c-bg:        #111110;
  --c-bg-alt:    #1A1918;
  --c-surface:   #222120;
  --c-border:    #333230;
  --c-text:      #EDEDEA;
  --c-text-mid:  #A8A69F;
  --c-text-mute: #706E68;
  --c-accent:    #6FB5B5;
  --c-accent-l:  #8DD0D0;
  --c-accent-bg: #1A2E2E;
  --c-highlight:  #D4A853;
  --c-nav-bg:    rgba(17, 17, 16, 0.92);
  --c-marquee-bg: #1A2E2E;
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }

/* ─── UTILITY ─── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}
.section {
  padding: var(--s-section) 0;
}

/* ─── GRAIN TEXTURE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--d1 { transition-delay: 0.1s; }
.reveal--d2 { transition-delay: 0.2s; }
.reveal--d3 { transition-delay: 0.3s; }
.reveal--d4 { transition-delay: 0.4s; }

/* ─── SECTION LABELS ─── */
.section__label {
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section__label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--c-accent);
  display: inline-block;
}
.section__title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--c-text);
  margin-bottom: 16px;
}
.section__subtitle {
  font-size: 1.05rem;
  color: var(--c-text-mid);
  max-width: 600px;
  margin-bottom: 48px;
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--t-fast), padding var(--t-fast), box-shadow var(--t-fast);
}
.nav.is-scrolled {
  background: var(--c-nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--c-border);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-accent);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--c-text-mid);
  transition: color var(--t-fast);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--c-accent);
  transition: width var(--t-fast) var(--ease);
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--c-accent);
}
.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}
.nav__link--cta {
  background: var(--c-accent);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 100px;
  transition: background var(--t-fast), transform var(--t-fast);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  background: var(--c-accent-l);
  transform: translateY(-1px);
}

/* Dark mode toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--c-border);
  color: var(--c-text-mid);
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  transform: translateY(-1px);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  width: 18px;
  height: 18px;
}
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }
:root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: block; }

/* Nav right group */
.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--c-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 24px;
    transition: right var(--t-fast) var(--ease);
    box-shadow: -8px 0 32px rgba(0,0,0,0.08);
  }
  .nav__links.is-open { right: 0; }
  .nav__link { font-size: 1.05rem; }
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero__bg-text {
  position: absolute;
  bottom: -5%;
  right: -3%;
  font-family: var(--f-display);
  font-size: clamp(12rem, 25vw, 28rem);
  font-weight: 700;
  color: var(--c-border);
  opacity: 0.35;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.hero__content {
  max-width: var(--max-w);
  width: 100%;
  padding: 0 clamp(20px, 5vw, 48px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: var(--c-accent-bg);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero__name {
  font-family: var(--f-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero__name--accent {
  color: var(--c-accent);
}
.hero__tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--c-text-mid);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Currently building strip */
.hero__currently {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--c-text-mid);
  margin-bottom: 36px;
  padding: 8px 16px;
  background: var(--c-accent-bg);
  border-radius: 100px;
  border: 1px solid var(--c-border);
}
.hero__currently-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}
.hero__social {
  display: flex;
  gap: 16px;
}
.hero__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--c-border);
  border-radius: 50%;
  color: var(--c-text-mid);
  transition: all var(--t-fast);
}
.hero__social-link:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  transform: translateY(-2px);
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--c-text-mute);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--c-text-mute);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--c-accent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { top: -100%; }
  50%  { top: 100%; }
  100% { top: 100%; }
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 100px;
  transition: all var(--t-fast) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-accent);
  color: #fff;
  border: 1.5px solid var(--c-accent);
}
.btn--primary:hover {
  background: var(--c-accent-l);
  border-color: var(--c-accent-l);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43, 76, 76, 0.2);
}
.btn--outline {
  background: transparent;
  color: var(--c-text);
  border: 1.5px solid var(--c-border);
}
.btn--outline:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  transform: translateY(-2px);
}
.btn--lg {
  padding: 16px 36px;
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.about { background: var(--c-bg); }
.about__grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.about__photo-wrapper {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
}
.about__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--c-text-mute);
  background: linear-gradient(160deg, var(--c-bg-alt) 0%, var(--c-accent-bg) 100%);
}
.about__location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--c-text-mute);
  margin-top: 16px;
}
.about__headline {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 20px;
}
.about__body {
  font-size: 1rem;
  color: var(--c-text-mid);
  margin-bottom: 16px;
  max-width: 580px;
}
.about__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--c-border);
  width: 100%;
  overflow: visible;
}
.about__stat {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.about__stat-value {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: nowrap;
  white-space: nowrap;
  line-height: 1;
  margin-bottom: 4px;
}
.about__stat-number {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
  display: inline;
}
.about__stat-suffix {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
  display: inline;
  margin-left: 1px;
}
.about__stat-label {
  font-size: 0.75rem;
  color: var(--c-text-mute);
  margin-top: 6px;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo-wrapper { max-width: 280px; }
  .about__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════
   EXPERIENCE TIMELINE
   ═══════════════════════════════════════════ */
.experience {
  background: var(--c-bg-alt);
}
.timeline {
  margin-top: 48px;
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12px;
  width: 1px;
  height: 100%;
  background: var(--c-border);
}
.timeline__item {
  position: relative;
  margin-bottom: 40px;
}
.timeline__item:last-child { margin-bottom: 0; }
.timeline__marker {
  position: absolute;
  left: -40px;
  top: 24px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline__marker::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-accent);
  border: 3px solid var(--c-bg-alt);
  box-shadow: 0 0 0 1px var(--c-accent);
}
.timeline__card {
  background: var(--c-surface);
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}
.timeline__card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.timeline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.timeline__date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-text-mute);
  letter-spacing: 0.04em;
}
.timeline__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: var(--c-accent-bg);
  padding: 3px 12px;
  border-radius: 100px;
}
.timeline__role {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.timeline__company {
  font-size: 0.9rem;
  color: var(--c-text-mid);
  margin-bottom: 12px;
}
.timeline__desc {
  font-size: 0.92rem;
  color: var(--c-text-mid);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════ */
.projects { background: var(--c-bg); }
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: clamp(24px, 3vw, 32px);
  transition: box-shadow var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.07);
  transform: translateY(-4px);
  border-color: var(--c-accent);
}
.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.project-card__category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.project-card__year {
  font-size: 0.78rem;
  color: var(--c-text-mute);
  font-weight: 500;
}
.project-card__title {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}
.project-card__desc {
  font-size: 0.9rem;
  color: var(--c-text-mid);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}
.project-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.project-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}
.project-card__stack span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--c-text-mid);
  background: var(--c-bg-alt);
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}
.project-card__link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  transition: gap var(--t-fast);
}
.project-card__link:hover { gap: 8px; }
.project-card__link svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════ */
.skills { background: var(--c-bg-alt); }
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.skill-group {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 28px;
}
.skill-group__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--c-text);
}
.skill-group__title svg {
  color: var(--c-accent);
  flex-shrink: 0;
}
.skill-group__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-group__tags span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--c-text-mid);
  background: var(--c-bg);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--c-border);
  transition: all var(--t-fast);
}
.skill-group__tags span:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: var(--c-accent-bg);
}

/* ═══════════════════════════════════════════
   CREDENTIALS
   ═══════════════════════════════════════════ */
.credentials { background: var(--c-bg); }
.credentials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.credential-block {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 28px;
}
.credential-block__heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
}
.credential-item {
  margin-bottom: 16px;
}
.credential-item:last-child { margin-bottom: 0; }
.credential-item__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 2px;
}
.credential-item__sub {
  font-size: 0.88rem;
  color: var(--c-text-mid);
  line-height: 1.5;
}
.credential-item__meta {
  font-size: 0.8rem;
  color: var(--c-text-mute);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════
   HIGHLIGHTS MARQUEE
   ═══════════════════════════════════════════ */
.highlights {
  padding: 48px 0;
  background: var(--c-marquee-bg);
  overflow: hidden;
}
.highlights .section__label {
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}
.highlights .section__label::before {
  background: rgba(255,255,255,0.3);
}
.highlights__marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.highlights__track {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
  width: max-content;
}
.highlights__item {
  font-family: var(--f-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 500;
  color: #fff;
  flex-shrink: 0;
}
.highlights__divider {
  color: rgba(255,255,255,0.25);
  font-size: 0.6rem;
  flex-shrink: 0;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact {
  background: var(--c-bg);
}
.contact__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.contact__headline {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 20px;
}
.contact__headline--accent {
  color: var(--c-accent);
  font-style: italic;
}
.contact__desc {
  font-size: 1.05rem;
  color: var(--c-text-mid);
  margin-bottom: 36px;
  line-height: 1.7;
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}
.contact__details {
  display: flex;
  justify-content: center;
  gap: 48px;
}
.contact__detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
}
.contact__detail-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-mute);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--c-border);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__copy {
  font-size: 0.82rem;
  color: var(--c-text-mute);
}
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  font-size: 0.82rem;
  color: var(--c-text-mute);
  transition: color var(--t-fast);
}
.footer__links a:hover { color: var(--c-accent); }

/* ═══════════════════════════════════════════
   RESPONSIVE FINE-TUNING
   ═══════════════════════════════════════════ */
@media (max-width: 600px) {
  .about__stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .projects__grid { grid-template-columns: 1fr; }
  .skills__grid { grid-template-columns: 1fr; }
  .credentials__grid { grid-template-columns: 1fr; }
  .contact__details { flex-direction: column; gap: 20px; }
  .hero__scroll-hint { display: none; }
  .hero__bg-text { font-size: 8rem; }
  .timeline { padding-left: 28px; }
  .timeline::before { left: 8px; }
  .timeline__marker { left: -28px; }
  .timeline__marker::before { width: 8px; height: 8px; }
}

@media (max-width: 400px) {
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════
   DYNAMIC HERO ENHANCEMENTS
   ═══════════════════════════════════════════ */

/* Floating geometric shapes */
.hero__shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero__shape {
  position: absolute;
  border: 1.5px solid var(--c-border);
  opacity: 0.4;
  animation: floatShape 20s ease-in-out infinite;
}
.hero__shape--1 {
  width: 60px; height: 60px;
  border-radius: 12px;
  top: 15%; right: 12%;
  animation-delay: 0s;
  transform: rotate(15deg);
}
.hero__shape--2 {
  width: 24px; height: 24px;
  border-radius: 50%;
  top: 25%; right: 28%;
  animation-delay: -4s;
  border-color: var(--c-accent);
  opacity: 0.3;
}
.hero__shape--3 {
  width: 80px; height: 80px;
  border-radius: 50%;
  bottom: 20%; right: 8%;
  animation-delay: -8s;
}
.hero__shape--4 {
  width: 40px; height: 40px;
  border-radius: 8px;
  top: 60%; right: 22%;
  animation-delay: -12s;
  transform: rotate(45deg);
  border-color: var(--c-accent);
  opacity: 0.25;
}
.hero__shape--5 {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--c-accent);
  border: none;
  top: 35%; right: 18%;
  animation-delay: -6s;
  opacity: 0.15;
}
.hero__shape--6 {
  width: 100px; height: 100px;
  border-radius: 20px;
  bottom: 30%; right: 32%;
  animation-delay: -15s;
  opacity: 0.15;
  transform: rotate(-10deg);
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(var(--r, 15deg)); }
  33% { transform: translateY(-18px) rotate(calc(var(--r, 15deg) + 5deg)); }
  66% { transform: translateY(12px) rotate(calc(var(--r, 15deg) - 3deg)); }
}
.hero__shape--1 { --r: 15deg; }
.hero__shape--3 { --r: 0deg; }
.hero__shape--4 { --r: 45deg; }
.hero__shape--6 { --r: -10deg; }

/* Subtle grid lines */
.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--c-text) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-text) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 50% at 70% 50%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 70% 50%, #000 0%, transparent 100%);
}

/* Badge dot pulse */
.hero__badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  display: inline-block;
  margin-right: 4px;
  animation: badgePulse 2.5s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Name line reveal */
.hero__name-line {
  display: inline-block;
}
.hero__name.is-visible .hero__name-line {
  animation: nameSlide 0.8s var(--ease) both;
}
.hero__name.is-visible .hero__name--accent {
  animation: nameSlide 0.8s var(--ease) 0.15s both;
}
@keyframes nameSlide {
  from { opacity: 0; transform: translateY(40px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Accent line */
.hero__accent-line {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-highlight));
  border-radius: 2px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.hero__accent-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* Role rotator in tagline */
.hero__rotate-wrap {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
  height: 1.7em;
  min-width: 200px;
}
.hero__rotate {
  display: flex;
  flex-direction: column;
  animation: rotateWords 10s ease-in-out infinite;
}
.hero__rotate span {
  height: 1.7em;
  display: flex;
  align-items: center;
  color: var(--c-accent);
  font-weight: 600;
  white-space: nowrap;
}
@keyframes rotateWords {
  0%, 20%   { transform: translateY(0); }
  25%, 45%  { transform: translateY(-25%); }
  50%, 70%  { transform: translateY(-50%); }
  75%, 95%  { transform: translateY(-75%); }
  100%      { transform: translateY(-100%); }
}

@media (max-width: 600px) {
  .hero__shapes { display: none; }
  .hero__grid { display: none; }
  .hero__rotate-wrap { display: inline; min-width: auto; height: auto; overflow: visible; }
  .hero__rotate { display: inline; animation: none; }
  .hero__rotate span { display: none; }
  .hero__rotate span:first-child { display: inline; height: auto; }
}

/* ═══════════════════════════════════════════
   DYNAMIC ABOUT ENHANCEMENTS
   ═══════════════════════════════════════════ */

/* Photo tilt container */
.about__photo-tilt {
  position: relative;
  perspective: 800px;
}

/* Animated corner accents on photo */
.about__photo-wrapper {
  position: relative;
  transition: transform 0.4s var(--ease);
}
.about__photo-corner {
  position: absolute;
  width: 40px; height: 40px;
  border-color: var(--c-accent);
  border-style: solid;
  border-width: 0;
  opacity: 0;
  transition: opacity 0.6s, transform 0.6s var(--ease);
}
.about__photo-corner--tl {
  top: -8px; left: -8px;
  border-top-width: 2px;
  border-left-width: 2px;
  border-radius: 4px 0 0 0;
  transform: translate(-8px, -8px);
}
.about__photo-corner--br {
  bottom: -8px; right: -8px;
  border-bottom-width: 2px;
  border-right-width: 2px;
  border-radius: 0 0 4px 0;
  transform: translate(8px, 8px);
}
.about__photo-col.is-visible .about__photo-corner {
  opacity: 1;
  transform: translate(0, 0);
  transition-delay: 0.4s;
}

/* Floating orbit tags */
.about__orbit {
  position: absolute;
  inset: -20px;
  pointer-events: none;
}
.about__orbit-tag {
  position: absolute;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: var(--c-accent-bg);
  border: 1px solid var(--c-border);
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
  animation: orbitFloat 6s ease-in-out infinite;
}
.about__orbit-tag--1 { top: 8%; right: -24px; animation-delay: 0s; }
.about__orbit-tag--2 { bottom: 30%; right: -30px; animation-delay: -1.5s; }
.about__orbit-tag--3 { bottom: 8%; left: -16px; animation-delay: -3s; }
.about__orbit-tag--4 { top: 35%; left: -28px; animation-delay: -4.5s; }

@keyframes orbitFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* What I do horizontal scroll strip */
.about__what-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 10px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
}
.about__what-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  white-space: nowrap;
  flex-shrink: 0;
}
.about__what-scroll {
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.about__what-track {
  display: flex;
  gap: 12px;
  white-space: nowrap;
  animation: whatScroll 16s linear infinite;
  width: max-content;
}
.about__what-track span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-text-mid);
}
@keyframes whatScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Stat bar animation */
.about__stat-bar {
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-l));
  border-radius: 2px;
  margin-bottom: 10px;
  transition: width 2.4s var(--ease);
}
.about__stats.is-visible .about__stat-bar {
  width: calc(var(--w, 80) * 1%);
}
.about__stat:nth-child(1) .about__stat-bar { --w: 90; transition-delay: 0s; }
.about__stat:nth-child(2) .about__stat-bar { --w: 60; transition-delay: 0.3s; }
.about__stat:nth-child(3) .about__stat-bar { --w: 90; transition-delay: 0.6s; }
.about__stat:nth-child(4) .about__stat-bar { --w: 80; transition-delay: 0.9s; }

@media (max-width: 900px) {
  .about__orbit { display: none; }
  .about__photo-corner { display: none; }
}

/* ─── PRINT STYLES ─── */
@media print {
  .nav, .hero__scroll-hint, .highlights, .theme-toggle { display: none; }
  .section { padding: 32px 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
