:root {
  --bg: #070b14;
  --bg-2: #0b1220;
  --panel: #0e1626;
  --panel-2: #111c30;
  --border: #1e2c44;
  --text: #e6edf7;
  --muted: #9bb0cc;
  --muted-2: #6f86a6;
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --accent-grad: linear-gradient(120deg, #22d3ee, #3b82f6);
  --radius: 16px;
  --maxw: 1140px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

/* Background decor */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-glow {
  position: fixed; z-index: -1; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.22), transparent 60%);
  filter: blur(20px);
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(7, 11, 20, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.header.scrolled { border-bottom-color: var(--border); background: rgba(7, 11, 20, 0.85); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-mark { font-weight: 800; font-size: 1.35rem; letter-spacing: 1px; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { font-size: .68rem; letter-spacing: 3px; text-transform: uppercase; color: var(--muted-2); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  border: 1px solid var(--border); padding: 9px 18px; border-radius: 10px;
  color: var(--text) !important; background: var(--panel);
  transition: border-color .2s, background .2s;
}
.nav-cta:hover { border-color: var(--accent); background: var(--panel-2); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: .98rem; padding: 13px 26px; border-radius: 12px; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; border: 1px solid transparent; }
.btn-primary { background: var(--accent-grad); color: #04111c; box-shadow: 0 10px 30px -8px rgba(34, 211, 238, 0.45); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(34, 211, 238, 0.6); }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; margin-top: 28px; }

/* Hero */
.hero { padding: 96px 0 80px; position: relative; }
.hero-inner { max-width: 860px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: .85rem; color: var(--muted); background: var(--panel); border: 1px solid var(--border); padding: 7px 15px; border-radius: 100px; margin-bottom: 28px; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #22e07a; box-shadow: 0 0 0 4px rgba(34, 224, 122, 0.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34, 224, 122, 0); } }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.05; letter-spacing: -1.5px; }
.grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); margin: 26px 0 36px; max-width: 680px; }
.hero-lead strong { color: var(--text); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 64px; }
.stat { border-left: 2px solid var(--border); padding-left: 16px; }
.stat-num { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: .85rem; color: var(--muted-2); }

/* Sections */
.section { padding: 96px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-tag { color: var(--accent); font-family: "JetBrains Mono", monospace; font-size: .8rem; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -1px; }
.section-intro { color: var(--muted); max-width: 620px; margin: 14px 0 48px; font-size: 1.08rem; }

/* Grid + cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.card-ico { font-size: 1.9rem; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; border-radius: 13px; background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.25); margin-bottom: 20px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }

/* Expertise */
.expertise-grid { gap: 40px; }
.skills-h { font-size: 1.05rem; color: var(--text); margin-bottom: 16px; font-family: "JetBrains Mono", monospace; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--panel); border: 1px solid var(--border); padding: 9px 15px; border-radius: 10px; font-size: .9rem; color: var(--muted); transition: border-color .2s, color .2s; }
.chips li:hover { border-color: var(--accent); color: var(--text); }
.chips-mono li { font-family: "JetBrains Mono", monospace; font-size: .82rem; }

/* Timeline */
.timeline { position: relative; padding-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), transparent); }
.tl-item { position: relative; padding-left: 38px; padding-bottom: 38px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12); }
.tl-content { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; transition: border-color .25s, transform .25s; }
.tl-content:hover { border-color: var(--accent); transform: translateX(4px); }
.tl-date { font-family: "JetBrains Mono", monospace; font-size: .78rem; color: var(--accent); letter-spacing: 1px; }
.tl-content h3 { font-size: 1.18rem; margin: 6px 0 4px; }
.tl-org { color: var(--muted-2); font-size: .9rem; margin-bottom: 10px; }
.tl-content p:last-child { color: var(--muted); font-size: .96rem; }

/* About */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-text strong { color: var(--text); }
.about-side { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.edu { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.edu li { display: flex; flex-direction: column; gap: 3px; padding-left: 16px; border-left: 2px solid var(--border); }
.edu-date { font-family: "JetBrains Mono", monospace; font-size: .76rem; color: var(--accent); }
.edu li span:last-child { color: var(--muted-2); font-size: .88rem; }

/* Contact */
.contact-box { background: var(--panel); border: 1px solid var(--border); border-radius: 22px; padding: 56px; text-align: center; position: relative; overflow: hidden; }
.contact-box::before { content: ""; position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 500px; height: 300px; background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 60%); }
.contact-box > * { position: relative; }
.contact-box .section-intro { margin-left: auto; margin-right: auto; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.contact-item { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: border-color .2s, transform .2s; }
a.contact-item:hover { border-color: var(--accent); transform: translateY(-3px); }
.ci-ico { font-size: 1.6rem; color: var(--accent); }
.ci-label { font-size: .78rem; text-transform: uppercase; letter-spacing: 2px; color: var(--muted-2); }
.ci-val { font-weight: 600; color: var(--text); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0; background: var(--bg-2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner p { color: var(--muted-2); font-size: .9rem; }
.footer-copy { font-size: .85rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; inset: 70px 0 auto 0; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 24px; gap: 18px; transform: translateY(-120%); transition: transform .3s; }
  .nav-links.open { transform: none; }
  .nav-toggle { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-box { padding: 36px 22px; }
  .section { padding: 70px 0; }
}
@media (max-width: 460px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
