/* Modern Navbar & Header Styles */

:root {
    --primary: #0c3d03;
    --accent: #ee7c12;
    --light: #f8f9fa;
    --dark: #111111;
    --white: #ffffff;
}

/* Header Wrapper */
.header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: transparent !important;
    padding: 15px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-wrap.scrolled {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Logo */
.logo-img {
    max-height: 160px;
    width: auto;
    height: auto;
    margin-top: -30px;
    margin-bottom: -40px;
    filter: brightness(1.2) contrast(1.1);
    transition: all 0.3s ease;
    object-fit: contain;
    display: block;
}

.header-wrap.scrolled .logo-img {
    max-height: 120px;
    margin-top: -20px;
    margin-bottom: -25px;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Navbar */
.navbar {
    padding: 0 !important;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 18px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-item.active .nav-link::after {
    transform: scaleX(1);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
    color: var(--accent) !important;
}

/* Special Contact Link */
#nav-contact .nav-link {
    background: var(--accent) !important;
    color: var(--white) !important;
    border-radius: 50px;
    padding: 10px 25px !important;
    margin-left: 15px;
    box-shadow: 0 4px 15px rgba(238, 124, 18, 0.3);
}

#nav-contact .nav-link::after {
    display: none;
}

#nav-contact .nav-link:hover {
    background: #d16a0f !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 124, 18, 0.4);
}

/* Mobile Toggler */
.navbar-toggler {
    border: none;
    background: var(--accent);
    padding: 10px;
    border-radius: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(238, 124, 18, 0.3);
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(238, 124, 18, 0.4);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Mobile Drawer Menu */
@media (max-width: 991px) {
    .header-wrap .row {
        align-items: center !important;
        flex-wrap: nowrap;
    }

    .logo-img {
        max-height: 100px;
        margin-top: -15px;
        margin-bottom: -20px;
    }

    .navbar-collapse {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 300px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        background: #000000 !important;
        padding: 80px 30px !important;
        z-index: 1050 !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }

    /* Close Button Inside Menu */
    .menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: transparent;
        border: 2px solid rgba(255, 255, 255, 0.2);
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .menu-close:hover {
        background: var(--accent);
        border-color: var(--accent);
    }

    .navbar-nav {
        width: 100%;
    }

    .navbar-nav .nav-item {
        margin-bottom: 10px;
    }

    .navbar-nav .nav-link {
        padding: 15px 0 !important;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-shadow: none;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    #nav-contact .nav-link {
        margin-left: 0;
        margin-top: 20px;
        text-align: center;
    }
}

/* Very Small Devices */
@media (max-width: 480px) {
    .navbar-collapse {
        width: 85% !important;
    }
    
    .logo-img {
        max-height: 80px;
    }
}
