/* ===============================
   VIBRANT FLOOD THEME
   Multi-Color Water & Nature Palette
   =============================== */

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

/* ===== Theme Variables ===== */
:root {
  /* Core flood/water colors */
  --deep-ocean: #cbd5e1;
  --ocean-dark: #e2e8f0;
  --ocean-medium: #f1f5f9;
  --ocean-light: #f8fafc;

  /* Primary accent colors - Water blues (toned down) */
  --cyan: #0891b2;
  --cyan-bright: #0e7490;
  --cyan-soft: #0e7490;
  --teal: #0d9488;
  --aqua: #06b6d4;
  --blue: #2563eb;
  --blue-bright: #1d4ed8;

  /* Secondary colors - Nature/Impact (muted) */
  --emerald: #059669;
  --emerald-bright: #047857;
  --lime: #65a30d;
  --amber: #d97706;
  --amber-bright: #b45309;
  --orange: #ea580c;
  --orange-bright: #c2410c;

  /* Tertiary colors - Depth/Alert (softer) */
  --purple: #9333ea;
  --purple-bright: #7e22ce;
  --violet: #7c3aed;
  --rose: #e11d48;
  --pink: #db2777;

  /* Storm/cloud colors */
  --storm-gray: #64748b;
  --cloud-gray: #94a3b8;

  /* Backgrounds (warmer, less bright) */
  --bg-main: #f8fafc;
  --bg-alt: #f1f5f9;
  --bg-glass: rgba(248, 250, 252, 0.95);
  --bg-glass-light: rgba(241, 245, 249, 0.95);

  /* Text */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-dark: #ffffff;

  /* UI */
  --border-soft: rgba(8, 145, 178, 0.25);
  --border-glow: rgba(8, 145, 178, 0.4);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 30px rgba(8, 145, 178, 0.25);

  --radius-lg: 20px;
  --radius-md: 14px;
}

/* ===== Global Background ===== */
html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  line-height: 1.6;

  background-color: var(--bg-main);
  background-image:
    radial-gradient(1200px 600px at 20% 15%, rgba(8, 145, 178, 0.05), transparent 65%),
    radial-gradient(1000px 500px at 80% 25%, rgba(147, 51, 234, 0.04), transparent 60%),
    radial-gradient(800px 400px at 50% 70%, rgba(13, 148, 136, 0.03), transparent 55%),
    radial-gradient(900px 450px at 30% 80%, rgba(217, 119, 6, 0.03), transparent 60%),
    radial-gradient(700px 350px at 70% 40%, rgba(225, 29, 72, 0.02), transparent 55%),
    linear-gradient(180deg, var(--bg-main), var(--ocean-medium), var(--ocean-dark));
  background-attachment: fixed;
  position: relative;
}

/* Animated multi-color background effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(8, 145, 178, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.015) 0%, transparent 50%),
    radial-gradient(circle at 50% 30%, rgba(217, 119, 6, 0.015) 0%, transparent 50%);
  animation: waterFlow 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes waterFlow {
  0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
  50% { transform: translateY(-20px) scale(1.05); opacity: 0.8; }
}

/* ===== Layout ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-main);
  transition: transform 0.3s ease;
  text-decoration: none;
}

.logo-text {
  font-size: clamp(1.1em, 2vw, 1.3rem);
}

.logo:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.logo:visited {
  text-decoration: none;
}

.logo-img {
  width: 64px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(8, 145, 178, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(8, 145, 178, 0.3);
}

.main-nav {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  font-weight: 500;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  padding: 1px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  background: rgba(8, 145, 178, 0.12);
  color: var(--cyan-bright);
  transform: translateY(-2px);
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link.active {
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--teal));
  color: var(--text-dark);
  box-shadow: 0 8px 25px rgba(8, 145, 178, 0.25), 0 0 20px rgba(147, 51, 234, 0.15);
  font-weight: 600;
}

.nav-link.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(8, 145, 178, 0.4), 0 0 25px rgba(147, 51, 234, 0.3);
}

/* ===== Sections ===== */
.section {
  padding: 3rem 0;
  background: transparent;
  position: relative;
}

.section-alt {
  background: rgba(241, 245, 249, 0.9);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}

.section-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.5;
}

.section h1,
.section h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--cyan-bright), var(--purple-bright), var(--amber-bright), var(--emerald-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

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

.section h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.lead {
  color: var(--text-muted);
  max-width: 700px;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;

  /* Flood image background with water overlay */
  background-image:
    linear-gradient(
      rgba(248, 250, 252, 0.75),
      rgba(241, 245, 249, 0.8)
    ),
    url("assets/image/flood-bg.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, transparent, rgba(241, 245, 249, 0.7));
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 2fr 1.4fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--cyan-bright), var(--purple-bright), var(--amber-bright), var(--emerald-bright), var(--cyan-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 30px rgba(8, 145, 178, 0.3)) drop-shadow(0 0 20px rgba(147, 51, 234, 0.2));
}

.hero-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Hero glass panel with glow */
.hero-panel {
  background: var(--bg-glass-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-soft), 0 0 40px rgba(8, 145, 178, 0.15);
  backdrop-filter: blur(16px) saturate(180%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.06) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

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

.hero-panel:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft), 0 0 60px rgba(8, 145, 178, 0.25);
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

/* ===== Buttons ===== */
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--teal));
  color: var(--text-dark);
  box-shadow: 0 8px 25px rgba(8, 145, 178, 0.25), 0 0 20px rgba(147, 51, 234, 0.15);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(8, 145, 178, 0.4), 0 0 30px rgba(147, 51, 234, 0.3);
  filter: brightness(1.1);
}

.btn-outline {
  background: rgba(8, 145, 178, 0.08);
  color: var(--cyan-bright);
  border: 1.5px solid var(--cyan);
  box-shadow: 0 0 20px rgba(8, 145, 178, 0.12);
}

.btn-outline:hover {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.15), rgba(147, 51, 234, 0.12));
  border-color: var(--purple-bright);
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(147, 51, 234, 0.25), 0 0 20px rgba(8, 145, 178, 0.15);
  color: var(--cyan-bright);
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-glass-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px) saturate(180%);
  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(34, 211, 238, 0.1), transparent);
  transition: left 0.5s ease;
}

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

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.card:nth-child(1):hover {
  border-color: var(--cyan);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 0 30px rgba(8, 145, 178, 0.3);
}

.card:nth-child(2):hover {
  border-color: var(--purple);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 0 30px rgba(147, 51, 234, 0.3);
}

.card:nth-child(3):hover {
  border-color: var(--amber);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 0 30px rgba(217, 119, 6, 0.3);
}

.card:nth-child(4):hover {
  border-color: var(--emerald);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 0 30px rgba(5, 150, 105, 0.3);
}

.card:nth-child(5):hover {
  border-color: var(--rose);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 0 30px rgba(225, 29, 72, 0.3);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Different gradient colors for each card icon */
.card:nth-child(1) .card-icon {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 8px 20px rgba(8, 145, 178, 0.3);
}

.card:nth-child(2) .card-icon {
  background: linear-gradient(135deg, var(--purple), var(--violet));
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.3);
}

.card:nth-child(3) .card-icon {
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.3);
}

.card:nth-child(4) .card-icon {
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
}

.card:nth-child(5) .card-icon {
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.3);
}

.card:hover .card-icon {
  transform: rotate(5deg) scale(1.1);
}

.card:nth-child(1):hover .card-icon {
  box-shadow: 0 12px 30px rgba(8, 145, 178, 0.5);
}

.card:nth-child(2):hover .card-icon {
  box-shadow: 0 12px 30px rgba(147, 51, 234, 0.5);
}

.card:nth-child(3):hover .card-icon {
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.5);
}

.card:nth-child(4):hover .card-icon {
  box-shadow: 0 12px 30px rgba(5, 150, 105, 0.5);
}

.card:nth-child(5):hover .card-icon {
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.5);
}

.card-icon i {
  font-size: 1.5rem;
  color: var(--text-dark);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

/* Different colors for each card heading */
.card:nth-child(1) h3 {
  color: var(--cyan);
}

.card:nth-child(2) h3 {
  color: var(--purple);
}

.card:nth-child(3) h3 {
  color: var(--amber);
}

.card:nth-child(4) h3 {
  color: var(--emerald);
}

.card:nth-child(5) h3 {
  color: var(--rose);
}

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

.card .key-points li {
  color: var(--text-main);
}

/* ===== Dashboard Embed ===== */
.dashboard-wrapper {
  background: var(--bg-glass-light);
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-soft), 0 0 40px rgba(8, 145, 178, 0.15);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.dashboard-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.04) 0%, transparent 70%);
  animation: rotate 25s linear infinite;
  pointer-events: none;
}

.dashboard-wrapper iframe {
  width: 100%;
  height: 85vh;
  min-height: 600px;
  border: none;
  border-radius: calc(var(--radius-lg) - 8px);
  background: transparent;
  position: relative;
  z-index: 1;
}

.dashboard-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding: 0.75rem calc(1rem + 3px) 0.75rem 1rem;
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.06), rgba(147, 51, 234, 0.05));
  border-radius: 8px;
  position: relative;
}

.dashboard-note::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--purple), var(--amber));
  border-radius: 8px 0 0 8px;
}

/* ===== Lists ===== */
.key-points {
  padding-left: 1.1rem;
}

.key-points li {
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

/* ===== Footer ===== */
.site-footer {
  background: rgba(241, 245, 249, 0.95);
  border-top: 1px solid var(--border-soft);
  margin-top: 3rem;
  backdrop-filter: blur(16px);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.5;
}

.footer-inner {
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-inner p {
  margin: 0;
  color: var(--text-muted);
}

/* ===== Section CTA ===== */
.section-cta {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.06), rgba(147, 51, 234, 0.05), rgba(217, 119, 6, 0.04));
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--amber), var(--cyan));
  background-size: 200% 100%;
  animation: gradientShift 3s linear infinite;
}

.section-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-cta p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

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

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

.section > * {
  animation: fadeInUp 0.6s ease-out;
}

.card {
  animation: fadeInUp 0.6s ease-out;
}

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

.hero-text {
  animation: fadeInUp 0.8s ease-out;
}

.hero-panel {
  animation: fadeInUp 1s ease-out;
}

/* ===== Additional Visual Enhancements ===== */
.hero-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.hero-list li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(8, 145, 178, 0.15);
}

.hero-list li:last-child {
  border-bottom: none;
}

.hero-list strong {
  color: var(--cyan-bright);
  font-weight: 700;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) and (min-width: 769px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero {
    padding: 3rem 0;
    min-height: auto;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .main-nav {
    gap: 0.25rem;
    flex-wrap: wrap;
  }
  
  .nav-link {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
  }
  
  .logo {
    font-size: 0.95rem;
  }
  
  .logo-img {
    width: 48px;
  }
}

/* ===============================
   ANALYSIS PAGE – KEY INSIGHTS
   (Enhanced for readability)
   =============================== */

.section h2 {
  background: linear-gradient(135deg, var(--cyan-bright), var(--purple-bright), var(--amber-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  color: var(--text-main);
}

/* Override basic list */
.key-points {
  list-style: none;
  padding-left: 0;
  margin: 0.8rem 0 1.6rem;
}

.key-points li {
  position: relative;
  padding: 0.75rem 1rem 0.75rem 2.2rem;
  margin-bottom: 0.6rem;
  border-radius: 10px;
  color: var(--text-main);
  line-height: 1.55;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Different colors for each list item */
.key-points li:nth-child(odd) {
  background: rgba(8, 145, 178, 0.06);
  border-left: 4px solid var(--cyan);
}

.key-points li:nth-child(even) {
  background: rgba(147, 51, 234, 0.06);
  border-left: 4px solid var(--purple);
}

.key-points li::before {
  content: "💧";
  position: absolute;
  left: 0.8rem;
  top: 0.75rem;
  font-size: 1rem;
  filter: drop-shadow(0 0 3px currentColor);
}

/* Hover effect */
.key-points li:hover {
  transform: translateX(6px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.key-points li:nth-child(odd):hover {
  background: rgba(8, 145, 178, 0.12);
  border-left-color: var(--cyan-bright);
  box-shadow: 0 4px 15px rgba(8, 145, 178, 0.15);
}

.key-points li:nth-child(even):hover {
  background: rgba(147, 51, 234, 0.12);
  border-left-color: var(--purple-bright);
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.15);
}

/* Paragraph polish */
.section p {
  max-width: 850px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Lead text emphasis */
.lead {
  font-size: 1.05rem;
  max-width: 900px;
}

/* Key points inside cards */
.card .key-points {
  margin: 1rem 0 0;
}

.card .key-points li {
  padding: 0.6rem 0.8rem 0.6rem 2rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.8);
}

.card .key-points li::before {
  left: 0.6rem;
  top: 0.6rem;
  font-size: 0.9rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

/* Mobile tuning */
@media (max-width: 768px) {
  .key-points li {
    padding-left: 2rem;
  }
  
  .card .key-points li {
    padding-left: 1.8rem;
  }
}

/* ===============================
   SLIDESHOW / CAROUSEL
   =============================== */

.slideshow-intro {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.slideshow-container {
  position: relative;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 4rem;
}

.slideshow-wrapper {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}

.slideshow-card {
  display: none;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  max-width: 100%;
  margin: 0;
  flex: 0 0 100%;
}

/* Desktop: Show 2 cards side by side */
@media (min-width: 992px) {
  .slideshow-card {
    flex: 0 0 calc(50% - 0.75rem);
  }
  
  .slideshow-card.active {
    display: flex;
    flex-direction: column;
  }
  
  .slideshow-card.preview {
    display: flex;
    flex-direction: column;
    opacity: 0.4;
    transform: translateX(0) scale(0.96);
    pointer-events: none;
    filter: blur(1px);
  }
  
  .slideshow-wrapper {
    justify-content: center;
  }
}

.slideshow-card.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateX(0);
}

.slideshow-card.active.slide-next {
  animation: slideInFromRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slideshow-card.active.slide-prev {
  animation: slideInFromLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent grid hover effects on slideshow cards */
.slideshow-card:hover {
  transform: translateX(0) translateY(-5px);
}

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

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

.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: var(--text-dark);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(8, 145, 178, 0.3), 0 0 20px rgba(147, 51, 234, 0.25);
}

.slideshow-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 35px rgba(8, 145, 178, 0.4), 0 0 30px rgba(147, 51, 234, 0.3);
  background: linear-gradient(135deg, var(--cyan-bright), var(--purple-bright));
}

.slideshow-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.slideshow-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.slideshow-btn.disabled:hover {
  transform: translateY(-50%) scale(1);
  box-shadow: 0 8px 25px rgba(8, 145, 178, 0.3), 0 0 20px rgba(147, 51, 234, 0.25);
}

.slideshow-btn-prev {
  left: 0;
}

.slideshow-btn-next {
  right: 0;
}

.slideshow-btn i {
  transition: transform 0.3s ease;
}

.slideshow-btn-prev:hover i {
  transform: translateX(-3px);
}

.slideshow-btn-next:hover i {
  transform: translateX(3px);
}

/* Slideshow Controls */
.slideshow-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slideshow-counter {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: rgba(8, 145, 178, 0.06);
  border-radius: 20px;
  border: 1px solid var(--border-soft);
}

.slideshow-counter span:first-child {
  color: var(--cyan-bright);
  font-size: 1.1rem;
}

/* Indicators */
.slideshow-indicators {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(8, 145, 178, 0.25);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.indicator:hover {
  background: rgba(8, 145, 178, 0.4);
  transform: scale(1.2);
}

.indicator.active {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  width: 32px;
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(8, 145, 178, 0.4);
}

/* Tablet adjustments */
@media (max-width: 991px) and (min-width: 769px) {
  .slideshow-container {
    max-width: 800px;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .slideshow-container {
    padding: 0 3rem;
    max-width: 100%;
  }
  
  .slideshow-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .slideshow-wrapper {
    min-height: 350px;
    gap: 0;
  }
  
  .slideshow-card {
    flex: 0 0 100%;
  }
  
  .slideshow-controls {
    gap: 0.75rem;
  }
  
  .slideshow-counter {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
  
  .slideshow-indicators {
    gap: 0.5rem;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
  }
  
  .indicator.active {
    width: 24px;
  }
}

@media (max-width: 480px) {
  .slideshow-container {
    padding: 0 2.5rem;
  }
  
  .slideshow-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}

/* ===============================
   BACK TO TOP – TOOLTIP
   =============================== */

#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--amber));
  background-size: 200% 200%;
  animation: float 3s ease-in-out infinite, gradientShift 4s ease infinite;
  color: var(--text-dark);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(8, 145, 178, 0.3), 0 0 20px rgba(147, 51, 234, 0.25);
  z-index: 50;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

#backToTop:hover {
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 12px 35px rgba(8, 145, 178, 0.4), 0 0 30px rgba(147, 51, 234, 0.4), 0 0 20px rgba(217, 119, 6, 0.3);
}

#backToTop svg {
  transition: transform 0.3s ease;
}

#backToTop:hover svg {
  transform: translateY(-2px);
}

/* Tooltip text */
.back-tooltip {
  position: absolute;
  right: 65px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(2px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
}

/* Visible state (JS controlled) */
.back-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}
