/* Refactored new_menu.css */

/* General Structure & Animations */
aside {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    background-color: #0f1419;
    overflow-y: auto; /* Add this line */
}

.menu-expand {
    display: none;
}

.menu-expand:checked ~ aside {
    transform: translateX(0);
}

.menu-expand:checked ~ .menu-overlay {
    opacity: 1;
    visibility: visible;
}

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

.aside-section {
    height: 100vh;
    overflow-y: auto;
}

.aside-left {
    width: 50%;
    background: var(--dark-bg);
    backdrop-filter: blur(20px);
    border-right: 2px solid var(--border-color);
    position: relative;
    height: 100%;
    overflow-y: auto;
    padding: 6rem 0 3rem 0;
}

.aside-right {
    width: 50%;
    background: var(--dark-bg);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.aside-left .aside-content {
    margin-left: 3rem;
    opacity: 0;
    transform: translateX(-100px);
    animation: slideInFromLeft 0.8s ease-out 0.2s forwards;
}

.aside-right .aside-content {
    opacity: 0;
    transform: translateY(-50px);
    animation: slideInFromTop 0.8s ease-out 0.4s forwards;
    width: 100%;
}


/* Brand */
.nav-brand {
    margin-bottom: 3rem;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.nav-brand h1 {
    font-size: 2.5rem;
    font-weight: bold;
    background: var(--ftc-gd-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 226, 245, 0.3);
}

.nav-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* Main Navigation */
.aside-list {
    list-style: none;
    margin-bottom: 3rem;
    margin-right: 3rem;
}

.nav-section-title {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.nav-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--ftc-gd-2);
    border-radius: 2px;
}

.nav-item {
    margin-bottom: 0.8rem;
    opacity: 0;
    animation: slideInNav 0.6s ease-out forwards;
}

.nav-item:nth-child(1) { animation-delay: 0.6s; }
.nav-item:nth-child(2) { animation-delay: 0.7s; }
.nav-item:nth-child(3) { animation-delay: 0.8s; }
.nav-item:nth-child(4) { animation-delay: 0.9s; }
.nav-item:nth-child(5) { animation-delay: 1.0s; }
.nav-item:nth-child(6) { animation-delay: 1.1s; }

.aside-anchor {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.4s var(--cube-1);
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
}

.aside-anchor::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.6s ease;
}

.aside-anchor:hover::before {
    left: 100%;
}

.aside-anchor:hover,
.aside-anchor.active {
    color: #fff;
    transform: translateX(15px) scale(1.02);
    background: var(--card-bg);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(196, 239, 23, 0.2);
}

.nav-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.aside-anchor:hover .nav-icon,
.aside-anchor.active .nav-icon {
    color: var(--accent-color);
    transform: scale(1.2) rotate(5deg);
}

/* Dropdown Menu */
.has-children { /* Renamed from .has-dropdown for consistency with menu.php */
    position: relative;
}

.nav-arrow { /* This class is in menu.php */
    margin-left: auto;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.aside-anchor.expanded .nav-arrow {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.submenu { /* This class is in menu.php */
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s var(--cube-1);
    margin-top: 0.5rem;
    margin-left: 2.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.aside-anchor.expanded ~ .submenu {
    max-height: 400px;
    padding: 1rem 0;
}

.submenu-link { /* This class is in menu.php */
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    position: relative;
    border-radius: 8px;
    margin: 0 0.5rem;
}

.submenu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--ftc-gd-2);
    transition: all 0.3s ease;
}

.submenu-link:hover,
.submenu-link.active {
    color: #fff;
    background: var(--card-bg);
    transform: translateX(10px);
}

.submenu-link:hover::before,
.submenu-link.active::before {
    width: 25px;
}

/* Secondary Navigation */
.aside-list-sml {
    list-style: none;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 2rem;
    margin-right: 3rem;
}

.aside-list-sml li {
    margin-bottom: 0.6rem;
    opacity: 0;
    animation: fadeInSmall 0.5s ease-out forwards;
}

.aside-list-sml li:nth-child(1) { animation-delay: 1.2s; }
.aside-list-sml li:nth-child(2) { animation-delay: 1.3s; }
.aside-list-sml li:nth-child(3) { animation-delay: 1.4s; }
.aside-list-sml li:nth-child(4) { animation-delay: 1.5s; }

.aside-anchor-sml {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.aside-anchor-sml:hover,
.aside-anchor-sml.active {
    color: var(--accent-color);
    background: var(--card-bg);
    transform: translateX(10px);
}

/* Right Side Content */
.sml-hero-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: slideInFromTop 0.8s ease-out 0.6s forwards;
}

.mega-menu-form {
    width: 100%;
    max-width: 400px;
    opacity: 0;
    animation: slideInFromTop 0.8s ease-out 0.8s forwards;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--card-bg);
    box-shadow: 0 0 20px rgba(196, 239, 23, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--success-gradient);
    border: none;
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(196, 239, 23, 0.3);
}

/* Social Links */
.social-links {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: slideInFromTop 1s ease-out 1s forwards;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--ftc-gd-1);
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(229, 4, 238, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .aside-left, .aside-right {
        width: 50%;
    }
    .aside-left .aside-content {
        margin-left: 2rem;
    }
}

@media (max-width: 768px) {
    aside {
        transform: translateY(-100%);
        display: block;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .aside-left {
        width: 100%;
        height: 100vh;
        border-right: none;
        border-bottom: 2px solid var(--border-color);
        margin-bottom: 2rem;
    }
    .aside-right {
        width: 100%;
        height: auto;
        padding: 2rem 1rem;
        overflow-y: visible;
        justify-content: flex-start;
        position: relative;
    }
    .aside-left .aside-content {
        margin-left: 1rem;
        padding: 4rem 0 2rem 0;
    }
    .social-links {
        position: relative;
        bottom: auto;
        right: auto;
        justify-content: center;
        margin-top: 1rem;
    }
    .sml-hero-title {
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInFromLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInNav {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromTop {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSmall {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Position menu below header on desktop */
@media (min-width: 992px) {
    aside {
        top: 150px;
        height: calc(100vh - 150px);
    }
}
