/* =========================
   RESET
========================= */

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

/* =========================
   BASE
========================= */

html {
    scroll-behavior: smooth;
}

body {
    background: #000;
    color: #fff;
    font-family: "Inter", sans-serif;
}

/* ==========================
   BACKGROUND SLIDER
========================== */

.background-slider {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.6s ease;
    transform: scale(1.05);
}

    .bg-slide.active {
        opacity: 1;
    }

.background-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( rgba(0,0,0,.74), rgba(0,0,0,.78) );
    z-index: 2;
}

/* =========================
   CONTAINER
========================= */

.container {
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
}

/* =========================
   HEADER
========================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.logo {
    color: white;
    text-decoration: none;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 3px;
}

.nav {
    display: flex;
    gap: 40px;
}

    .nav a {
        color: #fff;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0.5px;
        transition: opacity .3s ease;
    }

        .nav a:hover {
            opacity: .6;
        }

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #8f8f8f;
    margin-bottom: 35px;
}

.hero h1 {
    font-size: clamp(48px, 6vw, 90px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    max-width: 1200px;
    overflow-wrap: break-word;
}

    .hero h1 span {
        display: block;
        font-size: 0.48em;
        font-weight: 700;
        margin-top: 15px;
    }

.hero-description {
    max-width: 700px;
    margin-top: 40px;
    font-size: 22px;
    line-height: 1.7;
    color: #8a8a8a;
    font-weight: 400;
}

/* =========================
   SECTIONS
========================= */

.section {
    padding: 120px 0;
}

    .section h2 {
        font-size: 48px;
        margin-bottom: 50px;
    }

/* =========================
   CARDS
========================= */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.card {
    border: 1px solid #222;
    padding: 50px 40px;
    font-size: 22px;
    transition: .3s;
}

    .card:hover {
        border-color: white;
    }


.hero-button {
    display: inline-block;
    margin-top: 20px;
    padding: 16px 32px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    transition: .3s;
}

    .hero-button:hover {
        background: #fff;
        color: #000;
    }


.section-title {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
}

.section-description {
    max-width: 700px;
    margin: 0 auto 80px;
    text-align: center;
    color: #8a8a8a;
    font-size: 20px;
    line-height: 1.6;
}

.card {
    border-top: 1px solid #2a2a2a;
    padding: 35px 0;
}

    .card h3 {
        font-size: 30px;
        margin-bottom: 15px;
        font-weight: 700;
    }

    .card p {
        color: #8a8a8a;
        line-height: 1.7;
        font-size: 17px;
    }

    .card:hover {
        border-top-color: white;
    }

/* ==========================
   PROJECTS
========================== */

.project-category {
    margin-top: 80px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

    .category-header h3 {
        font-size: 34px;
        font-weight: 700;
    }

.slider-buttons {
    display: flex;
    gap: 12px;
}

.slider-btn {
    width: 46px;
    height: 46px;
    border: 1px solid #333;
    background: transparent;
    color: white;
    cursor: pointer;
    transition: .3s;
}

    .slider-btn:hover {
        border-color: white;
    }

.projects-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

    .projects-slider::-webkit-scrollbar {
        display: none;
    }

.project-card {
    flex: 0 0 calc(25% - 19px);
    transition: .35s ease;
}

    .project-card:hover {
        transform: translateY(-8px);
    }

    .project-card video {
        width: 100%;
        height: 260px;
        object-fit: cover;
        border-radius: 10px;
        cursor: pointer;
        transition: .35s ease;
    }

    .project-card:hover video {
        transform: scale(1.03);
    }

    .project-card h4 {
        margin-top: 18px;
        font-size: 22px;
    }

    .project-card p {
        font-size: 15px;
        color: #777;
    }


    .project-card.vertical {
        flex: 0 0 260px;
    }

        .project-card.vertical video {
            width: 100%;
            aspect-ratio: 9 / 16;
            height: auto;
            object-fit: cover;
        }

/* ==========================
   ABOUT
========================== */

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    margin-top: 70px;
    align-items: start;
}

.about-left h3 {
    font-size: clamp(18px, 4vw, 32px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -1px;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

    .about-right p {
        color: #8a8a8a;
        font-size: 18px;
        line-height: 1.8;
    }

.about-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.about-stat h4 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
}

.about-stat p {
    color: #8a8a8a;
    font-size: 18px;
    line-height: 1.5;
}


/* ==========================
   VIDEO MODAL
========================== */

.video-modal video {
    width: min(1200px,90vw);
    max-height: 90vh;
    border-radius: 12px;
    background: black;
    opacity: 0;
    transform: scale(.95);
    transition: .3s;
}

.video-modal.active video {
    opacity: 1;
    transform: scale(1);
}

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

    .video-modal video {
        width: min(1200px,90vw);
        max-height: 90vh;
        border-radius: 12px;
        background: black;
    }

.close-video {
    position: absolute;
    top: 35px;
    right: 45px;
    font-size: 48px;
    cursor: pointer;
    color: white;
    user-select: none;
}

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

.language-switcher {
    position: relative;
    z-index: 9999;
    display: flex;
    gap: 8px;
    margin-left: 40px;
}

.lang-btn {
    background: none;
    border: 1px solid #444;
    color: #888;
    padding: 6px 12px;
    cursor: pointer;
    transition: .3s;
    font-size: 12px;
    letter-spacing: 1px;
}

    .lang-btn.active {
        color: #fff;
        border-color: #fff;
    }

    .lang-btn:hover {
        border-color: #fff;
        color: #fff;
    }

/* ==========================================
   MOBILE
========================================== */

@media (max-width:768px) {

    html,
    body {
        overflow-x: hidden;
    }

    .container {
        width: calc(100% - 32px);
    }

    section {
        overflow: hidden;
    }

    /* HEADER */

    .header {
        padding: 20px 0;
    }

        .header .container {
            flex-direction: column;
            gap: 18px;
        }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .language-switcher {
        margin-left: 0;
    }

    /* HERO */

    .hero {
        min-height: auto;
        padding: 140px 0 80px;
    }

        .hero h1 {
            font-size: 42px;
            line-height: 1.05;
        }

    .hero-description {
        font-size: 18px;
        margin-top: 24px;
    }

    /* ABOUT */

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-right {
        grid-template-columns: repeat(2,1fr);
        gap: 24px;
    }

    .about-stat h4 {
        font-size: 34px;
    }

    .about-stat p {
        font-size: 16px;
    }

    /* PROJECTS */

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .slider-buttons {
        display: none;
    }

    .projects-slider {
        gap: 16px;
    }

    .project-card {
        flex: 0 0 90%;
    }

        .project-card video {
            width: 100%;
            height: auto;
            aspect-ratio: 16/9;
        }

        .project-card.vertical {
            flex: 0 0 70%;
        }

            .project-card.vertical video {
                aspect-ratio: 9/16;
                height: auto;
            }

    .video-modal video {
        width: 95vw;
    }
}

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

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 60px;
    margin-top: 80px;
}

.contact-item {
    border-top: 1px solid #2a2a2a;
    padding-top: 24px;
}

    .contact-item span {
        display: block;
        margin-bottom: 16px;
        color: #777;
        font-size: 13px;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    .contact-item a {
        color: white;
        text-decoration: none;
        font-size: 24px;
        transition: .3s;
    }

        .contact-item a:hover {
            opacity: .65;
        }

@media(max-width:900px) {

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-item a {
        font-size: 20px;
    }
}

.youtube-card iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 10px;
    display: block;
}

.youtube-frame {
    display: none;
    width: min(1200px,90vw);
    height: min(70vh,675px);
    border: none;
    border-radius: 12px;
    background: #000;
}

.local-video {
    display: block;
}