
/* ===== RENAMED NAVIGATION SYSTEM ===== */
.main-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    width: 90%;
    height: 9vh;
    max-width: 1100px;
    margin: 0.5rem auto;
    position: sticky;
    top: 10px;
    z-index: 1000;
    background: #7aacde93;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.main-navbar:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}


.main-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 2100;
    padding: 8px;
    border-radius: 5px;
    transition: background 0.3s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-toggle span {
    width: 35px;
    height: 3px;
    background: rgb(0, 0, 0);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px)rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px)rotate(-45deg);
}

/* Sidebar Menu */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: linear-gradient(135deg, #3c4a59, #34495e);
    padding: 80px 20px 20px;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1500;
    box-shadow: -4px 0 25px rgba(0, 0, 0, 0.2);
}

.sidebar-menu.active {
    right: 0;
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Categories */
.menu-category {
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.05);
}

.menu-category-btn {
    width: 100%;
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-category-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-category-btn i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.menu-category-btn .arrow {
    transition: transform 0.3s ease;
}

.menu-category-btn.active .arrow {
    transform: rotate(180deg);
}

/* Submenu */
.submenu-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
}

.submenu-wrapper.active {
    max-height: 500px;
}

.fa-chevron-down:before {
    content: "\f078";
    color: white;
}


.submenu-item {
    background: none;
    border: none;
    text-align: left;
    color: #ddd;
    padding: 12px 20px 12px 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    width: 100%;
}

.submenu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding-left: 55px;
}

.submenu-item.active {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

.submenu-icon {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.menu-category.always-expanded .submenu-wrapper {
    max-height: none !important;
    background: rgba(0, 0, 0, 0.2);
}

.menu-category.always-expanded .menu-category-btn {
    cursor: default;
    justify-content: flex-start;
}

.menu-category.always-expanded .arrow {
    display: none;
}

/* Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1200;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* ===== HEADER STYLES ===== */
header {
    text-align: center;
    padding: 8rem 1rem 2rem;
    margin-top: -105px;
    background: var(--gradient-secondary);
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,128L48,117.3C96,107,192,85,288,112C384,139,480,213,576,218.7C672,224,768,160,864,138.7C960,117,1056,139,1152,149.3C1248,160,1344,160,1392,160L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    animation: wave 20s linear infinite;
}

@keyframes wave {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: 1440px;
    }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

/* For Tablets and Below */
@media (max-width: 992px) {


    .main-logo {
        font-size: 1.3rem;
    }

    .sidebar-menu {
        width: 300px;
        padding: 70px 15px 20px;
    }

    .menu-category-btn {
        font-size: 0.95rem;
        padding: 12px;
    }

    .submenu-item {
        font-size: 0.85rem;
        padding: 10px 15px 10px 45px;
    }

    .menu-toggle span {
        width: 28px;
        height: 2.5px;
    }
}

/* For Mobile Screens */
@media (max-width: 768px) {
    .main-navbar {
        width: 95%;
        height: auto;
        padding: 0.8rem 1rem;
    }

}

/* For Very Small Devices */
@media (max-width: 480px) {

    .sidebar-menu {
        width: 280px;
        right: -280px;
        padding: 70px 15px 15px 15px;
    }

}
