/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 🌿 Global Font */
body {
  font-family: 'Poppins', sans-serif;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;

  /* 🌿 Green Theme */
  background: linear-gradient(135deg, #6BB77B, #4E9E60);

  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.ngo-logo {
  height: 70px;
  width: auto;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.logo span {
  font-size: 20px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
  white-space: nowrap;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

/* 🌿 Clean Hover Effect */
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #EAF7EE;
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #EAF7EE;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
}

/* Mobile */
@media (max-width: 768px) {
  .logo span {
    font-size: 16px;
    white-space: normal;
  }

  .ngo-logo {
    height: 40px;
    width: 40px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;

    /* 🌿 Same Green Theme */
    background: linear-gradient(135deg, #6BB77B, #4E9E60);

    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    display: none;
  }

  .nav-links a {
    padding: 10px 0;
  }

  .nav-links.active {
    display: flex;
  }
}



/* ================= LOADER ================= */

#loader{
    position:fixed;
    inset:0;
    background:#ffffff;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:99999;
    transition:opacity .5s ease, visibility .5s ease;
}

#loader.hide{
    opacity:0;
    visibility:hidden;
}

.loader-content{
    text-align:center;
}

.loader-logo{
    width:110px;
    animation:pulse 1.2s ease-in-out infinite alternate;
}

.loader-content p{
    margin-top:15px;
    font-size:16px;
    color:#4E9E60;
    font-weight:500;
}

@keyframes pulse{

    from{
        transform:scale(.95);
        opacity:.7;
    }

    to{
        transform:scale(1.05);
        opacity:1;
    }

}