/* Design System Tokens */
:root {
    --bg-primary: #1C183E;
    --gold: #F5C542;
    --text-white: #ffffff;
    --text-muted: #cfcfe6;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(245, 197, 66, 0.2);
    --glass-blur: blur(10px);
    --radius-lg: 24px;
    --radius-md: 14px;
    --transition: all 0.3s ease;
    --gold-glow: 0 0 10px rgba(245, 197, 66, 0.4);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 20px;
    /* Reduced padding since nav is hidden */
    overflow-x: hidden;
    position: relative;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Cinematic Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('posters-bg.jpg') no-repeat center center/cover;
    z-index: -2;
    animation: cinematicMove 30s infinite alternate ease-in-out;
}

/* Dark Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 15, 35, 0.85);
    /* Dark blue-ish overlay matching theme */
    z-index: -1;
}

@keyframes cinematicMove {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Typography and Headings */
h1,
h2,
h3,
h4 {
    color: var(--text-white);
    font-weight: 700;
}

.section-title {
    margin: 40px 0 20px;
    font-size: 1.3rem;
    text-align: center;
    color: var(--gold);
    text-shadow: var(--gold-glow);
    position: relative;
    padding-bottom: 10px;
}

.section-title::before {
    display: none;
    /* Removed side indicator to focus on centered design */
}

/* Layout Containers */
.main-header {
    padding: 10px 20px 0;
    /* Restored slight padding for breathing room */
    text-align: center;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center align all content */
    justify-content: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    /* Restored margin for balance */
}

.main-logo {
    width: 300px;
    /* Increased from 260px */
    /* Increased from 140px to be clear and premium */
    max-width: 90%;
    /* Safety cap for very small screens */
    height: auto !important;
    object-fit: contain;
    transition: var(--transition);
    margin-top: 5px;
}

@media (min-width: 768px) {
    .main-logo {
        width: 400px;
        /* Increased from 320px */
        /* Balanced desktop size */
    }
}

.main-header h1 {
    /* Removed display: none; to show the title */
    margin: 0;
    padding: 0;
}

/* Titles */
.main-header .premium-title {
    font-size: 1.8rem;
    /* Clear main title */
    color: var(--gold);
    /* Changed to Gold as requested */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-top: 0;
    margin-bottom: 8px;
    /* Space between title and subtitle */
    line-height: 1.3;
    font-weight: 700;
}

@media (min-width: 768px) {
    .main-header .premium-title {
        font-size: 2.2rem;
    }
}

.header-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 25px;
    /* Space before button */
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Hero Button (Repurposed Marketing Phrase) */
.marketing-phrase {
    display: inline-block;
    background: linear-gradient(135deg, #f5c542 0%, #d4a017 100%);
    color: #000;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 14px 45px;
    /* Larger button area */
    border-radius: 50px;
    margin-bottom: 30px;
    /* Space before content */
    box-shadow: 0 4px 15px rgba(245, 197, 66, 0.5);
    /* Stronger glow */
    cursor: default;
    font-style: normal;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-align: center;
}

.content {
    padding: 0 20px;
    max-width: 500px;
    margin: 0 auto;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.card-header {
    margin-bottom: 20px;
}

.card-header h2 {
    font-size: 1.1rem;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

input[type="text"],
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 12px 15px;
    color: white;
    font-size: 0.95rem;
    transition: var(--transition);
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

textarea {
    height: 100px;
    resize: none;
}

/* Segmented Controls */
.segmented-control {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 4px;
    gap: 4px;
}

.segment {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.segment i {
    width: 18px;
    height: 18px;
}

.segment.active {
    background: var(--gold);
    color: #000;
}

.half-width-container {
    display: flex;
    gap: 15px;
}

.half-width {
    flex: 1;
}

/* Upload Area */
.upload-area {
    border: 2px dashed rgba(245, 197, 66, 0.3);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-area:hover {
    background: rgba(245, 197, 66, 0.05);
    border-color: var(--gold);
}

.upload-icon {
    color: var(--gold);
    width: 35px;
    height: 35px;
    margin-bottom: 10px;
}

.upload-area p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Buttons */
.submit-btn {
    width: 100%;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: var(--radius-md);
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    margin-top: 10px;
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Features Styling */
.features-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 0;
}

.feature-icon {
    width: 45px;
    height: 45px;
    background: rgba(245, 197, 66, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
    /* Prevents icon from shrinking */
}

.feature-icon i {
    width: 24px;
    height: 24px;
}

.feature-text h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.feature-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FAQ Styling */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}

.faq-question {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.faq-question i {
    color: var(--gold);
    width: 20px;
    height: 20px;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    transition: all 0.4s ease;
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0;
}

.faq-item.open .faq-answer {
    padding: 0 20px 20px;
    max-height: 100px;
    opacity: 1;
}

/* CTA Banner */
/* CTA Banner - Hidden */
.cta-banner {
    display: none !important;
}

.cta-banner h3 {
    color: #000;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.cta-banner p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.cta-btn {
    background: #fff;
    color: #000;
    border: none;
    border-radius: 30px;
    padding: 10px 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Bottom Nav */
/* Bottom Nav - Hidden */
.bottom-nav {
    display: none !important;
}

.nav-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    gap: 4px;
    transition: var(--transition);
}

.nav-item i {
    width: 22px;
    height: 22px;
}

.nav-item span {
    font-size: 0.75rem;
    font-weight: 600;
}

.nav-item.active {
    color: var(--gold);
}

/* Mobile Responsiveness */
@media (max-width: 360px) {
    .main-header h1 {
        font-size: 1.6rem;
    }
}

/* --- Final Hollywood-Style Slider Section --- */
.most-requested-section {
    padding: 60px 0;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.slider-header-wrapper {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.slider-title {
    color: var(--text-white);
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
}

.slider-title-divider {
    height: 2px;
    width: 100px;
    background: var(--gold);
    margin: 0 auto;
    box-shadow: 0 0 10px var(--gold);
}

.slider-container {
    position: relative;
    width: 100%;
    /* Full Width */
    max-width: none;
    /* Remove constraint */
    margin: 0;
    padding: 20px 0;
}

.slider-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    /* Fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.slider-track {
    display: flex;
    gap: 20px;
    width: max-content;
    /* Critical for Marquee */
    padding: 20px 0;
    align-items: center;
    /* Animation Control */
    animation: marquee 40s linear infinite;
    will-change: transform;
}

.slider-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
        /* Moves Right for RTL flow visual (or logic check) */
    }
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.poster-card {
    flex: 0 0 auto;
    width: 200px;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
    background: #000;
    /* Standard Visibility */
    transform: scale(1);
    opacity: 1;
    filter: none;
    will-change: transform;
}

.poster-card:hover {
    transform: scale(1.05);
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    z-index: 10;
}

.poster-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* Hide Active Class specific overrides since all are equal now */
.poster-card.active {
    display: block;
}

/* Navigation Controls - Side Positioned */
/* Navigation Controls - Hidden for Marquee */
.slider-control {
    display: none !important;
}

@media (max-width: 1024px) {
    /* Fixed width maintained */
}

@media (max-width: 768px) {
    .poster-card {
        width: 160px;
        /* Fixed size for mobile */
    }

    .slider-title {
        font-size: 1.6rem;
    }

    .slider-viewport {
        margin: 0 10px;
    }
}

/* --- Success Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-modal {
    background: linear-gradient(135deg, rgba(28, 24, 62, 0.95), rgba(0, 0, 0, 0.95));
    border: 1px solid var(--gold);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 30px rgba(245, 197, 66, 0.3);
    max-width: 90%;
    width: 400px;
}

.modal-overlay.active .success-modal {
    transform: scale(1);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(245, 197, 66, 0.5);
}

.success-icon i {
    width: 40px;
    height: 40px;
}

.success-modal h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.success-modal p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

.modal-close-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 10px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: var(--gold);
    color: #000;
}