/* Mobile Drawer Styles */

.drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.4s ease, opacity 0.4s ease;
}

.drawer.active {
    visibility: visible;
    opacity: 1;
}

.drawer__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.drawer.active .drawer__overlay {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.drawer__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    background-color: #1E3A4C;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.drawer__header {
    height: 100px;
    flex-shrink: 0;
    /* Space for logo and close button */
}

.drawer__body {
    flex: 1;
    padding: 0 30px 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.drawer.active .drawer__content {
    transform: translateX(0);
}

.drawer__nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.drawer.active .drawer__nav {
    opacity: 1;
    transform: translateY(0);
}

.drawer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.drawer__item {
    margin: 0 0 20px 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.drawer.active .drawer__item {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation for drawer items */
.drawer__item:nth-child(1) { transition-delay: 0.3s; }
.drawer__item:nth-child(2) { transition-delay: 0.35s; }
.drawer__item:nth-child(3) { transition-delay: 0.4s; }
.drawer__item:nth-child(4) { transition-delay: 0.45s; }
.drawer__item:nth-child(5) { transition-delay: 0.5s; }
.drawer__item:nth-child(6) { transition-delay: 0.55s; }

.drawer__link,
.drawer__list a {
    display: block;
    color: #FFFFFF !important;
    text-decoration: none;
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.drawer__link:hover,
.drawer__list a:hover {
    color: #4DF1C3 !important;
    transform: translateX(10px);
}

.drawer__link:before,
.drawer__list a:before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background-color: #4DF1C3;
    transition: width 0.3s ease;
}

.drawer__link:hover:before,
.drawer__list a:hover:before {
    width: 15px;
}



.drawer__footer {
    padding: 40px 30px;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease 0.4s, transform 0.4s ease 0.4s;
}

.drawer.active .drawer__footer {
    opacity: 1;
    transform: translateY(0);
}

.drawer__footer-section {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.drawer.active .drawer__footer-section {
    opacity: 1;
    transform: translateY(0);
}

.drawer__footer-section:nth-child(1) { transition-delay: 0.5s; }
.drawer__footer-section:nth-child(2) { transition-delay: 0.55s; }

.drawer__footer-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.drawer__social-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.drawer__social-item {
    margin-bottom: 8px;
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.drawer.active .drawer__social-item {
    opacity: 1;
    transform: translateX(0);
}

.drawer__social-item:nth-child(1) { transition-delay: 0.6s; }
.drawer__social-item:nth-child(2) { transition-delay: 0.65s; }
.drawer__social-item:nth-child(3) { transition-delay: 0.7s; }

.drawer__social-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.drawer__social-link:hover {
    opacity: 0.7;
}

.drawer__social-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.drawer__location {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile-first responsive design */
@media (max-width: 480px) {
    .drawer__content {
        padding: 30px 40px;
    }
    
    .drawer__link {
        font-size: 20px;
    }
    
    .drawer__link--active {
        font-size: 20px;
        color: #FF6B35 !important;
    }
    
    .drawer__nav {
        margin-top: 0;
        justify-content: flex-start;
        padding-top: 40px;
    }
    
    .drawer__item {
        margin-bottom: 15px;
    }
    
    .drawer__footer {
        padding-bottom: 20px;
    }
}

/* Tablet and up */
@media (min-width: 481px) {
    .drawer__content {
        padding: 40px 60px;
        left: auto;
        right: 0;
        width: 25%;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .drawer.active .drawer__content {
        transform: translateX(0);
    }
    
    .drawer__nav {
        justify-content: flex-start;
        padding-top: 60px;
    }
    
    .drawer__link {
        font-size: 20px;
    }
    
    .drawer__link--active {
        font-size: 20px;
        color: #FF6B35 !important;
    }
}

/* Large screens */
@media (min-width: 768px) {
    .drawer__link {
        font-size: 22px;
    }
    
    .drawer__link--active {
        font-size: 22px;
        color: #FF6B35 !important;
    }
}

/* Keep scrollbar visible at all times */
html {
    overflow-y: scroll;
}

/* Prevent body scroll when drawer is open */
body.drawer-open {
    overflow: hidden;
    height: 100vh;
}
