@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

:root {
    --primary-color: #FF6900;
    --primary-hover: #e65e00;
    --text-dark: #111111;
    --text-light: #555555;
    --bg-light: #F9F9F9;
    --white: #FFFFFF;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

* {
    font-family: "Outfit", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

::selection {
    background-color: #FFF0E6;
    color: var(--primary-color);
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Global Navigation --- */

nav {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
}

nav .nav_mid_container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
nav .nav_mid_container .left img {
    height: 36px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

nav .nav_mid_container .left:hover img {
    transform: scale(1.02);
}

/* Desktop Links */
nav .nav_mid_container .right ul {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav .nav_mid_container .right ul li a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

nav .nav_mid_container .right ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

nav .nav_mid_container .right ul li a:hover {
    color: var(--primary-color);
}

nav .nav_mid_container .right ul li a:hover::after {
    width: 100%;
}

/* Hamburger Icon (Professional Animation) */
.hamburger {
    display: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1100;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
}

.hamburger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    position: absolute;
    transition: transform 0.15s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -8px;
    transition: top 0.1s 0.25s ease-in, opacity 0.1s ease-in;
}

.hamburger-inner::after {
    bottom: -8px;
    transition: bottom 0.1s 0.25s ease-in, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

/* Hamburger Active State (X Animation) */
.hamburger.active .hamburger-inner {
    transform: rotate(225deg);
    transition-delay: 0.12s;
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.hamburger.active .hamburger-inner::before {
    top: 0;
    opacity: 0;
    transition: top 0.1s ease-out, opacity 0.1s 0.12s ease-out;
}

.hamburger.active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    transition: bottom 0.1s ease-out, transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* --- Mobile Menu Styles (Optimized for Smoothness) --- */
@media (max-width: 900px) {
    nav {
        padding: 0;
    }

    .hamburger {
        display: flex;
        margin-right: -10px;
    }

    nav .nav_mid_container .right {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        /* INITIAL STATE: Hidden to right */
        transform: translateX(100%);
        visibility: hidden;

        /* EXIT ANIMATION: Fast and clean (no bounce) */
        transition: transform 0.5s cubic-bezier(0.5, 0, 0.1, 1), visibility 0.5s;
        z-index: 1000;
    }

    nav .nav_mid_container .right.active {
        /* ACTIVE STATE: Slide in */
        transform: translateX(0);
        visibility: visible;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);

        /* ENTRY ANIMATION: Smooth ease-out */
        transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    }

    nav .nav_mid_container .right ul {
        flex-direction: column;
        align-items: center;
        gap: 2vh;
        width: 100%;
    }

    /* List Items - Base State (Closed) */
    nav .nav_mid_container .right ul li {
        opacity: 0;
        transform: translateY(25px);
        /* EXIT: Instant fade out (0s delay) so they don't drag */
        transition: opacity 0.2s ease, transform 0.2s ease;
        transition-delay: 0s;
    }

    /* List Items - Active State (Open) */
    nav .nav_mid_container .right.active ul li {
        opacity: 1;
        transform: translateY(0);
        /* ENTRY: Smooth float up */
        transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    /* Staggered Delays (Only apply when opening) */
    nav .nav_mid_container .right.active ul li:nth-child(1) {
        transition-delay: 0.10s;
    }

    nav .nav_mid_container .right.active ul li:nth-child(2) {
        transition-delay: 0.15s;
    }

    nav .nav_mid_container .right.active ul li:nth-child(3) {
        transition-delay: 0.20s;
    }

    nav .nav_mid_container .right.active ul li:nth-child(4) {
        transition-delay: 0.25s;
    }

    nav .nav_mid_container .right.active ul li:nth-child(5) {
        transition-delay: 0.30s;
    }

    nav .nav_mid_container .right.active ul li:nth-child(6) {
        transition-delay: 0.35s;
    }

    nav .nav_mid_container .right.active ul li:nth-child(7) {
        transition-delay: 0.40s;
    }

    nav .nav_mid_container .right ul li a {
        font-size: 1.75rem;
        font-weight: 600;
        color: var(--text-dark);
        display: block;
        padding: 10px;
    }

    nav .nav_mid_container .right ul li a::after {
        display: none;
    }

    #country-trigger-btn {
        margin-top: 2rem;
        padding: 12px 25px;
        background-color: #f0f0f0;
        border: 1px solid transparent;
        font-size: 1rem;
        width: auto;
        min-width: 200px;
        justify-content: center;
    }
}

/* --- Buttons --- */
button {
    cursor: pointer;
    font-family: "Outfit", sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
}

.primary-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    background-color: var(--text-dark);
    color: var(--white);
    border: 2px solid var(--text-dark);
    border-radius: 50px;
}

.primary-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 105, 0, 0.2);
}

.secondary-btn {
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
    border-radius: 50px;
}

.secondary-btn:hover {
    background-color: var(--text-dark);
    color: var(--white);
}

/* Nav Button Styling */
#country-trigger-btn {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

#country-trigger-btn:hover {
    background-color: #f5f5f5;
    border-color: var(--text-dark);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
}

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

.modal-content {
    background: white;
    padding: 3rem;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #333;
    padding: 10px;
}

.modal-header h4 {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: #000;
    line-height: 1.2;
}

.modal-header p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.input-group {
    margin-bottom: 2rem;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
    position: absolute;
    top: -10px;
    left: 10px;
    background: white;
    padding: 0 5px;
}

.select-wrapper {
    position: relative;
}

.modal-body select {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 1px solid #000;
    border-radius: 0;
    appearance: none;
    background: white;
    color: #000;
    cursor: pointer;
    outline: none;
}

.modal-body select:focus {
    border-color: var(--primary-color);
}

.select-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.8rem;
}

.confirm-btn {
    width: 100%;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.confirm-btn:hover {
    background-color: #333;
}

@media (max-width: 900px) {
    .modal-content {
        padding: 2rem;
    }

    .modal-header h4 {
        font-size: 1.2rem;
    }
}

/* --- Footer --- */
footer {
    background-color: #111;
    color: #fff;
    padding: 80px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4rem;
}

.footer-col h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.footer-col p {
    color: #888;
    line-height: 1.6;
    max-width: 300px;
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-col ul .line-break {
    width: 100%;
    height: 2px;
    background-color: #444;
    margin-bottom: 2vh;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #888;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    color: #cccccc;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    nav .nav_mid_container {
        width: 95%;
    }

    nav .nav_mid_container .right ul {
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-col p {
        margin: 0 auto;
    }
}

/* Lenis Scroll */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}