@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: auto;
}

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
    font-family: 'Merriweather', helvetica;
}

/* Dropdown button (About link) */
.dropbtn {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    display: block;
    cursor: pointer;
}

/* Dropdown menu (initially hidden) */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(45deg, cyan 40%, aqua 80%);
    border-radius: 5px;
    min-width: 160px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Dropdown links */
.dropdown-content a {
    display: block;
    color: black;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: 700;
}

/* Hover effect for dropdown links */
.dropdown-content a:hover {
    background-color: gold;
}

/* Hover to show dropdown (for desktops) */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile Fix: Click to open dropdown */
@media (max-width: 990px) {
    .dropdown:focus-within .dropdown-content {
        display: block;
    }
}

/* Navbar container */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0088ff;
    padding: 30px;
    color: white;
    top: 0;
    z-index: 3;
    position: sticky;
    transition: padding 0s ease-out;
}

.navbar.shrink {
    padding: 15px;
    background-color: #0088ff; 
    position: fixed; 
    top: 0;
    width: 100%;
    z-index: 1000;
}
.logo-container {
    display: flex;
    align-items: center;
    position: static;
}
.logo-container img {
    height: 85px;
    width: 85px;
    border-radius: 50%;
    transition: all 0s ease-out;
}

.navbar.shrink .logo-container img {
    height: 50px;
    width: 50px;
}
.logo-text {
    margin-left: 20px;
    font-size: 1.8em;
    font-weight: 900;
    color: white;
    text-shadow: 3px 2px 3px black;
    transition: font-size 0s ease-out, margin-left 0s ease-out;
}
.navbar.shrink .logo-text {
    font-size: 1.2em;
    margin-left: 10px; /* Adjust for the shrinking logo */
}

.image-banner {
    display: flex;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url("../../assets/img/img_assets/dangels-image-banner.png") center/cover no-repeat;
    height: 500px;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    transition: height 0s ease-out;
}

.navbar.shrink > .image-banner {
    height: 350px;
}
.navbar, .logo-container, .image-banner {
    will-change: transform, opacity; /* Optimize these elements for smooth transitions */
}
header {
    font-size: 2.5em;
    color: white;
    text-shadow: 3px 2px 3px black;
    font-weight: 900;
    text-transform: uppercase;
    padding: 10px;
    text-align: center;
    background-color: rgb(0, 225, 255);

}

/* Mobile menu (initially hidden) */
.menu {
    z-index: 3;
    display: none;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 130px;
    right: 10px;
    background: linear-gradient(45deg, cyan 40%, aqua 80%);
    border-radius: 5px;
    padding: 10px;
}

/* Mobile menu links */
.menu a {
    color: black;
    text-decoration: none;
    padding: 10px;
    font-weight: 700;
}

/* Hover effect for mobile menu links */
.menu a:hover {
    background-color: gold;
    border-radius: 5px;
}

/* Hamburger menu (for mobile) */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Hamburger bars */
.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hidden checkbox */
#menu-toggle {
    display: none;
}

/* Hamburger icon animations */
#menu-toggle:checked + label .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#menu-toggle:checked + label .bar:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked + label .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Show menu when checked */
#menu-toggle:checked ~ .menu {
    display: flex;
}

 .footer {
        background-color: #007bff;
        padding: 15px;
        color: white;
        font-weight: 500;
        font-size: 14px;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        text-align: center;
    }

    .footer h4 {
        flex: 1;
        margin: 5px;
    }

/* Desktop-specific styles */
@media (min-width: 690px) {
    .menu {
        display: flex;
        position: static; 
        flex-direction: row;
        gap: 10px;
        background: none;
        padding: 0;
        font-size: 18px;
    }

    .hamburger {
        display: none;
    }

    #menu-toggle {
        display: none;
    }

    gadget-header {
        display: none;
    }
}

/* Styles for screens below 990px */
@media (max-width: 990px) {
    header {
        display: none;
    }

    gadget-header {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 14px;
        color: white;
        background: rgb(144, 200, 255);
        font-size: 1.4em;
        font-weight: 900;
        text-shadow: 3px 2px 3px black;
        text-transform: uppercase;
    }
    .image-banner {
        background-size: cover !important;
        background-repeat: no-repeat;
        background-position: center;
        height: 160px;
        
      }
}

@media (max-width: 880px) {
    .logo-text {
        font-size: 20px;
    }

    .logo-container img {
        display: none;
    }
}
 @media (max-width: 768px) { 
   .footer {
            flex-direction: column;
            text-align: center;
        }

        .footer h4 span {
            display: block;
            margin: 5px 0;
        }

}
