/* ═══════════════════════════════════════════════════════════════
   SCENARIER VOL.1 — Premium Cinematic Design
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Outfit:wght@200;300;400;500&display=swap');

:root {
    --bg-primary: #08080a;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.04);
    --text-primary: #f5f5f5;
    --text-secondary: #6b6b6b;
    --text-muted: #3d3d3d;
    --accent: #a78bfa;
    --accent-glow: rgba(167, 139, 250, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', system-ui, sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Subtle grain texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

/* ─────────────────────────────────────────────────────────────────
   HEADER
   ───────────────────────────────────────────────────────────────── */

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 6%;
    position: relative;
    z-index: 10;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 300;
    font-family: var(--font-body);
    letter-spacing: 0.15em;
    margin-left: 0.75rem;
    opacity: 0.8;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.4s var(--ease-out-quart);
}

.nav-link:hover {
    color: var(--text-primary);
}

/* ─────────────────────────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────────────────────────── */

.hero-section {
    text-align: center;
    padding: 2rem 2rem 2.5rem;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--border-subtle), transparent);
    opacity: 0;
    animation: fadeSlideDown 1.2s var(--ease-out-expo) 0.3s forwards;
}

.hero-section h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 1s var(--ease-out-expo) 0.5s forwards;
}

.hero-section p {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 1s var(--ease-out-expo) 0.7s forwards;
}

/* ─────────────────────────────────────────────────────────────────
   GALLERY CONTAINER
   ───────────────────────────────────────────────────────────────── */

.gallery-container {
    padding: 2rem 6% 8rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────────
   VIDEO GRID
   ───────────────────────────────────────────────────────────────── */

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ─────────────────────────────────────────────────────────────────
   VIDEO ITEM CARD
   ───────────────────────────────────────────────────────────────── */

.video-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: 
        transform 0.6s var(--ease-out-expo),
        border-color 0.4s var(--ease-out-quart),
        box-shadow 0.6s var(--ease-out-expo);
    opacity: 0;
    transform: translateY(40px);
    animation: fadeSlideUp 0.8s var(--ease-out-expo) forwards;
}

.video-item:nth-child(1) { animation-delay: 0.9s; }
.video-item:nth-child(2) { animation-delay: 1.0s; }
.video-item:nth-child(3) { animation-delay: 1.1s; }
.video-item:nth-child(4) { animation-delay: 1.2s; }
.video-item:nth-child(5) { animation-delay: 1.3s; }
.video-item:nth-child(6) { animation-delay: 1.4s; }

.video-item:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 
        0 30px 60px -20px rgba(0, 0, 0, 0.5),
        0 0 40px var(--accent-glow);
}

/* ─────────────────────────────────────────────────────────────────
   THUMBNAIL
   ───────────────────────────────────────────────────────────────── */

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #0a0a0c;
    overflow: hidden;
}

.thumb {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 50%,
        rgba(8, 8, 10, 0.8) 100%
    );
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-quart);
}

.video-item:hover .thumb::after {
    opacity: 1;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease-out-expo);
    filter: saturate(0.9);
}

.video-item:hover .thumb img {
    transform: scale(1.08);
    filter: saturate(1);
}

/* ─────────────────────────────────────────────────────────────────
   PLAY ICON
   ───────────────────────────────────────────────────────────────── */

.play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    font-size: 0;
    color: transparent;
}

.play-icon::before {
    content: '';
    width: 70px;
    height: 70px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    transition: 
        transform 0.5s var(--ease-out-expo),
        border-color 0.4s var(--ease-out-quart),
        background 0.4s var(--ease-out-quart);
}

.play-icon::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
    margin-left: 4px;
    transition: border-color 0.4s var(--ease-out-quart);
}

.video-item:hover .play-icon::before {
    transform: scale(1.1);
    border-color: var(--accent);
    background: rgba(167, 139, 250, 0.15);
}

.video-item:hover .play-icon::after {
    border-left-color: var(--accent);
}

/* ─────────────────────────────────────────────────────────────────
   VIDEO INFO
   ───────────────────────────────────────────────────────────────── */

.video-info {
    padding: 1.75rem 1.5rem 2rem;
    position: relative;
}

.video-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-subtle), transparent);
}

.video-info h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
    transition: color 0.4s var(--ease-out-quart);
}

.video-item:hover .video-info h3 {
    color: #fff;
}

.video-info p {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────────────────────────
   MODAL
   ───────────────────────────────────────────────────────────────── */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(8, 8, 10, 0.95);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: modalFadeIn 0.4s var(--ease-out-expo) forwards;
}

.modal-content {
    background: linear-gradient(
        145deg,
        rgba(20, 20, 24, 0.9) 0%,
        rgba(12, 12, 14, 0.95) 100%
    );
    border: 1px solid var(--border-subtle);
    width: 90%;
    max-width: 900px;
    border-radius: 4px;
    position: relative;
    padding: 0;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    animation: modalSlideUp 0.5s var(--ease-out-expo) 0.1s forwards;
}

.close-modal {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.75rem;
    font-weight: 200;
    cursor: pointer;
    z-index: 10;
    border: 1px solid transparent;
    border-radius: 50%;
    transition: 
        color 0.3s var(--ease-out-quart),
        border-color 0.3s var(--ease-out-quart),
        background 0.3s var(--ease-out-quart);
}

.close-modal:hover {
    color: var(--text-primary);
    border-color: var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
}

.video-container {
    width: 100%;
    background: #000;
    position: relative;
}

video {
    width: 100%;
    height: auto;
    display: block;
}

#modalVideoTitle {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    padding: 1.5rem 2rem 0.5rem;
}

#modalVideoDesc {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--text-secondary);
    padding: 0 2rem 2rem;
}

/* ─────────────────────────────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────────────────────────────── */

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideDown {
    to {
        opacity: 0.5;
    }
}

@keyframes modalFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    to {
        transform: scale(1) translateY(0);
    }
}

/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .main-header {
        padding: 1.5rem 5%;
    }
    
    .logo {
        font-size: 1.375rem;
    }
    
    .logo span {
        font-size: 0.75rem;
        margin-left: 0.5rem;
    }
    
    .hero-section {
        padding: 4rem 1.5rem 3rem;
    }
    
    .hero-section::before {
        height: 50px;
    }
    
    .gallery-container {
        padding: 1.5rem 5% 5rem;
    }
    
    .video-info {
        padding: 1.25rem 1.25rem 1.5rem;
    }
    
    .video-info h3 {
        font-size: 1.25rem;
    }
    
    .play-icon::before {
        width: 56px;
        height: 56px;
    }
    
    .play-icon::after {
        border-width: 8px 0 8px 13px;
        margin-left: 3px;
    }
    
    .modal-content {
        width: 95%;
        border-radius: 2px;
    }
    
    #modalVideoTitle {
        font-size: 1.25rem;
        padding: 1.25rem 1.5rem 0.5rem;
    }
    
    #modalVideoDesc {
        padding: 0 1.5rem 1.5rem;
    }
}

/* ─────────────────────────────────────────────────────────────────
   FOOTER (if needed)
   ───────────────────────────────────────────────────────────────── */

.main-footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
