/* Global Theme & Reset */
:root {
    --bg-color: #0A0A0A;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --accent: #333333;
    --neon-blue: #00f3ff;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-secondary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.padded {
    padding: 120px 5%;
    scroll-margin-top: 100px; /* Offset for fixed navbar when jumping to hashes */
}

@media (min-width: 1024px) {
    .padded {
        padding: 150px 8%;
    }
}

.text-center {
    text-align: center;
}

.bg-darker {
    background-color: #050505;
}

.mt {
    margin-top: 40px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background-color var(--transition-fast), padding var(--transition-fast);
}

.navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    height: 84px;
    width: 105px;
    object-fit: contain;
}

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

.nav-item {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-primary);
    transition: width var(--transition-fast);
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 101;
}

.hamburger .line {
    width: 30px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05); /* Slight scale to hide edges during parallax */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 5, 0.15); /* Hafif karartma */
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.8), inset 0 0 40px rgba(0,0,0,0.5); /* Sinematik vignette */
    z-index: 1;
    pointer-events: none;
}

.hero-video-info {
    position: absolute;
    bottom: 50px;
    left: 3%;
    z-index: 2;
    text-align: left;
    transition: opacity 0.6s ease-in-out;
}

.hero-video-info.fade-out {
    opacity: 0;
}

.video-title {
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.video-director {
    font-size: 1rem;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-video-info .video-title,
.hero-video-info .video-director {
    font-family: 'Outfit', sans-serif;
}

@media (min-width: 768px) {
    .hero-video-info {
        bottom: 80px;
        left: 4%;
    }
    .video-title {
        font-size: 4rem;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    z-index: 2;
    opacity: 0.8;
}

.video-controls {
    position: absolute;
    bottom: 50px;
    right: 5%;
    z-index: 3;
    display: flex;
    align-items: center;
    background: rgba(10, 10, 10, 0.3);
    padding: 10px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background var(--transition-fast), padding var(--transition-fast);
}

.video-controls:hover {
    background: rgba(10, 10, 10, 0.7);
    padding: 10px 15px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.2s;
}

.control-btn:hover {
    transform: scale(1.1);
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: width 0.3s ease, opacity 0.3s ease, margin-left 0.3s ease;
    margin-left: 0;
}

.video-controls:hover .volume-slider {
    width: 60px;
    opacity: 1;
    pointer-events: auto;
    margin-left: 10px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
}

.line-anim {
    width: 1px;
    height: 35px;
    background-color: rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.line-anim::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-primary);
    animation: scrollDown 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* Image Wrapper Generic for reveal interactions */
.image-wrapper {
    overflow: hidden;
    position: relative;
    background-color: var(--accent);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
    will-change: transform;
}

/* Featured Section */
.featured-works {
    padding-top: 50px;
}

.featured-grid {
    display: flex;
    flex-direction: column;
    gap: 8vh;
}

.featured-item {
    width: 100%;
}

.featured-item .image-wrapper {
    height: 60vh;
}

.featured-item:hover .image-wrapper img {
    transform: scale(1.03);
}

.item-text {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.item-text h3 {
    font-size: 2rem;
}

.item-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 5px;
}

@media (min-width: 1024px) {
    .featured-item .image-wrapper {
        height: 75vh;
    }
    .featured-item:nth-child(even) {
        width: 80%;
        margin-left: auto;
    }
    .featured-item:nth-child(odd) {
        width: 80%;
    }
}

/* Works Section */
.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.filter-list {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.filter-list li {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-list li:hover,
.filter-list li.active {
    color: var(--text-primary);
}

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

@media (min-width: 768px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 40px;
    }
}

@media (min-width: 1024px) {
    .works-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 60px 40px;
    }
}

/* Manifesto Section */
.manifesto-section {
    padding: 60px 5%; /* Boşlukları azalttık */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 390px !important; /* Mesafeyi korurken oynamayı engelleyen yeni minimum değer */
    text-align: center;
    overflow: hidden;
    background-color: var(--bg-color);
}

@media (max-width: 768px) {
    .manifesto-section {
        min-height: 480px !important; /* Mobilde de boşluklar optimize edildi */
    }
}

.manifesto-container {
    max-width: 1000px;
    margin: 0 auto;
    min-height: 200px;
    display: block; /* Changed from flex-column to allow inline behavior for children */
}

.typewriter {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary); /* Back to white */
    text-transform: uppercase;
}

.typewriter-cursor {
    display: inline;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    color: var(--text-primary); /* Back to white */
    animation: blink 0.8s step-end infinite;
    margin-left: 2px;
    font-weight: 300;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.work-item {
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.work-item.hidden {
    display: none;
}

.work-item .image-wrapper {
    aspect-ratio: 16/9;
}

.work-info {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
    transition: border-color var(--transition-fast);
}

.work-item:hover .work-info {
    border-color: rgba(255,255,255,0.4);
}

.work-item:hover img {
    transform: scale(1.05); /* Slight zoom */
}

.work-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.work-info h4 {
    font-size: 1.3rem; /* 2 punto küçültüldü */
    margin-bottom: 5px;
}

.work-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.category-tag {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.load-more {
    margin-top: 80px;
    text-align: center;
}

.btn-outline {
    background: none;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
    padding: 15px 40px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

/* Directors Section */
.directors-section.padded {
    padding-bottom: 50px; /* Alttaki boşluğu kapatmak için */
}

@media (min-width: 1024px) {
    .directors-section.padded {
        padding-bottom: 70px;
    }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.directors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Mobilde 2 sütun */
    gap: 20px;
    margin-top: 60px;
}

@media (min-width: 768px) {
    .directors-grid {
        grid-template-columns: repeat(4, 1fr); /* Tabletlerde 4 sütun */
        gap: 25px;
    }
}

@media (min-width: 1024px) {
    .directors-grid {
        grid-template-columns: repeat(6, 1fr); /* Desktop'ta 6 sütun tek satır */
        gap: 20px;
    }
}

.director-item {
    text-align: center;
    cursor: pointer;
}

.portrait-bw {
    aspect-ratio: 3/4;
    filter: grayscale(100%) contrast(1.1);
    transition: filter var(--transition-smooth);
}

.director-item:hover .portrait-bw {
    filter: grayscale(0%) contrast(1);
}

.director-item:hover img {
    transform: scale(1.05);
}

.director-name {
    margin-top: 25px;
    font-size: 1.5rem;
}

/* Content Section (Masonry Simulator via Grid) */
.subtitle-wide {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 600px;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 20px;
    margin-top: 50px;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--accent);
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-fast);
}

.masonry-item:hover .masonry-overlay {
    transform: translateY(0);
    opacity: 1;
}

@media (min-width: 768px) {
    .item-large { grid-column: span 2; grid-row: span 2; }
    .item-tall { grid-row: span 2; }
    .item-wide { grid-column: span 2; }
}

/* AI-Driven Film */
.ai-section {
    background: linear-gradient(135deg, #050505 0%, #0a0e12 100%);
    position: relative;
    border-top: 1px solid rgba(0, 243, 255, 0.1);
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.flex-split {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

@media (min-width: 1024px) {
    .flex-split {
        flex-direction: row;
        align-items: center;
        gap: 100px;
    }
    
    .flex-split > * {
        flex: 1;
    }
}

.ai-text {
    position: relative;
}

.neon-accent {
    width: 60px;
    height: 2px;
    background-color: var(--neon-blue);
    margin-bottom: 30px;
    box-shadow: 0 0 10px var(--neon-blue);
}

.ai-text h2 {
    font-size: 4rem;
    margin-bottom: 30px;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.ai-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.view-link {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    color: var(--neon-blue);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.view-link:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--neon-blue);
}

.tech-spec-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px;
    background: rgba(0,0,0,0.5);
}

.tech-spec-card img {
    filter: contrast(1.2) saturate(0.8);
    transition: filter var(--transition-fast);
}

.tech-spec-card:hover img {
    filter: contrast(1) saturate(1);
}

.tech-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    padding: 5px 10px;
    border-left: 2px solid var(--neon-blue);
}

.text-mono {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: var(--neon-blue);
}

/* Contact Section */
.contact-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

.contact-section.padded {
    padding-top: 50px;
}

@media (min-width: 1024px) {
    .contact-section.padded {
        padding-top: 70px;
    }
}

.giant-heading {
    font-size: 10vw;
    line-height: 1;
    margin-bottom: 80px;
    word-wrap: break-word;
}

.contact-details {
    align-items: flex-start;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 60px;
}

.contact-col h3 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.contact-link {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    text-transform: none;
    display: inline-block;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-primary);
    transition: width var(--transition-fast);
}

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

/* Subscribe Form */
.subscribe-form {
    display: flex;
    margin-top: 15px;
    position: relative;
    max-width: 100%;
}

.subscribe-status {
    font-size: 0.85rem;
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    font-family: var(--font-body);
}

.subscribe-status.loading {
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.subscribe-status.success {
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
    background: rgba(76, 175, 80, 0.1);
}

.subscribe-status.error {
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
    background: rgba(244, 67, 54, 0.1);
}

.subscribe-input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 10px 10px 10px 0;
    outline: none;
    transition: border-color var(--transition-fast);
}

.subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.subscribe-input:focus {
    border-bottom-color: var(--text-primary);
}

.subscribe-btn {
    background: none;
    border: none;
    border-bottom: 1px solid var(--text-primary);
    color: var(--text-primary);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.subscribe-btn:hover {
    color: var(--bg-color);
    background-color: var(--text-primary);
}

.subscribe-info {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 12px;
    font-weight: 300;
}

.social-links li {
    margin-bottom: 15px;
}

.social-links a {
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.footer-bottom {
    margin-top: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.back-to-top {
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color var(--transition-fast);
}

.back-to-top:hover {
    color: var(--text-primary);
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links.mobile-active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        justify-content: center;
        align-items: center;
        font-size: 2rem;
        z-index: 100;
        gap: 30px;
    }
    
    .nav-links.mobile-active .nav-item {
        font-size: 2rem;
    }
    
    .hamburger.active .line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .line:nth-child(2) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .headline {
        font-size: 4rem;
    }
    .ai-text h2 {
        font-size: 3rem;
    }
    .padded {
        padding: 80px 5%;
    }
}

/* Animations (To be triggered by JS Intersection Observer) */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-slide {
    opacity: 0;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-slide.active {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: translateY(0);
}

.animate-on-load {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Work Item Modal Styles --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrolling outside */
    background-color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: #050505;
    margin: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 95%;
    max-width: 1200px;
    height: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 24px;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,1);
    overflow: hidden; /* So video respects the border-radius */
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

/* Modal Navigation Arrows */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: var(--text-secondary);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 20; /* above video */
}

.modal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.close-btn {
    color: var(--text-primary);
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    transition: all var(--transition-fast);
    line-height: 1;
    z-index: 10;
    background: rgba(0,0,0,0.4);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.close-btn:hover,
.close-btn:focus {
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,0.1);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.modal-video {
    width: 100%;
    height: 65vh;
    max-height: 700px;
    background: #000;
    position: relative;
    display: flex;
}

.video-player-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
}

.modal-gallery {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 20px;
    background: #050505;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.modal-gallery::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.modal-gallery img {
    height: 120px; /* Kept it elegant, not towering */
    width: auto;
    object-fit: cover;
    border-radius: 4px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform var(--transition-fast), filter var(--transition-fast);
    filter: brightness(0.8);
}

.modal-gallery img:hover {
    transform: scale(1.02);
    filter: brightness(1);
}

#modalVideo {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the whole 16:9 film is visible without cropping */
    background: #000;
}

.custom-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5;
}

.video-player-wrapper:hover .custom-controls,
.custom-controls:hover {
    opacity: 1;
}

.progress-bar {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
}

.modal-volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-vol {
    width: 0;
    opacity: 0;
    pointer-events: none;
    transition: width 0.3s, opacity 0.3s;
}

.modal-volume-container:hover .modal-vol {
    width: 60px;
    opacity: 1;
    pointer-events: auto;
}

.modal-info {
    width: 100%;
    display: flex;
    flex-direction: row;        
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px 40px;
    background: #050505;
}

@media (max-width: 768px) {
    .modal-info {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-info h2 {
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin: 0;
}

.modal-meta-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.modal-meta-row .meta-data {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
    margin: 0;
}

.modal-cat {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.05);
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

/* === SEARCH DRAWER & OVERLAY === */

.search-icon-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.search-icon-btn svg {
    transition: transform var(--transition-fast), stroke var(--transition-fast);
}

.search-icon-btn:hover svg {
    stroke: var(--text-secondary);
    transform: scale(1.1);
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1005;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
    backdrop-filter: blur(5px);
}

.search-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.search-modal {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    width: 90%;
    max-width: 600px;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    z-index: 1006;
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    overflow: hidden;
}

.search-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) scale(1);
}

.search-bar-wrapper {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.search-modal-icon {
    color: var(--text-secondary);
    margin-right: 15px;
}

.search-input-spotlight {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.5rem;
    outline: none;
}

.search-input-spotlight::placeholder {
    color: rgba(255,255,255,0.3);
    font-weight: 300;
}

.close-search-btn-spotlight {
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    padding-left: 15px;
}

.close-search-btn-spotlight:hover {
    color: var(--text-primary);
}

.search-results-spotlight {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.search-results-spotlight:empty {
    display: none;
}

.search-results-spotlight::-webkit-scrollbar {
    width: 6px;
}
.search-results-spotlight::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.search-result-item {
    display: flex;
    gap: 15px;
    cursor: pointer;
    align-items: center;
    padding: 15px 25px;
    transition: background var(--transition-fast);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255,255,255,0.05);
}

.search-result-item:hover .search-result-thumb {
    border-color: rgba(255,255,255,0.4);
}

.search-result-thumb {
    width: 110px;
    height: 62px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #111;
    border: 1px solid rgba(255,255,255,0.1);
    transition: border-color var(--transition-fast);
}

.search-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-result-info h4 {
    margin-bottom: 3px;
    font-size: 1.1rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.search-result-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.no-results {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Fullscreen Image Lightbox */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-lightbox.show {
    display: flex !important;
    opacity: 1;
}

.image-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.image-lightbox.show img {
    transform: scale(1);
}

.close-lightbox-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s;
    line-height: 1;
}

.close-lightbox-btn:hover {
    color: var(--accent-light);
}

/* ---------------------------------
   14. Cookie Consent Banner
---------------------------------- */
.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    transition: bottom 0.5s ease-in-out;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent.show {
    bottom: 0;
}

.cookie-consent p {
    font-size: 0.85rem;
    margin: 0;
    max-width: 800px;
    text-align: center;
    line-height: 1.6;
    color: var(--text-secondary);
}

.cookie-consent .btn-outline {
    padding: 8px 30px;
    font-size: 0.9rem;
    border-color: rgba(255, 255, 255, 0.4);
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.cookie-consent .btn-outline:hover {
    background-color: #fff;
    color: #000;
}

@media (min-width: 768px) {
    .cookie-consent {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 40px;
    }
    .cookie-consent p {
        text-align: left;
    }
}
