/* =====================
   RESET & BASE STYLES
===================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scroll-behavior: smooth;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
}

body {
    color: #1a1a1a;
    background-color: #ffffff;
    line-height: 1.6;
}

/* =====================
   TYPOGRAPHY
===================== */

h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 2.75rem);
}

p {
    font-size: 1.1rem;
    max-width: 1200px;
}

/* =====================
   HEADER & NAV
===================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    z-index: 1000;
    border-bottom: 1px solid #eaeaea;
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.site-header.hide-on-scroll {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 42px;
    width: auto;
}

.logo h1 {
    font-size: 1.1rem;
    font-weight: 700;
}

.main-nav a {
    margin: 0 0.75rem;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
}

.main-nav a:hover {
    text-decoration: underline;
}

/* =====================
   LANGUAGE SWITCHER
===================== */

.lang-switcher button {
    background: none;
    border: none;
    margin-left: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    color: #555;
}

.lang-switcher button:hover {
    color: #000;
}

/* =====================
   SECTIONS (GLOBAL)
===================== */

.section {
    position: relative;
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    text-align: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Overlay */
.section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.section>* {
    position: relative;
    z-index: 2;
}

/* =====================
   SECTION CONTENT
===================== */

.section-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
}

/* =====================
   HOME SECTION OVERRIDE
===================== */

#home .section-content {
    align-items: center;
    justify-content: space-between;
    text-align: center;
    max-width: 1100px;
}

/* =====================
   HERO SECTION
===================== */

#home .section-content p {
    font-size: 1.25rem;
}

/* =====================
   HOME LAYOUT (DESKTOP)
===================== */

.home-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
}

.home-text {
    flex: 1;
    text-align: center;
}

.home-text h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 3rem;
}

.home-video {
    width: 15vw;
    aspect-ratio: 9 / 16;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-video iframe {
    width: 100%;
    height: 100%;
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 9 / 16;
    /* border-radius: 16px; */
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.scroll-indicator {
    margin-top: 1.5rem;
    width: 24px;
    height: 24px;
    border-left: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    transform: rotate(-45deg);
    animation: scrollHint 1.8s infinite ease-in-out;
    opacity: 0.8;
}

@keyframes scrollHint {
    0% {
        transform: translateY(0) rotate(-45deg);
        opacity: 0.4;
    }

    50% {
        transform: translateY(8px) rotate(-45deg);
        opacity: 1;
    }

    100% {
        transform: translateY(0) rotate(-45deg);
        opacity: 0.4;
    }
}


/* =====================
   HOME LANGUAGE SWITCHER
===================== */

.home-language-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.flag-button {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    padding: 0;
}

.flag-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.flag-button:active {
    transform: translateY(0) scale(0.95);
}

/* Active language indicator */
.flag-button.active {
    background: rgba(255, 255, 255, 0.35);
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* =====================
   MOBILE STYLES FOR FLAG SWITCHER
===================== */

@media (max-width: 1300px) {
    .home-language-switcher {
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .flag-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .home-language-switcher {
        gap: 0.75rem;
    }

    .flag-button {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* =====================
   CONTACT
===================== */

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.4rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* =====================
   CTA BUTTON
===================== */

.cta {
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    background-color: #ffffff;
    color: #000000;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* =====================
   GALLERY
===================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 1100px;
    margin-top: 2rem;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}

/* =====================
   FOOTER
===================== */

.site-footer {
    padding: 2rem;
    text-align: center;
    background-color: #111;
    color: #fff;
    font-size: 0.9rem;
}

/* =====================
   BACKGROUND IMAGES
===================== */

#home {
    background-image: url("../images/0.webp");
    will-change: background-image;
}

#home-video {
    background-image: url("../images/0.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#tour {
    background-image: url("../images/1.webp");
}

#infos {
    background-image: url("../images/3.jpeg");
}

#about {
    background-image: url("../images/2.webp");
}

#about2 {
    background-image: url("../images/0.webp");
}

#contact {
    background-image: url("../images/3.jpeg");
}

#gallery {
    background-image: url("../images/0.webp");
}

/* =====================
   MOBILE STYLES (≤1300px)
===================== */

@media (max-width: 1300px) {
    #home {
        flex-direction: column;
        padding: 0;
    }

    #home .section-content {
        padding: 0;
        gap: 0;
    }

    .home-text,
    .home-video {
        width: 100%;
        height: 100%;
        max-width: fit-content;
        scroll-snap-align: start;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        padding: 0rem 0rem 0rem;
    }

    .section {
        padding-left: 0;
        padding-right: 0;
    }

    .section-content p {
        max-width: 100%;
        width: 100%;
        padding-left: 0rem;
        padding-right: 0rem;
        align-items: stretch;
        text-align: left;
    }

    .home-text {
        margin-right: 0rem;
        max-width: none;
    }
}

/* =====================
   HAMBURGER MENU (MOBILE)
===================== */

.hamburger-menu {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1a1a1a;
    margin: 5px 0;
    transition: 0.3s;
}

/* Hamburger animation when active */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* =====================
   LANGUAGE SWITCHER
===================== */

.lang-switcher-desktop {
    display: block;
    /* Show on desktop */
}

.lang-switcher-mobile {
    display: none;
    /* Hidden on desktop */
}

.lang-switcher button {
    background: none;
    border: none;
    margin-left: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    color: #555;
}

.lang-switcher button:hover {
    color: #000;
}

/* =====================
   MOBILE STYLES (≤1300px)
===================== */

@media (max-width: 1300px) {

    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: block;
        position: absolute;
        left: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Adjust logo position to make room for hamburger */
    .logo {
        margin-left: 50px;
    }

    /* Hide desktop language switcher on mobile */
    .lang-switcher-desktop {
        display: none;
    }

    /* Mobile Navigation Menu */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 2rem;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding: 6rem 2rem 2rem;
        overflow-y: auto;
    }

    /* Show menu when active */
    .main-nav.active {
        transform: translateX(0);
    }

    /* Nav links container */
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
        margin-bottom: 2rem;
    }

    /* Style mobile nav links */
    .nav-links a {
        font-size: 1.5rem;
        padding: 1rem 0;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        text-decoration: none;
        color: #1a1a1a;
        font-weight: 500;
    }

    .nav-links a:hover {
        text-decoration: underline;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Mobile language switcher */
    .lang-switcher-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding-top: 2rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }

    .language-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        color: #1a1a1a;
    }

    .language-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        width: 100%;
        max-width: 300px;
    }

    .lang-switcher-mobile button {
        margin: 0;
        padding: 0.75rem 1rem;
        background: #f5f5f5;
        border-radius: 8px;
        font-size: 1rem;
        transition: background-color 0.2s ease;
        width: 100%;
    }

    .lang-switcher-mobile button:hover {
        background: #e0e0e0;
        color: #000;
    }

    /* Adjust header for mobile */
    .site-header {
        justify-content: center;
    }
}