/* Transparent Black Mobile Navigation */
/* Desktop navigation */
@media screen and (min-width: 769px) {
    .hamburger {
        display: none !important; /* Hide hamburger on desktop */
    }
    
    .nav-menu {
        display: flex !important; /* Desktop menu should display as flex row */
        position: static;
        flex-direction: row;
        background-color: transparent;
        width: auto;
        height: auto;
        visibility: visible;
        opacity: 1;
        left: 0;
    }
    
    .nav-menu li {
        opacity: 1 !important; /* Force visible on desktop */
        transform: none !important;
        margin-right: 25px;
    }
    
    .nav-menu li a {
        font-size: 16px !important;
        color: white !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .mobile-btn {
        display: none !important;
    }
    
    .desktop-btn {
        display: block !important;
    }
}

/* Mobile navigation */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex !important; /* Show hamburger on mobile */
        z-index: 1001;
        width: 50px;
        height: 50px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: transparent;
        border: 1px solid rgba(255, 131, 0, 0.3);
        border-radius: 8px;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        z-index: 1000;
        background: rgba(0, 0, 0, 0.9);
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        visibility: hidden;
        opacity: 0;
        transition: all 0.4s ease;
    }
    
    .nav-menu.active {
        left: 0;
        visibility: visible;
        opacity: 1;
    }
    
    .desktop-btn {
        display: none !important;
    }
    
    .mobile-btn {
        display: block !important;
    }
}

/* Hamburger Button Styling */
.hamburger:hover {
    background: rgba(0, 0, 0, 0.2);
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    margin: 4px;
    background-color: #FF8300;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Animated Hamburger Active State */
.hamburger.active {
    background: transparent;
    border-color: #FF8300;
}

.hamburger.active span {
    background-color: #FF8300;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Menu Items Styling - ONLY FOR MOBILE */
@media screen and (max-width: 768px) {
    .nav-menu li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
        transition-delay: calc(0.1s * var(--item-index, 0));
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Give each menu item a unique delay */
    .nav-menu li:nth-child(1) { --item-index: 1; }
    .nav-menu li:nth-child(2) { --item-index: 2; }
    .nav-menu li:nth-child(3) { --item-index: 3; }
    .nav-menu li:nth-child(4) { --item-index: 4; }
    .nav-menu li:nth-child(5) { --item-index: 5; }
    
    .nav-menu li a {
        font-size: 22px;
        font-weight: 500;
        color: white;
        text-decoration: none;
        padding: 15px 20px;
        display: inline-block;
        position: relative;
        transition: all 0.3s ease;
        width: 80%;
        max-width: 300px;
        background: transparent;
    }
    
    .nav-menu li a::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background-color: #FF8300;
        transition: width 0.3s ease;
    }
    
    .nav-menu li a:hover {
        color: #FF8300;
        transform: translateY(-2px);
    }
    
    .nav-menu li a:hover::before {
        width: 50%;
    }
}

/* Schedule service button in mobile menu */
.mobile-btn {
    margin-top: 30px;
    width: 80%;
    max-width: 300px;
    text-align: center;
}

.mobile-btn .schedule-link {
    background-color: #FF8300;
    color: white !important;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    transition: all 0.3s ease;
}

.mobile-btn .schedule-link:hover {
    background-color: #e67600;
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    .nav-menu.active li a {
        font-size: 20px;
        padding: 12px 15px;
    }
    
    .mobile-btn .schedule-link {
        padding: 12px 25px;
        font-size: 15px;
    }
}