/* ===========================
   Design tokens
   =========================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --color-navy: #152038;
  --color-blue: #2563eb;
  --color-blue-dark: #1d4ed8;
  --color-text: #1f2937;
  --color-text-secondary: #374151;
  --color-text-muted: #6b7280;
  --color-heading: #111827;
  --color-surface: #f5f7fa;
  --color-border: #e5e7eb;
  --color-border-dark: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.06);

  --radius-sm: 4px;
  --radius-md: 8px;

  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
}

/* ===========================
   Base
   =========================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===========================
   Navigation
   =========================== */

.site-header {
  position: sticky;
  top: 0;
  background: var(--color-navy);
  z-index: 100;
  border-bottom: 1px solid var(--color-border-dark);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  flex-wrap: wrap;
}

.site-logo {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  line-height: 1;
  transition: color var(--transition-fast);
}

.nav-toggle:hover {
  color: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  margin-left: 32px;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: 3px;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-blue);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
}

.site-nav a.active::after {
  transform: scaleX(1);
}

/* ===========================
   Hero
   =========================== */

.hero {
  background-color: var(--color-navy);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  color: #fff;
  padding: 96px 0 100px;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 640px;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.btn {
  display: inline-block;
  background: var(--color-blue);
  color: #fff;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:hover {
  background: var(--color-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* ===========================
   Stats strip
   =========================== */

.stats-strip {
  background: var(--color-navy);
  border-top: 1px solid var(--color-border-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
}

.stat {
  padding: 0 24px;
}

.stat + .stat {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

/* ===========================
   Sections — shared
   =========================== */

.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--color-surface);
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 620px;
  margin-bottom: 52px;
  line-height: 1.75;
}

/* ===========================
   About
   =========================== */

.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 56px;
  align-items: start;
}

.about-text p {
  color: var(--color-text-secondary);
  margin-bottom: 18px;
  line-height: 1.8;
  font-size: 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.expertise-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 16px;
}

.skills-list {
  list-style: none;
}

.skills-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.skills-list li:last-child {
  border-bottom: none;
}

/* ===========================
   Services
   =========================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #bfdbfe;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--color-text-muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

/* ===========================
   Experience
   =========================== */

.experience-list {
  display: flex;
  flex-direction: column;
}

.experience-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 36px;
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
}

.experience-item:first-child {
  padding-top: 0;
}

.experience-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.experience-meta {
  padding-top: 2px;
}

.experience-meta .company {
  font-weight: 700;
  color: var(--color-heading);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.experience-meta .period {
  font-size: 0.825rem;
  color: #9ca3af;
}

.experience-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.experience-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ===========================
   Contact
   =========================== */

.contact-wrap {
  max-width: 580px;
}

.contact-wrap p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  margin-bottom: 36px;
  line-height: 1.75;
}

.contact-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-block;
  color: var(--color-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--color-blue);
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.contact-link:hover {
  background: var(--color-blue);
  color: #fff;
  transform: translateY(-1px);
}

/* ===========================
   Footer
   =========================== */

.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.4);
  padding: 28px 0;
  font-size: 0.825rem;
}

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

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* ===========================
   Scroll animations
   =========================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
}

.fade-in.visible {
  animation: fadeInUp 0.5s ease forwards;
}

/* Stagger service cards */
.services-grid .service-card.fade-in.visible:nth-child(2) { animation-delay: 0.08s; }
.services-grid .service-card.fade-in.visible:nth-child(3) { animation-delay: 0.16s; }
.services-grid .service-card.fade-in.visible:nth-child(4) { animation-delay: 0.24s; }

/* Stagger experience items */
.experience-item.fade-in.visible:nth-child(2) { animation-delay: 0.1s; }
.experience-item.fade-in.visible:nth-child(3) { animation-delay: 0.2s; }
.experience-item.fade-in.visible:nth-child(4) { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; }
  .fade-in.visible { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 768px) {
  /* Nav */
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding: 8px 0 16px;
    flex-direction: column;
    align-items: flex-start;
    order: 3;
  }

  .site-nav.nav-open {
    display: flex;
  }

  .site-nav a {
    margin-left: 0;
    padding: 10px 0;
    font-size: 0.95rem;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .site-nav a::after {
    display: none;
  }

  /* Hero */
  .hero {
    padding: 64px 0 72px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

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

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .stat {
    padding: 16px 0;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: baseline;
    gap: 14px;
  }

  .stat + .stat {
    border-left: none;
  }

  .stat:last-child {
    border-bottom: none;
  }

  .stat-num {
    font-size: 1.9rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  /* Sections */
  .section {
    padding: 60px 0;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Experience */
  .experience-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .experience-meta {
    display: flex;
    align-items: baseline;
    gap: 12px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
