/* =========================================
   1. FONTS & VARIABLES
   ========================================= */
/* Importuojame 'Josefin Sans' (Antraštėms) ir 'Inter' (Tekstui) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Josefin+Sans:wght@300;500;700&display=swap');

:root {
    /* Spalvų paletė */
    --bg-color: #050505;          /* Pagrindinė beveik juoda */
    --bg-card: #0a0a0a;           /* Kortelių fonas */
    --primary-green: #174a3c;     /* Tavo pagrindinė žalia */
    --primary-green-hover: #236e59; /* Šviesesnė žalia (hover) */
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    
    /* Šriftai */
    --font-heading: 'Josefin Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Nustatymai */
    --card-radius: 4px;
    --transition-speed: 0.3s;
}

/* =========================================
   2. GLOBAL STYLES & FILM GRAIN
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Paslepia horizontalią slinktį */
}

/* FILM GRAIN EFFECT (Kino juostos triukšmas fone) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* SVG triukšmo filtras */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none; /* Leidžia spausti per viršų */
    z-index: 9999;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; /* Visada viršuje */
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.4s ease;
}

/* JS prideda šią klasę slenkant žemyn */
header.scrolled {
    background: #050505;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo-container img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(23, 74, 60, 0.4));
    transition: transform 0.3s;
}

.logo-container img:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    gap: 35px;
}

nav ul li a {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: #d1d1d1;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
}

nav ul li a:hover, nav ul li a.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.4);
}

/* Žalia linija po nuoroda užvedus */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    height: 85vh; /* Beveik per visą ekraną */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    /* Subtilus žalias švytėjimas fone */
    background: radial-gradient(circle at center, rgba(23, 74, 60, 0.25) 0%, rgba(5, 5, 5, 1) 70%);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
    text-transform: uppercase;
    /* Gradientinis tekstas */
    background: linear-gradient(180deg, #ffffff 0%, #adadad 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(23, 74, 60, 0.3));
    animation: fadeUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeUp 1.5s ease-out;
}

/* =========================================
   5. FILM GRID & CARDS (NETFLIX STYLE)
   ========================================= */
.films-section {
    padding: 40px 5% 80px;
    z-index: 1;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-left: 4px solid var(--primary-green);
    padding-left: 15px;
}

.films-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Kortelės pagrindas */
.film-card {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9; /* Kino formatas */
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Hover efektas kortelei */
.film-card:hover {
    transform: scale(1.08); /* Padidėja */
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
    border-color: var(--primary-green); /* Žalias rėmelis */
}

.film-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease;
}

/* Užtamsiname nuotrauką užvedus, kad matytųsi tekstas */
.film-card:hover .film-thumbnail {
    filter: brightness(0.3) blur(1px);
}

/* Statinis pavadinimas (Matomas kai neužvesta) */
.film-title-static {
    position: absolute;
    bottom: 15px;
    left: 15px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
    transition: opacity 0.2s;
    pointer-events: none;
}

.film-card:hover .film-title-static {
    opacity: 0;
}

/* Išlendanti informacija (Overlay) */
.film-details-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 100%);
    transform: translateY(100%); /* Paslėpta apačioje */
    opacity: 0;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.film-card:hover .film-details-overlay {
    transform: translateY(0); /* Išvažiuoja į viršų */
    opacity: 1;
}

.overlay-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 5px;
}

.overlay-meta {
    font-size: 0.75rem;
    color: var(--primary-green);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.overlay-author {
    font-size: 0.8rem;
    color: #ccc;
    margin-bottom: 12px;
}

/* Mažas mygtukas "Žiūrėti" */
.watch-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    padding: 8px 15px;
    background: var(--text-white);
    color: #000;
    border-radius: 2px;
    font-weight: 700;
    font-family: var(--font-body);
    width: fit-content;
    transition: 0.2s;
}

.watch-btn-small:hover {
    background: var(--primary-green);
    color: #fff;
}

/* =========================================
   6. INNER PAGES (VIDEO, ABOUT, PRIVACY)
   ========================================= */
.content-container {
    max-width: 1100px;
    margin: 100px auto 60px;
    padding: 0 25px;
    animation: fadeUp 0.6s ease;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    color: var(--text-gray);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.back-btn:hover {
    color: var(--primary-green);
    transform: translateX(-5px);
}

/* Video grotuvas (Responsive) */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 40px;
    background: #000;
    border: 1px solid #222;
    box-shadow: 0 0 40px rgba(23, 74, 60, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Detalių tinklelis (Aprašymas + Kreditai) */
.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.description h4, .credits h4 {
    color: var(--primary-green);
    font-family: var(--font-heading);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.description p {
    color: #ddd;
    font-size: 1rem;
    line-height: 1.8;
}

.credits ul li {
    margin-bottom: 10px;
    color: var(--text-gray);
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 8px;
    font-size: 0.95rem;
}

.credits strong {
    color: #fff;
}

/* =========================================
   7. FAQ (D.U.K) STYLES
   ========================================= */
.faq-container {
    max-width: 800px;
    margin: 110px auto 60px;
    padding: 0 20px;
}

.faq-item {
    background: #0f0f0f;
    margin-bottom: 15px;
    border: 1px solid #222;
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #1a1a1a;
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--primary-green);
}

.faq-question.active {
    background: #161616;
    color: var(--primary-green);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #080808;
    padding: 0 20px;
}

.faq-answer p {
    padding: 20px 0;
    color: #aaa;
    line-height: 1.6;
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    background-color: #020202;
    padding: 50px 5%;
    border-top: 1px solid #151515;
    margin-top: auto; /* Prispaudžia prie apačios */
    text-align: center;
}

.footer-links {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-gray);
    font-family: var(--font-heading);
}

.footer-links a:hover {
    color: var(--primary-green);
}

.copyright {
    font-size: 0.8rem;
    color: #444;
}

/* =========================================
   9. ANIMATIONS & RESPONSIVE
   ========================================= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    
    /* Mobilus meniu */
    nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: #050505;
        justify-content: center;
        align-items: center;
        z-index: 999;
    }
    
    nav ul.active { display: flex; }
    
    nav ul li a { font-size: 1.5rem; }
    
    .mobile-menu-btn { 
        display: block; 
        z-index: 1001; /* Virš meniu overlay */
    }
    
    .details-grid { grid-template-columns: 1fr; }
    
    .films-grid {
        grid-template-columns: 1fr; /* Viena kolona telefonuose */
    }
}
