/* ===== CSS Variables ===== */
:root {
  --primary: #29aae3;
  --primary-dark: #1e8fc0;
  --secondary: #00c853;
  --accent: #00c853;
  --dark: #1a1a2e;
  --dark-light: #16213e;
  --gray: #6c757d;
  --gray-light: #f8f9fa;
  --white: #ffffff;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --transition: 0.3s ease;
}

/* ===== Accessibility ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  z-index: 2000;
  font-weight: 600;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
}

*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== Utility ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
}

.highlight {
  color: var(--primary);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-nav {
  padding: 10px 24px;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
}

.btn-nav:hover {
  background: var(--primary-dark);
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  height: 40px;
  width: auto;
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-accent {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: var(--dark);
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  position: relative;
  transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all var(--transition);
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 50%, #0a2463 100%);
  color: var(--white);
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(41, 170, 227, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-tagline {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 3.25rem;
  line-height: 1.2;
  margin-bottom: 24px;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== About ===== */
.about {
  padding: 96px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-card {
  background: var(--gray-light);
  padding: 32px 24px;
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  display: inline;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  display: block;
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* ===== Services ===== */
.services {
  padding: 96px 0;
  background: var(--gray-light);
}

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

.service-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.service-card p {
  color: var(--gray);
  line-height: 1.7;
}

/* ===== Insights ===== */
.insights {
  padding: 96px 0;
  background: var(--white);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.insight-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid #e9ecef;
  transition: all var(--transition);
}

.insight-card:hover {
  box-shadow: var(--shadow);
  border-color: transparent;
  transform: translateY(-4px);
}

.insight-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(41, 170, 227, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.insight-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.insight-card p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 16px;
}

.insight-date {
  font-size: 0.85rem;
  color: var(--gray);
}

/* ===== Team ===== */
.team {
  padding: 96px 0;
  background: var(--gray-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-card {
  text-align: center;
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.team-avatar {
  font-size: 4rem;
  margin-bottom: 16px;
}

.team-card h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.team-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 12px;
}

.team-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Contact ===== */
.contact {
  padding: 96px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--gray);
}

.contact-form {
  background: var(--gray-light);
  padding: 40px;
  border-radius: var(--radius);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-main);
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: var(--white);
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand p {
  line-height: 1.7;
  max-width: 320px;
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .services-grid,
  .insights-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

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

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

  .services-grid,
  .insights-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

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

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

  .section-header h2 {
    font-size: 1.75rem;
  }
}
