:root {
  --bg: #090d18;
  --bg-elevated: #0f1524;
  --card: rgba(17, 24, 39, .72);
  --card-solid: #111827;
  --text: #f6f7fb;
  --muted: #9ca7bc;
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.17);
  --accent: #7c5cff;
  --accent-2: #20d6c7;
  --accent-3: #ff6fae;
  --shadow: 0 24px 70px rgba(0,0,0,.34);
  --max: 1180px;
}

body.light {
  --bg: #f5f7fb;
  --bg-elevated: #ffffff;
  --card: rgba(255,255,255,.78);
  --card-solid: #ffffff;
  --text: #111827;
  --muted: #667085;
  --line: rgba(17,24,39,.10);
  --line-strong: rgba(17,24,39,.18);
  --shadow: 0 24px 70px rgba(46,55,90,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 7%, rgba(124,92,255,.17), transparent 30%),
    radial-gradient(circle at 14% 18%, rgba(32,214,199,.09), transparent 24%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}

body.light { background: radial-gradient(circle at 86% 6%, rgba(124,92,255,.11), transparent 30%), radial-gradient(circle at 15% 16%, rgba(32,214,199,.08), transparent 25%), var(--bg); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
::selection { background: rgba(124,92,255,.5); color: white; }

.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.section-shell { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.content-section { padding: 115px 0 30px; }

.page-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 99; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 120; background: linear-gradient(90deg,var(--accent),var(--accent-2),var(--accent-3)); }
.cursor-glow { position: fixed; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(124,92,255,.10), transparent 68%); pointer-events:none; transform: translate(-50%,-50%); z-index:0; }

.site-header {
  width: min(1240px, calc(100% - 32px));
  position: sticky; top: 14px; z-index: 100; margin: 14px auto 0;
  height: 68px; padding: 0 18px 0 14px; display: flex; align-items: center; justify-content: space-between;
  background: color-mix(in srgb, var(--bg-elevated) 72%, transparent);
  border: 1px solid var(--line); border-radius: 18px; backdrop-filter: blur(20px); box-shadow: 0 10px 30px rgba(0,0,0,.10);
}
.brand { display:flex; align-items:center; gap:12px; font-weight:700; letter-spacing:-.02em; }
.brand-mark { width:39px; height:39px; display:grid; place-items:center; border-radius:12px; color:white; background: linear-gradient(135deg,var(--accent),#5b3de3 60%,var(--accent-2)); font-size:.84rem; box-shadow: 0 8px 20px rgba(124,92,255,.22); }
.brand-name { font-size:.96rem; }
.desktop-nav { display:flex; align-items:center; gap:28px; color:var(--muted); font-size:.91rem; }
.desktop-nav a { transition: color .2s ease; }
.desktop-nav a:hover { color:var(--text); }
.header-actions { display:flex; align-items:center; gap:8px; }
.icon-button, .menu-button { border:1px solid var(--line); background:rgba(255,255,255,.03); width:40px; height:40px; border-radius:12px; cursor:pointer; display:grid; place-items:center; }
.theme-icon { font-size:1.15rem; }
.menu-button { display:none; position:relative; }
.menu-button span:not(.sr-only) { position:absolute; width:17px; height:1.5px; background:var(--text); transition:.2s ease; }
.menu-button span:first-child { transform:translateY(-3px); }
.menu-button span:nth-child(2) { transform:translateY(3px); }
.menu-button.active span:first-child { transform:rotate(45deg); }
.menu-button.active span:nth-child(2) { transform:rotate(-45deg); }
.mobile-nav { display:none; }

.hero { min-height: calc(100vh - 100px); padding: 90px 0 70px; display:grid; grid-template-columns: 1.08fr .92fr; gap:60px; align-items:center; position:relative; }
.hero-copy { position:relative; z-index:2; }
.eyebrow { display:inline-flex; align-items:center; gap:9px; border:1px solid var(--line); border-radius:999px; padding:7px 12px; color:var(--muted); font-size:.79rem; background:rgba(255,255,255,.025); }
.status-dot { width:7px; height:7px; border-radius:50%; background:#46e59f; box-shadow:0 0 0 5px rgba(70,229,159,.12); }
.hero h1 { margin:28px 0 12px; max-width:780px; font-size:clamp(3.3rem, 7vw, 6.35rem); line-height:.94; letter-spacing:-.067em; font-weight:760; }
.gradient-text { background: linear-gradient(95deg,#b8a8ff 0%, #7c5cff 33%, #3dd8ca 72%, #83eee3 100%); -webkit-background-clip:text; background-clip:text; color:transparent; }
body.light .gradient-text { background: linear-gradient(95deg,#6845ee,#744fff 42%,#00a89a); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-role { margin:24px 0 6px; min-height:1.7em; font-weight:650; color:var(--text); letter-spacing:-.02em; }
.typing-cursor { color:var(--accent-2); animation: blink 1s steps(2,start) infinite; }
@keyframes blink { 50% { opacity:0; } }
.hero-intro { max-width:690px; font-size:1.06rem; color:var(--muted); }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:31px; }
.button { min-height:48px; display:inline-flex; align-items:center; justify-content:center; gap:14px; padding:0 18px; border-radius:14px; font-size:.9rem; font-weight:700; border:1px solid transparent; transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.button:hover { transform:translateY(-2px); }
.button.primary { color:white; background:linear-gradient(135deg,var(--accent),#6546f1); box-shadow:0 13px 30px rgba(124,92,255,.25); }
.button.ghost { border-color:var(--line-strong); background:rgba(255,255,255,.03); }
.hero-meta { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:55px; max-width:690px; }
.hero-meta div { padding-top:16px; border-top:1px solid var(--line); display:flex; flex-direction:column; }
.hero-meta strong { font-size:1.12rem; letter-spacing:-.02em; }
.hero-meta span { color:var(--muted); font-size:.76rem; margin-top:2px; }

.hero-visual { min-height:570px; position:relative; display:grid; place-items:center; isolation:isolate; }
.profile-card { width:min(450px, 88%); position:relative; z-index:3; border:1px solid var(--line-strong); background:linear-gradient(160deg,rgba(22,30,49,.93),rgba(11,16,31,.91)); border-radius:30px; padding:14px; box-shadow:var(--shadow); transform-style:preserve-3d; transition:transform .15s ease-out; }
body.light .profile-card { background:linear-gradient(160deg,rgba(255,255,255,.96),rgba(240,244,252,.92)); }
.profile-topline { display:flex; justify-content:space-between; color:var(--muted); font-size:.68rem; padding:7px 7px 13px; letter-spacing:.12em; }
.live-pill { color:#56e3ae; letter-spacing:.06em; }
.profile-card img { border-radius:20px; width:100%; box-shadow:inset 0 0 0 1px rgba(255,255,255,.05); }
.profile-card-bottom { display:flex; justify-content:space-between; align-items:center; padding:17px 8px 6px; }
.profile-card-bottom > div:first-child { display:flex; flex-direction:column; }
.micro-label { font-size:.65rem; letter-spacing:.16em; color:var(--muted); }
.profile-card-bottom strong { font-size:.92rem; margin-top:2px; }
.profile-avatar { width:47px; height:47px; border-radius:15px; display:grid; place-items:center; background:linear-gradient(135deg,var(--accent-2),var(--accent)); color:white; font-size:.76rem; font-weight:800; }
.orbit { position:absolute; border:1px solid rgba(124,92,255,.22); border-radius:50%; z-index:1; }
.orbit-one { width:510px; height:510px; animation:spin 18s linear infinite; }
.orbit-two { width:390px; height:390px; border-style:dashed; border-color:rgba(32,214,199,.18); animation:spin 13s linear infinite reverse; }
@keyframes spin { to { transform:rotate(360deg); } }
.floating-chip { position:absolute; z-index:4; padding:10px 13px; border:1px solid var(--line-strong); border-radius:13px; background:color-mix(in srgb, var(--bg-elevated) 86%, transparent); box-shadow:0 16px 35px rgba(0,0,0,.18); backdrop-filter:blur(15px); color:var(--muted); font-size:.76rem; font-weight:650; }
.chip-a { right:0; top:24%; animation:float 4.2s ease-in-out infinite; }
.chip-b { left:0; bottom:25%; animation:float 5s ease-in-out infinite 1s; }
.chip-c { right:7%; bottom:9%; animation:float 4.6s ease-in-out infinite .4s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.marquee-wrap { border-block:1px solid var(--line); overflow:hidden; background:rgba(255,255,255,.018); }
.marquee-track { width:max-content; display:flex; align-items:center; gap:34px; padding:18px 0; color:var(--muted); font-size:.77rem; font-weight:650; text-transform:uppercase; letter-spacing:.13em; animation:marquee 28s linear infinite; }
.marquee-track i { color:var(--accent); font-style:normal; }
@keyframes marquee { to { transform:translateX(-50%); } }

.section-heading { display:grid; grid-template-columns:150px 1fr; column-gap:25px; align-items:start; margin-bottom:55px; }
.section-heading h2 { margin:0; font-size:clamp(2.2rem,5vw,4.2rem); line-height:1.02; letter-spacing:-.05em; max-width:850px; }
.section-heading p { grid-column:2; color:var(--muted); max-width:620px; margin:16px 0 0; }
.section-kicker { color:var(--accent-2); font-size:.71rem; letter-spacing:.16em; font-weight:750; padding-top:9px; }
.about-grid { display:grid; grid-template-columns:1.25fr .75fr; gap:50px; align-items:start; }
.about-copy { font-size:1.27rem; letter-spacing:-.02em; max-width:780px; }
.about-copy p { margin:0 0 20px; }
.about-copy p:last-child { color:var(--muted); }
.about-panel { border:1px solid var(--line); border-radius:22px; padding:7px 22px; background:var(--card); backdrop-filter:blur(15px); }
.mini-stat { display:flex; justify-content:space-between; gap:18px; padding:18px 0; border-bottom:1px solid var(--line); }
.mini-stat:last-child { border-bottom:0; }
.mini-stat span { color:var(--muted); font-size:.8rem; }
.mini-stat strong { font-size:.86rem; text-align:right; }

.timeline { position:relative; }
.timeline:before { content:""; position:absolute; left:209px; top:12px; bottom:0; width:1px; background:linear-gradient(var(--accent),rgba(124,92,255,.06)); }
.timeline-item { display:grid; grid-template-columns:175px 42px 1fr; gap:14px; align-items:start; position:relative; margin-bottom:28px; }
.timeline-period { color:var(--muted); font-size:.76rem; padding-top:25px; }
.timeline-dot { width:11px; height:11px; margin:25px auto 0; border-radius:50%; background:var(--accent); box-shadow:0 0 0 7px rgba(124,92,255,.11); position:relative; z-index:2; }
.timeline-card { border:1px solid var(--line); background:var(--card); border-radius:22px; padding:25px 27px; backdrop-filter:blur(15px); transition:transform .25s ease,border-color .25s ease; }
.timeline-card:hover { transform:translateY(-3px); border-color:var(--line-strong); }
.timeline-card-head { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; }
.company { font-size:.73rem; color:var(--accent-2); text-transform:uppercase; letter-spacing:.08em; }
.timeline-card h3 { margin:4px 0 7px; font-size:1.28rem; letter-spacing:-.025em; }
.timeline-card p { color:var(--muted); margin:8px 0 15px; }
.timeline-card ul { margin:0 0 19px; padding-left:18px; color:var(--muted); font-size:.88rem; }
.timeline-card li { margin:5px 0; }
.tag { padding:6px 9px; border-radius:999px; border:1px solid rgba(70,229,159,.24); color:#54dea9; font-size:.66rem; background:rgba(70,229,159,.06); }
.tech-row { display:flex; flex-wrap:wrap; gap:8px; }
.tech-row span { padding:6px 9px; border:1px solid var(--line); border-radius:999px; color:var(--muted); font-size:.67rem; background:rgba(255,255,255,.02); }

.projects-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.project-card { border:1px solid var(--line); border-radius:25px; overflow:hidden; background:var(--card); backdrop-filter:blur(15px); transition:transform .28s ease,border-color .28s ease; }
.project-card:hover { transform:translateY(-6px); border-color:var(--line-strong); }
.project-featured { grid-column:span 2; display:grid; grid-template-columns:1.12fr .88fr; }
.project-image { background:linear-gradient(135deg,rgba(124,92,255,.08),rgba(32,214,199,.05)); min-height:280px; display:grid; place-items:center; overflow:hidden; }
.project-featured .project-image { min-height:390px; }
.project-image img { width:100%; height:100%; object-fit:cover; transition:transform .65s cubic-bezier(.2,.8,.2,1); }
.project-card:hover .project-image img { transform:scale(1.035); }
.project-body { padding:24px; align-self:center; }
.project-meta { display:flex; justify-content:space-between; color:var(--muted); font-size:.67rem; letter-spacing:.09em; text-transform:uppercase; }
.project-body h3 { font-size:1.55rem; margin:16px 0 9px; letter-spacing:-.035em; }
.project-featured h3 { font-size:2.15rem; }
.project-body p { color:var(--muted); margin:0 0 20px; }

.skills-layout { display:grid; grid-template-columns:1.14fr .86fr; gap:34px; align-items:stretch; }
.skill-main { border-top:1px solid var(--line); }
.skill-category { display:grid; grid-template-columns:190px 1fr; padding:29px 0; border-bottom:1px solid var(--line); }
.skill-title { display:flex; gap:15px; align-items:flex-start; }
.skill-title span { color:var(--muted); font-size:.66rem; }
.skill-title h3 { margin:0; font-size:1rem; }
.skill-cloud { display:flex; flex-wrap:wrap; gap:8px; }
.skill-cloud span { padding:9px 12px; border-radius:11px; background:var(--card); border:1px solid var(--line); color:var(--muted); font-size:.79rem; }
.skill-side { min-height:100%; }
.code-window { height:100%; border-radius:23px; overflow:hidden; background:#0b0e16; border:1px solid rgba(255,255,255,.1); box-shadow:var(--shadow); }
.code-window-top { height:49px; display:flex; align-items:center; gap:7px; padding:0 16px; border-bottom:1px solid rgba(255,255,255,.08); color:#8b94a8; font-size:.68rem; }
.code-window-top i { width:8px; height:8px; border-radius:50%; background:#364052; }
.code-window-top span { margin-left:8px; }
.code-window pre { margin:0; padding:32px 24px; overflow:auto; color:#d9deeb; font-size:.82rem; line-height:1.85; }
.c-purple { color:#c792ea; }.c-green{color:#c3e88d}.c-blue{color:#82aaff}

.education-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.education-card { min-height:220px; border:1px solid var(--line); border-radius:22px; padding:23px; background:var(--card); display:flex; flex-direction:column; justify-content:flex-end; transition:transform .25s ease,border-color .25s ease; }
.education-card:hover { transform:translateY(-4px); border-color:var(--line-strong); }
.edu-year { color:var(--accent-2); font-size:.7rem; letter-spacing:.1em; margin-bottom:auto; }
.education-card h3 { font-size:1.25rem; line-height:1.16; margin:0 0 10px; letter-spacing:-.025em; }
.education-card p { color:var(--muted); font-size:.82rem; margin:0; }

.contact-section { padding:120px 0 80px; }
.contact-card { position:relative; overflow:hidden; border-radius:30px; padding:clamp(35px,7vw,78px); background:linear-gradient(120deg,#6342e9,#7253ed 45%,#0cb8aa 150%); color:white; box-shadow:0 35px 90px rgba(82,60,190,.28); }
.contact-card .section-kicker { color:#d9d0ff; }
.contact-card h2 { position:relative; z-index:2; max-width:900px; font-size:clamp(2.4rem,5vw,4.6rem); line-height:1; letter-spacing:-.055em; margin:17px 0; }
.contact-card p { position:relative; z-index:2; max-width:740px; color:rgba(255,255,255,.75); }
.contact-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:29px; position:relative; z-index:2; }
.button.light { background:white; color:#251c55; }
.button.outline-light { border-color:rgba(255,255,255,.27); color:white; background:rgba(255,255,255,.07); }
.contact-orb { position:absolute; width:480px; height:480px; border-radius:50%; right:-160px; top:-170px; border:1px solid rgba(255,255,255,.22); box-shadow:0 0 0 65px rgba(255,255,255,.035),0 0 0 135px rgba(255,255,255,.025); }
.site-footer { border-top:1px solid var(--line); padding:30px 0 40px; display:grid; grid-template-columns:1fr 1.2fr auto; gap:25px; align-items:center; color:var(--muted); font-size:.76rem; }
.site-footer > div { display:flex; flex-direction:column; color:var(--text); }
.site-footer > div span { color:var(--muted); }
.site-footer p { text-align:center; }
.site-footer a { color:var(--text); }

.reveal { opacity:0; transform:translateY(26px); transition:opacity .75s cubic-bezier(.2,.8,.2,1), transform .75s cubic-bezier(.2,.8,.2,1); transition-delay:var(--delay,0ms); }
.reveal.is-visible { opacity:1; transform:none; }

@media (max-width: 980px) {
  .desktop-nav { display:none; }
  .menu-button { display:grid; }
  .mobile-nav { display:flex; position:absolute; top:76px; left:0; right:0; padding:14px; flex-direction:column; gap:3px; border:1px solid var(--line); border-radius:16px; background:color-mix(in srgb,var(--bg-elevated) 94%,transparent); backdrop-filter:blur(18px); box-shadow:var(--shadow); opacity:0; transform:translateY(-8px); pointer-events:none; transition:.2s ease; }
  .mobile-nav.open { opacity:1; transform:none; pointer-events:auto; }
  .mobile-nav a { padding:11px 12px; border-radius:10px; color:var(--muted); }
  .hero { grid-template-columns:1fr; padding-top:75px; }
  .hero-visual { min-height:520px; }
  .about-grid, .skills-layout { grid-template-columns:1fr; }
  .section-heading { grid-template-columns:120px 1fr; }
  .timeline:before { left:16px; }
  .timeline-item { grid-template-columns:34px 1fr; gap:14px; }
  .timeline-period { grid-column:2; padding:0; margin-bottom:-5px; }
  .timeline-dot { grid-row:1 / span 2; margin-top:7px; }
  .timeline-card { grid-column:2; }
  .project-featured { display:block; }
  .education-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width: 680px) {
  .section-shell { width:min(100% - 28px,var(--max)); }
  .site-header { width:calc(100% - 18px); top:9px; margin-top:9px; height:62px; border-radius:16px; }
  .brand-name { display:none; }
  .hero { min-height:auto; gap:16px; padding:65px 0 40px; }
  .hero h1 { font-size:clamp(3.1rem,15vw,5rem); }
  .hero-intro { font-size:.96rem; }
  .hero-meta { grid-template-columns:1fr; gap:8px; margin-top:38px; }
  .hero-meta div { flex-direction:row; justify-content:space-between; align-items:center; }
  .hero-visual { min-height:430px; }
  .orbit-one { width:390px; height:390px; }.orbit-two{width:300px;height:300px}
  .floating-chip { font-size:.66rem; padding:8px 10px; }
  .chip-a { right:0; }.chip-b{left:0}.chip-c{right:2%}
  .content-section { padding-top:88px; }
  .section-heading { grid-template-columns:1fr; gap:12px; margin-bottom:38px; }
  .section-heading p { grid-column:1; }
  .section-kicker { padding-top:0; }
  .section-heading h2 { font-size:2.7rem; }
  .about-copy { font-size:1.08rem; }
  .projects-grid { grid-template-columns:1fr; }
  .project-featured { grid-column:span 1; }
  .project-featured .project-image, .project-image { min-height:240px; }
  .project-featured h3 { font-size:1.6rem; }
  .skill-category { grid-template-columns:1fr; gap:16px; }
  .education-grid { grid-template-columns:1fr; }
  .contact-section { padding-top:90px; }
  .contact-card { border-radius:24px; }
  .contact-actions .button { width:100%; }
  .site-footer { grid-template-columns:1fr; text-align:left; }
  .site-footer p { text-align:left; }
  .cursor-glow { display:none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *:before, *:after { animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
  .reveal { opacity:1; transform:none; }
}
