/* Full-Width Overlay Menu */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    visibility: hidden;
    transition: visibility 0s 0.8s;
    /* Delay hiding until animation completes */
    will-change: transform;
}

.overlay-menu.active {
    visibility: visible;
    transition-delay: 0s;
    /* Show immediately when opening */
}

.overlay-content {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Left Side - Background */
.overlay-left {
    flex: 1;
    position: relative;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.overlay-menu.active .overlay-left {
    transform: translateY(0);
}

.overlay-bg {
    width: 100%;
    height: 100%;
    position: relative;
}

.overlay-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.7), rgba(26, 26, 46, 0.8));
    mix-blend-mode: multiply;
}

/* Right Side - Menu */
.overlay-right {
    flex: 1;
    background: #fff;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.overlay-menu.active .overlay-right {
    transform: translateY(0);
}

/* Close Button */
.overlay-close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: #111;
    transition: all 0.3s ease;
    padding: 10px;
    z-index: 10;
}

.overlay-close:hover {
    transform: rotate(90deg);
    color: #e63946;
}

.overlay-close svg {
    display: block;
}

/* Menu Navigation */
.overlay-nav {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    margin-bottom: 4rem;
}

.overlay-link {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    position: relative;
    display: inline-block;
    width: fit-content;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(50px);
}

.overlay-menu.active .overlay-link {
    animation: slideInRight 0.6s ease forwards;
}

.overlay-link:nth-child(1) {
    animation-delay: 0.1s;
}

.overlay-link:nth-child(2) {
    animation-delay: 0.15s;
}

.overlay-link:nth-child(3) {
    animation-delay: 0.2s;
}

.overlay-link:nth-child(4) {
    animation-delay: 0.25s;
}

.overlay-link:nth-child(5) {
    animation-delay: 0.3s;
}

.overlay-link:nth-child(6) {
    animation-delay: 0.35s;
}

.overlay-link:nth-child(7) {
    animation-delay: 0.4s;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.overlay-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #e63946;
    transition: width 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.overlay-link:hover::after {
    width: 100%;
}

.overlay-link:hover {
    color: #e63946;
    transform: translateX(10px);
}

/* Contact Details */
.overlay-contact {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.overlay-menu.active .overlay-contact {
    animation: fadeInUp 0.6s ease 0.5s forwards;
}

.overlay-contact-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 1rem;
    display: block;
}

.overlay-contact p {
    margin: 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: #111;
}

.overlay-contact a {
    text-decoration: none;
    color: #111;
    transition: color 0.3s ease;
}

.overlay-contact a:hover {
    color: #e63946;
}

/* Social Icons */
.overlay-social {
    display: flex;
    gap: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.overlay-menu.active .overlay-social {
    animation: fadeInUp 0.6s ease 0.6s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-icon {
    width: 48px;
    height: 48px;
    border: 2px solid #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #e63946;
    border-color: #e63946;
    color: #fff;
    transform: translateY(-4px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Prevent body scroll when overlay is active */
body.overlay-active {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 100px) {
    .overlay-content {
        flex-direction: column;
    }

    .overlay-left {
        height: 30%;
    }

    .overlay-right {
        height: 70%;
        padding: 60px 40px;
    }

    .overlay-link {
        font-size: 1.5rem;
    }

    .overlay-nav {
        gap: 1.25rem;
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .overlay-left {
        height: 25%;
    }

    .overlay-right {
        height: 100%;
        padding: 50px 30px;
    }

    .overlay-close {
        top: 30px;
        right: 30px;
    }

    .overlay-link {
        font-size: 2rem;
    }

    .overlay-nav {
        gap: 1rem;
        margin-bottom: 2.5rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .social-icon svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .overlay-link {
        font-size: 1.75rem;
    }

    .overlay-right {
        padding: 40px 20px;
    }

    .overlay-social {
        gap: 1.5rem;
    }
}