/* ============================================
   REFILLKA BY RECIRCA — Enterprise Website
   Premium Dark Theme Design System
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Colors - Light Theme (Brighter) */
  --bg-primary: #ffffff;
  --bg-secondary: #f0fdf4;
  /* Very subtle green tint */
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.7);

  --green-primary: #059669;
  /* Darker green for contrast on white */
  --green-light: #34d399;
  --green-dark: #047857;
  --green-glow: rgba(5, 150, 105, 0.2);
  --green-subtle: rgba(16, 185, 129, 0.1);

  --text-primary: #111827;
  /* Near black */
  --text-secondary: #4b5563;
  /* Dark gray */
  --text-muted: #9ca3af;

  --border-color: #e5e7eb;
  --border-accent: rgba(5, 150, 105, 0.2);

  --red-accent: #dc2626;
  --red-subtle: rgba(220, 38, 38, 0.1);
  --blue-accent: #2563eb;

  /* Spacing */
  --section-padding: 120px 0;
  --container-max: 1200px;
  --container-padding: 0 24px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 100px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--ease-out);
}

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

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ---------- Utility ---------- */
.text-green {
  color: var(--green-primary);
}

.text-muted {
  color: var(--text-secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  font-family: inherit;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  color: #fff;
  /* Stronger shadow for light mode */
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
  background: var(--green-subtle);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-primary);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--green-primary);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 20px;
  max-width: 700px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.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: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
  padding: 10px 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border-color);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Logo Styles */
.nav-logo .logo-icon-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}

.nav-logo .logo-text {
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 1.4rem;
}

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

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

.logo-ka {
  color: #3b82f6;
}

/* Blue matching branding */

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

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-primary);
  border-radius: 2px;
  transition: width 0.3s var(--ease-out);
}

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

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

.nav-cta {
  padding: 10px 24px !important;
  font-size: 0.85rem !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Spread Text and Map */
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  gap: 40px;
  /* Space between columns */
  padding-left: 5%;
  /* Align content better */
  padding-right: 5%;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroGlow 10s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

/* Hero Text Section (Left) */
.hero-text-layer {
  width: calc(50% - 20px);
  /* Account for half of the 40px gap */
  flex: 0 0 calc(50% - 20px);
  z-index: 10;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.hero-stats {
  margin-top: 64px;
  display: flex;
  gap: 48px;
}

/* Hero Map & Sachet Reveal (Right) */
.hero-map-container {
  width: calc(50% - 20px);
  /* Account for half of the 40px gap */
  flex: 0 0 calc(50% - 20px);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 80vh;
  min-height: 600px;
  perspective: 1000px;
}

.map-inner-container {
  position: relative;
  width: 90%;
  /* Take up most of the 50% container */
  max-width: 800px;
  /* Allow map to grow much larger */
  height: 100%;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* High Fidelity Map */
.ph-map-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Premium blue glow for the map */
  filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.4));
  z-index: 1;
  /* Animation to float gently */
  animation: mapFloat 6s ease-in-out infinite;
}

/* Sachet Overlay */
.sachet-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;

  /* Masking to map shape */
  -webkit-mask-image: url('../assets/images/philippines_high_res.svg');
  mask-image: url('../assets/images/philippines_high_res.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;

  opacity: 1;
  transform: scale(1);
  transition: opacity 2s ease-in-out, transform 2s ease-in-out;
  pointer-events: none;
}

/* When reveal is active (added by JS) */
.sachet-overlay.reveal-active {
  opacity: 0;
  transform: scale(1.1) translateY(-20px);
}

.sachet-texture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Make texture realistic and bright */
  filter: contrast(1.05) saturate(1.1);
}

@keyframes mapFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* Responsive adjustment */
@media (max-width: 1024px) {
  .hero-map-container {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .hero-map-container {
    height: 480px;
    order: -1;
    margin-bottom: 24px;
  }

  .map-inner-container {
    max-width: 320px;
  }
}

/* Hero text layer */
.hero-text-layer {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--green-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-light);
  margin-bottom: 32px;
  animation: fadeInDown 0.8s var(--ease-out);
  backdrop-filter: blur(8px);
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeInUp 1s var(--ease-out);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--green-primary), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 40px;
  animation: fadeInUp 1s 0.2s var(--ease-out) both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeInUp 1s 0.4s var(--ease-out) both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  animation: fadeInUp 1s 0.6s var(--ease-out) both;
}

.hero-stat {
  position: relative;
  padding-left: 16px;
}

.hero-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(to bottom, var(--green-primary), transparent);
  border-radius: 2px;
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Decorative grid */
.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
}

/* Map responsive */
@media (max-width: 1024px) {
  .hero-map-wrapper {
    width: 300px;
    height: 450px;
    right: 0;
    opacity: 0.5;
  }
}

@media (max-width: 768px) {
  .hero-map-wrapper {
    width: 250px;
    height: 375px;
    right: -20px;
    opacity: 0.3;
  }

  .sachet {
    font-size: 1.2rem;
  }
}

/* ---------- Crisis Section ---------- */
.crisis {
  padding: var(--section-padding);
  position: relative;
}

.crisis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.crisis-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.crisis-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-accent), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.crisis-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(239, 68, 68, 0.15);
  transform: translateY(-4px);
}

.crisis-card:hover::before {
  opacity: 1;
}

.crisis-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--red-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.impact-card-image-wrapper {
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.impact-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.impact-card:hover .impact-card-img {
  transform: scale(1.05);
}

.impact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.crisis-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.crisis-stat-big {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--red-accent);
  letter-spacing: -0.03em;
  margin-top: 16px;
}

/* ---------- Solution Section ---------- */
.solution {
  padding: var(--section-padding);
  position: relative;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.solution-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-primary), var(--green-light));
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.solution-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.solution-card:hover::after {
  opacity: 1;
}

.solution-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--green-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.solution-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.solution-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Comparison Section */
.comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.comparison-card {
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-color);
}

.comparison-card.old {
  background: var(--red-subtle);
  border-color: rgba(239, 68, 68, 0.15);
}

.comparison-card.new {
  background: var(--green-subtle);
  border-color: var(--border-accent);
}

.comparison-card h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comparison-card.old h3 {
  color: var(--red-accent);
}

.comparison-card.new h3 {
  color: var(--green-primary);
}

.comparison-card li {
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.comparison-card li:last-child {
  border-bottom: none;
}

.comparison-card li .icon {
  flex-shrink: 0;
  font-size: 1rem;
}

/* ---------- How It Works ---------- */
.how-it-works {
  padding: var(--section-padding);
  position: relative;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 52px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-primary), transparent);
  opacity: 0.3;
}

.step {
  text-align: center;
  padding: 40px 24px;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 28px;
  box-shadow: 0 4px 24px var(--green-glow);
  position: relative;
  z-index: 1;
}

.step-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.step p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Impact Section ---------- */
.impact {
  padding: var(--section-padding);
  position: relative;
}

.impact-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.metric-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  transition: all 0.4s var(--ease-out);
}

.metric-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.metric-value {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--green-primary), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.impact-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.impact-card {
  border-radius: var(--radius-lg);
  padding: 0;
  /* Remove padding to let image fill */
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  height: 400px;
  /* Fixed height for visual consistency */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Text at bottom */
}

/* Base Image Style */
.impact-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 3s ease;
  z-index: 0;
}

/* Hover Effect Zoom */
.impact-card:hover .impact-card-img {
  transform: scale(1.1);
}

/* Gradient Overlay for Text Readability */
.impact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  z-index: 1;
}

.impact-card h3 {
  position: relative;
  z-index: 2;
  font-size: 1.5rem;
  margin: 0 0 8px 32px;
  /* Left align with padding */
  color: #fff;
  /* Always white on dark overlay */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.impact-card p {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.9);
  /* High contrast text */
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 32px 32px 32px;
  /* Padding bottom/left/right */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Specific Border Colors */
.impact-card.before {
  border-color: rgba(239, 68, 68, 0.5);
}

.impact-card.after {
  border-color: var(--green-primary);
}

.impact-card.before h3 {
  color: #fca5a5;
  /* Light Red for 'Before' title */
}

.impact-card.after h3 {
  color: #86efac;
  /* Light Green for 'After' title */
}

/* Removed old specific bg/colors to support overlay */
/*.impact-card.before { background: ... } */


/* ---------- Partners Section ---------- */
.partners {
  padding: var(--section-padding);
  position: relative;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.partner-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-primary), var(--green-light));
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
}

.partner-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-6px);
}

.partner-card:hover::after {
  transform: scaleX(1);
}

.partner-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--green-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

.partner-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.partner-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Contact Section ---------- */
.contact {
  padding: var(--section-padding);
  position: relative;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out);
}

.contact-info-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  /* Soft shadow */
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--green-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
  transition: all 0.3s var(--ease-out);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6b6b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-group select option {
  background: #1a1a1a;
  color: var(--text-primary);
}

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success.show {
  display: block;
}

.form-success .checkmark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
  border: 2px solid var(--green-primary);
}

.form-success h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-color);
  position: relative;
}

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

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 16px;
  max-width: 300px;
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s var(--ease-out);
}

.footer-social:hover {
  background: var(--green-subtle);
  border-color: var(--border-accent);
  color: var(--green-primary);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.footer-col a:hover {
  color: var(--green-primary);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.footer-bottom-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {

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

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

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

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right 0.4s var(--ease-out);
    border-left: 1px solid var(--border-color);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .crisis-grid,
  .solution-grid,
  .comparison,
  .steps,
  .impact-metrics,
  .impact-visual,
  .partners-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .steps::before {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-desc {
    font-size: 1.05rem;
  }
}

/* ---------- Overlay for mobile nav ---------- */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-primary), var(--green-light));
  border-radius: 3px;
  animation: preloaderFill 1.5s var(--ease-out) forwards;
}

@keyframes preloaderFill {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--green-primary);
}