/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #050508;
  --bg-2:      #080b12;
  --bg-3:      #0d1220;
  --bg-card:   rgba(13, 18, 32, 0.7);
  --border:    rgba(96, 165, 250, 0.12);
  --border-h:  rgba(96, 165, 250, 0.35);
  --blue:      #60a5fa;
  --blue-dim:  #3b82f6;
  --indigo:    #818cf8;
  --white:     #f0f4ff;
  --muted:     #8899bb;
  --muted-2:   #4a5a7a;
  --green:     #4ade80;
  --font:      'Inter', system-ui, sans-serif;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}
.nav-logo .dot { color: var(--blue); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
  font-weight: 500;
}
.nav-links a:hover { color: var(--white); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(30, 58, 95, 0.45) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(96, 165, 250, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.hero-content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}
.hero-name {
  font-family: var(--font-head);
  font-size: clamp(52px, 7vw, 80px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--white) 30%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-role {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.5px;
}
.hero-sub {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-sub em { color: var(--white); font-style: normal; font-weight: 500; }
.hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-dim);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: 10px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--blue); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 11px 24px;
  border-radius: 10px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--border-h); color: var(--white); }
.hero-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-stack span {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(96, 165, 250, 0.04);
}

/* ── Hero Visual ──────────────────────────────────────────── */
.hero-visual {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: spin linear infinite;
}
.ring-1 { width: 160px; height: 160px; animation-duration: 8s; border-color: rgba(96,165,250,0.3); }
.ring-2 { width: 240px; height: 240px; animation-duration: 14s; animation-direction: reverse; }
.ring-3 { width: 320px; height: 320px; animation-duration: 20s; border-color: rgba(129,140,248,0.12); }
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.orbit-center {
  position: relative;
  z-index: 2;
  width: 72px; height: 72px;
  background: rgba(13,18,32,0.9);
  border: 1px solid rgba(96,165,250,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(96,165,250,0.15);
}
/* Orbit dots on ring-1 */
.ring-1::before, .ring-1::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  top: -4px; left: 50%;
  margin-left: -4px;
  box-shadow: 0 0 8px var(--blue);
}
.ring-1::after { top: auto; bottom: -4px; background: var(--indigo); box-shadow: 0 0 8px var(--indigo); }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 100px 24px; }
.section-alt { background: var(--bg-2); }
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-header {
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 12px;
}
.section-sub { color: var(--muted); font-size: 16px; }

/* ── Projects Grid ────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(10px);
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(96,165,250,0.03) 0%, transparent 60%);
  pointer-events: none;
}
.project-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(96,165,250,0.1);
}
.project-card.featured {
  grid-column: 1 / -1;
  border-color: rgba(96,165,250,0.25);
  background: linear-gradient(135deg, rgba(13,18,32,0.9) 0%, rgba(20,30,55,0.8) 100%);
}
.project-card.coming-soon { opacity: 0.7; }
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-icon { font-size: 24px; }
.card-badges { display: flex; gap: 8px; }
.badge-live {
  font-size: 11px; font-weight: 700;
  background: rgba(74,222,128,0.12);
  color: var(--green);
  border: 1px solid rgba(74,222,128,0.3);
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}
.badge-featured {
  font-size: 11px; font-weight: 700;
  background: rgba(96,165,250,0.1);
  color: var(--blue);
  border: 1px solid rgba(96,165,250,0.25);
  padding: 3px 10px;
  border-radius: 20px;
}
.badge-soon {
  font-size: 11px; font-weight: 600;
  color: var(--muted-2);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
}
.card-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.card-subtitle { font-size: 13px; color: var(--blue); font-weight: 500; margin-bottom: 12px; }
.card-desc { color: var(--muted); font-size: 14px; line-height: 1.65; margin-bottom: 20px; }
.card-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.card-stack span {
  font-size: 11px;
  color: var(--muted);
  background: rgba(96,165,250,0.06);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 6px;
}
.card-links { display: flex; gap: 12px; }
.link-demo, .link-gh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}
.link-demo {
  background: var(--blue-dim);
  color: #fff;
}
.link-demo:hover { background: var(--blue); }
.link-gh {
  color: var(--muted);
  border: 1px solid var(--border);
}
.link-gh:hover { color: var(--white); border-color: var(--border-h); }

/* ── About ────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-metrics {
  display: flex;
  gap: 36px;
  margin-top: 36px;
}
.metric-num {
  display: block;
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 4px;
}
.metric-label { font-size: 12px; color: var(--muted-2); font-weight: 500; }

.skills-grid { display: flex; flex-direction: column; gap: 24px; }
.skill-group h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted-2);
  margin-bottom: 10px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags span {
  font-size: 13px;
  color: var(--muted);
  background: rgba(96,165,250,0.06);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 8px;
  transition: border-color 0.2s, color 0.2s;
}
.skill-tags span:hover { border-color: var(--border-h); color: var(--white); }

/* ── Contact ──────────────────────────────────────────────── */
.contact-inner { text-align: center; max-width: 600px; margin: 0 auto; }
.contact-inner .section-label { display: block; margin-bottom: 12px; }
.contact-inner .section-title { margin-bottom: 12px; }
.contact-inner .section-sub { margin-bottom: 48px; }
.contact-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 18px 24px;
  border-radius: 14px;
  min-width: 240px;
  transition: border-color 0.2s, transform 0.15s;
  backdrop-filter: blur(10px);
}
.contact-card:hover { border-color: var(--border-h); transform: translateY(-2px); }
.contact-icon {
  font-size: 20px;
  color: var(--blue);
  width: 40px; height: 40px;
  background: rgba(96,165,250,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-label { font-size: 11px; color: var(--muted-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.contact-value { font-size: 14px; color: var(--white); font-weight: 500; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  padding: 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 13px;
}

/* ── Animations ───────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 220px; }
  .ring-3 { width: 200px; height: 200px; }
  .ring-2 { width: 150px; height: 150px; }
  .ring-1 { width: 100px; height: 100px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-card.featured { grid-column: 1; }
  .about-metrics { gap: 20px; }
  .nav-links { gap: 16px; }
}
