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

:root {
  --bg:        #0a0a0f;
  --bg2:       #111118;
  --surface:   #16161f;
  --border:    #2a2a3a;
  --accent:    #6366f1;
  --accent2:   #818cf8;
  --text:      #e2e2f0;
  --muted:     #8888aa;
  --white:     #ffffff;
  --radius:    12px;
  --font:      'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

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

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-dark { background: var(--bg2); }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { font-weight: 600; font-size: 1rem; color: var(--white); }
.nav-links { list-style: none; display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 0.9rem; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--white); }
.btn-nav {
  background: var(--accent); color: var(--white) !important;
  padding: 8px 18px; border-radius: 8px; font-weight: 500;
  transition: opacity .2s;
}
.btn-nav:hover { opacity: 0.85; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 90vh; display: flex; align-items: center;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,0.15) 0%, transparent 70%);
  padding: 80px 24px;
}
.hero-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.badge {
  display: inline-block; background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3); color: var(--accent2);
  padding: 6px 16px; border-radius: 100px; font-size: 0.85rem;
  margin-bottom: 28px; font-weight: 500;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700; line-height: 1.1;
  color: var(--white); margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.15rem; color: var(--muted);
  max-width: 560px; margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; margin-bottom: 56px; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: var(--white);
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; transition: opacity .2s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-secondary {
  background: transparent; color: var(--text);
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 500; font-size: 0.95rem;
  border: 1px solid var(--border); transition: border-color .2s;
}
.btn-secondary:hover { border-color: var(--accent2); }
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat span { display: block; font-weight: 700; font-size: 1.1rem; color: var(--white); }
.stat small { font-size: 0.78rem; color: var(--muted); }
.stat-divider { width: 1px; height: 32px; background: var(--border); }

/* ── Section labels ───────────────────────────────────────────────────────── */
.section-label {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent2); margin-bottom: 12px;
}
.section-label.light { color: var(--accent2); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; color: var(--white); margin-bottom: 48px; }

/* ── About ────────────────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--muted); margin-bottom: 16px; line-height: 1.75; }
.tech-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tech-stack span {
  background: var(--surface); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 6px; font-size: 0.82rem; color: var(--text);
}
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color .2s;
}
.card:hover { border-color: var(--accent); }
.card-icon { font-size: 1.5rem; margin-bottom: 12px; }
.card h3 { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ── Services ─────────────────────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: border-color .2s;
}
.service-item:hover { border-color: var(--accent); }
.service-item h3 { font-size: 1.1rem; font-weight: 600; color: var(--white); margin-bottom: 12px; }
.service-item p { font-size: 0.88rem; color: var(--muted); margin-bottom: 20px; line-height: 1.7; }
.service-item ul { list-style: none; }
.service-item ul li {
  font-size: 0.85rem; color: var(--muted); padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.service-item ul li::before { content: "→ "; color: var(--accent2); }

/* ── Work ─────────────────────────────────────────────────────────────────── */
.work-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.work-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
}
.work-card.featured { border-color: var(--accent); }
.work-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent2); margin-bottom: 12px;
}
.work-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.work-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.75; margin-bottom: 24px; }
.work-details { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.work-detail { display: flex; gap: 12px; font-size: 0.85rem; }
.work-detail strong { color: var(--text); min-width: 80px; }
.work-detail span { color: var(--muted); }
.work-features { display: flex; flex-wrap: wrap; gap: 8px; }
.work-features span {
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
  color: var(--accent2); padding: 4px 10px; border-radius: 6px; font-size: 0.8rem;
}

/* ── Contact ──────────────────────────────────────────────────────────────── */
.contact-container { text-align: center; }
.contact-sub { font-size: 1rem; color: var(--muted); margin-bottom: 40px; }
.contact-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.contact-link {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 12px 24px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500; color: var(--text);
  transition: border-color .2s, color .2s;
}
.contact-link:hover { border-color: var(--accent2); color: var(--white); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0; background: var(--bg);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--muted);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .about-cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}
