@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

:root {
    --bg: #000000;
    --text: #ffffff;
    --dim: #555555;
    --sans: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--sans);
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    z-index: 1000;
    /* Increased to ensure it's always on top */
}

nav .logo {
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: 1.5rem;
    text-decoration: none;
    color: white;
}

.instagram-link-top {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.instagram-link-top:hover {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.instagram-link-top svg {
    width: 32px;
    height: 32px;
}

/* Hide mobile Instagram on desktop */
.instagram-mobile {
    display: none;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5vw;
    position: relative;
    overflow: hidden;
}

.video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Force hardware acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.8) 100%),
        linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 1) 100%);
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2rem, 12vw, 15rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    will-change: transform;
}

.hero p {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--dim);
    position: relative;
    z-index: 2;
    will-change: transform;
}

/* Horizontal Slider */
.horizontal-wrap {
    height: 100vh;
    overflow: hidden;
}

.horizontal-content {
    display: flex;
    height: 100vh;
    width: fit-content;
    will-change: transform;
    transform-style: preserve-3d;
}

.slide {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8vh 18vw;
    position: relative;
    will-change: transform;
}

.slide-img-box {
    width: 55vw;
    aspect-ratio: 16/9;
    background: black;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
    clip-path: inset(0 0 0 0);
    cursor: pointer;
    will-change: transform;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 2;
}

.slide-img-box:hover .play-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.4);
}

.play-text {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: white;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.slide-img-box:hover .play-text {
    opacity: 1;
    transform: translateY(0);
}

.slide-img-box:hover .slide-img {
    filter: blur(10px) scale(1.1);
}

.play-btn {
    width: 80px;
    height: 80px;
    border: 1px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 5px;
}

.slide-img-box:hover .play-btn {
    transform: scale(1.1);
    background: white;
}

.slide-img-box:hover .play-btn::after {
    border-color: transparent transparent transparent black;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-info {
    position: relative;
    width: 55vw;
}

.slide-info h2 {
    font-size: var(--title-fs, 8vw);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.05em;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    transform: skewY(5deg);
    opacity: 0;
    white-space: nowrap;
}

.slide-details {
    display: flex;
    gap: 4rem;
    justify-content: center;
    /* Center the only block */
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(30px);
}

.detail-item {
    max-width: 600px;
    /* Prevent it from being too wide */
    text-align: center;
}

.detail-item h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--dim);
    margin-bottom: 1.2rem;
}

.detail-item p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: white;
}

/* Background floating text */
.bg-text {
    position: absolute;
    bottom: 8vh;
    left: 10vw;
    font-size: 20vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    line-height: 1;
    z-index: -1;
    white-space: nowrap;
}

/* Footer & Contact Section */
.footer-section {
    min-height: 100vh;
    padding: 10rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.8) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, transparent 40%),
        linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 1) 100%);
    z-index: 1;
    pointer-events: none;
}

.footer-section h2,
.footer-section p,
.footer-section .contact-form {
    position: relative;
    z-index: 2;
}

.footer-section h2 {
    font-size: 10vw;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 6rem;
}

.contact-form {
    width: 100%;
    max-width: 1000px;
    padding: 6rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
    z-index: 99999 !important;
    /* Force to absolute top */
    pointer-events: auto !important;
}

.form-row {
    display: flex;
    gap: 6rem;
    margin-bottom: 4rem;
}

.form-group {
    flex: 1;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
    color: white;
    letter-spacing: -0.05em;
    mix-blend-mode: difference;
}

/* Side Navigation Dots */
.side-nav {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.nav-dots {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.5);
}

.dot.active {
    background: white;
    transform: scale(1.8);
}

.form-group label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25rem;
    color: var(--dim);
    margin-bottom: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 2.5rem 0 1rem 0;
    /* Massive top padding to capture clicks near label */
    font-size: 1.4rem;
    font-family: var(--sans);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: text;
    pointer-events: auto !important;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: white;
    padding-left: 1rem;
}

.footer-section .contact-form {
    position: relative;
    z-index: 100;
    /* Force to top */
}

.form-group textarea {
    resize: none;
    min-height: 200px;
    /* Large hit area */
    display: block;
}

.contact-form button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 2rem 5rem;
    text-transform: uppercase;
    letter-spacing: 0.4rem;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    margin-top: 4rem;
}

.contact-form button:hover {
    background: white;
    color: black;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .side-nav {
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        padding: 3rem !important;
        /* Match logo nav padding */
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        pointer-events: none !important;
        /* Let clicks pass to logo below */
        transform: none !important;
        background: transparent !important;
    }

    .nav-dots {
        flex-direction: row !important;
        gap: 12px !important;
        pointer-events: auto !important;
        /* Enable clicks on dots */
    }

    .form-row {
        flex-direction: column;
        gap: 5rem;
    }

    .footer-section h2 {
        font-size: 20vw;
    }

    .logo {
        font-size: 1.2rem;
    }

    /* Hide desktop Instagram, show mobile Instagram */
    .instagram-desktop {
        display: none !important;
    }

    .instagram-mobile {
        display: flex !important;
        margin-left: 20px;
        pointer-events: auto !important;
    }

    .slide-details {
        gap: 0;
    }

    /* Force visibility of text items on mobile to skip GSAP animations */
    .slide-info h2,
    .slide-details {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero h1,
    .hero p {
        opacity: 1 !important;
        transform: none !important;
    }

    .slide {
        width: 100vw !important;
        padding: 15vh 7.5vw 5vh 7.5vw !important;
        /* Balanced padding */
        overflow: hidden;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        /* Center the 85vw boxes */
        justify-content: flex-start;
        /* Start from top to avoid pushing down too much */
    }

    .slide-img-box {
        width: 85vw !important;
        /* Take more space on mobile */
        margin-bottom: 2rem;
    }

    .slide-info {
        width: 85vw !important;
        text-align: center;
    }

    .detail-item {
        max-width: 100% !important;
    }

    .detail-item p {
        font-size: 0.95rem !important;
        line-height: 1.5;
    }
}

.mini-footer {
    margin-top: 10rem;
    padding-top: 4rem;
    width: 100%;
    max-width: 1000px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.mini-footer p {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--dim);
}

/* Video Modal */
#video-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 5vw;
    opacity: 0;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    transform: scale(0.9);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
}

#modal-player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--dim);
}

@media (max-width: 768px) {
    .modal-content {
        aspect-ratio: auto;
        height: 50vh;
    }

    .close-modal {
        top: -30px;
    }

    /* Hide footer video on mobile */
    .footer-section .video-container {
        display: none;
    }
}