/* ── Reset & Base ───────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --border: #e0e0e4;
  --text: #1a1a1a;
  --text-muted: #6b6b74;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Button ────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, transform .15s;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-sm {
  padding: 8px 20px;
  font-size: .85rem;
}

/* ── Nav ───────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.5px;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: #fff; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: #0a0a0a;
  color: #e4e4e7;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(59,130,246,.3);
  border-radius: 20px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  max-width: 520px;
  font-size: 1.1rem;
  color: #8b8b94;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}

/* ── Section ───────────────────────────────── */
section { padding: 100px 0; }
section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: 12px;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 52px;
}

/* ── Services ──────────────────────────────── */
.services {
  background: #f8f9fc;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .25s, transform .2s, box-shadow .3s;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.card:hover::before { transform: scaleX(1); }
.card:hover {
  border-color: rgba(59,130,246,.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(59,130,246,.1);
}
.card-icon {
  margin-bottom: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59,130,246,.12) 0%, rgba(59,130,246,.06) 100%);
  border-radius: 10px;
  color: var(--accent);
}
.card h3 {
  font-size: .95rem;
  font-weight: 650;
  margin-bottom: 8px;
  letter-spacing: -.2px;
}
.card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── About (merged into contact) ───────── */
.about {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  color: #fff;
}
.about h2 {
  color: #fff;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.about-item {
  padding: 32px 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  transition: background .25s, transform .2s;
}
.about-item:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-3px);
}
.about-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
}
.about-item p {
  font-size: .9rem;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
}

/* ── Contact ───────────────────────────────── */
.contact {
  text-align: center;
  background:
    linear-gradient(rgba(255,255,255,.88), rgba(255,255,255,.92)),
    url('https://images.unsplash.com/photo-1581092921461-eab62e97a780?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}
/* Nav on dark hero */
.nav { color: #fff; }
.nav .logo { color: #fff; }
.nav .nav-links a { color: rgba(255,255,255,.7); }
.nav .nav-links a:hover { color: #fff; }
.nav .menu-toggle span { background: #fff; }

/* Nav after scroll (on white sections) */
.nav.scrolled { color: var(--text); }
.nav.scrolled .logo { color: var(--text); }
.nav.scrolled .nav-links a { color: var(--text-muted); }
.nav.scrolled .nav-links a:hover { color: var(--text); }
.nav.scrolled .nav-links .btn { color: #fff; }
.nav.scrolled .menu-toggle span { background: var(--text); }
.contact-sub {
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 48px;
  font-size: 1.05rem;
}
.contact-details {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 48px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color .25s, transform .2s, box-shadow .3s;
}
.contact-link:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(59,130,246,.1);
}
.contact-label {
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
}

/* ── Footer ────────────────────────────────── */
.footer {
  padding: 32px 0;
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links.open a { color: var(--text); }
  .nav-links.open .btn { color: #fff; }
  .nav-links a { font-size: 1.2rem; }

  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero h1 { font-size: 2rem; letter-spacing: -1px; }
  .hero p { font-size: .95rem; }
  .hero-tag { font-size: .7rem; letter-spacing: 1.5px; }
  .hero-glow { width: 300px; height: 300px; top: -15%; right: -15%; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { text-align: center; }

  section { padding: 64px 0; }
  section h2 { font-size: 1.6rem; }
  .section-sub { font-size: .9rem; margin-bottom: 32px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .about-grid { grid-template-columns: 1fr; gap: 16px; }


  .contact-sub { margin-top: -20px; margin-bottom: 32px; font-size: .9rem; }
  .contact-details { flex-direction: column; align-items: center; gap: 16px; }
  .contact-link { width: 100%; padding: 24px 20px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .card { padding: 16px 14px; }
  .card-icon { width: 36px; height: 36px; margin-bottom: 10px; }
  .card h3 { font-size: .8rem; }
  .card p { font-size: .75rem; }
}

/* ── Scroll Reveal ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
