/* v4 — Aurora Glass */
:root {
  --bg: #0b0b16;
  --text: #eef0ff;
  --dim: #b7bcd8;
  --faint: #7c82a3;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.14);
  --head: "Space Grotesk", sans-serif;
  --body: "Inter", sans-serif;
  --grad: linear-gradient(120deg, #60a5fa, #a78bfa 45%, #f472b6 75%, #34d399);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--body); background: var(--bg); color: var(--text);
  line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(167, 139, 250, 0.4); }

/* aurora background */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px);
  opacity: 0.55; animation: drift 22s ease-in-out infinite;
}
.blob--1 { width: 500px; height: 500px; background: #4338ca; top: -120px; left: -100px; }
.blob--2 { width: 460px; height: 460px; background: #7c3aed; top: 20%; right: -140px; animation-delay: -6s; }
.blob--3 { width: 420px; height: 420px; background: #db2777; bottom: -120px; left: 20%; animation-delay: -12s; }
.blob--4 { width: 360px; height: 360px; background: #0d9488; top: 50%; left: 45%; animation-delay: -3s; opacity: 0.35; }
.blob--5 { width: 300px; height: 300px; background: #2563eb; bottom: 10%; right: 15%; animation-delay: -9s; opacity: 0.4; }

.shape { position: absolute; pointer-events: none; }
.shape--ring { width: 160px; height: 160px; border: 2px solid rgba(255,255,255,0.14); border-radius: 50%; top: 12%; left: 12%; animation: float 9s ease-in-out infinite; }
.shape--tri { width: 0; height: 0; border-left: 26px solid transparent; border-right: 26px solid transparent; border-bottom: 44px solid rgba(244,114,182,0.25); top: 68%; right: 10%; animation: spin 24s linear infinite; }
.shape--dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(52,211,153,0.5); top: 30%; right: 22%; animation: float 7s ease-in-out infinite 1s; }

.grain {
  position: fixed; inset: 0; z-index: -1; opacity: 0.04; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; padding: 16px 30px;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s; border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(11,11,22,0.6); backdrop-filter: blur(18px); border-bottom-color: var(--border); }
.nav__brand { font-family: var(--head); font-weight: 700; font-size: 20px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__links { display: flex; gap: 22px; }
.nav__links a { font-size: 14.5px; color: var(--dim); transition: color 0.2s; }
.nav__links a:hover { color: #fff; }
.nav__cta { font-size: 14px; color: #fff; padding: 9px 18px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid var(--border); backdrop-filter: blur(8px); transition: background 0.2s; }
.nav__cta:hover { background: rgba(255,255,255,0.16); }

/* glass utility */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

/* hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 30px 60px; max-width: 1200px; margin-inline: auto; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; width: 100%; }
.badge {
  display: inline-block; padding: 7px 16px; border-radius: 999px; margin-bottom: 26px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border); backdrop-filter: blur(8px);
  font-size: 13.5px; color: var(--dim);
}
.hero h1 { font-family: var(--head); font-size: clamp(3rem, 7vw, 5.6rem); line-height: 0.98; letter-spacing: -0.03em; margin-bottom: 22px; }
.hero__role { color: var(--dim); font-size: 1.1rem; margin-bottom: 18px; }
.hero__bio { color: var(--dim); max-width: 460px; margin-bottom: 32px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: linear-gradient(120deg, #60a5fa, #a78bfa); color: #fff;
  box-shadow: 0 10px 30px rgba(120,100,250,0.35); transition: transform 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(120,100,250,0.5); }
.btn--ghost { background: rgba(255,255,255,0.08); border: 1px solid var(--border); box-shadow: none; color: var(--text); }
.btn--ghost:hover { background: rgba(255,255,255,0.14); }

.hero__media { position: relative; display: grid; place-items: center; }
.hero__frame {
  width: clamp(240px, 30vw, 340px); aspect-ratio: 1; border-radius: 50%;
  padding: 8px; background: var(--grad); box-shadow: 0 20px 60px rgba(120,100,250,0.4);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 5px solid #0b0b16; }
.float-chip {
  position: absolute; padding: 9px 16px; border-radius: 999px; font-size: 13px;
  background: rgba(255,255,255,0.1); border: 1px solid var(--border); backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
}
.chip--a { top: 8%; right: 4%; }
.chip--b { bottom: 26%; left: -4%; animation-delay: -2s; }
.chip--c { bottom: 4%; right: 16%; animation-delay: -4s; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1200px; margin: 20px auto 0; padding: 0 30px; }
.stat { text-align: center; padding: 26px 12px; }
.stat b { display: block; font-family: var(--head); font-size: 2.4rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--dim); font-size: 14px; }

/* sections */
.sec { max-width: 1200px; margin-inline: auto; padding: 90px 30px; }
.sec__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 40px; }
.sec__head span { font-family: var(--head); color: var(--faint); }
.sec__head h2 { font-family: var(--head); font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; }

.about-card { padding: 40px; }
.about-card .lead { font-family: var(--head); font-size: 1.4rem; line-height: 1.4; margin-bottom: 26px; max-width: 760px; }
.about-card .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; color: var(--dim); }

.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill { padding: 28px; transition: transform 0.3s, border-color 0.3s; }
.skill:hover { transform: translateY(-6px); border-color: rgba(167,139,250,0.5); }
.skill h3 { font-family: var(--head); font-size: 1.15rem; margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; background: rgba(255,255,255,0.07); border: 1px solid var(--border); color: var(--dim); }

.exp { display: flex; flex-direction: column; gap: 18px; }
.exp__item { padding: 30px; transition: transform 0.3s, border-color 0.3s; }
.exp__item:hover { transform: translateX(8px); border-color: rgba(96,165,250,0.5); }
.exp__period { font-family: var(--head); font-size: 13px; color: #93c5fd; }
.exp__item h3 { font-family: var(--head); font-size: 1.3rem; margin: 6px 0 12px; }
.exp__item h3 small { font-weight: 400; color: var(--faint); font-size: 0.85em; }
.exp__item p { color: var(--dim); margin-bottom: 16px; }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: transform 0.3s, border-color 0.3s; }
.project:hover { transform: translateY(-8px); border-color: rgba(244,114,182,0.5); }
.project__icon { font-size: 1.8rem; }
.project h3 { font-family: var(--head); font-size: 1.2rem; }
.project p { color: var(--dim); font-size: 0.94rem; flex-grow: 1; }
.project__tag { color: var(--faint); font-size: 12.5px; }

.edu { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.edu__item { padding: 26px; }
.edu__year { font-family: var(--head); font-size: 13px; color: #6ee7b7; }
.edu__item h3 { font-family: var(--head); font-size: 1.15rem; margin: 6px 0 8px; }
.edu__item p, .edu__item li { color: var(--dim); font-size: 0.95rem; }
.list { list-style: none; }
.list li { padding: 4px 0; }
.list li::before { content: "✦ "; color: #a78bfa; }

.contact-card { padding: 44px; text-align: center; }
.contact__headline { font-family: var(--head); font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: 30px; }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
.contact__links a { padding: 12px 20px; border-radius: 14px; background: rgba(255,255,255,0.07); border: 1px solid var(--border); color: var(--dim); transition: all 0.25s; }
.contact__links a:hover { color: #fff; border-color: rgba(167,139,250,0.6); transform: translateY(-3px); }

.footer { display: flex; justify-content: space-between; padding: 30px; max-width: 1200px; margin-inline: auto; color: var(--faint); font-size: 14px; border-top: 1px solid var(--border); }
.footer a:hover { color: #fff; }

/* reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); transition-delay: calc(var(--delay,0) * 90ms); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-40px, 50px) scale(0.95); }
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .skills, .projects { grid-template-columns: 1fr 1fr; }
  .edu { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .about-card .cols { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 600px) {
  .skills, .projects { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
