/* Landing-only responsive layer (country split screen) */

@keyframes curtainTopDown {
    from {
        opacity: 0;
        transform: translate(-50%, -58%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes curtainBottomUp {
    from {
        opacity: 0;
        transform: translate(-50%, -42%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 1023px) {
    html,
    body {
        height: auto !important;
        min-height: 100%;
        overflow-y: auto !important;
    }

    #app,
    #app #home {
        min-height: 100svh;
        height: auto !important;
    }

    .logo-container {
        top: 16px;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo {
        height: clamp(58px, 11vw, 78px);
    }

    .split-container {
        flex-direction: column;
        min-height: 100svh;
        height: auto !important;
    }

    .split-section {
        width: 100%;
        min-height: 50svh;
        height: 50svh;
        transform: none !important;
        filter: none !important;
    }

    .split-section:hover {
        transform: none !important;
        filter: none !important;
    }

    .split-section .section-content {
        padding: 0 20px;
    }

    .left-section .section-content {
        animation: curtainTopDown 0.45s ease both;
    }

    .right-section .section-content {
        animation: curtainBottomUp 0.45s ease both;
    }

    .section-title {
        font-size: clamp(1.45rem, 5.5vw, 2.05rem);
        margin-bottom: 14px;
    }

    .portfolio-btn {
        padding: 12px 18px;
        font-size: clamp(0.92rem, 2.8vw, 1.03rem);
        width: min(88vw, 320px);
    }

    .country-menu {
        left: 0 !important;
        top: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        max-width: none;
        transform: translateY(-100%);
        transition: transform 0.35s ease !important;
    }

    .country-menu.from-bottom {
        transform: translateY(100%);
    }

    .country-menu.from-top {
        transform: translateY(-100%);
    }

    .country-menu.active {
        transform: translateY(0) !important;
    }

    .country-menu.closing {
        transform: translateY(-100%);
    }

    .country-menu.closing.from-bottom {
        transform: translateY(100%);
    }

    .menu-content {
        align-items: flex-start;
        text-align: left;
        padding: 92px 24px 38px;
    }

    .menu-content h3 {
        font-size: clamp(1.7rem, 6vw, 2.2rem);
        margin-bottom: 20px;
        text-align: left;
    }

    .country-list,
    .social-links {
        text-align: left;
    }

    .country-list a {
        font-size: clamp(1.3rem, 5.4vw, 1.75rem);
        padding: 8px 0;
    }

    .social-icons {
        justify-content: flex-start;
        gap: 12px;
    }
}

@media (max-width: 767px) {
    .split-container {
        min-height: 100dvh;
    }

    .split-section {
        min-height: 46dvh;
        height: 46dvh;
    }

    .section-title {
        font-size: clamp(1.35rem, 6.8vw, 1.85rem);
    }

    .portfolio-btn {
        width: min(90vw, 300px);
    }

    .menu-content {
        padding-top: 84px;
    }
}
