/* ========================================
   TrustHive - Premium Website v2.0
   Enhanced UX / Visual Polish
   ======================================== */

/* --- CSS Variables --- */
:root {
  --navy: #1a1a2e;
  --navy-deep: #0f0c29;
  --charcoal: #16213e;
  --coral: #10b981;
  --coral-hover: #059669;
  --coral-glow: rgba(16, 185, 129, 0.25);
  --white: #ffffff;
  --light: #f7f7fb;
  --gray: #e0e0e5;
  --gray-soft: #f0f0f5;
  --text: #2d2d3a;
  --text-light: #555566;
  --muted: #6b6b7e;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-coral: 0 8px 30px rgba(16, 185, 129, 0.3);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-h: 72px;
  --max-w: 1200px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--coral); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--coral-hover); }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin-bottom: 1rem; color: var(--text-light); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Container --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(15, 12, 41, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.navbar-content,
.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.navbar-brand,
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  transition: transform var(--transition);
}
.navbar-brand:hover,
.nav-logo:hover {
  transform: scale(1.03);
  color: var(--white);
}
.navbar-brand span,
.nav-logo .brand-text {
  color: var(--white);
}
.navbar-brand svg,
.nav-logo svg {
  height: 44px;
  width: auto;
}

/* Nav Links */
.navbar-links,
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar-links a,
.nav-list { display: flex; gap: 0.5rem; align-items: center; }
.nav-item { list-style: none; }
.navbar-links a:not(.btn),
.nav-link {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  font-size: 0.92rem;
  position: relative;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.navbar-links a:not(.btn):hover,
.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
/* Active page indicator */
.navbar-links a.active:not(.btn),
.nav-link.active {
  color: var(--white);
  background: rgba(16, 185, 129, 0.15);
}
.navbar-links a.active:not(.btn)::after,
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--coral);
  border-radius: 3px;
}

.nav-cta,
.navbar-links .btn {
  background: var(--coral);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--transition);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
  margin-left: 0.5rem;
}
.nav-cta:hover,
.navbar-links .btn:hover {
  background: var(--coral-hover);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}
.nav-cta::after { display: none !important; }

/* Mobile Nav Toggle */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition);
}
.nav-toggle-label:hover {
  background: rgba(255,255,255,0.1);
}
.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 3px;
  transition: all var(--transition);
  transform-origin: center;
}
/* Animated hamburger → X */
.nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

@media (max-width: 768px) {
  .nav-toggle-label { display: flex; }
  .navbar-links,
  .nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(15, 12, 41, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-toggle:checked ~ .navbar-links,
  .nav-toggle:checked ~ .nav-menu {
    max-height: 400px;
    padding: 1rem 2rem 1.5rem;
  }
  .navbar-links a:not(.btn),
  .nav-list { flex-direction: column; gap: 0; width: 100%; }
  .nav-item { width: 100%; }
  .navbar-links a:not(.btn),
  .nav-link {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border-bottom: none;
  }
  .navbar-links a:not(.btn):hover,
  .nav-link:hover {
    background: rgba(255,255,255,0.06);
  }
  .navbar-links .btn,
  .nav-cta {
    display: block;
    text-align: center;
    margin: 0.75rem 0 0 0;
  }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--coral), #059669);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover {
  box-shadow: var(--shadow-coral);
  color: var(--white);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-outline {
  border: 2px solid var(--coral);
  color: var(--coral);
  background: transparent;
}
.btn-outline:hover {
  background: var(--coral);
  color: var(--white);
  box-shadow: var(--shadow-coral);
}
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.75rem; font-size: 1.05rem; }
.btn-white {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow);
}
.btn-white:hover {
  background: var(--light);
  color: var(--navy);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0a0a18 0%, #0f0c29 30%, #1a1a2e 60%, #0f0c29 100%);
  overflow: hidden;
  text-align: center;
  padding: 6rem 2rem 5rem;
}
/* Animated mesh gradient background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 800px 800px at 25% 50%, rgba(16,185,129,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 600px 600px at 75% 30%, rgba(79,70,229,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 50% 80%, rgba(13,148,136,0.08) 0%, transparent 70%);
  background-size: 100% 100%;
  animation: heroShift 15s ease-in-out infinite alternate;
}
@keyframes heroShift {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}
/* Glowing orb — top right */
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 55%);
  border-radius: 50%;
  top: -200px;
  right: -150px;
  animation: orbFloat 10s ease-in-out infinite;
  pointer-events: none;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.15); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,24,0.2) 0%, rgba(10,10,24,0.6) 100%);
  z-index: 1;
}

/* Floating hex lattice visual */
.hero-hex {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 480px;
  z-index: 1;
  opacity: 0.7;
  animation: hexFloat 12s ease-in-out infinite, fadeInUp 1.2s 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes hexFloat {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  50% { transform: translateY(calc(-50% + 15px)) rotate(2deg); }
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(16,185,129,0.4);
  border-radius: 50%;
  animation: particlePulse 6s ease-in-out infinite;
}
.particle:nth-child(2n) {
  width: 3px;
  height: 3px;
  background: rgba(79,70,229,0.35);
}
.particle:nth-child(3n) {
  width: 2px;
  height: 2px;
  background: rgba(13,148,136,0.35);
}
@keyframes particlePulse {
  0%, 100% { opacity: 0.3; transform: translateY(0) scale(1); }
  50% { opacity: 1; transform: translateY(-20px) scale(1.5); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.hero-accent {
  background: linear-gradient(135deg, var(--coral) 0%, #34d399 40%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle,
.hero .lead {
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  margin-bottom: 2.25rem;
  font-weight: 400;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s 0.15s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Hero buttons row */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
  margin-bottom: 3rem;
}
.hero .btn { animation: none; }
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

/* Hero trust stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  animation: fadeInUp 0.8s 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.hero-stat {
  text-align: center;
}
.hero-stat-num {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--coral);
  letter-spacing: 0.02em;
}
.hero-stat-label {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.1);
}

/* Badge above hero title */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--coral);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}
.hero-badge svg {
  width: 14px;
  height: 14px;
}

.hero-compact {
  min-height: 45vh;
}

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

/* Hero bottom decorative wave */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 3;
  line-height: 0;
}
.hero-wave svg {
  width: 100%;
  height: auto;
}

/* ========================================
   GENERIC SECTIONS
   ======================================== */
.section,
.content-section,
.service-section {
  padding: 6rem 0;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--coral);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.section-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}
.section-intro {
  font-size: 1.1rem;
  max-width: 750px;
  line-height: 1.85;
  margin-bottom: 3rem;
  color: var(--text-light);
}
.alternate-bg {
  background: var(--light);
}

/* ========================================
   SERVICES GRID (HOME)
   ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16,185,129,0.03), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), #34d399);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { transform: scaleX(1); }
.service-icon,
.service-card-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--icon-from, var(--coral)), var(--icon-to, #34d399));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all var(--transition-bounce);
  box-shadow: 0 6px 20px var(--icon-glow, rgba(16, 185, 129, 0.25));
}
.service-card:hover .service-icon,
.service-card:hover .service-card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px var(--icon-glow-hover, rgba(16, 185, 129, 0.35));
}

/* Service icon color variants */
.service-card.icon-coral    { --icon-from: #10b981; --icon-to: #34d399; --icon-glow: rgba(16,185,129,0.25);  --icon-glow-hover: rgba(16,185,129,0.35); }
.service-card.icon-indigo   { --icon-from: #4f46e5; --icon-to: #818cf8; --icon-glow: rgba(79,70,229,0.25);  --icon-glow-hover: rgba(79,70,229,0.35); }
.service-card.icon-teal     { --icon-from: #0d9488; --icon-to: #2dd4bf; --icon-glow: rgba(13,148,136,0.25); --icon-glow-hover: rgba(13,148,136,0.35); }
.service-card.icon-violet   { --icon-from: #7c3aed; --icon-to: #a78bfa; --icon-glow: rgba(124,58,237,0.25); --icon-glow-hover: rgba(124,58,237,0.35); }
.service-icon svg { color: var(--white); stroke: var(--white); fill: none; }
.service-card h3 { margin-bottom: 0.85rem; position: relative; z-index: 1; }
.service-card p { font-size: 0.95rem; line-height: 1.75; position: relative; z-index: 1; }

/* ========================================
   SERVICE DETAIL PAGES
   ======================================== */
.service-content {
  max-width: 800px;
}
.service-text h2 {
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.service-text h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--coral);
  border-radius: 3px;
}
.service-text > p {
  font-size: 1.05rem;
  line-height: 1.85;
}
.service-areas {
  margin-top: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  border: 1px solid rgba(0,0,0,0.06);
}
.alternate-bg .service-areas {
  background: var(--white);
}
.service-areas h3 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.service-areas ul { margin-bottom: 0; }
.service-areas li {
  padding: 0.65rem 0 0.65rem 2rem;
  position: relative;
  color: var(--text-light);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: all var(--transition);
}
.service-areas li:last-child { border-bottom: none; }
.service-areas li:hover {
  color: var(--text);
  padding-left: 2.25rem;
}
.service-areas li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--coral), #34d399);
  border-radius: 50%;
  transition: transform var(--transition);
}
.service-areas li:hover::before {
  transform: translateY(-50%) scale(1.2);
}

/* ========================================
   SOLUTIONS SECTION
   ======================================== */
.solutions-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--charcoal) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.solutions-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 500px at 30% 70%, rgba(16,185,129,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 70% 30%, rgba(48,43,99,0.3) 0%, transparent 70%);
}
.solutions-section .container { position: relative; z-index: 1; }
.solutions-section h2 { color: var(--white); margin-bottom: 1.25rem; }
.solutions-section p {
  color: rgba(255,255,255,0.75);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}
.solutions-section .btn-secondary {
  border-color: rgba(255,255,255,0.3);
}
.solutions-section .btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

/* ========================================
   STATS / IMPACT
   ======================================== */
.impact-section {
  position: relative;
  background: linear-gradient(160deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  color: var(--white);
  text-align: center;
  padding: 6rem 0;
  overflow: hidden;
}
.impact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 300px at 10% 50%, rgba(16,185,129,0.1), transparent),
    radial-gradient(circle 300px at 90% 50%, rgba(48,43,99,0.3), transparent);
}
.impact-section .container { position: relative; z-index: 2; }
.impact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  z-index: 1;
}
.impact-section h2 { color: var(--white); margin-bottom: 3rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.stat-item,
.stat-card {
  text-align: center;
  padding: 2rem 1.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.stat-item:hover,
.stat-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-5px);
  border-color: rgba(16,185,129,0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.stat-item h3,
.stat-number {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--coral);
  font-family: var(--font-heading);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}
.stat-item p,
.stat-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 0;
  font-weight: 500;
}

/* ========================================
   PARTNERS
   ======================================== */
.partners-section {
  background: var(--charcoal);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.partners-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 300px at 50% 100%, rgba(16,185,129,0.05), transparent);
}
.partners-section .container { position: relative; z-index: 1; }
.partners-section h2 { color: var(--white); margin-bottom: 2.5rem; }
.partners-section p { color: rgba(255,255,255,0.7); }
.partners-section .section-label { color: var(--coral); }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
}
.partner-item,
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  min-height: 100px;
  transition: all var(--transition);
}
.partner-item:hover,
.partner-logo:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
  border-color: rgba(16,185,129,0.2);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.partner-item img,
.partner-logo img {
  max-height: 55px;
  opacity: 0.6;
  filter: grayscale(100%) brightness(1.5);
  transition: all var(--transition);
}
.partner-item:hover img,
.partner-logo:hover img {
  opacity: 1;
  filter: grayscale(0%) brightness(1.1);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, var(--coral) 0%, #059669 50%, #047857 100%);
  color: var(--white);
  text-align: center;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  top: -120px; right: -80px;
  animation: float 8s ease-in-out infinite;
}
.cta-section::after {
  content: '';
  position: absolute;
  width: 250px; height: 250px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  bottom: -80px; left: -60px;
  animation: float 10s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-25px) scale(1.05); }
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); margin-bottom: 1.25rem; }
.cta-section p {
  color: rgba(255,255,255,0.92);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.cta-section .btn-primary {
  background: var(--white);
  color: var(--coral);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.cta-section .btn-primary:hover {
  background: var(--light);
  color: var(--navy);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ========================================
   VALUES GRID (VISION PAGE)
   ======================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.value-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--coral), #34d399);
  transition: height var(--transition-slow);
  border-radius: 0 0 4px 0;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.value-card:hover::before {
  height: 100%;
}
.value-card h3 {
  margin-bottom: 0.85rem;
  color: var(--coral);
  font-size: 1.2rem;
}
.value-card p { font-size: 0.95rem; line-height: 1.75; }

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-section { padding: 6rem 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1.75rem; }
.contact-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  transition: all var(--transition);
}
.contact-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
  border-color: rgba(16,185,129,0.15);
}
.contact-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: linear-gradient(135deg, var(--coral), #34d399);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
  transition: transform var(--transition-bounce);
}
.contact-card:hover .contact-icon {
  transform: scale(1.1);
}
.contact-icon svg {
  stroke: var(--white);
  fill: none;
  width: 22px;
  height: 22px;
}
.contact-details h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.contact-details p { margin-bottom: 0; font-size: 0.95rem; }
.contact-details a { color: var(--coral); font-weight: 500; }
.contact-form-wrapper {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow);
}
.contact-form-wrapper h2 { margin-bottom: 1.75rem; }

/* Form Styles */
.contact-form,
.form-group { width: 100%; }
.form-group { margin-bottom: 1.35rem; }
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border: 1.5px solid var(--gray);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition);
  background: var(--white);
  color: var(--text);
}
.form-group input:hover,
.form-group textarea:hover {
  border-color: #c0c0cc;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.1);
}
.form-group textarea { min-height: 150px; resize: vertical; }

.form-message,
#formMessage {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-weight: 500;
  display: none;
}
.form-message.success,
#formMessage {
  background: rgba(46,204,113,0.08);
  color: #1a9e54;
  border: 1px solid rgba(46,204,113,0.2);
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.newsletter-form input {
  flex: 1;
  min-width: 160px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--coral);
  background: rgba(255,255,255,0.1);
}
.newsletter-msg { width: 100%; font-size: 0.85rem; }

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 4.5rem 0 2rem;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,0.3), transparent);
}
.footer-content,
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-column,
.footer-col {}
.footer-logo,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  transition: transform var(--transition);
}
.footer-logo:hover,
.footer-brand:hover {
  transform: scale(1.02);
  color: var(--white);
}
.footer-logo svg,
.footer-brand svg { height: 32px; width: auto; }
.footer-logo h3 { color: var(--white); font-size: 1.25rem; }
.footer-brand span { color: var(--white); }
.footer-column p,
.footer-col p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-column a,
.footer-col a { color: var(--coral); }
.footer h4,
.footer h3 { color: var(--white); margin-bottom: 1.25rem; font-size: 1rem; }
.footer ul li { margin-bottom: 0.6rem; }
.footer ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  transition: all var(--transition);
  padding: 2px 0;
}
.footer ul li a:hover {
  color: var(--coral);
  padding-left: 4px;
}

.social-links,
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social-links { gap: 0.75rem; margin-top: 1rem; }
.social-links a,
a.social-link {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.08);
}
.social-links a:hover,
a.social-link:hover {
  background: var(--coral);
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copyright {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  margin-top: 1.25rem;
}
.footer-section h4 { color: var(--white); margin-bottom: 1rem; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section ul li a { color: rgba(255,255,255,0.55); font-size: 0.9rem; }
.footer-section ul li a:hover { color: var(--coral); }

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--coral-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-coral);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2.5;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-content, .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 70vh; }
  .hero-compact { min-height: 40vh; }
  .hero-hex { display: none; }
  .hero-stats { gap: 1rem; }
  .hero-stat-num { font-size: 0.85rem; }
  .section, .content-section, .service-section { padding: 4rem 0; }
  .cta-section { padding: 4rem 0; }
  .contact-form-wrapper { padding: 1.75rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; }
  .footer-content, .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 60vh; padding: 3rem 1.5rem; }
  .hero-stats { flex-direction: column; gap: 0.75rem; }
  .hero-stat-divider { width: 32px; height: 1px; }
  .newsletter-form { flex-direction: column; }
  .container { padding: 0 1.25rem; }
  .back-to-top { bottom: 1.25rem; right: 1.25rem; width: 42px; height: 42px; }
}

/* ========================================
   UTILITY & MISC
   ======================================== */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 2rem; }
.mt-lg { margin-top: 2rem; }

/* Accessible focus styles */
:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Selection color */
::selection {
  background: var(--coral);
  color: var(--white);
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--coral); }

@media print {
  .navbar, .footer, .cta-section, .back-to-top { display: none; }
  body { color: #000; background: #fff; }
}
