/* ========================================
   CREAFILMS - Editorial Luxury Design
   Magazine Style - VOGUE Inspired
   ======================================== */

/* ========================================
   1. RESET & BASE
   ======================================== */

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

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: #ffffff;
    background-color: #000000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   2. FIXED VIDEO BACKGROUND (IMMERSIVE)
   ======================================== */

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
    opacity: 0;
    animation: videoFadeIn 2s ease-out 0.5s forwards;
}

/* Video Overlay (Dark) */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: -1;
    pointer-events: none;
}

/* ========================================
   3. MAIN HERO CONTAINER (CENTERED)
   ======================================== */

.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 1400px;
}

/* ========================================
   4. TYPOGRAPHY - GIGANTE EDITORIAL
   ======================================== */

.main-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 400;
    letter-spacing: 0.5rem;
    color: #ffffff;
    line-height: 0.95;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: titleReveal 2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.main-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.8rem, 2vw, 1.5rem);
    font-weight: 200;
    letter-spacing: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: subtitleReveal 2s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

/* ========================================
   5. CORNER NAVIGATION (NO BOXES)
   ======================================== */

.corner-nav {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    pointer-events: none;
}

.nav-link {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    font-family: 'Cinzel', serif;
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    font-weight: 400;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    backdrop-filter: blur(10px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: all;
    opacity: 0;
}

/* Number Labels */
.nav-link::before {
    content: attr(data-label);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.1rem;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease;
}

.nav-text {
    position: relative;
    overflow: hidden;
}

.nav-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover States */
.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link:hover::before {
    color: rgba(255, 255, 255, 0.8);
}

.nav-link:hover .nav-text::after {
    width: 100%;
}

/* Position: Top Left */
.nav-tl {
    top: 3rem;
    left: 3rem;
    animation: navReveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) 1.6s forwards;
}

/* Position: Top Right */
.nav-tr {
    top: 3rem;
    right: 3rem;
    animation: navReveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) 1.8s forwards;
}

/* Position: Bottom Center */
.nav-bc {
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: navReveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) 2s forwards;
}

/* ========================================
   6. YEAR DISPLAY (EDITORIAL DETAIL)
   ======================================== */

.year-display {
    position: fixed;
    bottom: 3rem;
    left: 3rem;
    font-family: 'Cinzel', serif;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    font-weight: 300;
    letter-spacing: 0.4rem;
    color: rgba(255, 255, 255, 0.3);
    z-index: 50;
    opacity: 0;
    animation: yearReveal 1.5s ease-out 2.2s forwards;
}

/* ========================================
   7. SCROLL HINT
   ======================================== */

.scroll-hint {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 50;
    opacity: 0;
    animation: scrollHintReveal 1.5s ease-out 2.4s forwards;
}

.scroll-line {
    display: block;
    width: 1px;
    height: 50px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: scrollLineMove 3s ease-in-out infinite;
}

/* ========================================
   8. ANIMATIONS
   ======================================== */

@keyframes videoFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes navReveal {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes yearReveal {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.3;
    }
}

@keyframes scrollHintReveal {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.6;
    }
}

@keyframes scrollLineMove {
    0%, 100% {
        transform: scaleY(1);
        opacity: 0.8;
    }
    50% {
        transform: scaleY(1.5);
        opacity: 0.4;
    }
}

/* ========================================
   9. RESPONSIVE DESIGN - MOBILE
   ======================================== */

@media (max-width: 768px) {
    .main-title {
        font-size: clamp(2.5rem, 12vw, 5rem);
        letter-spacing: 0.3rem;
    }

    .main-subtitle {
        font-size: clamp(0.7rem, 3vw, 1.2rem);
        letter-spacing: 0.5rem;
    }

    /* Navigation - Stack vertically on mobile */
    .nav-tl,
    .nav-tr {
        top: 2rem;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .nav-tl {
        top: 2rem;
    }

    .nav-tr {
        top: 6rem;
    }

    .nav-bc {
        bottom: 2rem;
    }

    .year-display {
        bottom: 2rem;
        left: 2rem;
        font-size: 0.65rem;
    }

    .scroll-hint {
        display: none;
    }

    .nav-link {
        padding: 0.8rem 1.2rem;
        font-size: 0.75rem;
        letter-spacing: 0.2rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.5rem;
        letter-spacing: 0.2rem;
    }

    .main-subtitle {
        font-size: 0.7rem;
        letter-spacing: 0.4rem;
    }

    .nav-link {
        padding: 0.7rem 1rem;
        font-size: 0.7rem;
    }
}

/* ========================================
   10. ACCESSIBILITY
   ======================================== */

/* Focus States */
.nav-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast */
@media (prefers-contrast: high) {
    .nav-link {
        border: 1px solid rgba(255, 255, 255, 0.5);
    }

    .main-title {
        text-shadow: 0 0 10px rgba(0, 0, 0, 1);
    }
}

/* ========================================
   11. FALLBACK FOR NO VIDEO
   ======================================== */

body.no-video {
    background-image: url('../assets/hero1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body.no-video #bg-video {
    display: none;
}
