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

@font-face {
    font-family: 'Adrip';
    src: url('adrip1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* High-End Dark Theme */
    --color-bg: #030303;
    --color-surface: #0a0a0c;
    --color-surface-light: #121215;
    --color-text: #f0f0f0;
    --color-text-muted: #a0a0a5;
    
    /* Accents */
    --color-blood: #8b0000;
    --color-blood-bright: #b20000;
    --color-blood-glow: rgba(139, 0, 0, 0.5);
    --color-gold: #c5a059;
    --color-gold-glow: rgba(197, 160, 89, 0.3);
    
    /* Typography */
    --font-serif: 'Cinzel', serif;
    --font-sans: 'Inter', sans-serif;
    --font-title: 'Adrip', cursive;
    
    /* Transitions */
    --transition-slow: 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    --transition-fast: 0.3s ease;
}

/* ===================== BASE & PERFORMANCE ===================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    line-height: 1.7;
    margin: 0;
}

/* Optimize Rendering */
.fade-in, .glass-panel, .hero-bg-video, .chat-window {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    margin-top: 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-gold);
    margin-bottom: 4rem;
    font-weight: 300;
}

.lead-text {
    font-size: 1.4rem;
    color: #fff;
    font-weight: 300;
    border-left: 2px solid var(--color-blood);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

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

/* ===================== LAYOUT & COMPONENTS ===================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    scroll-margin-top: 80px;
    position: relative;
}

/* Cinematic Loader */
.cinematic-loader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeOutLoader 1s ease forwards;
    animation-delay: 2.5s;
    pointer-events: none;
}
.cinematic-loader.hidden { display: none; }
@keyframes fadeOutLoader {
    0% { opacity: 1; visibility: visible; pointer-events: none; }
    99% { opacity: 0; visibility: visible; pointer-events: none; }
    100% { opacity: 0; visibility: hidden; pointer-events: none; }
}
.loader-content { text-align: center; }
.loader-text {
    font-family: var(--font-title);
    font-size: 3rem;
    color: #fff;
    letter-spacing: 0.4em;
    animation: pulseText 2s infinite;
}
.loader-progress {
    width: 0;
    height: 1px;
    background: var(--color-blood);
    margin-top: 2rem;
    animation: loadProgress 1.5s ease-out forwards;
}
@keyframes pulseText { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes loadProgress { to { width: 100%; } }

/* Scroll Progress */
.scroll-progress-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 3px;
    background: transparent; z-index: 1001;
}
.scroll-progress-bar {
    height: 100%;
    background: var(--color-blood);
    width: 0;
    transition: width 0.1s;
}

/* Glass Panels */
.glass-panel {
    background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.01));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), inset 0 0 20px rgba(255,255,255,0.02);
    transition: transform 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.tilt-effect:hover {
    border-color: rgba(197, 160, 89, 0.3); /* Gold hover */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 2px;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--color-blood);
    color: #fff;
}
.btn-primary:hover {
    background: var(--color-blood-bright);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--color-blood-glow);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.btn-block { width: 100%; }

.btn:disabled {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===================== HEADER / NAV ===================== */
.main-nav {
    position: absolute; top: 0; left: 0; width: 100%;
    padding: 2rem 0; z-index: 1000;
}
.main-nav.scrolled {
    background: rgba(3, 3, 3, 0.95);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-logo {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.2em;
}
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s;
}
.nav-links a:hover { color: #fff; }
.nav-links .nav-highlight {
    color: var(--color-gold);
    border: 1px solid rgba(197, 160, 89, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 2px;
}
.nav-links .nav-highlight:hover { background: rgba(197, 160, 89, 0.1); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; flex-direction: column; gap: 5px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: #fff; transition: all 0.3s; }

/* Noise Overlay (cinematic grain effect) */
.noise-overlay {
    position: fixed; inset: 0; z-index: 9998;
    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)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.4;
}

/* ===================== HERO SECTION ===================== */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-bg-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -2; opacity: 0.4;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to bottom, rgba(3,3,3,0.3) 0%, #030303 100%);
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-content {
    animation: heroFadeIn 1.2s ease-out forwards;
    animation-delay: 2s; /* Wait for loader */
    opacity: 0; /* Initial state before animation */
}
.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--color-blood);
    color: #ffffff;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.hero-badge:hover {
    background-color: #8a0000;
}
.hero-title {
    font-family: var(--font-title);
    font-size: 6rem;
    color: #fff;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.hero-slogan {
    font-size: 1.4rem;
    color: var(--color-text-muted);
    font-weight: 300;
    margin-bottom: 3rem;
}
.hero-cta-group {
    display: flex; gap: 1.5rem; justify-content: center;
}

/* ===================== STATS BAR ===================== */
.stats-bar {
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 4rem 0;
    background: var(--color-surface);
}
.stats-headline {
    text-align: center;
    color: var(--color-gold);
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
}
.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.stat-item { text-align: center; }
.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===================== VISION & VIDEO ===================== */
.vision-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.video-container {
    position: relative; padding-bottom: 56.25%; height: 0;
}
.video-container iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 2px;
}

/* ===================== CREW & CAST ===================== */
.team-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem;
}
.team-card {
    text-align: center; padding: 2rem;
}
.team-image-wrapper {
    width: 160px; height: 160px; margin: 0 auto 1.5rem; border-radius: 50%; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}
.team-image-wrapper img {
    width: 100%; height: 100%; object-fit: cover; filter: grayscale(80%);
    transition: filter 0.4s, transform 0.4s;
}
.team-card:hover .team-image-wrapper img {
    filter: grayscale(0%); transform: scale(1.05);
}
.team-role { color: var(--color-gold); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.team-name { font-size: 1.5rem; margin: 0; }

/* ===================== SERVICES ===================== */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.service-icon { width: 40px; height: 2px; margin-bottom: 2rem; }
.gold-accent { background: var(--color-gold); box-shadow: 0 0 10px var(--color-gold-glow); }
.blood-accent { background: var(--color-blood); box-shadow: 0 0 10px var(--color-blood-glow); }

/* ===================== CASTING URGENCY ===================== */
.urgency-banner {
    background: rgba(139, 0, 0, 0.1);
    border: 1px solid rgba(139, 0, 0, 0.3);
    color: #ffcccc;
    padding: 1rem;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 4rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    display: flex; justify-content: center; align-items: center; gap: 10px;
}
.pulse-dot {
    width: 8px; height: 8px; background: #ff3333; border-radius: 50%;
    animation: pulse 1.5s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,51,51,0.7); } 70% { box-shadow: 0 0 0 10px rgba(255,51,51,0); } 100% { box-shadow: 0 0 0 0 rgba(255,51,51,0); } }

.supporter-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; }
.offer-subtitle { color: var(--color-gold); font-size: 1.1rem; margin-bottom: 2rem; }
.price-container { margin-bottom: 2rem; }
.price-strike { color: var(--color-text-muted); text-decoration: line-through; font-size: 1.2rem; margin: 0; }
.price-tag { font-family: var(--font-serif); font-size: 4rem; color: #fff; margin: 0; line-height: 1; }
.price-suffix { font-family: var(--font-sans); font-size: 1rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.benefit-icon { font-size: 1.5rem; margin-right: 1.5rem; margin-top: 5px; color: var(--color-gold); }
.benefits-list { list-style: none; padding: 0; }
.benefits-list li { display: flex; align-items: flex-start; margin-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 1.5rem; }
.benefits-list strong { color: #fff; display: block; margin-bottom: 0.3rem; font-size: 1.1rem; }
.benefits-list span { color: var(--color-text-muted); font-size: 0.95rem; }

/* Forms */
.form-title { font-size: 1.8rem; margin-bottom: 0.5rem; }
.form-subtitle { color: var(--color-text-muted); margin-bottom: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.85rem; color: var(--color-text-muted); }
.form-group input, .form-group textarea {
    width: 100%; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; padding: 1rem; font-family: var(--font-sans); transition: all 0.3s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-gold); background: rgba(0,0,0,0.6); }
/* File input is handled via inline styles for better focusability */
.file-label {
    display: flex; flex-direction: column; align-items: center; padding: 2rem !important;
    border: 1px dashed rgba(255,255,255,0.2) !important; cursor: pointer; text-align: center;
}
.file-label:hover { border-color: var(--color-gold) !important; color: var(--color-gold); }
.file-name { text-align: center; font-size: 0.8rem; margin-top: 0.5rem; color: var(--color-text-muted); }
.checkbox-group { display: flex; gap: 1rem; align-items: flex-start; }
.checkbox-group input { width: 16px; height: 16px; margin-top: 4px; accent-color: var(--color-gold); }
.checkbox-group label { font-size: 0.85rem; line-height: 1.5; cursor: pointer; }
.checkbox-group a { color: var(--color-gold); }

.form-success-message {
    display: none; background: rgba(0, 200, 0, 0.1); border: 1px solid rgba(0, 255, 0, 0.3);
    color: #4ade80; padding: 1rem; border-radius: 4px; text-align: center; margin-bottom: 1.5rem;
}

/* ===================== FAQ ===================== */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 800px; margin: 0 auto; }
.faq-item { padding: 2rem; cursor: pointer; }
.faq-question { font-size: 1.2rem; margin: 0; display: flex; justify-content: space-between; list-style: none; outline: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: '+'; color: var(--color-gold); font-size: 1.5rem; transition: transform 0.3s; }
details[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; opacity: 0; transition: all 0.4s; color: var(--color-text-muted); padding-top: 0; }
details[open] .faq-answer { max-height: 200px; opacity: 1; padding-top: 1rem; }

/* ===================== CHATBOT ===================== */
.chat-widget { position: fixed; bottom: 30px; right: 30px; z-index: 2000; }
.chat-bubble {
    width: 65px; height: 65px; background: var(--color-surface-light); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-gold);
    cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.8); transition: transform 0.3s, border-color 0.3s;
    animation: pulse-glow 3s infinite;
}
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(197, 160, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}
.chat-bubble:hover { transform: scale(1.05); border-color: var(--color-gold); }
.chat-bubble svg { width: 30px; height: 30px; }

.chat-window {
    position: absolute; bottom: 85px; right: 0; width: 380px; height: 550px;
    display: none; flex-direction: column; padding: 0; border: 1px solid rgba(197, 160, 89, 0.3);
}
.chat-window.active { display: flex; animation: slideUp 0.4s ease; }
.chat-header {
    padding: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.4);
}
.chat-header-info { display: flex; align-items: center; gap: 15px; }
.avatar-wrapper { position: relative; }
.toni-avatar { width: 45px; height: 45px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); }
.status-indicator { position: absolute; bottom: 0; right: 0; width: 10px; height: 10px; background: #22c55e; border-radius: 50%; border: 2px solid #000; }
.chat-titles strong { display: block; font-size: 1.1rem; color: #fff; }
.chat-titles span { font-size: 0.75rem; color: var(--color-gold); text-transform: uppercase; letter-spacing: 0.1em; }
.chat-close { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

.chat-messages { flex: 1; padding: 1.5rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }
.message { max-width: 85%; padding: 1rem; border-radius: 8px; font-size: 0.9rem; line-height: 1.5; }
.message.bot { align-self: flex-start; background: rgba(255,255,255,0.03); color: #fff; border: 1px solid rgba(255,255,255,0.05); }
.message.user { align-self: flex-end; background: var(--color-surface-light); color: #fff; border: 1px solid rgba(197, 160, 89, 0.3); }

.typing-indicator { display: flex; gap: 5px; padding: 1rem; }
.typing-dot { width: 6px; height: 6px; background: var(--color-gold); border-radius: 50%; animation: typing 1.4s infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; } .typing-dot:nth-child(3) { animation-delay: 0.4s; }

.chat-suggestions { padding: 0.5rem 1rem; display: flex; gap: 8px; flex-wrap: wrap; background: rgba(0,0,0,0.2); }
.suggestion-btn { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--color-text-muted); padding: 5px 12px; border-radius: 4px; font-size: 0.75rem; cursor: pointer; }
.suggestion-btn:hover { background: var(--color-surface-light); color: var(--color-gold); border-color: var(--color-gold); }

.chat-input-area { padding: 1rem; display: flex; gap: 10px; background: rgba(0,0,0,0.4); border-top: 1px solid rgba(255,255,255,0.05); }
.chat-input-area input { flex: 1; background: transparent; border: none; color: #fff; outline: none; }
.chat-input-area button { background: none; border: none; color: var(--color-gold); cursor: pointer; }

/* Loader Dots for Form */
.loader-dots::after {
    content: '...';
    display: inline-block;
    width: 1em;
    text-align: left;
    animation: dots 1.5s infinite;
}
@keyframes dots {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}

/* ===================== FOOTER ===================== */
.footer { border-top: 1px solid rgba(255,255,255,0.05); padding: 4rem 0 2rem; background: #000; }
.footer-content { display: flex; justify-content: space-between; margin-bottom: 4rem; }
.footer-title { font-family: var(--font-title); font-size: 2rem; color: #fff; margin-bottom: 0.5rem; }
.footer-tagline { color: var(--color-gold); font-style: italic; }
.footer-links { display: flex; gap: 4rem; }
.link-group h4 { color: #fff; margin-bottom: 1.5rem; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; }
.link-group a { display: block; color: var(--color-text-muted); text-decoration: none; margin-bottom: 0.8rem; font-size: 0.9rem; transition: color 0.3s; }
.link-group a:hover { color: var(--color-gold); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); color: #666; font-size: 0.8rem; }

/* Animations */
.fade-in { 
    opacity: 0; 
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1), transform 1.2s cubic-bezier(0.19, 1, 0.22, 1); 
    will-change: opacity, transform;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
    .hero-title { font-size: 4.5rem; }
    .vision-grid, .supporter-layout { grid-template-columns: 1fr; gap: 3rem; }
    .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 3.5rem; }
    .section-title { font-size: 2.2rem; }
    .nav-links { display: none; } /* Could add hamburger logic later if needed */
    .nav-hamburger { display: flex; }
    .stats-grid { flex-direction: column; gap: 2rem; }
    .container { padding: 0 1.5rem; }
    .chat-window { width: calc(100vw - 40px); bottom: 80px; height: 70vh; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.8rem; }
    .hero-cta-group { flex-direction: column; width: 100%; }
    .price-tag { font-size: 3rem; }
}
