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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e293b;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* =====================
   Typography
===================== */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
h4 { font-size: 0.85rem; }

p {
  color: #475569;
  margin-bottom: 1rem;
  line-height: 1.75;
}
p:last-child { margin-bottom: 0; }

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

strong { color: #1e293b; font-weight: 600; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #2563eb;
}

/* =====================
   Layout
===================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 6rem 0; }

/* =====================
   Buttons
===================== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* =====================
   Navigation
===================== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(8, 15, 35, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
}
.logo span { color: #3b82f6; }
.logo-mark { width: 32px; height: 32px; flex-shrink: 0; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: #ffffff; }

.nav-cta {
  background: #2563eb !important;
  color: #ffffff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 7px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #1d4ed8 !important; color: #ffffff !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================
   Hero
===================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #080f23 0%, #0e1d42 55%, #0d1e5c 100%);
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 75% 45%, rgba(37, 99, 235, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 8rem 2rem 5rem;
}

.hero-eyebrow {
  color: #93c5fd;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

#hero h1 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  max-width: 820px;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.15rem;
  max-width: 620px;
  margin-bottom: 2.75rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =====================
   Clients Strip
===================== */
#clients-strip {
  background: #f8fafc;
  padding: 3.5rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 3px solid #2563eb;
}

.strip-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 1.75rem;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.5rem;
}

.clients-grid span {
  font-size: 1rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: -0.01em;
  transition: color 0.2s;
  cursor: default;
}
.clients-grid span:hover { color: #1e293b; }

/* =====================
   About
===================== */
#about { background: #ffffff; }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6rem;
  align-items: center;
}

.about-text h2 { margin-bottom: 1.5rem; color: #1e293b; }

.about-text p { font-size: 1.05rem; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 2rem;
}

.stat { display: flex; flex-direction: column; gap: 0.35rem; }

.stat-num {
  font-size: 3rem;
  font-weight: 800;
  color: #2563eb;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 500;
}

/* =====================
   Services
===================== */
#services { background: #f8fafc; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid transparent;
  border-radius: 14px;
  padding: 2rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-top-color 0.25s ease;
}
.service-card:hover {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.09);
  transform: translateY(-4px);
  border-top-color: #2563eb;
}

.service-icon {
  color: #2563eb;
  margin-bottom: 1rem;
}

.service-card h3 { color: #1e293b; margin-bottom: 0.75rem; }

.service-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =====================
   Work
===================== */
#work { background: #ffffff; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.work-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 2rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.work-card:hover {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.09), inset 0 3px 0 #2563eb;
  transform: translateY(-4px);
}

.work-client {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.work-card h3 { color: #1e293b; margin-bottom: 0.75rem; font-size: 1.1rem; }

.work-card p {
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.work-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.work-tags span {
  font-size: 0.73rem;
  font-weight: 600;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
  letter-spacing: 0.01em;
}

/* =====================
   Skills
===================== */
#skills {
  background: #080f23;
}

#skills .section-label { color: #60a5fa; }

#skills h2 { color: #ffffff; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 4rem;
}

.skill-group h4 {
  color: #93c5fd;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.skill-tags span {
  font-size: 0.83rem;
  font-weight: 500;
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
  border: 1px solid rgba(37, 99, 235, 0.28);
  padding: 0.3rem 0.85rem;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
.skill-tags span:hover {
  background: rgba(37, 99, 235, 0.32);
  color: #ffffff;
}

/* =====================
   Experience — Impact Cards
===================== */
#experience { background: #ffffff; }

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.impact-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.impact-card:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.09), inset 3px 0 0 #2563eb;
  transform: translateY(-4px);
}

.impact-client {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563eb;
}

.impact-card h3 {
  font-size: 1rem;
  color: #1e293b;
  line-height: 1.45;
  margin: 0;
}

.impact-card p {
  font-size: 0.88rem;
  line-height: 1.68;
  flex: 1;
  margin: 0;
}

.impact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.impact-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 0.22rem 0.65rem;
  border-radius: 99px;
}

/* =====================
   Education
===================== */
#education { background: #f8fafc; }

.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.edu-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.edu-card:hover {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.07);
  transform: translateY(-3px);
}

.edu-degree {
  font-weight: 700;
  color: #1e293b;
  font-size: 1rem;
  line-height: 1.45;
}

.edu-school {
  color: #475569;
  font-size: 0.9rem;
}

.edu-year {
  color: #2563eb;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* =====================
   Contact
===================== */
#contact {
  background: linear-gradient(135deg, #080f23 0%, #0e1d42 100%);
  text-align: center;
}

.contact-inner {
  max-width: 680px;
  margin: 0 auto;
}

#contact .section-label { color: #60a5fa; }

#contact h2 { color: #ffffff; margin-bottom: 1rem; }

#contact p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  margin-bottom: 2.75rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-phone {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  font-weight: 500;
}

.contact-location {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

/* =====================
   Footer
===================== */
footer {
  background: #04070f;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .logo { font-size: 1rem; }

.footer-copy {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.3);
}

/* =====================
   Scroll animations
===================== */
.fade-up {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.6s ease, translate 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  translate: 0 0;
}

/* Stagger delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* =====================
   Responsive — tablet
===================== */
@media (max-width: 960px) {
  .services-grid,
  .work-grid { grid-template-columns: repeat(2, 1fr); }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

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

  .skills-grid { gap: 2rem 2.5rem; }
}

/* =====================
   Responsive — mobile
===================== */
@media (max-width: 640px) {
  section { padding: 4rem 0; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: #080f23;
    padding: 1.5rem 2rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    z-index: 100;
  }
  .nav-links.open { display: flex; }

  .hamburger { display: flex; }

  .services-grid,
  .work-grid,
  .edu-grid,
  .impact-grid { grid-template-columns: 1fr; }

  .about-stats { grid-template-columns: repeat(2, 1fr); }

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

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .hero-sub { font-size: 1rem; }

  .stat-num { font-size: 2.4rem; }
}
