:root {
  --bg: #07111f;
  --bg-soft: #0b1728;
  --card: rgba(15, 31, 50, 0.68);
  --line: rgba(255,255,255,.10);
  --text: #f7fbff;
  --muted: #9db0c6;
  --accent: #65e6c4;
  --accent-2: #70a7ff;
  --shadow: 0 20px 70px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 110px 0; position: relative; }
.section-muted { background: rgba(255,255,255,.018); border-block: 1px solid var(--line); }

.bg-orb { position: fixed; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: -1; opacity: .18; }
.orb-one { width: 420px; height: 420px; background: var(--accent-2); top: -120px; right: -160px; }
.orb-two { width: 360px; height: 360px; background: var(--accent); left: -180px; top: 42%; }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(7,17,31,.78); backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent; transition: .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav-wrap { height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: 'Space Grotesk', sans-serif; font-size: 1.45rem; font-weight: 700; letter-spacing: -.05em; }
.brand span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--muted); font-size: .92rem; font-weight: 600; transition: .2s; }
.nav a:hover { color: var(--text); }
.nav-cta { border: 1px solid var(--line); padding: 10px 15px; border-radius: 10px; color: var(--text)!important; }
.menu-toggle { display:none; color: var(--text); background: transparent; border: 0; font-size: 1.45rem; cursor: pointer; }

.hero { min-height: 100vh; display: grid; align-items: center; padding-top: 150px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 70px; }
.eyebrow { color: var(--accent); font-size: .76rem; letter-spacing: .16em; font-weight: 800; margin: 0 0 20px; }
h1,h2,h3 { font-family: 'Space Grotesk', sans-serif; margin-top: 0; }
h1 { font-size: clamp(3.3rem, 7vw, 6.5rem); line-height: .98; letter-spacing: -.065em; margin-bottom: 26px; }
h1 span { color: var(--accent); }
h2 { font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.08; letter-spacing: -.045em; margin-bottom: 22px; }
h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.hero-text { max-width: 690px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display:flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height: 50px; padding: 0 20px; border-radius: 12px; font-weight: 700; font-size:.93rem; transition:.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color:#06131c; box-shadow: 0 12px 35px rgba(101,230,196,.2); }
.btn-secondary { border:1px solid var(--line); background:rgba(255,255,255,.03); }
.social-row { display:flex; gap:24px; flex-wrap:wrap; margin-top:28px; }
.social-row a { color:var(--muted); font-size:.88rem; }
.social-row a:hover { color:var(--text); }

.hero-card { border:1px solid var(--line); background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025)); border-radius:20px; box-shadow:var(--shadow); overflow:hidden; transform:rotate(1.3deg); }
.terminal-top { display:flex; gap:8px; padding:15px 18px; border-bottom:1px solid var(--line); background:rgba(0,0,0,.13); }
.terminal-top span { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,.22); }
.terminal-body { padding:28px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:.86rem; min-height: 390px; }
.terminal-body p { margin: 0 0 12px; }
.terminal-prompt { color:var(--accent); margin-right:8px; }
.terminal-output { color:var(--muted); padding-left:20px; }
.terminal-output.accent { color:var(--accent); }

.two-col { display:grid; grid-template-columns:.8fr 1.2fr; gap:80px; align-items:start; }
.about-copy > p { color:var(--muted); font-size:1.04rem; }
.about-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:35px; }
.about-stats div { border:1px solid var(--line); background:rgba(255,255,255,.025); border-radius:14px; padding:20px; }
.about-stats strong { display:block; color:var(--accent); font-family:'Space Grotesk'; font-size:1.8rem; }
.about-stats span { color:var(--muted); font-size:.8rem; line-height:1.35; display:block; }

.section-heading { max-width:760px; margin-bottom:50px; }
.section-heading.center { text-align:center; margin-inline:auto; }
.section-heading.center > p:last-child { color:var(--muted); }
.skills-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.skill-card { border:1px solid var(--line); background:var(--card); border-radius:18px; padding:26px; min-height:220px; transition:.25s ease; }
.skill-card:hover { transform:translateY(-5px); border-color:rgba(101,230,196,.35); }
.icon { width:44px; height:44px; display:grid; place-items:center; border-radius:12px; background:rgba(101,230,196,.10); color:var(--accent); font-weight:800; margin-bottom:30px; }
.tags { display:flex; flex-wrap:wrap; gap:8px; }
.tags span { border:1px solid var(--line); background:rgba(255,255,255,.03); color:#bfd0df; border-radius:999px; padding:6px 10px; font-size:.75rem; }

.project-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:18px; }
.project-card { border:1px solid var(--line); background:var(--card); border-radius:20px; padding:28px; position:relative; overflow:hidden; }
.project-card.featured { grid-row:span 2; min-height:520px; display:flex; flex-direction:column; justify-content:flex-end; background:radial-gradient(circle at 80% 10%, rgba(112,167,255,.16), transparent 45%), var(--card); }
.project-meta { display:flex; justify-content:space-between; gap:20px; color:var(--muted); font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; margin-bottom:55px; }
.project-card h3 { font-size:1.65rem; }
.project-card p { color:var(--muted); }
.project-link { display:inline-block; margin-top:25px; color:var(--accent); font-weight:700; font-size:.9rem; }

.timeline { max-width:900px; margin-left:auto; }
.timeline-item { display:grid; grid-template-columns:180px 1fr; gap:35px; padding:28px 0; border-top:1px solid var(--line); }
.timeline-year { color:var(--accent); font-size:.86rem; font-weight:700; }
.timeline-content p { color:var(--muted); }
.timeline-content .muted { color:#c5d2de; font-size:.9rem; margin-top:-10px; }

.contact-card { display:grid; grid-template-columns:1fr 1fr; gap:70px; padding:55px; border:1px solid var(--line); border-radius:26px; background:linear-gradient(135deg, rgba(101,230,196,.08), rgba(112,167,255,.08)); }
.contact-card > div:first-child p:last-child { color:var(--muted); max-width:520px; }
.contact-links { display:flex; flex-direction:column; justify-content:center; }
.contact-links a { display:flex; justify-content:space-between; border-bottom:1px solid var(--line); padding:17px 2px; color:#dce8f3; transition:.2s; }
.contact-links a:hover { color:var(--accent); padding-left:8px; }

footer { border-top:1px solid var(--line); }
.footer-wrap { min-height:90px; display:flex; align-items:center; justify-content:space-between; gap:20px; color:var(--muted); font-size:.82rem; }

.reveal { opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity:1; transform:none; }
.delay-1 { transition-delay:.08s; }
.delay-2 { transition-delay:.16s; }

@media (max-width: 900px) {
  .nav { position:absolute; top:78px; left:20px; right:20px; display:none; flex-direction:column; align-items:stretch; gap:0; background:#0a1727; border:1px solid var(--line); border-radius:16px; padding:10px; }
  .nav.open { display:flex; }
  .nav a { padding:12px; }
  .menu-toggle { display:block; }
  .hero-grid, .two-col, .contact-card { grid-template-columns:1fr; }
  .hero { padding-top:125px; }
  .hero-card { transform:none; }
  .skills-grid { grid-template-columns:repeat(2,1fr); }
  .project-grid { grid-template-columns:1fr; }
  .project-card.featured { min-height:380px; grid-row:auto; }
  .timeline-item { grid-template-columns:1fr; gap:8px; }
  .about-stats { grid-template-columns:1fr 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { width:min(100% - 28px, 1140px); }
  .section { padding:80px 0; }
  h1 { font-size:clamp(3rem, 15vw, 4.6rem); }
  .skills-grid { grid-template-columns:1fr; }
  .about-stats { grid-template-columns:1fr; }
  .contact-card { padding:30px 22px; }
  .footer-wrap { flex-direction:column; justify-content:center; align-items:flex-start; padding:24px 0; }
}
