/* =========================================================
   SuzanSharma.me — Premium portfolio styles
   Base: Tailwind via CDN. This file layers the design system
   on top (aurora, glass, animations, typography rhythm).
   ========================================================= */

:root {
  --ink-900: #05060a;
  --ink-800: #0a0b12;
  --ink-700: #0f1119;
  --brand-400: #6088ff;
  --brand-500: #3a63ff;
  --accent-400: #a78bfa;
  --accent-500: #8b5cf6;
  --line: rgba(255,255,255,0.08);
}

* { -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { background-color: var(--ink-900); }

/* ---------- Aurora background ---------- */
.aurora-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(ellipse at top left,  rgba(58,99,255,0.12), transparent 40%),
    radial-gradient(ellipse at bottom right, rgba(167,139,250,0.10), transparent 45%),
    linear-gradient(180deg, #05060a 0%, #07080f 40%, #05060a 100%);
}
.aurora {
  position: absolute; border-radius: 9999px; filter: blur(80px);
  opacity: 0.5; mix-blend-mode: screen;
  animation: aurora 25s linear infinite;
}
.aurora-1 { top:-10%; left:-10%; width:60vw; height:60vw;
  background: radial-gradient(circle, rgba(58,99,255,0.35), transparent 60%); }
.aurora-2 { bottom:-20%; right:-10%; width:55vw; height:55vw;
  background: radial-gradient(circle, rgba(167,139,250,0.28), transparent 60%);
  animation-delay: -8s; animation-duration: 35s; }
.aurora-3 { top: 40%; left: 30%; width: 40vw; height: 40vw;
  background: radial-gradient(circle, rgba(16,185,129,0.10), transparent 60%);
  animation-delay: -14s; animation-duration: 45s; }
@keyframes aurora {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(4%,-5%) scale(1.08); }
  66%  { transform: translate(-3%,4%) scale(0.95); }
  100% { transform: translate(0,0) scale(1); }
}
.noise {
  position:absolute; inset:0; pointer-events:none; opacity:.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' seed='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px;
}

/* ---------- Navbar ---------- */
#site-header.scrolled nav {
  background: rgba(10,11,18,0.7);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.6);
}
.nav-link {
  padding: 0.5rem 0.85rem; border-radius: 0.6rem;
  transition: color .2s ease, background .2s ease;
  position: relative;
}
.nav-link:hover { color:#fff; background: rgba(255,255,255,0.04); }
.nav-link.active { color:#fff; }
.nav-link.active::after {
  content:''; position:absolute; left:50%; bottom:2px; transform:translateX(-50%);
  width: 20px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-500), var(--accent-500));
}
.mobile-link {
  display:block; padding: 0.75rem 0.9rem; border-radius: 0.6rem;
  color: rgb(203,213,225); transition: background .2s;
}
.mobile-link:hover { background: rgba(255,255,255,0.06); color:#fff; }

/* ---------- CTA buttons ---------- */
.cta-btn {
  display:inline-flex; align-items:center; justify-content:center;
  padding: 0.75rem 1.25rem; border-radius: 0.9rem;
  font-weight: 600; font-size: 0.9rem; letter-spacing: -0.01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  will-change: transform;
}
.cta-primary {
  color:#fff; background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  box-shadow: 0 10px 30px -8px rgba(58,99,255,0.55), inset 0 1px 0 rgba(255,255,255,0.15);
}
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(58,99,255,0.7); }
.cta-secondary {
  color:#fff; border:1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
}
.cta-secondary:hover { background: rgba(255,255,255,0.07); transform: translateY(-2px); }

/* ---------- Typography rhythm ---------- */
.section-eyebrow {
  display:inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: transparent; background: linear-gradient(90deg, var(--brand-400), var(--accent-400));
  -webkit-background-clip: text; background-clip: text;
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Space Grotesk','Inter',sans-serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.1;
  color: #fff;
}
.section-lead {
  margin-top: 1rem; font-size: 1.05rem; line-height: 1.7;
  color: rgb(148,163,184); max-width: 44rem;
}

/* ---------- Glass utilities ---------- */
.glass-panel {
  border-radius: 1.5rem; border: 1px solid var(--line);
  background: rgba(255,255,255,0.03); backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
}
.glass-stat {
  padding: 0.9rem 1.1rem; border-radius: 1rem;
  border: 1px solid var(--line); background: rgba(255,255,255,0.03);
  backdrop-filter: blur(14px);
}

/* ---------- Feature cards ---------- */
.feature-card {
  position: relative; padding: 1.75rem; border-radius: 1.25rem;
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  backdrop-filter: blur(14px);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.feature-card::before {
  content:''; position:absolute; inset:0; opacity:0; transition: opacity .3s ease;
  background: radial-gradient(400px circle at var(--x,50%) var(--y,50%), rgba(58,99,255,0.15), transparent 40%);
  pointer-events:none;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.15); box-shadow: 0 20px 60px -20px rgba(58,99,255,0.25); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  display:inline-flex; align-items:center; justify-content:center;
  height:48px; width:48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(58,99,255,0.15), rgba(167,139,250,0.15));
  color: #cbd5e1; border: 1px solid rgba(255,255,255,0.08);
}
.feature-title { margin-top: 1.25rem; font-size: 1.15rem; font-weight: 600; color: #fff; }
.feature-text { margin-top: 0.5rem; color: rgb(148,163,184); font-size: 0.9rem; line-height: 1.65; }

/* ---------- Project cards ---------- */
.project-card {
  display:block; border-radius: 1.25rem; overflow: hidden;
  border: 1px solid var(--line); background: rgba(255,255,255,0.02);
  backdrop-filter: blur(14px);
  transition: transform .35s ease, border-color .3s ease, box-shadow .3s ease;
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.18); box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7); }
.project-thumb {
  position: relative; aspect-ratio: 16/9;
  overflow: hidden;
}
.project-thumb::after {
  content:''; position:absolute; inset:0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 50%);
}

/* ---------- Mini cards (research chips) ---------- */
.mini-card {
  padding: 1rem 1.2rem; border-radius: 0.9rem;
  border: 1px solid var(--line); background: rgba(255,255,255,0.03);
  color: #e2e8f0; font-weight: 500; font-size: 0.95rem;
  transition: transform .2s, background .2s;
}
.mini-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.06); }

/* ---------- Floating hero cards ---------- */
.float-card {
  position: absolute; border-radius: 1rem; padding: 1rem 1.1rem;
  background: rgba(15,17,25,0.7); border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.6);
  min-width: 180px;
  animation: float 8s ease-in-out infinite;
}
.float-1 { top: 20px; left: 0px; animation-delay: 0s; }
.float-2 { top: 100px; right: 20px; animation-delay: -2s; }
.float-3 { top: 260px; left: 40px; animation-delay: -4s; min-width: 220px; }
.float-4 { bottom: 20px; right: 40px; animation-delay: -6s; min-width: 200px; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}

/* ---------- Social icons ---------- */
.social-icon {
  display:inline-flex; align-items:center; justify-content:center;
  height: 36px; width: 36px; border-radius: 10px;
  border: 1px solid var(--line); color:#cbd5e1;
  background: rgba(255,255,255,0.02); transition: background .2s, color .2s, transform .2s;
}
.social-icon:hover { color:#fff; background: rgba(255,255,255,0.08); transform: translateY(-2px); }

/* ---------- Typed caret ---------- */
.typed-caret { display:inline-block; margin-left:2px; color: var(--brand-400); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.marquee-track {
  display: inline-flex; gap: 1.5rem; white-space: nowrap;
  animation: marquee 40s linear infinite;
  color: rgb(148,163,184); font-family: 'Space Grotesk', sans-serif; font-weight: 500; letter-spacing: 0.02em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
  content:''; position:absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--brand-500), var(--accent-500), transparent);
  border-radius: 2px;
}
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item::before {
  content:''; position:absolute; left:-1.5rem; top: 6px; width:14px; height:14px; border-radius:999px;
  background: var(--ink-800); border: 3px solid var(--brand-500);
  box-shadow: 0 0 0 4px rgba(58,99,255,0.15);
}

/* ---------- Forms ---------- */
.form-field {
  width:100%; padding: 0.9rem 1rem; border-radius: 0.9rem;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  color:#fff; font-size: 0.95rem; transition: border-color .2s, background .2s;
}
.form-field:focus {
  outline: none; border-color: var(--brand-500); background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 4px rgba(58,99,255,0.12);
}
.form-label { display:block; font-size:0.85rem; color: rgb(148,163,184); margin-bottom: 0.35rem; letter-spacing: 0.02em; }

/* ---------- Badges / chips ---------- */
.chip {
  display:inline-flex; align-items:center; gap: 0.35rem;
  padding: 0.35rem 0.7rem; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  font-size: 0.78rem; color:#e2e8f0; font-weight: 500;
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--brand-400); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Utility: scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #05060a; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #1c2030, #0f1119); border-radius: 10px; border: 2px solid #05060a; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #2540f5, #7c3aed); }

@keyframes gradient-x {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}
.animate-gradient-x { background-size: 200% 200%; animation: gradient-x 8s ease infinite; }

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