/* ===================================================
   World Without Data Campaign - Custom Styles
   =================================================== */

/* ===== Hero Section: Video Background ===== */
.hero-wwd {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

/* Video background container */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

/* Local video styling */
.hero-video-local {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 50%;
  min-height: 50%;
  width: 50%;
  height: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
}

/* Fallback image for unsupported browsers */
.hero-video-local img {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Dark overlay for readability */
.hero--campaign-wwd .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(11, 16, 32, 0.85) 0%,
    rgba(52, 28, 122, 0.75) 100%
  );
  pointer-events: none;
}

/* Hero content */
.hero--campaign-wwd .hero-inner {
  position: relative;
  z-index: 3;
}

.hero--campaign-wwd .hero-content {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.hero--campaign-wwd .hero-title {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 24px;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero--campaign-wwd .hero-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.5;
  margin: 0 0 36px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero--campaign-wwd .hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Outline button for dark background */
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* ===== Problem Section (Dark Theme) ===== */
.wwd-problem {
  background: linear-gradient(
    180deg,
    var(--gh-deep) 0%,
    #2b2f5b 100%
  );
  color: #fff;
}

.wwd-problem .h2 {
  color: #fff;
}

.wwd-problem .lead {
  color: rgba(255, 255, 255, 0.9);
}

/* Impact Cards */
.impact-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 32px);
  text-align: center;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  backdrop-filter: blur(10px);
}

.impact-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.impact-card .icon {
  color: var(--gh-accent);
}

.impact-card .h4 {
  color: #fff;
  margin: 0 0 12px;
}

.impact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  color: rgba(255, 255, 255, 0.85);
}

.impact-list li {
  position: relative;
  padding-left: 24px;
  margin: 8px 0;
  line-height: 1.5;
}

.impact-list li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--gh-accent);
  font-size: 1.2rem;
}

/* ===== Solution Section (Light Transition) ===== */
.wwd-solution {
  background: linear-gradient(
    180deg,
    #f6f8fc 0%,
    #ffffff 100%
  );
}

.wwd-solution .h2 {
  color: var(--brand-indigo-700);
}

.wwd-solution .lead {
  color: var(--gh-text);
}

/* Solution Cards */
.solution-card {
  background: #fff;
  border: 1px solid rgba(31, 42, 64, 0.1);
  border-radius: 20px;
  padding: clamp(20px, 3.5vw, 28px);
  text-align: center;
  box-shadow: 0 12px 32px rgba(28, 38, 63, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(28, 38, 63, 0.14);
  border-color: rgba(31, 42, 64, 0.18);
}

.solution-icon {
  margin-bottom: 16px;
}

.solution-card .h4 {
  color: var(--gh-text-strong);
  margin: 0 0 10px;
}

.solution-card p {
  margin: 0;
  color: var(--gh-text);
  line-height: 1.5;
}

/* ===== Download Section ===== */
.wwd-download {
  background: var(--gh-bg);
}

.download-card {
  background: #fff;
  border: 1px solid rgba(31, 42, 64, 0.08);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 56px);
  box-shadow: 0 16px 48px rgba(28, 38, 63, 0.12);
}

.download-card .h2 {
  color: var(--brand-indigo-700);
}

.download-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1.05rem;
}

.download-note {
  font-size: 0.95rem;
  color: var(--gh-text);
}

.download-note a {
  font-weight: 600;
  text-decoration: none;
}

.download-note a:hover {
  text-decoration: underline;
}

/* ===== Final CTA Section ===== */
.wwd-final-cta {
  background: linear-gradient(
    135deg,
    var(--brand-cyan-400) 0%,
    var(--brand-indigo-700) 100%
  );
}

.wwd-final-cta .cta-free__card {
  background: transparent;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.wwd-final-cta .cta-free__btn {
  width: 100%;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  /* Hide video on mobile to save bandwidth, show poster image */
  .hero-video-local {
    display: none;
  }
  
  .hero-video-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../video/campaign-poster.jpg');
    background-size: cover;
    background-position: center;
  }

  .hero--campaign-wwd .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero--campaign-wwd .hero-actions .btn {
    width: 100%;
  }

  .download-actions {
    flex-direction: column;
    width: 100%;
  }

  .download-actions .btn {
    width: 100%;
  }

  /* Stack impact and solution cards on mobile */
  .impact-card,
  .solution-card {
    margin-bottom: 16px;
  }
}

@media (max-width: 640px) {
  .hero--campaign-wwd .hero-title {
    font-size: 32px;
  }

  .hero--campaign-wwd .hero-subtitle {
    font-size: 18px;
  }

  .download-card {
    padding: 24px 20px;
  }
}

/* ===== Smooth Scroll Behavior ===== */
html {
  scroll-behavior: smooth;
}

/* Adjust scroll offset for fixed header */
#download-section {
  scroll-margin-top: calc(var(--header-h, 72px) + 20px);
}

/* ===== Animation: Fade in on scroll (optional enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .impact-card,
  .solution-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
  }

  .impact-card:nth-child(1) { animation-delay: 0.1s; }
  .impact-card:nth-child(2) { animation-delay: 0.2s; }
  .impact-card:nth-child(3) { animation-delay: 0.3s; }

  .solution-card:nth-child(1) { animation-delay: 0.1s; }
  .solution-card:nth-child(2) { animation-delay: 0.2s; }
  .solution-card:nth-child(3) { animation-delay: 0.3s; }
  .solution-card:nth-child(4) { animation-delay: 0.4s; }

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