/* ===========================
   ADITI Muthukumar — PORTFOLIO
   Editorial · Refined · Warm
   =========================== */

:root {
  --navy: #0f1e38;
  --navy-mid: #1b2f52;
  --cream: #f9f5ef;
  --cream-dark: #f0e9de;
  --gold: #c8992a;
  --gold-light: #e8b84b;
  --gold-pale: #fdf3dc;
  --text: #1a1a2e;
  --text-mid: #4a4a6a;
  --text-light: #8888aa;
  --white: #ffffff;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15,30,56,0.10);
  --shadow-lg: 0 12px 48px rgba(15,30,56,0.16);
  --transition: 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; font-size: 16px; }
body { font-family: var(--font-body); background: var(--cream); color: var(--text); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* TYPOGRAPHY */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }
h1 { font-size: clamp(3.5rem, 8vw, 7rem); font-weight: 300; }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 300; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
em { font-style: italic; color: var(--gold); }
p { font-size: 1rem; color: var(--text-mid); line-height: 1.75; }

/* CONTAINER */
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }

/* SECTIONS */
.section { padding: 6rem 0; }
.section-tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title { margin-bottom: 1rem; color: var(--navy); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .section-title { max-width: 600px; margin: 0 auto 1rem; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,153,42,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
  /* Transparent over hero — links use hero (white) colours */
  background: transparent;
}
.nav.scrolled {
  background: rgba(249,245,239,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.75rem 0;
  box-shadow: 0 2px 20px rgba(15,30,56,0.09);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo — gold always, but readable on both dark + light bg */
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);          /* white on hero */
  letter-spacing: 0.05em;
  transition: color var(--transition);
}
.nav-logo span { color: var(--gold); }
.nav.scrolled .nav-logo { color: var(--navy); }

/* Links — white on hero, dark after scroll */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);   /* visible on dark hero */
  letter-spacing: 0.03em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

/* After scroll — switch to dark text */
.nav.scrolled .nav-links a {
  color: var(--text-mid);
}
.nav.scrolled .nav-links a:hover { color: var(--navy); }

/* Active link — adapts to hero vs scrolled state */
.nav-links a.nav-active { color: var(--white); font-weight: 600; }
.nav.scrolled .nav-links a.nav-active { color: var(--navy); font-weight: 600; }

/* Contact CTA pill */
.nav-cta {
  background: rgba(255,255,255,0.15) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: background var(--transition), border-color var(--transition) !important;
}
.nav-cta:hover {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--white) !important;
}
.nav.scrolled .nav-cta {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
  color: var(--white) !important;
}
.nav.scrolled .nav-cta:hover {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg { position: absolute; inset: 0; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #2a4580, transparent);
  top: -200px; left: -200px;
  animation: drift1 12s ease-in-out infinite alternate;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--gold), transparent);
  bottom: -150px; right: -100px;
  animation: drift2 15s ease-in-out infinite alternate;
  opacity: 0.2;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #3a5580, transparent);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: drift3 10s ease-in-out infinite alternate;
}
.grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}
@keyframes drift1 { to { transform: translate(60px, 40px); } }
@keyframes drift2 { to { transform: translate(-40px, -60px); } }
@keyframes drift3 { to { transform: translate(-50%, -50%) scale(1.2); } }

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  animation: heroFadeIn 1s ease-out both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
  opacity: 0.9;
}
.hero-name {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-weight: 300;
  line-height: 1.05;
}
.hero-name em { color: var(--gold-light); }
.hero-tagline {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  text-transform: uppercase;
  font-weight: 300;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}
.pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 400;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.pill:hover {
  background: rgba(200,153,42,0.2);
  border-color: var(--gold-light);
  color: var(--gold-light);
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-ghost {
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.hero-actions .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ===== ABOUT ===== */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 5rem;
  align-items: start;
}
.photo-frame { position: relative; margin-bottom: 2rem; }
.photo-placeholder {
  width: 280px;
  height: 340px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,153,42,0.15) 0%, transparent 60%);
}
.initials {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
}
.photo-accent {
  position: absolute;
  width: 280px; height: 340px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  top: 16px; left: 16px;
  z-index: -1;
}
.quick-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--gold-pale);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.04em;
}
.about-text-col { padding-top: 0.5rem; }
.bio-text p { margin-bottom: 1.25rem; font-size: 1.025rem; }
.bio-text strong { color: var(--navy); font-weight: 600; }
.about-links { margin-top: 2rem; }

/* ===== PROJECTS ===== */
.projects { background: var(--cream); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(15,30,56,0.07);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.project-featured {
  grid-column: span 2;
  background: var(--navy);
}
.project-card-inner { padding: 2rem; }
.project-featured .project-card-inner { padding: 2.5rem; }
.project-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.project-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}
.project-featured h3,
.project-featured p { color: var(--white); }
.project-featured p { color: rgba(255,255,255,0.7); }
.project-card h3 { color: var(--navy); margin-bottom: 0.75rem; }
.project-card p { font-size: 0.95rem; margin-bottom: 1.25rem; }
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.project-tags span {
  background: rgba(15,30,56,0.07);
  color: var(--text-mid);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}
.project-featured .project-tags span {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}
.project-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.award-badge {
  background: rgba(200,153,42,0.18);
  border: 1px solid rgba(200,153,42,0.4);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
}
.project-link {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: opacity var(--transition);
}
.project-link:hover { opacity: 0.75; }

/* ===== AWARDS ===== */
.awards { background: var(--white); }
.awards-list { display: flex; flex-direction: column; gap: 0; }
.award-item {
  display: grid;
  grid-template-columns: 60px 48px 1fr;
  align-items: start;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(15,30,56,0.07);
  transition: background var(--transition);
}
.award-item:hover { background: var(--gold-pale); margin: 0 -2rem; padding: 1.75rem 2rem; border-radius: var(--radius); }
.award-item:last-child { border-bottom: none; }
.award-year {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  padding-top: 0.1rem;
}
.award-icon { font-size: 1.75rem; line-height: 1; }
.award-body h4 { color: var(--navy); margin-bottom: 0.25rem; }
.award-body p { font-size: 0.9rem; }

/* ===== LEADERSHIP ===== */
.leadership { background: var(--navy); }
.leadership .section-tag { color: var(--gold-light); }
.leadership .section-title { color: var(--white); }
.leadership .section-title em { color: var(--gold-light); }
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.role-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  text-align: center;
}
.role-card:hover {
  background: rgba(200,153,42,0.12);
  border-color: rgba(200,153,42,0.3);
  transform: translateY(-4px);
}
.role-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.role-card h4 { color: var(--white); margin-bottom: 0.4rem; }
.role-card p { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.5; }
.role-card p span { display: block; color: var(--gold-light); font-weight: 500; margin-top: 0.15rem; }

/* ===== CONTACT ===== */
.contact { background: var(--cream); }
.contact-simple {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}
.contact-simple .section-tag { justify-content: center; display: flex; }
.contact-sub { font-size: 1.05rem; margin-bottom: 2rem; }
.contact-email-wrap { margin-bottom: 2.5rem; }
.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--navy);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 1rem 2rem;
  border-radius: 100px;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.contact-email-link:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,153,42,0.3);
}
.contact-email-icon { font-size: 1.25rem; }
.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-mid);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}
.contact-link:hover { color: var(--navy); }
.contact-link-icon { font-size: 1.1rem; }

/* ===== FOOTER ===== */
.footer { background: var(--navy); padding: 3rem 0 2rem; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  display: block;
  margin-bottom: 0.5rem;
}
.footer-left p { font-size: 0.875rem; color: rgba(255,255,255,0.5); }
.footer-right {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-right a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-right a:hover { color: var(--gold-light); }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .photo-frame { display: flex; gap: 1.5rem; align-items: center; }
  .photo-placeholder { width: 160px; height: 200px; flex-shrink: 0; }
  .photo-accent { display: none; }
  .quick-stats { flex-direction: row; flex-wrap: wrap; }
  .stat { flex: 1; min-width: 120px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: span 1; }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .nav-links { 
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.5rem; color: var(--white); }
  .nav-cta { background: var(--gold) !important; }
  .nav-toggle { display: flex; z-index: 101; position: relative; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .hero-name { font-size: clamp(2.8rem, 12vw, 5rem); }
  .roles-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .award-item { grid-template-columns: 48px 40px 1fr; gap: 0.75rem; }
  .award-item:hover { margin: 0; padding: 1.75rem 0; }
  .footer-inner { flex-direction: column; }
}
