﻿/* Hamburger Button Styles */
.hamburger-btn {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    z-index: 1001;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

    /* Hover effect */
    .hamburger-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.05);
    }

    /* Active/Open state */
    .hamburger-btn.active {
        transform: rotate(90deg);
    }

        .hamburger-btn.active i {
            transform: rotate(0deg);
        }

    .hamburger-btn i {
        transition: transform 0.3s ease;
    }

/* Drawer Overlay */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .drawer-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* Drawer Container */
.drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, #212529 0%, #1a1e21 100%);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 2001;
    transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
}

    .drawer.active {
        left: 0;
    }

/* Drawer Header */
.drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .drawer-header h3 {
        margin: 0;
        color: white;
        font-size: 1.5rem;
    }

.close-drawer {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

    .close-drawer:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: rotate(90deg);
    }

/* Drawer Navigation */
.drawer-nav {
    padding: 1rem;
}

    .drawer-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .drawer-nav li {
        margin-bottom: 1rem;
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

.drawer.active .drawer-nav li {
    opacity: 1;
    transform: translateX(0);
}

    /* Staggered animation for menu items */
    .drawer.active .drawer-nav li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .drawer.active .drawer-nav li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .drawer.active .drawer-nav li:nth-child(3) {
        transition-delay: 0.3s;
    }

.drawer-nav a {
    color: white;
    text-decoration: none;
    font-size: .8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .drawer-nav a i {
        width: 24px;
        font-size: 1rem;
    }

    .drawer-nav a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }

/* Main Content */
.main-content {
    padding-top: 70px;
    transition: filter 0.3s ease;
}

.drawer-overlay.active ~ .main-content {
    filter: blur(2px);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .navbar-brand {
        position: static;
    }

    .hamburger-btn {
        position: relative;
        right: auto;
    }

    .navbar .container-fluid {
        justify-content: space-between;
    }
}

/* Body scroll lock */
body.drawer-open {
    overflow: hidden;
}

/* Custom scrollbar for drawer */
.drawer::-webkit-scrollbar {
    width: 6px;
}

.drawer::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.drawer::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

    .drawer::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }

/* Sample content styling */
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
}
