:root {
  --primary: #00b4d8;
  --primary-dark: #0077b6;
  --primary-light: #90e0ef;
  --primary-very-light: #caf0f8;
  --accent: #ff9e00;
  --text-dark: #1d3557;
  --text-light: #457b9d;
  --background: #f8f9fa;
  --white: #ffffff;
  --black: #000000;
  --success: #06d6a0;
  --error: #ef476f;
  --transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  background-color: var(--background);
  overflow-x: hidden;
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
}

h1, h2, h3, h4 {
  font-family: 'Abril Fatface', cursive;
  font-weight: normal;
  line-height: 1.2;
}

h1 {
  font-size: 4.5rem;
}

h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.1rem;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

button {
  cursor: pointer;
  font-family: 'Josefin Sans', sans-serif;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

.highlight {
  color: var(--primary);
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 3.5rem;
}

/* Cursor Ripple Effect */
.cursor-ripple {
  position: fixed;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width 0.3s, height 0.3s, opacity 0.3s;
  opacity: 0;
}

/* Water Overlay */
.water-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.1;
}

#waterCanvas {
  width: 100%;
  height: 100%;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
}

.droplet-logo {
  position: relative;
  width: 40px;
  height: 40px;
  margin-right: 1rem;
}

.droplet {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 30px;
  background-color: var(--primary);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: droplet-pulse 3s infinite;
}

.ripple {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 10px;
  background-color: var(--primary-light);
  border-radius: 50%;
  animation: ripple-pulse 3s infinite;
}

@keyframes droplet-pulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.1);
  }
}

@keyframes ripple-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.5;
  }
}

.logo-text {
  font-family: 'Abril Fatface', cursive;
  font-size: 1.5rem;
  color: var(--primary-dark);
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.1rem;
  color: var(--text-dark);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
}

.drop-menu {
  width: 30px;
  height: 25px;
  position: relative;
  cursor: pointer;
}

.drop-menu span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--primary-dark);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: var(--transition);
}

.drop-menu span:nth-child(1) {
  top: 0px;
}

.drop-menu span:nth-child(2) {
  top: 10px;
}

.drop-menu span:nth-child(3) {
  top: 20px;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--white) 0%, var(--primary-very-light) 100%);
}

.hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 2;
}

.hero-title {
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: word-appear 0.5s forwards;
}

.word:nth-child(1) { animation-delay: 0.1s; }
.word:nth-child(2) { animation-delay: 0.3s; }
.word:nth-child(3) { animation-delay: 0.5s; }
.word:nth-child(4) { animation-delay: 0.7s; }
.word:nth-child(5) { animation-delay: 0.9s; }

@keyframes word-appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fade-in 1s forwards 1.2s;
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
  opacity: 0;
  animation: fade-in 1s forwards 1.5s;
}

.drop-scroll {
  width: 30px;
  height: 50px;
  border: 2px solid var(--primary);
  border-radius: 15px;
  margin-bottom: 10px;
  position: relative;
}

.drop {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: drop-scroll 2s infinite;
}

@keyframes drop-scroll {
  0% {
    top: 5px;
    opacity: 1;
  }
  90% {
    top: 35px;
    opacity: 0;
  }
  100% {
    top: 5px;
    opacity: 0;
  }
}

.water-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30vh;
  overflow: hidden;
}

.water-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 180, 216, 0) 0%, rgba(0, 180, 216, 0.8) 100%);
  transform: translateY(100%);
  animation: water-rise 2s forwards 1.5s;
}

@keyframes water-rise {
  to {
    transform: translateY(70%);
  }
}

.water-stats {
  position: absolute;
  top: 20%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.stat {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 1rem 2rem;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  animation: stat-appear 1s forwards 2s;
}

@keyframes stat-appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.number {
  font-family: 'Abril Fatface', cursive;
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.label {
  font-family: 'Josefin Sans', sans-serif;
  color: var(--text-light);
}

/* Story Section */
.story-section {
  padding: 100px 5%;
  position: relative;
  background-color: var(--white);
}

.story-path {
  display: flex;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto 5rem;
  position: relative;
}

.path-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-light);
  transform: translateY(-50%);
  z-index: 1;
}

.path-point {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.point-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--white);
  border: 2px solid var(--primary-light);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.path-point.active .point-marker {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: scale(1.3);
}

.point-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text-light);
  transition: var(--transition);
}

.path-point.active .point-label {
  color: var(--primary-dark);
  font-weight: 600;
}

.story-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  min-height: 400px;
}

.story-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 5%;
  opacity: 0;
  transform: translateX(50px);
  transition: var(--transition);
  pointer-events: none;
}

.story-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.story-text {
  flex: 1;
}

.story-visual {
  flex: 1;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Story Visuals */
.dry-land {
  width: 300px;
  height: 200px;
  background-color: #e9c46a;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.crack {
  position: absolute;
  background-color: #d4a650;
  height: 3px;
}

.crack:nth-child(1) {
  top: 30%;
  left: 10%;
  width: 80%;
  transform: rotate(5deg);
}

.crack:nth-child(2) {
  top: 50%;
  left: 20%;
  width: 60%;
  transform: rotate(-8deg);
}

.crack:nth-child(3) {
  top: 70%;
  left: 5%;
  width: 90%;
  transform: rotate(3deg);
}

.mission-visual {
  position: relative;
  width: 300px;
  height: 300px;
}

.water-drop-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
}

.water-drop {
  position: absolute;
  width: 30px;
  height: 45px;
  background-color: var(--primary);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0;
  animation: drop-fall 3s infinite;
}

.water-drop:nth-child(1) {
  left: 30%;
  animation-delay: 0s;
}

.water-drop:nth-child(2) {
  left: 50%;
  animation-delay: 1s;
}

.water-drop:nth-child(3) {
  left: 70%;
  animation-delay: 2s;
}

@keyframes drop-fall {
  0% {
    top: 0;
    opacity: 1;
    transform: scale(1);
  }
  80% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    top: 80%;
    opacity: 0;
    transform: scale(0.5);
  }
}

.community-circle {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 30px;
  background-color: var(--primary-light);
  border-radius: 50%;
  animation: circle-pulse 3s infinite;
}

@keyframes circle-pulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateX(-50%) scale(1.2);
    opacity: 0.5;
  }
}

.solution-visual {
  position: relative;
  width: 300px;
  height: 300px;
}

.tech-element {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 80px;
  height: 80px;
  background-color: var(--primary-dark);
  border-radius: 10px;
  transform: rotate(45deg);
  animation: tech-pulse 3s infinite;
}

.community-element {
  position: absolute;
  bottom: 20%;
  right: 20%;
  width: 80px;
  height: 80px;
  background-color: var(--accent);
  border-radius: 50%;
  animation: community-pulse 3s infinite;
}

.connection-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 3px;
  background-color: var(--primary-light);
  transform: translate(-50%, -50%) rotate(45deg);
}

.connection-line::before,
.connection-line::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary);
}

.connection-line::before {
  left: -5px;
}

.connection-line::after {
  right: -5px;
}

@keyframes tech-pulse {
  0%, 100% {
    transform: rotate(45deg) scale(1);
  }
  50% {
    transform: rotate(45deg) scale(1.1);
  }
}

@keyframes community-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.impact-ripples {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ripple-ring {
  position: absolute;
  border: 2px solid var(--primary);
  border-radius: 50%;
  opacity: 0;
  animation: ripple-expand 3s infinite;
}

.ripple-ring:nth-child(1) {
  width: 50px;
  height: 50px;
  animation-delay: 0s;
}

.ripple-ring:nth-child(2) {
  width: 100px;
  height: 100px;
  animation-delay: 1s;
}

.ripple-ring:nth-child(3) {
  width: 150px;
  height: 150px;
  animation-delay: 2s;
}

@keyframes ripple-expand {
  0% {
    transform: scale(0);
    opacity: 0.8;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.story-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--primary-dark);
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.nav-btn:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* Add styles for story cards and images */
.story-card {
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  flex: 0 0 300px;
  scroll-snap-align: center;
}

.story-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-details {
  padding: 1.5rem;
}

.story-attribution {
  font-style: italic;
  color: var(--text-light);
  margin-top: 1rem;
}

/* Impact Section */
.impact-section {
  padding: 100px 5%;
  background-color: var(--background);
  position: relative;
  overflow: hidden;
}

.impact-visualization {
  display: flex;
  flex-wrap: wrap;
  gap: 5%;
  max-width: 1200px;
  margin: 0 auto 5rem;
}

.water-level-container {
  flex: 1;
  min-width: 300px;
  height: 400px;
  position: relative;
  border: 3px solid var(--primary-light);
  border-radius: 20px;
  overflow: hidden;
}

.water-level {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, rgba(0, 180, 216, 0.5) 0%, rgba(0, 119, 182, 0.8) 100%);
  transition: height 2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.water-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 10px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%2300b4d8" fill-opacity="0.5" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-repeat: repeat-x;
  animation: wave-move 10s linear infinite;
}

@keyframes wave-move {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.water-markers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.marker {
  position: absolute;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
}

.marker[data-level="25"] {
  bottom: 25%;
}

.marker[data-level="50"] {
  bottom: 50%;
}

.marker[data-level="75"] {
  bottom: 75%;
}

.marker[data-level="100"] {
  bottom: 100%;
}

.marker-line {
  flex: 1;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
}

.marker-label {
  padding: 0 10px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.impact-stats {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  cursor: pointer;
}

.stat-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--primary-very-light);
  display: flex;
  justify-content: center;
  align-items: center;
}

.people-icon, .projects-icon, .countries-icon {
  position: relative;
  width: 40px;
  height: 40px;
}

.person {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary-dark);
}

.person::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 15px;
  background-color: var(--primary-dark);
}

.person:nth-child(1) {
  top: 0;
  left: 0;
}

.person:nth-child(2) {
  top: 0;
  right: 0;
}

.person:nth-child(3) {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.well {
  position: relative;
  width: 30px;
  height: 20px;
  background-color: var(--primary-dark);
  border-radius: 5px 5px 0 0;
}

.well::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 15px;
  background-color: var(--primary-dark);
}

.well::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 5px;
  background-color: var(--primary-dark);
  border-radius: 5px;
}

.globe {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--primary-dark);
  position: relative;
  overflow: hidden;
}

.globe::before, .globe::after {
  content: '';
  position: absolute;
  background-color: var(--primary-very-light);
}

.globe::before {
  top: 50%;
  left: -5px;
  width: 40px;
  height: 2px;
  transform: translateY(-50%);
}

.globe::after {
  top: -5px;
  left: 50%;
  width: 2px;
  height: 40px;
  transform: translateX(-50%);
}

.stat-info {
  flex: 1;
}

.stat-number {
  font-family: 'Abril Fatface', cursive;
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: 'Josefin Sans', sans-serif;
  color: var(--text-light);
}

.impact-stories {
  max-width: 1000px;
  margin: 0 auto;
}

.story-carousel {
  display: flex;
  gap: 30px;
  padding: 20px 0;
  position: relative;
}

.story-carousel {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  position: relative;
}

.story-carousel::-webkit-scrollbar {
  display: none;
}

.carousel-controls {
  display: none; /* Hidden by default for desktop */
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
  position: relative;
  z-index: 10;
}

.carousel-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--white);
  border: 2px solid var(--primary-light);
  color: var(--primary-dark);
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  cursor: pointer;
}

.carousel-btn:hover {
  transform: translateY(-3px);
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  background-color: var(--background);
  border-color: var(--background);
  color: var(--text-light);
  box-shadow: none;
}

.story-card {
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  flex: 1;
}

/* Make carousel controls visible and story cards properly sized on tablet */
@media (max-width: 992px) {
  .carousel-controls {
    display: flex;
  }
  
  .story-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  
  .story-carousel::-webkit-scrollbar {
    display: none;
  }
  
  .story-card {
    flex: 0 0 320px;
    max-width: 320px;
    margin-right: 20px;
    scroll-snap-align: start;
  }
}

/* Further adjustments for mobile */
@media (max-width: 768px) {
  .story-card {
    flex: 0 0 85%;
    max-width: 85%;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .story-card {
    flex: 0 0 90%;
    max-width: 90%;
  }
}

/* Add carousel navigation buttons */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
  position: relative;
  z-index: 10;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--primary-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  position: relative;
  z-index: 20;
  border: 2px solid var(--primary-light);
  cursor: pointer;
}

.carousel-btn:hover {
  transform: translateY(-3px);
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  background-color: var(--background);
  border-color: var(--background);
  color: var(--text-light);
  box-shadow: none;
}

.carousel-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary-light);
  transition: var(--transition);
}

.carousel-dot.active {
  background-color: var(--primary);
  transform: scale(1.3);
}

/* Donate Section */
.donate-section {
  padding: 100px 5%;
  background-color: var(--white);
  position: relative;
}

.donation-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.donation-impact, .donation-form {
  flex: 1;
  min-width: 300px;
}

.impact-slider {
  margin-bottom: 3rem;
  position: relative;
}

input[type="range"] {
  width: 100%;
  background: transparent;
  margin-bottom: 1rem;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 10px;
  background: linear-gradient(to right, var(--primary-light), var(--primary));
  border-radius: 10px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 25px;
  width: 25px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--primary);
  margin-top: -8px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input[type="range"]:focus {
  outline: none;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 0.9rem;
}

.water-drop-visual {
  position: relative;
  height: 200px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.drop-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mega-drop {
  width: 100px;
  height: 150px;
  background-color: var(--primary);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: mega-drop-pulse 3s infinite;
}

.drop-shadow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  filter: blur(5px);
  animation: shadow-pulse 3s infinite;
}

@keyframes mega-drop-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1) translateY(-10px);
  }
}

@keyframes shadow-pulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateX(-50%) scale(1.2);
    opacity: 0.2;
  }
}

.impact-text {
  text-align: center;
}

.impact-text h3 {
  margin-bottom: 1.5rem;
}

.donation-amount {
  color: var(--primary);
}

.impact-metrics {
  display: flex;
  justify-content: space-around;
  gap: 1.5rem;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-number {
  font-family: 'Abril Fatface', cursive;
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.metric-label {
  font-family: 'Josefin Sans', sans-serif;
  color: var(--text-light);
}

.donation-form {
  flex: 1;
  min-width: 300px;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--primary-very-light);
}

.tab-btn {
  flex: 1;
  padding: 1rem;
  font-size: 1.1rem;
  color: var(--text-light);
  background: none;
  border: none;
  position: relative;
  transition: var(--transition);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.tab-btn.active {
  color: var(--primary-dark);
}

.tab-btn.active::after {
  width: 100%;
}

.donation-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.donation-option {
  padding: 1rem;
  font-size: 1.1rem;
  color: var(--text-dark);
  background-color: var(--background);
  border-radius: 10px;
  transition: var(--transition);
  position: relative;
}

.donation-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.donation-option.active {
  background-color: var(--primary);
  color: var(--white);
}

.donation-option.custom {
  display: flex;
  flex-direction: column;
}

.custom-amount {
  margin-top: 0.5rem;
  padding: 0.5rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  text-align: center;
}

.donation-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.donate-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  color: var(--white);
  background-color: var(--primary);
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  margin-bottom: 1rem;
}

.donate-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wave-icon {
  width: 20px;
  height: 10px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="1" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-repeat: no-repeat;
  background-size: cover;
}

.donation-secure {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Volunteer Section */
.volunteer-section {
  padding: 100px 5%;
  background-color: var(--background);
  position: relative;
}

.volunteer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.volunteer-visual {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hands-visual {
  position: relative;
  width: 300px;
  height: 300px;
}

.hand {
  position: absolute;
  width: 80px;
  height: 120px;
  background-color: #f8d5b7;
  border-radius: 20px 20px 0 0;
}

.left-hand {
  bottom: 0;
  left: 20%;
  transform: rotate(-20deg);
}

.right-hand {
  bottom: 0;
  right: 20%;
  transform: rotate(20deg);
}

.water-pool {
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 30px;
  background-color: var(--primary-light);
  border-radius: 50%;
  animation: pool-pulse 3s infinite;
}

@keyframes pool-pulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateX(-50%) scale(1.2);
    opacity: 0.5;
  }
}

.volunteer-form-container {
  flex: 1;
  min-width: 300px;
}

.volunteer-form {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-field {
  position: relative;
  margin-bottom: 2rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 0.5rem;
  font-size: 0.95rem;
  border: none;
  border-bottom: 2px solid var(--primary-light);
  background-color: transparent;
  transition: var(--transition);
  color: var(--text-dark);
  position: relative;
  z-index: 2;
}

/* Fix for labels to ensure proper positioning */
.field-label {
  position: absolute;
  top: 0.8rem;
  left: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-light);
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 1;
  transform-origin: left top;
  background-color: transparent;
}

/* Move label above input when focused or has value */
.form-field input:focus ~ .field-label,
.form-field select:focus ~ .field-label,
.form-field textarea:focus ~ .field-label,
.form-field.has-value .field-label {
  transform: translateY(-130%) scale(0.85);
  color: var(--primary);
}

/* Special handling for the select element */
.form-field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23457b9d' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 24px;
  padding-right: 2rem;
}

.form-field select:focus {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%2300b4d8' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
}

/* Form validation styling */
.form-field input:invalid,
.form-field select:invalid,
.form-field textarea:invalid {
  box-shadow: none; /* Remove default red border */
}

.form-field input:focus:invalid,
.form-field select:focus:invalid,
.form-field textarea:focus:invalid {
  border-color: var(--error);
}

.form-field input:focus:valid,
.form-field select:focus:valid,
.form-field textarea:focus:valid {
  border-color: var(--success);
}

/* Show validation messages */
.validation-message {
  display: none;
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 0.3rem;
  position: absolute;
  bottom: -1.2rem;
  left: 0;
}

.form-field input:focus:invalid ~ .validation-message,
.form-field select:focus:invalid ~ .validation-message,
.form-field textarea:focus:invalid ~ .validation-message {
  display: block;
}

/* Button styling enhancement */
.submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  color: var(--white);
  background-color: var(--primary);
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  margin-top: 1rem;
  cursor: pointer;
  border: none;
}

.submit-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.submit-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile-specific fixes */
@media (max-width: 768px) {
  .form-field {
    margin-bottom: 2.5rem; /* Extra space for validation messages */
  }

  .form-field select,
  .form-field input,
  .form-field textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    border-radius: 0; /* iOS border-radius fix */
  }
  
  /* Fix for iOS select positioning */
  .form-field select {
    background-position: calc(100% - 10px) center;
    min-height: 44px; /* Better tap target */
    position: relative; /* Helps with z-index issues */
    opacity: 1 !important; /* Ensure visibility */
  }
  
  /* Fix label positioning in iOS */
  .form-field select:focus ~ .field-label,
  .form-field select:not([value=""]) ~ .field-label,
  .form-field.has-value .field-label {
    transform: translateY(-130%) scale(0.85);
    color: var(--primary);
  }
}

/* Better empty option handling */
.form-field select option[value=""] {
  display: none; /* Hide empty option once selected */
}

.message-field {
  height: 150px;
}

.message-field textarea {
  height: 100%;
  resize: none;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  color: var(--white);
  background-color: var(--primary);
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.submit-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  position: relative;
  padding: 100px 5% 30px;
  background-color: var(--text-dark);
  color: var(--white);
  overflow: hidden;
}

.footer-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
}

.wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background-repeat: repeat-x;
}

.wave1 {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%2300b4d8" fill-opacity="0.3" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>');
  animation: wave-move 15s linear infinite;
  z-index: 3;
}

.wave2 {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%2390e0ef" fill-opacity="0.2" d="M0,64L48,80C96,96,192,128,288,128C384,128,480,96,576,106.7C672,117,768,171,864,176C960,181,1056,139,1152,122.7C1248,107,1344,117,1392,122.7L1440,128L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>');
  animation: wave-move 20s linear infinite;
  z-index: 2;
}

.wave3 {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23caf0f8" fill-opacity="0.1" d="M0,256L48,240C96,224,192,192,288,181.3C384,171,480,181,576,186.7C672,192,768,192,864,170.7C960,149,1056,107,1152,112C1248,117,1344,171,1392,197.3L1440,224L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>');
  animation: wave-move 25s linear infinite;
  z-index: 1;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 5%;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-logo {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-links {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 5%;
}

.link-group {
  flex: 1;
  min-width: 150px;
}

.link-group h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-light);
}

.link-group ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.link-group a {
  color: var(--white);
  opacity: 0.7;
  transition: var(--transition);
}

.link-group a:hover {
  opacity: 1;
  color: var(--primary-light);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
  h1 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  .hero-section {
    padding: 150px 5% 100px;
  }
  
  .story-slide {
    flex-direction: column;
    gap: 2rem;
  }
  
  .story-text {
    order: 2;
  }
  
  .story-visual {
    order: 1;
  }
  
  .donation-container {
    flex-direction: column;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  header {
    padding: 1rem 1.5rem;
    width: 100vw;
  }
  
  .nav-links {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero-title {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .story-path {
    display: none;
  }
  
  .story-content {
    min-height: auto;
    position: relative;
    margin: 0 auto;
    width: 100%;
  }
  
  .story-slide {
    position: relative;
    opacity: 1;
    transform: none;
    margin-bottom: 3rem;
    flex-direction: column;
    width: 100%;
    left: auto;
    top: auto;
    display: none;
  }
  
  .story-slide.active {
    display: flex;
  }
  
  .story-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
  }
  
  .nav-btn {
    width: 45px;
    height: 45px;
    z-index: 10;
    position: relative;
  }
  
  .impact-visualization {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .impact-slider {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .slider-labels {
    justify-content: space-between;
    padding: 0 5px;
  }
  
  .slider-labels span {
    font-size: 0.8rem;
  }
  
  .slider-labels span {
    font-size: 0.8rem;
  }
  
  .donation-options {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .form-tabs {
    margin-bottom: 1.5rem;
  }
  
  .donation-cta {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .donate-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .volunteer-container {
    flex-direction: column;
    gap: 3rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  body, html {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .hero-section, 
  .story-section, 
  .impact-section, 
  .donate-section, 
  .volunteer-section,
  footer {
    width: 100vw;
    max-width: 100%;
    padding-left: 5%;
    padding-right: 5%;
    box-sizing: border-box;
  }

  .carousel-controls {
    margin: 2rem 0;
    gap: 1.2rem;
  }
  
  .carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .story-card {
    flex: 0 0 85%;
    max-width: 85%;
    margin-right: 15px;
  }
  
  .story-image {
    height: 180px;
  }
  
  .story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .form-field select,
  .form-field input,
  .form-field textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.8rem 0.5rem;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Ensure select dropdown arrow appears correctly */
  .form-field select {
    padding-right: 30px;
  }
  
  /* Make labels behave correctly with select on mobile */
  .form-field.has-value .field-label,
  .form-field select:focus + .field-label {
    top: -0.5rem;
    font-size: 0.8rem;
    color: var(--primary);
  }

  /* Adjust height for better tap targets on mobile */
  .form-field select {
    height: auto;
    min-height: 44px;
    max-height: none;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }
  
  /* Ensure arrow is visible */
  .form-field select {
    background-position: calc(100% - 10px) center;
    background-size: 20px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .story-visual {
    height: 250px;
    width: 100%;
  }
  
  .story-text {
    width: 100%;
  }
  
  .story-nav {
    gap: 1rem;
  }
  
  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .donation-options {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .custom-amount {
    width: 100%;
  }
  
  .impact-metrics {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
  
  .metric {
    width: 100%;
    padding: 1rem;
  }
  
  .mega-drop {
    width: 80px;
    height: 120px;
  }
  
  .drop-shadow {
    width: 80px;
  }
  
  .water-drop-visual {
    height: 150px;
  }

  .form-field select,
  .form-field input,
  .form-field textarea {
    padding: 0.7rem 0.4rem;
  }
  
  .form-field select {
    padding-right: 25px;
  }
}

/* Add a JavaScript class for filled inputs to handle label movement */
.form-field.has-value .field-label {
  top: -0.5rem;
  font-size: 0.8rem;
  color: var(--primary);
}