:root {
  --bg: #090b12;
  --bg-soft: #111522;
  --card: rgba(18, 24, 39, 0.72);
  --card-strong: rgba(22, 28, 44, 0.92);
  --text: #eef2ff;
  --muted: #a8b2d1;
  --line: rgba(148, 163, 184, 0.18);
  --primary: #7c5cff;
  --primary-2: #2dd4bf;
  --shadow: 0 24px 80px rgba(3, 7, 18, 0.45);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #12172a 0%, #090b12 55%);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section { padding: 92px 0; position: relative; }
.section-heading { margin-bottom: 28px; }
.section-heading.left-align { margin-bottom: 16px; }
.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary-2);
  font-size: 0.82rem;
  font-weight: 700;
}

h1, h2, h3 { margin: 0 0 12px; line-height: 1.1; }
h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 14px; color: var(--muted); }
.lead { font-size: 1.08rem; max-width: 900px; }

.glass-card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(9, 11, 18, 0.7);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus { color: var(--text); }

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

/* ── Hero ── */
.hero { padding-top: 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 30px;
  align-items: center;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  color: #dce5ff;
  max-width: 760px;
}

.hero-text { max-width: 760px; }

.hero-actions,
.contact-inline,
.project-metrics,
.tags,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-inline { margin-top: 22px; }
.contact-inline span,
.contact-inline a {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), #5b89ff);
  box-shadow: 0 18px 44px rgba(108, 92, 255, 0.34);
}
.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

/* ── Hero Panel ── */
.hero-panel { padding: 24px; }
.mini-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148, 163, 184, 0.1);
  margin-bottom: 20px;
}
.mini-label {
  display: block;
  font-size: 0.86rem;
  color: var(--primary-2);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat-card,
.edu-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.stat-value {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
}
.stat-label { color: var(--muted); font-size: 0.95rem; }

/* ── Profile Photo ── */
.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(124, 92, 255, 0.4);
  margin-bottom: 20px;
}

/* ── Section Block ── */
.section-block { padding: 34px; }

/* ── Skills ── */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.skill-card,
.project-card,
.timeline-item,
.contact-card {
  padding: 24px;
}

.tags span,
.project-metrics span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.24);
  color: #d8d1ff;
  font-size: 0.92rem;
}

/* ── Projects ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-card a {
  color: var(--primary-2);
  font-weight: 700;
  margin-top: auto;
}

.project-type {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.2);
  color: #9ef3e7;
  font-size: 0.84rem;
  font-weight: 700;
}

.project-preview {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: 180px;
}

/* ── Timeline ── */
.timeline {
  display: grid;
  gap: 18px;
}
.timeline-date {
  color: var(--primary-2);
  font-weight: 700;
  margin-bottom: 8px;
}

/* ── Education ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.edu-stats { display: grid; gap: 16px; }

/* ── Contact ── */
.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

/* ── Footer ── */
.site-footer {
  padding: 28px 0 44px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Background Orbs & Grid ── */
.bg-orb {
  position: fixed;
  z-index: -2;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.38;
}
.orb-1 { top: -80px; left: -120px; background: #6f4eff; }
.orb-2 { right: -120px; top: 240px; background: #14b8a6; }

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
}

/* ══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero-grid,
  .contact-card,
  .two-col {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .section { padding: 74px 0; }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: rgba(12, 16, 27, 0.96);
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
  }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-flex; }

  .hero { padding-top: 48px; }

  .hero-panel,
  .section-block,
  .skill-card,
  .project-card,
  .timeline-item,
  .contact-card { padding: 20px; }

  .stats-grid { grid-template-columns: 1fr; }

  .skill-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .footer-wrap { flex-direction: column; }
}
