/* ============================================================
   APEX AI CINEMA — Minimal Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Sora:wght@300;400;600;700&display=swap');

/* ── Variables ── */
:root {
    --bg: #0A0A0A;
    --primary: #00E5FF;
    --text: #EAEAEA;
    --text-sec: #9A9A9A;
    --surface: #141414;
    --border: #222222;
    --nav-h: 80px;
    --radius: 8px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

ul {
    list-style: none;
}

/* ── Typography ── */
h1,
h2,
h3,
h4 {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.1rem;
    color: var(--text-sec);
    font-weight: 300;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background: #00cce6;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--text);
    color: var(--text);
    transform: translateY(-2px);
}

/* ── Layout ── */
.section {
    padding: 140px 0;
    position: relative;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-header {
    margin-bottom: 80px;
}

.section-header p {
    max-width: 600px;
    margin-top: 1rem;
}

.section-header-modern {
    text-align: center;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header-modern h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    background: linear-gradient(135deg, #fff 0%, #00E5FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
}

.section-header-modern h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.section-header-modern p {
    font-size: 1.2rem;
    color: var(--text-sec);
    max-width: 650px;
    margin-top: 24px;
}

/* ── NAV ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), border-bottom var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

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

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-sec);
    font-weight: 400;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lang-switcher {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-sec);
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn.active {
    color: var(--text);
    border-bottom: 1px solid var(--primary);
}

.lang-btn:hover:not(.active) {
    color: var(--text);
}

/* Mobile Menu Icon */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 16px;
    position: relative;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 1.5px;
    width: 100%;
    background: var(--text);
    transition: var(--transition);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 7px;
}

.hamburger span:nth-child(3) {
    top: 14px;
}

.hamburger.open span:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav a {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    color: var(--text-sec);
}

.mobile-nav a:hover {
    color: var(--text);
}

/* ── HERO ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: var(--nav-h);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('images/hero_bg.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.3) contrast(1.1) grayscale(0.2);
    z-index: -2;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.2) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    color: var(--text);
}

.hero-sub {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--primary);
    margin-bottom: 24px;
    font-weight: 400;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-sec);
    margin-bottom: 48px;
    max-width: 600px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-socials {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-socials a {
    color: var(--text-sec);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.hero-socials a svg {
    width: 28px;
    height: 28px;
    transition: var(--transition);
}

.hero-socials a.yt-icon svg {
    width: 38px;
    height: 38px;
}

.hero-socials a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.hero-socials a.yt-icon:hover {
    color: #FF0000;
}

/* ── ABOUT ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    margin-bottom: 24px;
    font-size: 1.2rem;
    line-height: 1.8;
}

.about-image {
    aspect-ratio: 4/5;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
}

/* ── FILMS ── */
.films-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.film-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.film-card:hover {
    border-color: #444;
}

.film-card:hover .film-thumb img {
    transform: scale(1.05);
}

.film-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.film-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.8);
}

.film-info {
    padding: 32px;
}

.film-info h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.film-info p {
    margin-bottom: 24px;
    font-size: 1rem;
}

.film-watch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: rgba(0, 229, 255, 0.05);
    color: var(--primary);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.film-watch:hover {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    transform: translateY(-2px);
}

.film-watch.secondary {
    background: transparent;
    color: var(--text-sec);
    border-color: var(--border);
    margin-left: 10px;
}

.film-watch.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: #444;
    box-shadow: none;
}

/* ── PROCESS ── */
.process-section {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #0c0c0c;
}

.process-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.process-item {
    display: flex;
    align-items: baseline;
    gap: 40px;
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.process-item:hover {
    border-color: #444;
}

.process-num {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    color: var(--text-sec);
    font-weight: 300;
    min-width: 40px;
}

.process-content h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.process-content p {
    font-size: 1.1rem;
}

/* ── MISSION ── */
.mission-section {
    text-align: center;
}

.mission-section h2 {
    margin-bottom: 40px;
}

.mission-text {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.4;
    color: var(--text);
    max-width: 1000px;
    margin: 0 auto 40px;
    font-weight: 300;
    font-family: 'Sora', sans-serif;
}

.mission-sub {
    font-size: 1.2rem;
    color: var(--text-sec);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── CONTACT ── */
.contact-section {
    background: #0c0c0c;
    border-top: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    margin-bottom: 24px;
}

.contact-info p {
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-link {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    color: var(--text-sec);
    display: inline-block;
}

.contact-link:hover {
    color: var(--primary);
    transform: translateX(8px);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-sec);
}

.form-control {
    width: 100%;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--text-sec);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.form-success {
    display: none;
    margin-top: 20px;
    color: var(--primary);
}

/* ── FOOTER ── */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text);
}

.footer-brand p {
    font-size: 1rem;
}

.footer-socials {
    display: flex;
    gap: 32px;
}

.footer-socials a {
    color: var(--text-sec);
    font-size: 1rem;
}

.footer-socials a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 0.9rem;
}

/* ── ANIMATIONS ── */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .process-item {
        flex-direction: column;
        gap: 16px;
        padding: 32px;
    }

    .mission-text {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    h1 {
        font-size: 3.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header-modern {
        margin-bottom: 40px;
    }

    .films-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 60px 0 30px;
    }

    .btn {
        padding: 14px 24px;
        width: 100%;
        margin-bottom: 8px;
    }
}

/* ── COOKIE BANNER ── */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 24px 0;
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

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

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-sec);
    flex: 1;
    min-width: 250px;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-content .btn {
        width: 100%;
    }
}

/* ── STATS COUNTER ── */
.stats-section {
    background: linear-gradient(to right, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.9)), url('images/hero_bg.png') center/cover;
    padding: 80px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 24px;
}

.stat-number {
    font-size: 3.5rem;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 8px;
}

.stat-plus {
    font-size: 3.5rem;
    color: var(--primary);
    font-family: 'Sora', sans-serif;
    font-weight: 600;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-sec);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}



/* ── VIDEO MODAL ── */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.video-modal.active {
    opacity: 1;
    pointer-events: all;
}

.video-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    z-index: 10001;
}

.video-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.video-close:hover {
    color: var(--primary);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

/* ── SCROLL TO TOP ── */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}