/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  overflow-x: hidden;
}

.container {
  display: flex;
  align-items: center;
  /* padding: 1rem 5%; */
}

.logo img {
    height: 5rem;
    width: 5rem;
    position: sticky;
    z-index: 10000;
    margin-left: 3rem;
    margin-top: 0rem;
}

/* Header and Navbar Styling */
header {
  background: linear-gradient(to right, rgba(255, 0, 0, 0.5), rgba(0, 0, 255, 0.5));
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  /* margin-top: -84px; */
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 5%;

}

.nav {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin-top: 1rem;
}

.nav li {
  position: relative;
}

.nav a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  transition: color 0.3s;
}

.nav a:hover {
  color: black;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: white;
  color: black;
  list-style: none;
  padding: 0.5rem;
  top: 100%;
  left: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav li:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  color: rgb(255, 255, 255);
  font-size: 0.9rem;
}

.donate-btn {
  padding: 0.5rem 1rem;
  background: #00ff37;
  color: #002b85;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  margin-left: 2rem;
  margin-top: -0.5rem;      
}

.donate-btn:hover {
  background: #002b85;
  color: #00ff37;
}

/* Responsive Design */
/* @media (max-width: 768px) {
  nav {
    flex-direction: column;
  }

  .nav {
    flex-direction: column;
    align-items: center;
    display: none;
  }

  .nav.active {
    display: flex;
  }

  .donate-btn {
    margin-top: 1rem;
  }
} */


.dropdown-menu {
    display: none;
    position: absolute;
    background: linear-gradient(to right, rgba(255, 0, 0, 0.5), rgba(0, 0, 255, 0.5));
    padding: 0;
    list-style: none;
    margin: 0;
    min-width: 160px;
    z-index: 1000;
}

.dropdown-item {
    padding: 10px;
}

.dropdown-item a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 0.1px solid #000;
}

.dropdown-item a:hover {
    color: #000;
}

header nav ul li:hover .dropdown-menu {
    display: block;
}


.hamburger-menu {
    display: none;
    cursor: pointer;
    margin-top: 2.5rem;
    position: relative;
    z-index: 1000;
}

.hamburger-menu span {
    margin-left: 35rem;
    display: block;
    width: 30px;
    height: 3px;
    background-color: rgb(87, 87, 87);
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.social-links {
    margin: -13px 0px 0px -35px;
    /* text-align: center; */

}

 .social-links ul {
    list-style: none;
    padding: 0;
    margin-top: 1.7rem;
}

.social-links ul li {
    margin: 6px 0px;
    padding: 1px;
    font-size: 20px;
}

.social-links ul li a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    
}

.social-links ul li a:hover {
    color: orange;
}

@media only screen and (max-width: 769px) {
    .hamburger-menu {
        display: none;
    }
}

@media only screen and (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }

    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 1rem;
    }

    .nav.active {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        background: linear-gradient(to right, rgba(255, 0, 0, 0.5), rgba(0, 0, 255, 0.5));
        position: absolute;
        top: 4.8rem;
        left: 128px;
        width: 100%;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .social {
        display: none;
    }
}

@media only screen and (max-width: 480px) {
    .hamburger-menu {
        margin-left: -15rem;
        margin-top: -3.2rem;
        margin-bottom: 1.2rem;
    }
    .donate-btn{
        margin-left: 100px;
    }
}

@media only screen and (max-width: 320px) {
    .hamburger-menu {
        margin-left: -16rem;
        margin-top: 1rem;
    }
}

@media (max-width: 1024px) {
    .logo {
        margin: 0px 0px 0px 0px;
         }
    
    .logo>img {
        margin: 0px 0px 0px -50rem;
    }

    .main-button {
        margin-left: 20rem;
        margin-top: -7rem;
    }

    .main-button button {
        padding: 7px;
        font-size: 13px;
        margin-left: 30px;
    }

    header {
        padding: 10px 0;
    }

    .nav {
        margin-left: -8rem;
    }

    .nav li a {
        font-size: 13px;
    }
}


@media (max-width: 480px) {
    .container{
        flex-direction: column;
        height: 107px;
    }
    header {
        padding: 18px 0;
    }
    header nav ul li {
        display: block;
        margin: 10px 0px;
        text-align: center;
    }
    nav {
        padding: 0rem 5%;
    }
    .nav {
        gap: 0rem;
    }

    .main-button {
        margin-left: 14rem;
        margin-top: -8rem;
        margin-bottom: 1rem;
    }

    .logo>img {
        margin-left: 1.1rem;
        height: 70px;
        width: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
        /* margin-top: 2px; */
    }

    .main-button button {
        margin-left: -143px;
        border: none;
        width: 200px;
        padding: 10px;
        font-size: 16px;
    }


    .social-links ul {
        display: flex;
        gap: 15px;
    }

    .button {
        display: none;

    }
    
}