.header {
    background-color: #000; /* Black background */
    color: white;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 15px 7px 12px rgb(72, 72, 255);
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav {
    display: flex;
    opacity: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links li a {
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    text-transform: uppercase;
    font-family: "stubi",arial;
}

.nav-links li a:hover {
    color: #adc9ff; /* Highlight color on hover */
    border-bottom: 1px solid #adc9ff;
}

/* Menu Toggle Icon */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    width: 20px;
}

.menu-toggle span{
    height: 2px;
    width: 20px;
    transition: 0.4s;
    background-color: white;
    overflow: hidden;
}


span:nth-child(1).active {
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    transform-origin: center;
}
span:nth-child(2).active {
    opacity: 0;
}

span:nth-child(3).active {
    transform: rotate(-45deg);
    position: absolute;
    top: 50%;
    transform-origin: center;
}

.activeLink{
    color: #adc9ff;
    border-bottom: 1px solid #adc9ff;
}

.notActive{
    color: white;
    border-bottom: 1px solid white;
}

/* Style for Logo */
.logo img {
    max-width: 100%; /* Ensures it doesn't exceed the container width */
    height: auto;    /* Maintains aspect ratio */
    width: 120px;    /* Adjust the size of the logo as needed */
}

/* Responsive Design */
@media (max-width: 868px) {
    .header{
        justify-content: space-between;
    }
    .logo img {
        width: 100px; /* Smaller size for mobile */
    }
    .nav {
        opacity: 0;
        transform: translateY(-20%);
        flex-direction: column;
        background-color: #000;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        text-align: center;
        transition: 0.2s;
        height: 100lvh;
        justify-content: center;
        align-items: center;
        visibility: hidden;
    }

    .nav.active {
        transform: translateY(0);
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
        border: 4px solid white;
        padding: 100px 50px;
        border-radius: 15px;
    }

    .nav-links a {
        padding-bottom: 7px;
    }


    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
}

.phone-icon {
    display: none;
}

@media screen and (max-width: 1100px) {
    .phone-icon {
        position: fixed;
        bottom: 20px;
        left: 90%;
        transform: translateX(-50%);
        background-color: #28a745; /* Green color */
        color: #ffffff; /* White color for icon */
        padding: 15px;
        border-radius: 50%;
        font-size: 24px;
        text-align: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        cursor: pointer;
        z-index: 100;
        transition: 0.2s;
        display: block;
    }
    
    
    .phone-icon:hover {
        transform: translateX(-50%) scale(1.1);
        background-color: #228138; /* Green color */
        padding: 20px;
        border-radius: 50%;
        font-size: 24px;
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
        z-index: 100;
        transition: 0.2s;
    }
}

/* Make dropdown relative to its parent li */
.dropdown {
    position: relative; /* ensures dropdown-menu is positioned relative to this li */
}

/* Desktop dropdown styling */
.desktop-only .dropdown-menu {
    display: none;
    position: absolute; /* absolute relative to the .dropdown li */
    top: 100%; /* right below the parent li */
    left: 0; /* align to the left edge of parent */
    background-color: #000;
    list-style: none;
    padding: 10px 0;
    border-radius: 5px;
    min-width: 220px; /* adjust width if needed */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 999;
}

/* Dropdown links */
.desktop-only .dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
}

.desktop-only .dropdown-menu li a:hover {
    background-color: #1a1a1a;
    color: #adc9ff;
}

.mobile-only {
    display: none;
}

/* Show dropdown on hover for desktop */
@media (min-width: 869px) {
    .desktop-only:hover .dropdown-menu {
        display: block;
    }
}

/* Mobile adjustments (dropdown hidden, show individual links) */
@media (max-width: 868px) {
    .desktop-only {
        display: none; /* hide desktop dropdown on mobile */
    }
    .mobile-only {
        display: list-item; /* show individual links on mobile */
    }
}
