:root {
  --bg: #05070d;
  --card: rgba(10, 15, 30, 0.78);
  --card-soft: rgba(16, 25, 48, 0.65);
  --text: #f4f7ff;
  --muted: #9aa8c7;
  --blue: #36a3ff;
  --cyan: #58f3ff;
  --violet: #8b5cf6;
  --line: rgba(125, 164, 255, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(37, 99, 235, 0.28), transparent 32%),
    radial-gradient(circle at 85% 18%, rgba(139, 92, 246, 0.24), transparent 30%),
    radial-gradient(circle at 70% 80%, rgba(14, 165, 233, 0.16), transparent 38%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.section-pad { padding: 120px 0 48px; }
.section { padding: 72px 0; }

.noise {
  position: fixed; inset: 0; pointer-events: none; opacity: 0.08; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grid-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(99, 179, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 179, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 70%, transparent);
}
.orb { position: fixed; border-radius: 999px; filter: blur(55px); opacity: .55; z-index: -3; }
.orb-one { width: 260px; height: 260px; background: #2563eb; top: 120px; left: -80px; }
.orb-two { width: 320px; height: 320px; background: #7c3aed; bottom: 80px; right: -110px; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(5, 7, 13, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav { height: 74px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 900; letter-spacing: -0.04em; font-size: 1.25rem; }
.brand span { color: var(--blue); font-family: "JetBrains Mono", monospace; }
.nav-links { display: flex; align-items: center; gap: 24px; color: var(--muted); font-weight: 700; font-size: .92rem; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; }

.hero-card, .glass-card, .project-card, .skill-panel, .contact-card, .stat-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(5, 8, 18, 0.78));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.hero-card {
  min-height: 560px;
  border-radius: 30px;
  padding: 58px;
  display: grid;
  grid-template-columns: 1.1fr .8fr;
  gap: 42px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(54, 163, 255, 0.10), transparent 35%),
    radial-gradient(circle at 85% 20%, rgba(88, 243, 255, 0.17), transparent 30%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow { color: var(--cyan); font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: clamp(3.4rem, 9vw, 7.2rem); line-height: .88; letter-spacing: -0.08em; margin: 0 0 22px; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.02; letter-spacing: -0.055em; margin: 0; }
h3 { margin: 0; letter-spacing: -0.035em; font-size: 1.25rem; }
.hero-subtitle { font-size: clamp(1.3rem, 2vw, 1.85rem); line-height: 1.25; color: #d9e6ff; max-width: 720px; margin: 0 0 18px; font-weight: 800; }
.hero-text { color: var(--muted); font-size: 1.02rem; line-height: 1.8; max-width: 790px; }
.availability-pill { display: inline-flex; align-items: center; width: fit-content; margin: 8px 0 0; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(88, 243, 255, .24); background: rgba(88, 243, 255, .08); color: #d9f9ff; font-weight: 800; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn { padding: 13px 18px; border-radius: 14px; font-weight: 800; border: 1px solid var(--line); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); border-color: rgba(88, 243, 255, .65); }
.btn.primary { background: linear-gradient(135deg, var(--blue), var(--violet)); color: white; border-color: transparent; }
.btn.secondary { background: rgba(255,255,255,.05); color: #dbe8ff; }
.social-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 32px; color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: .9rem; }
.social-row a:hover { color: var(--cyan); }

.hero-visual { position: relative; z-index: 1; }
.terminal-card {
  min-height: 360px;
  border-radius: 24px;
  background: rgba(1, 6, 16, 0.86);
  border: 1px solid rgba(88, 243, 255, 0.18);
  padding: 22px;
  font-family: "JetBrains Mono", monospace;
  color: #cce7ff;
  box-shadow: inset 0 0 70px rgba(54, 163, 255, 0.12), 0 22px 60px rgba(0,0,0,.45);
  transform: rotate(2deg);
}
.terminal-dots { display: flex; gap: 8px; margin-bottom: 26px; }
.terminal-dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); opacity: .8; }
.terminal-line { margin: 17px 0; }
.terminal-line.indent { margin-left: 70px; }
.terminal-output { color: var(--cyan); margin: 16px 0 22px; font-weight: 800; font-size: 1.15rem; }
.muted { color: #7790be; }
.terminal-pulse { width: 10px; height: 20px; background: var(--cyan); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.section-heading { max-width: 850px; margin-bottom: 28px; }
.section-heading.compact { margin-bottom: 32px; }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.glass-card { border-radius: 24px; padding: 26px; }
.large-card p { color: var(--muted); line-height: 1.85; font-size: 1.03rem; margin: 0 0 16px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat-card { border-radius: 22px; padding: 24px; min-height: 136px; display: flex; flex-direction: column; justify-content: space-between; }
.stat-card strong { font-size: 2rem; letter-spacing: -0.06em; }
.stat-card span { color: var(--muted); font-weight: 700; }

.timeline { position: relative; display: grid; gap: 18px; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-left: 46px; }
.timeline-dot { position: absolute; left: 5px; top: 28px; width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 22px var(--blue); }
.item-top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.item-top span, .company, .project-date { color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: .85rem; }
.glass-card p { color: var(--muted); line-height: 1.7; }
.company { margin: 8px 0 12px; color: var(--cyan); }
.experience-list { margin: 12px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.7; }
.experience-list li { margin-bottom: 10px; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project-card { border-radius: 26px; padding: 28px; min-height: 335px; position: relative; overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
.project-card:hover { transform: translateY(-6px); border-color: rgba(88, 243, 255, .52); }
.project-card::after { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; background: rgba(54, 163, 255, .12); right: -70px; top: -70px; }
.project-card.featured { grid-column: span 2; min-height: 280px; }
.project-tag { color: var(--cyan); font-family: "JetBrains Mono", monospace; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; font-weight: 800; }
.project-card h3 { font-size: 1.6rem; margin-bottom: 8px; }
.project-card p { color: var(--muted); line-height: 1.75; position: relative; z-index: 1; }
.tech-stack { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; position: relative; z-index: 1; }
.tech-stack span, .chips span { border: 1px solid rgba(88, 243, 255, .18); background: rgba(88, 243, 255, .07); color: #d9f9ff; padding: 8px 11px; border-radius: 999px; font-size: .82rem; font-weight: 800; }
.skills-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.skill-panel { border-radius: 24px; padding: 24px; }
.skill-panel h3 { margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-card { border-radius: 30px; padding: 38px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.contact-card p:not(.eyebrow) { color: var(--muted); line-height: 1.7; max-width: 620px; }
.footer { color: var(--muted); padding: 20px 0 46px; font-family: "JetBrains Mono", monospace; font-size: .85rem; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 850px) {
  .nav-toggle { display: block; border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,.05); border-radius: 12px; padding: 8px 11px; font-size: 1.2rem; }
  .nav-links { position: absolute; top: 74px; left: 20px; right: 20px; padding: 18px; border-radius: 18px; background: rgba(5, 8, 18, .96); border: 1px solid var(--line); flex-direction: column; align-items: flex-start; display: none; }
  .nav-links.open { display: flex; }
  .section-pad { padding-top: 94px; }
  .hero-card, .about-grid, .project-grid, .skills-wrap, .contact-card { grid-template-columns: 1fr; }
  .hero-card { padding: 30px; min-height: auto; }
  .terminal-card { transform: none; }
  .project-card.featured { grid-column: span 1; }
  .item-top { flex-direction: column; gap: 4px; }
  .stats-grid { grid-template-columns: 1fr; }
  .contact-actions { justify-content: flex-start; }
}
