:root {
    --bg-color: #0A0A0C;
    --card-bg: #141418;
    --accent: #007AFF;
    --glow-color: rgba(0, 122, 255, 0.6);
    --text-primary: #FFFFFF;
    --text-secondary: #9999A1;
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

html, body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    scroll-snap-type: y mandatory; /* Smooth full section snapping */
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* GLOBAL FULLSCREEN SECTION DEFINITION */
.section-fullscreen {
    height: 100vh;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    scroll-snap-align: start; /* Centers page directly on navbar link click */
    scroll-snap-stop: always;
    overflow: hidden;
}

.section-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

/* FROSTED GLASS FLOATING NAVBAR */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    background: rgba(20, 20, 24, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 1000;
    padding: 12px 32px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    user-select: none;
}

.dropdown-icon {
    font-size: 0.75rem;
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.3s ease;
}

/* SECTION 1: HERO SECTION */
.hero-section {
    position: relative;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-intro-frame {
    position: relative;
    width: 100%;
    max-width: 680px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    transition: all 0.4s ease;
}

.main-intro-frame:hover {
    border-color: var(--accent);
    box-shadow: 0 0 35px var(--glow-color);
    transform: scale(1.02);
}

.main-intro-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 24px;
}

.btn-glow {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-glow:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--glow-color);
}

/* CAROUSEL COMMON STYLES */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-arrow {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.nav-arrow:hover {
    background: var(--accent);
    box-shadow: 0 0 15px var(--glow-color);
}

.carousel-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 15px 10px;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    width: 100%;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

/* SECTION 2: SHORT CARDS */
.short-card {
    min-width: 240px;
    height: 420px;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.short-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0, 122, 255, 0.3);
}

.short-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transition: opacity 0.3s ease;
}

.short-card:hover .card-caption,
.long-card:hover .card-caption {
    opacity: 0;
}

/* SECTION 3: LONG CARDS (SCALED & CONSTRAINED) */
.long-card {
    min-width: 440px;
    max-width: 520px;
    aspect-ratio: 16 / 9;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.long-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0, 122, 255, 0.3);
}

.long-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SECTION 4: CONTACT & ABOUT SECTION (SKETCH IMPLEMENTATION) */
.contact-section {
    background: radial-gradient(circle at center, rgba(0, 122, 255, 0.08) 0%, transparent 70%);
}

.contact-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 20, 24, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 50px 30px;
    max-width: 650px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 3px solid var(--accent);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 0 30px var(--glow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 45px var(--glow-color);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}

.social-icon {
    width: 56px;
    height: 56px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--glow-color);
}

/* SOCIAL ICON SVG STYLES */
.social-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--text-primary);
    transition: fill 0.3s ease, transform 0.3s ease;
}

.social-icon:hover svg {
    fill: #FFFFFF;
    transform: scale(1.1);
}

.contact-btn {
    padding: 14px 40px;
    font-size: 1.05rem;
}

/* ==========================================================================
   TABLET & MOBILE RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablets & Small Laptops (under 991px) */
@media (max-width: 991px) {
    .section-fullscreen {
        height: auto;
        padding: 90px 0 50px 0;
    }

    .long-card {
        min-width: 320px;
    }

    .short-card {
        min-width: 190px;
        height: 340px;
    }
}

/* Mobile Devices (under 768px) */
@media (max-width: 768px) {
    header {
        width: 88%;
        padding: 12px 20px;
        border-radius: 16px;
    }

    .mobile-menu-btn {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    nav {
        display: none;
        flex-direction: column;
        gap: 16px;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }

    nav.active {
        display: flex;
    }

    .mobile-menu-btn.active .dropdown-icon {
        transform: rotate(180deg);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-glow {
        width: 100%;
        max-width: 280px;
    }

    .nav-arrow {
        display: none; /* Hide arrows on touch screens for clean swipe experience */
    }

    .carousel-container {
        mask-image: none;
        -webkit-mask-image: none;
        padding: 10px 0;
    }

    .short-card {
        min-width: 170px;
        height: 300px;
    }

    .long-card {
        min-width: 280px;
    }

    .contact-box {
        padding: 30px 16px;
    }

    .social-links {
        gap: 16px;
    }

    .social-icon {
        width: 46px;
        height: 46px;
    }
}

/* Extra Small Devices (under 480px) */
@media (max-width: 480px) {
    .short-card {
        min-width: 150px;
        height: 270px;
    }

    .long-card {
        min-width: 250px;
    }

    .profile-avatar {
        width: 90px;
        height: 90px;
    }
}

/* ==========================================================================
   MOBILE CARD NAVIGATION ARROWS (SECTIONS 2 & 3)
   ========================================================================== */

@media (max-width: 768px) {
    /* Show arrows on mobile and position them on the sides of the carousel */
    .carousel-wrapper {
        position: relative;
        padding: 0 12px; /* Leaves space for the side buttons */
    }

    .nav-arrow {
        display: flex !important; /* Force visible on mobile */
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
        background: rgba(20, 20, 24, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    }

    /* Target Left (Previous) Arrow */
    .carousel-wrapper .nav-arrow:first-child {
        left: -4px;
    }

    /* Target Right (Next) Arrow */
    .carousel-wrapper .nav-arrow:last-child {
        right: -4px;
    }

    .nav-arrow:active {
        background: var(--accent);
        transform: translateY(-50%) scale(0.92);
    }

    /* Ensure carousel container doesn't obscure side buttons */
    .carousel-container {
        padding: 10px 8px;
        mask-image: none;
        -webkit-mask-image: none;
    }
}

/* ==========================================================================
   MOBILE FIT-TO-SCREEN FOR LONG SAMPLES (SECTION 3)
   ========================================================================== */

@media (max-width: 768px) {
    /* Constrain section height and prevent layout overflow */
    #long-samples.section-fullscreen {
        height: 100vh;
        min-height: 100vh;
        padding: 60px 0 20px 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }

    #long-samples .section-content {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #long-samples .section-title {
        margin-bottom: 12px;
        font-size: 1.5rem;
    }

    /* Scale long cards relative to screen width and height */
    .long-card {
        min-width: 82vw;
        max-width: 85vw;
        max-height: 52vh; /* Keeps height tightly bounded so it fits screen vertically */
        aspect-ratio: 16 / 9;
        margin: auto 0;
    }

    .long-card video {
        width: 100%;
        height: 100%;
        object-fit: contain; /* Prevents video cropping while maintaining 16:9 ratio */
        background: #000;
    }
}

@media (max-width: 480px) {
    /* Fine-tuning for smaller phones */
    .long-card {
        min-width: 88vw;
        max-width: 88vw;
        max-height: 45vh;
    }
}

/* ==========================================================================
   MOBILE FIT-TO-SCREEN FOR SHORT SAMPLES (SECTION 2)
   ========================================================================== */

@media (max-width: 768px) {
    /* Lock section height to viewport to avoid vertical scroll */
    #short-samples.section-fullscreen {
        height: 100vh;
        min-height: 100vh;
        padding: 60px 0 20px 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }

    #short-samples .section-content {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #short-samples .section-title {
        margin-bottom: 10px;
        font-size: 1.5rem;
    }

    /* Snap one card into focus at a time */
    #short-samples .carousel-container {
        scroll-snap-type: x mandatory;
        padding: 10px 0;
    }

    .short-card {
        /* Force single card width */
        min-width: 78vw;
        max-width: 78vw;
        
        /* Expand height to fill available screen space */
        height: 62vh;
        max-height: 62vh;
        
        /* Center aspect ratio framing */
        margin: auto 0;
        scroll-snap-align: center;
        flex-shrink: 0;
    }

    .short-card video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    /* Fine-tune dimensions for smaller screen widths */
    .short-card {
        min-width: 82vw;
        max-width: 82vw;
        height: 60vh;
        max-height: 60vh;
    }
}