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

:root {
  --bg:        #0a0f1e;
  --bg2:       #0f172a;
  --bg3:       #1e293b;
  --border:    rgba(255,255,255,0.08);
  --text:      #e2e8f0;
  --text-muted:#94a3b8;
  --accent:    #6366f1;
  --accent2:   #8b5cf6;
  --cyan:      #06b6d4;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 32px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
p  { color: var(--text-muted); }

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Badges ── */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 1rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99,102,241,0.5); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg3); border-color: rgba(255,255,255,0.2); }
.btn-full { width: 100%; }

/* ── Section Headers ── */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}
.section-header p { margin-top: 1rem; font-size: 1.05rem; }

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.03em;
  margin-right: auto;
}
.logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  list-style: none;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 12px 24px 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu li a {
  display: block;
  padding: 10px 0;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-menu li:last-child a { border-bottom: none; margin-top: 8px; }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(6,182,212,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 780px;
}
.hero-content h1 { margin-bottom: 1.5rem; }
.hero-sub {
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-indicator span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  position: relative;
}
.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ─────────────────────────────────────────
   SERVICES
───────────────────────────────────────── */
#services {
  padding: 100px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.service-card {
  position: relative;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 12px 40px rgba(99,102,241,0.15);
}
.service-card.featured {
  border-color: rgba(99,102,241,0.5);
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.05));
}
.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(99,102,241,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.service-icon svg { width: 24px; height: 24px; }
.card-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 100px;
  padding: 3px 10px;
}
.service-card h3 { color: #fff; margin-bottom: 0.75rem; }
.service-card p { font-size: 0.9rem; margin-bottom: 1.25rem; }
.service-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-card ul li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}
.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
#about {
  padding: 100px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-visual {
  position: relative;
  height: 400px;
}
.about-card-stack {
  position: relative;
  height: 100%;
}
.about-card {
  position: absolute;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.about-card:hover { transform: scale(1.03); }
.about-card svg { width: 32px; height: 32px; color: var(--accent); }
.about-card p { font-size: 0.9rem; color: var(--text); font-weight: 500; }
.ac1 { width: 200px; top: 20px;  left: 10%; }
.ac2 { width: 240px; top: 40%;  left: 30%; }
.ac3 { width: 200px; bottom: 20px; left: 5%; }

.about-text .badge { margin-bottom: 1rem; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { margin-bottom: 1rem; font-size: 1rem; line-height: 1.75; }
.about-text .btn { margin-top: 1rem; }

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
#contact {
  padding: 100px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.contact-wrap { max-width: 680px; }
.contact-form {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
input, textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  resize: vertical;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -0.5rem;
}

/* ── Success state ── */
.form-success {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text);
}
.form-success .check-icon {
  width: 56px; height: 56px;
  background: rgba(99,102,241,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--accent);
}
.form-success h3 { color: #fff; font-size: 1.3rem; margin-bottom: 0.5rem; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.85rem; margin-right: auto; }
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links, #navbar > .container > .btn { display: none; }
  .nav-toggle { display: block; }

  .hero-stats { gap: 1.25rem; }
  .stat-divider { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-copy { margin-right: 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .contact-form { padding: 1.5rem; }
}
