
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body {
    width: 100%;
}


header {
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}



/* Navbar styling */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: white;
    border-bottom: 1px solid #ddd;
}

.navbar-logo img {
    height: 40px;
    padding-left: 30px;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin-left: 300px;
}

.navbar-links li {
    position: relative;
}

.navbar-links a {
    text-decoration: none;
    color: #333;
    padding: 8px 5px;
    font-size: 16px; /*change font size of home, resources, water footprint, time for action, about us*/
    position: relative;
    cursor: pointer;
}

.navbar-links .dropdown a {
    display: flex;
    align-items: center;
}

.navbar-links .dropdown i {
    margin-left: 3px; /* Adjust gap between text and dropdown arrow */
    font-size: 10px;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    /* padding: 10px 0; */
    list-style: none;
    border: 1px solid #ddd;
    border-radius: 3px;
    top: 30px;
    left: 0;
    z-index: 1000;
    min-width: 180px;
}

.dropdown-menu li {
    padding: 5px 15px;
}

.dropdown-menu li a {
    text-decoration: none;
    color: #333;
    display: block;
}

.dropdown-menu li:hover{
    background-color: rgb(188, 234, 253);
}
/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Search bar styling */
.navbar-search {
    display: flex;
    align-items: center;
}

/* Search bar styling */
.navbar-search input[type="text"] {
    padding: 5px;
    border: 1px solid #ddd; 
    border-radius: 3px 0 0 3px;
    outline: none;
    transition: border-color 0.3s ease;
}

.navbar-search input[type="text"]:focus {
    border-color: #b4b1b1; /* Enforce lighter color on focus */
}


.navbar-search button {
    padding: 5px 10px;
    background-color: #007BFF;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
}

.navbar-search i {
    font-size: 16px;
}


/***********************Main Content**********************************/

.mainContent {
    position: relative;
    width: 100%;
    height: 90vh;
    background-image: url('images/homepage.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;

    /* Flexbox properties for centering */
    display: flex;
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Center items vertically */
    align-items: center; /* Center items horizontally */
}

.headingmain {
    color: white;
    text-align: center;
    font-size: 35px;
    margin-top: 10px;
}

.para {
    color: white;
    text-align: center;
    font-size: 25px;
    margin-left: 150px;
    margin-right: 150px;
}

/* Style the text inside the button */
.content-button-link {
    text-decoration: none;
    color: white;
  }
  
  .water-drop-wrapper {
    position: relative;
    display: inline-block;
    transform: rotate(45deg); /* Rotate the droplet permanently */
    width: 150px;
    height: 150px;
  }
  
  .water-drop-button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00bcd4 0%, #03a9f4 100%);
    color: white;
    font-size: 10px;
    text-align: center;
    border-radius: 0 50% 50%;
    clip-path: ellipse(1000% 0%, 100% 75%, 50% 100%, 0% 75%);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    animation: water-drop-bounce 2s infinite;
    transform: rotate(0deg);
  }
  
  /* Hover effect */
  .water-drop-button:hover {
    background: linear-gradient(135deg, #0097a7 0%, #0288d1 100%);
  }
  
  /* Bouncing Animation */
  @keyframes water-drop-bounce {
    0%, 100% {
      transform: rotate(0deg) translateY(0);
    }
    50% {
      transform: rotate(0deg) translateY(0);
    }
  }
  
  /* Style text content */
  .water-drop-button span {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
    padding-top: 2px;
    padding-left: 2px;
    padding-right: 18px;
    margin-top: -20px;
    transform: rotate(-45deg);
  }




/****************************First Content*******************************************/
.FirstContent {
    position: relative;
    width: 100%;
    height: 50vh;
    background-color: skyblue;
    overflow: hidden; /* Ensures waves don't overflow the section */
    display: flex;
    justify-content: space-between;
    gap: 1px;
}



/* Water wave container */
.wave-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 35vh;
    overflow: hidden; /* Hide excess parts of the wave outside the container */
}

/* The two wave images */
.wave {
    position: absolute;
    bottom: 0;
    width: 200%; /* Make it twice as wide to allow for continuous movement */
    height: 100%;
    background: url('images/wave1.jpg') repeat-x;
    animation: wave-animation 3s linear infinite; /* Adjust speed as needed */
}

/* Wave animation */
@keyframes wave-animation {
    0% {
        transform: translateX(0); /* Start at the initial position */
    }
    100% {
        transform: translateX(-50%); /* Move left by 50% of the width for seamless effect */
    }
}

.gradient-blue-green {
    height: 40px;
    width: 100%;
    background: linear-gradient(to bottom, skyblue, #CDEAC0);
}



.card1 {
    margin-left: 150px;         /* reduced from 80px */
    margin-top: 37px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    background-color: white;
    width: 350px;
    height: 375px;
    z-index: 1;
}

.card2 {
    margin-top: 37px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    background-color: white;
    width: 350px;
    height: 375px;
    z-index: 1;
}

.card3 {
    margin-top: 37px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-right: 135px;       /* reduced from 80px */
    background-color: white;
    width: 350px;
    height: 375px;
    z-index: 1;
}


/********************* Second Content (Stats Section) **************************************/

.secondContent {
  position: relative;
  width: 100%;
  height: 60vh;
  background-color: #e6f4ea; /* very soft mint green */
  display: flex;
  justify-content: space-between;
  gap: 1px;
}

.stats-section {
  background-color: #cdeac0; /* light moss green */
  padding: 60px 20px;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  color: #1e5631; /* deep forest green */
  margin-bottom: 40px;
}

.stats-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.stat-card {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px 20px;
  width: 400px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background-color: #e6f4ea; /* hover = match background */
}

.stat-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.stat-card h3 {
  font-size: 1.8rem;
  color: #2e8b57; /* sea green */
  margin: 0;
}

.stat-card p {
  font-size: 1rem;
  color: #333;
  margin-top: 10px;
}


/*************************** Third Content (Myth-Busting) *********************************/

.ThirdContent {
  position: relative;
  width: 100%;
  height: 60vh;
  background-color: #fff9e5; /* soft warm yellow */
}

.myth-fact-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #f7f1bc; /* matching outer wrapper */
  background: linear-gradient(to bottom,  #cdeac0 0%, #fefae0 100%);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: #11110d; /* golden olive */
}

.section-subtitle {
  font-size: 1rem;
  margin-bottom: 40px;
  color: #6e6e6e;
}

.flip-card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.flip-card-front p,
.flip-card-back p {
  font-size: 1.15rem;
  font-weight: 500;
}

.flip-card {
  background-color: transparent;
  width: 400px;
  height: 180px;
  perspective: 1000px;
  border-radius: 20px;
  padding: 2px 2px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.flip-card-front {
  background-color: white; /* soft cream */
  color: black;
}

.flip-card-back {
  background-color: #fefae0; /* pale yellow */
  color: #0f0e0c;
  transform: rotateY(180deg);
}

@media (max-width: 768px) {
  .flip-card {
    width: 90%;
  }
}



/* Footer styles */
footer {
    background-color: #fff;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #ccc;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    margin: 10px;
    min-width: 150px;
    text-align: left;
    padding-left: 10px;
}

.footer-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #000;
    text-decoration: none;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.footer-social {
    margin: 20px 0;
}

.footer-social a {
    margin: 0 10px;
    color: #333;
    font-size: 18px;
    text-decoration: none;
}

.footer-social a:hover {
    color: #007bff;
}

.footer-bottom {
    border-top: 1px solid #ccc;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

