﻿/* === DESIGN TOKENS === */
:root {
  --ink: #1A2332;
  --paper: #F8F6F1;
  --emerald: #2D6A4F;
  --emerald-light: #40916C;
  --amber: #D4A373;
  --amber-light: #E9C46A;
  --mist: #8E9AAF;
  --white: #FFFFFF;
  --dark-overlay: rgba(26, 35, 50, 0.85);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --container: 1200px;
  --sidebar-width: 280px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--emerald);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--emerald-light);
}

img {
  max-width: 100%;
  height: auto;
}

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

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fly {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(50px, -30px) rotate(5deg); }
  50% { transform: translate(100px, 0) rotate(-5deg); }
  75% { transform: translate(50px, 30px) rotate(5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes wingFlap {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.3); }
}

@keyframes droplet {
  0% { transform: translateY(-20px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(20px); opacity: 0; }
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

.animate-on-scroll {
  opacity: 1;
  transform: none;
  transition: none;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: none;
}

/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}

.nav-logo svg {
  width: 40px;
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--emerald);
  color: var(--white);
}

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

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: all var(--transition);
  border-radius: 2px;
}

.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);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 90px 24px 24px;
  overflow-y: auto;
}

.mobile-nav.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.mobile-nav a {
  display: block;
  padding: 16px 20px;
  font-size: 1.1rem;
  color: var(--ink);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--emerald);
  color: var(--white);
  border-radius: var(--radius);
  border-bottom-color: transparent;
}

/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1A2332 0%, #2D6A4F 50%, #1A2332 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
  background: #1A2332;
}

/* Hide fallback when video is playing */
.hero-video[autoplay] ~ .hero-fallback {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,35,50,0.85) 0%, rgba(45,106,79,0.7) 50%, rgba(26,35,50,0.85) 100%);
  z-index: 2;
}

/* Video container for content pages */
.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
}

.hero-particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 24px;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  animation: fadeInDown 0.8s ease;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.2s both;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.hero h1 span {
  display: block;
  font-size: 0.5em;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 8px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-mosquito {
  position: absolute;
  font-size: 3rem;
  opacity: 0.15;
  animation: fly 12s ease-in-out infinite;
  pointer-events: none;
}

.hero-mosquito:nth-child(2) { top: 20%; left: 10%; animation-delay: -3s; animation-duration: 15s; }
.hero-mosquito:nth-child(3) { top: 60%; right: 15%; animation-delay: -7s; animation-duration: 18s; }
.hero-mosquito:nth-child(4) { bottom: 20%; left: 30%; animation-delay: -5s; animation-duration: 14s; }

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  opacity: 0.7;
  animation: float 2s ease-in-out infinite;
  cursor: pointer;
  z-index: 2;
}

.hero-scroll svg {
  width: 30px;
  height: 30px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--emerald);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(45, 106, 79, 0.4);
}

.btn-primary:hover {
  background: var(--emerald-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.5);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}

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

.btn-amber {
  background: var(--amber);
  color: var(--ink);
}

.btn-amber:hover {
  background: var(--amber-light);
  transform: translateY(-2px);
}

/* === SECTION STYLES === */
.section {
  padding: 80px 24px;
}

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

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

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

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(45, 106, 79, 0.1);
  color: var(--emerald);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--mist);
  max-width: 600px;
  margin: 0 auto;
}

/* === CARDS === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
}

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

.card-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-image svg {
  width: 80px;
  height: 80px;
  opacity: 0.8;
}

.card-body {
  padding: 24px;
}

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--emerald);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--ink);
}

.card-text {
  color: var(--mist);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--emerald);
}

.card-link svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.card:hover .card-link svg {
  transform: translateX(4px);
}

/* === CONTENT PAGE === */
.page-header {
  position: relative;
  padding: 140px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg, #1A2332, #2D6A4F, #40916C, #1A2332);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  z-index: 0;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--paper);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 1;
}

.page-header-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 16px;
  animation: fadeInUp 0.6s ease;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease 0.2s both;
}

/* Article content */
.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.article h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--ink);
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--emerald);
  display: inline-block;
}

.article h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--emerald);
  margin: 36px 0 16px;
}

.article p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2C2C2C;
}

.article blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(45,106,79,0.05), rgba(212,163,115,0.08));
  border-left: 4px solid var(--emerald);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #3A3A3A;
}

.article blockquote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--mist);
  font-weight: 600;
}

.article ul, .article ol {
  margin: 20px 0;
  padding-left: 28px;
}

.article li {
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.article li::marker {
  color: var(--emerald);
}

/* Image placeholder */
.article-image {
  margin: 32px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-image .image-placeholder {
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--white);
  font-weight: 600;
  background: transparent !important;
}

.article-image .image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

/* Remove any background from image containers */
.article-image {
  background: transparent !important;
  position: relative;
}

.article-image::before {
  display: none;
}

.article-image .image-placeholder svg {
  width: 60px;
  height: 60px;
  opacity: 0.8;
}

/* Info boxes */
.info-box {
  margin: 32px 0;
  padding: 24px;
  border-radius: var(--radius);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-box-fact {
  background: rgba(45, 106, 79, 0.08);
  border: 1px solid rgba(45, 106, 79, 0.2);
}

.info-box-warning {
  background: rgba(212, 163, 115, 0.1);
  border: 1px solid rgba(212, 163, 115, 0.3);
}

.info-box-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-box-fact .info-box-icon {
  background: var(--emerald);
  color: var(--white);
}

.info-box-warning .info-box-icon {
  background: var(--amber);
  color: var(--white);
}

/* === MOSQUITO ANIMATION SECTIONS === */
.mosquito-lifecycle {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.lifecycle-stage {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}

.lifecycle-stage:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.lifecycle-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lifecycle-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed var(--emerald);
  opacity: 0.3;
  animation: rotate 20s linear infinite;
}

.lifecycle-stage h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.lifecycle-stage p {
  font-size: 0.9rem;
  color: var(--mist);
}

.lifecycle-arrow {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--emerald);
  font-size: 1.5rem;
  z-index: 2;
}

/* === FACTS CAROUSEL === */
.facts-section {
  background: linear-gradient(135deg, var(--ink) 0%, #2D3A4A 100%);
  color: var(--white);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.facts-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45,106,79,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.fact-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
}

.fact-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-5px);
}

.fact-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 8px;
}

.fact-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* === TIMELINE === */
.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--emerald), var(--amber));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 45%;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
  margin-left: 5%;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 30px;
  width: 16px;
  height: 16px;
  background: var(--emerald);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.timeline-item:nth-child(odd)::before {
  right: -32px;
}

.timeline-item:nth-child(even)::before {
  left: -32px;
}

.timeline-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--emerald);
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* === BREADCRUMB === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--mist);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--mist);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--emerald);
}

.breadcrumb span {
  color: var(--ink);
  font-weight: 600;
}

/* === SIDEBAR NAVIGATION (for content pages) === */
.page-layout {
  display: flex;
  max-width: var(--container);
  margin: 0 auto;
  gap: 40px;
  padding: 0 24px;
}

.page-sidebar {
  width: 250px;
  flex-shrink: 0;
  position: sticky;
  top: 90px;
  height: fit-content;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.sidebar-nav {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-nav h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mist);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--paper);
}

.sidebar-nav a {
  display: block;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--ink);
  border-radius: 8px;
  margin-bottom: 4px;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(45, 106, 79, 0.08);
  color: var(--emerald);
  border-left-color: var(--emerald);
}

.page-content {
  flex: 1;
  min-width: 0;
}

/* === FOOTER === */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 60px 24px 30px;
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h3 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
}

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--emerald);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--emerald-light);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .page-sidebar {
    display: none;
  }
  
  .mosquito-lifecycle {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: calc(100% - 50px);
    margin-left: 50px !important;
  }
  
  .timeline-item::before {
    left: -38px !important;
    right: auto !important;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .section {
    padding: 60px 16px;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .mosquito-lifecycle {
    grid-template-columns: 1fr;
  }
  
  .lifecycle-arrow {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .page-header {
    padding: 120px 16px 60px;
  }
  
  .article {
    padding: 40px 16px;
  }
  
  .article h2 {
    font-size: 1.5rem;
  }
  
  .fact-number {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    height: 60px;
  }
  
  .nav-logo {
    font-size: 1rem;
  }
  
  .nav-logo svg {
    width: 32px;
    height: 32px;
  }
  
  .hero {
    min-height: 90vh;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

/* === ENHANCED SCROLL ANIMATIONS === */
.animate-on-scroll {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: none;
}

/* Remove problematic nth-child animations */
.animate-on-scroll:nth-child(even) {
  transform: none;
}

.animate-on-scroll:nth-child(even).visible {
  transform: none;
}

/* Image styles - simple, no parallax */
.article-image {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.article-image:hover {
  transform: none;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-image:hover img {
  transform: none;
}

/* Glowing effect for headings */
h2 {
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--amber));
  transition: width 0.5s ease;
  border-radius: 2px;
}

.animate-on-scroll.visible h2::after {
  width: 100%;
}

/* === QURAN VERSE STYLE - applies to ALL blockquotes === */
blockquote {
  position: relative;
  margin: 35px 0;
  padding: 0;
  border: none;
  background: linear-gradient(135deg, 
    rgba(45, 106, 79, 0.06) 0%, 
    rgba(212, 163, 115, 0.08) 50%, 
    rgba(45, 106, 79, 0.06) 100%);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(45, 106, 79, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

blockquote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--emerald), var(--amber), var(--emerald));
  z-index: 1;
}

blockquote::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--emerald), var(--amber));
  z-index: 1;
}

blockquote p {
  padding: 28px 35px 16px;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.12rem;
  line-height: 2;
  color: #1a3a2a;
  font-style: italic;
  text-align: center;
  margin: 0;
}

blockquote cite {
  display: block;
  padding: 12px 35px 24px;
  text-align: center;
  font-style: normal;
  font-size: 0.88rem;
  color: var(--emerald);
  font-weight: 600;
  letter-spacing: 0.5px;
  border-top: 1px solid rgba(45, 106, 79, 0.12);
  margin: 0 20px;
}

blockquote cite::before {
  content: '— ';
  opacity: 0.5;
}

blockquote:hover {
  box-shadow: 0 8px 30px rgba(45, 106, 79, 0.15);
  transform: translateY(-2px);
}

/* Decorative quote mark */
blockquote p::before {
  content: '\201C';
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 3.5rem;
  color: var(--emerald);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
  z-index: 0;
}

/* Corner decorations */
blockquote .corner-tl,
blockquote .corner-tr,
blockquote .corner-bl,
blockquote .corner-br {
  position: absolute;
  width: 25px;
  height: 25px;
  z-index: 2;
}

blockquote .corner-tl {
  top: 4px;
  left: 4px;
  border-top: 2px solid var(--emerald);
  border-left: 2px solid var(--emerald);
  border-radius: 12px 0 0 0;
  opacity: 0.5;
}

blockquote .corner-tr {
  top: 4px;
  right: 4px;
  border-top: 2px solid var(--emerald);
  border-right: 2px solid var(--emerald);
  border-radius: 0 12px 0 0;
  opacity: 0.5;
}

blockquote .corner-bl {
  bottom: 4px;
  left: 4px;
  border-bottom: 2px solid var(--amber);
  border-left: 2px solid var(--amber);
  border-radius: 0 0 0 12px;
  opacity: 0.5;
}

blockquote .corner-br {
  bottom: 4px;
  right: 4px;
  border-bottom: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
  border-radius: 0 0 12px 0;
  opacity: 0.5;
}



/* Floating particles animation */
@keyframes floatParticle {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* Pulse animation for icons */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.lifecycle-stage:hover .lifecycle-icon {
  animation: pulse 1s ease infinite;
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, var(--emerald), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card hover effects */
.card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.card:hover::before {
  left: 100%;
}

/* Hover glow effect */
.card:hover {
  box-shadow: 0 10px 40px rgba(45,106,79,0.2);
}

/* Section divider animation */
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--emerald), var(--amber), var(--emerald));
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
  border-radius: 2px;
  margin: 40px 0;
}

/* Text reveal animation */
@keyframes textReveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.animate-text {
  animation: textReveal 1s ease forwards;
}

/* Floating elements */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* Shimmer effect for loading */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Glow effect */
@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(45,106,79,0.5); }
  50% { box-shadow: 0 0 20px rgba(45,106,79,0.8); }
}

.glow-effect:hover {
  animation: glow 2s ease infinite;
}

/* Typewriter effect */
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--emerald);
  animation: typewriter 3s steps(40) 1s forwards, blink 0.75s step-end infinite;
}

/* Slide in from left */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Slide in from right */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Scale up */
@keyframes scaleUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Bounce in */
@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Rotate in */
@keyframes rotateIn {
  from {
    transform: rotate(-200deg);
    opacity: 0;
  }
  to {
    transform: rotate(0);
    opacity: 1;
  }
}

/* Color pulse */
@keyframes colorPulse {
  0% { color: var(--emerald); }
  50% { color: var(--amber); }
  100% { color: var(--emerald); }
}

/* Background gradient animation */
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-gradient {
  background: linear-gradient(-45deg, #1A2332, #2D6A4F, #D4A373, #1A2332);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

/* Navigation active state */
.nav-links a.active {
  background: var(--emerald);
  color: white;
  box-shadow: 0 4px 12px rgba(45,106,79,0.3);
}

/* Smooth page transitions */
.page-content {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Image loading - always visible */
img[loading="lazy"] {
  opacity: 1;
  transition: none;
}

img {
  opacity: 1;
  max-width: 100%;
  height: auto;
}

/* Enhanced mobile menu */
.mobile-nav {
  backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.95);
}

.mobile-nav a {
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  border-left-color: var(--emerald);
  background: rgba(45,106,79,0.1);
}

/* Scroll indicator */
.scroll-indicator {
  position: fixed;
  top: 70px;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--amber));
  z-index: 1001;
  transition: width 0.1s linear;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* === LOADING ANIMATION === */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--paper);
  border-top-color: var(--emerald);
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
}

/* === MOSQUITO SVG ANIMATIONS === */
.mosquito-svg {
  display: inline-block;
}

.mosquito-svg .wing {
  animation: wingFlap 0.1s ease-in-out infinite;
  transform-origin: center;
}

/* === IMAGE GALLERY === */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  position: relative;
  cursor: pointer;
  transition: transform var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item .image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
}

.gallery-item .image-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.7;
}
