
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-cyan: #ff3b3b;         /* strong red */
    --secondary-purple: #b91c1c;     /* deep red/burgundy */
    --accent-pink: #ff6f61;          /* coral/red accent */
    --bg-dark: #1a0a0a;              /* dark with red tint */
    --bg-darker: #120606;            /* even darker with red tint */
    --text-light: #f3e6e6;           /* light, slightly warm */
    --text-dim: #bfa3a3;             /* dim, slightly warm */
    --glass-bg: rgba(255, 0, 0, 0.05);      /* glass with red tint */
    --glass-border: rgba(255, 0, 0, 0.1);   /* glass border with red tint */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 50%, rgba(0, 245, 255, 0.1) 0%, transparent 70%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 70%),
                radial-gradient(circle at 40% 80%, rgba(255, 0, 128, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out;
}

.loader {
    width: 100px;
    height: 100px;
    border: 3px solid transparent;
    border-top: 3px solid var(--primary-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.loader::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 100px;
    height: 100px;
    border: 3px solid transparent;
    border-bottom: 3px solid var(--accent-pink);
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: inline-block;
    height: auto;
    max-height: 100px;
    width: auto;
    vertical-align: middle;
    /* Remove text-specific styles */
    font-family: unset;
    font-size: unset;
    font-weight: unset;
    color: unset;
    text-shadow: unset;
    animation: unset;
}

@keyframes glow {
    from { text-shadow: 0 0 20px var(--primary-cyan); }
    to { text-shadow: 0 0 30px var(--primary-cyan), 0 0 40px var(--primary-cyan); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--accent-pink));
    transition: width 0.3s ease;
}

.nav-menu a:hover::before {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-cyan);
    text-shadow: 0 0 10px var(--primary-cyan);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-cyan);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Prevent header overlap */
    margin-bottom: 60px; /* Add extra space below hero section */
}

.hero-content {
    z-index: 2;
    max-width: 1000px;
    padding: 0 2rem;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-cyan), var(--secondary-purple), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 1s ease-out 0.5s both;
}

.hero .tagline {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--text-dim);
    margin-bottom: 2rem;
    animation: slideInUp 1s ease-out 0.8s both;
}

.hero .subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-light);
    margin-bottom: 3rem;
    animation: slideInUp 1s ease-out 1.1s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--primary-cyan), var(--secondary-purple));
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideInUp 1s ease-out 1.4s both;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 245, 255, 0.3);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-cyan);
    border-radius: 50%;
    animation: float-particle 6s ease-in-out infinite;
}

.floating-element:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 60%; left: 20%; animation-delay: 2s; }
.floating-element:nth-child(3) { top: 40%; left: 80%; animation-delay: 4s; }
.floating-element:nth-child(4) { top: 80%; left: 70%; animation-delay: 1s; }
.floating-element:nth-child(5) { top: 30%; left: 60%; animation-delay: 3s; }

@keyframes float-particle {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.5; }
    50% { transform: translateY(-30px) scale(1.5); opacity: 1; }
}

/* Sections */
section {
    padding: 100px 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

#films {
    margin-top: 40px; /* Add extra space above films section */
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-cyan);
    text-shadow: 0 0 20px var(--primary-cyan);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Films Grid */
.films-grid {
    display: flex;
    overflow-x: auto;
    gap: 2.5rem;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    scroll-behavior: smooth;
    position: relative;
}
.films-grid::-webkit-scrollbar {
    display: none;
}

.films-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(26,10,10,0.85);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
    opacity: 0.85;
}
.films-arrow.left {
    left: -24px;
}
.films-arrow.right {
    right: -24px;
}
.films-arrow:hover {
    background: var(--primary-cyan);
    color: #fff;
    opacity: 1;
}

.film-card {
    min-width: 260px;
    max-width: 300px;
    flex: 0 0 auto;
    position: relative;
    background: var(--glass-bg);
    border: none;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    transition: transform 0.3s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s;
    margin-bottom: 0;
    scroll-snap-align: start;
}

.film-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.film-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-cyan), var(--secondary-purple), var(--accent-pink));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.film-card:hover::before {
    opacity: 0.1;
}

.film-card:hover {
    transform: scale(1.07) translateY(-10px);
    z-index: 2;
    box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

.top-number {
    position: absolute;
    left: -40px;
    top: 20px;
    font-size: 5rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 4px 24px #000, 0 0 0 #fff;
    z-index: 3;
    pointer-events: none;
}

.film-poster {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

.film-info {
    opacity: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, rgba(26,10,10,0.95) 80%, transparent 100%);
    color: #fff;
    padding: 1.2rem 1rem 1.5rem 1rem;
    border-radius: 0 0 18px 18px;
    transition: opacity 0.3s;
    z-index: 2;
    pointer-events: none;
}

.film-card:hover .film-info {
    opacity: 1;
    pointer-events: auto;
}

.film-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--primary-cyan);
    margin-bottom: 0.5rem;
}

.film-genre {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.watch-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: transparent;
    color: var(--primary-cyan);
    border: 2px solid var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.watch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-cyan);
    transition: left 0.3s ease;
    z-index: -1;
}

.watch-btn:hover::before {
    left: 0;
}

.watch-btn:hover {
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--primary-cyan);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    align-items: center;
}

.about-text {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.about-text.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-text h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--secondary-purple);
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.stat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.2);
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-pink);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    align-items: start;
}

.contact-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.contact-form.visible {
    opacity: 1;
    transform: translateY(0);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-cyan);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-light);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, var(--primary-cyan), var(--secondary-purple));
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 245, 255, 0.3);
}

.contact-info {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.contact-info.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--secondary-purple);
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--primary-cyan);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--primary-cyan);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 245, 255, 0.3);
}

/* Footer */
footer {
    background: var(--bg-darker);
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.hero .logo {
    max-height: 160px;
    margin-bottom: 1rem;
}

footer .logo {
    max-height: 40px;
    vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 15, 0.95);
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        transition: left 0.3s ease;
        backdrop-filter: blur(20px);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .films-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .films-grid {
        gap: 1.2rem;
    }
    .film-card {
        min-width: 180px;
        max-width: 220px;
    }
    .film-poster {
        height: 260px;
    }
    .top-number {
        left: -28px;
        font-size: 2.7rem;
        top: 10px;
    }
    .films-arrow {
        font-size: 1.7rem;
        width: 36px;
        height: 36px;
        left: -12px;
        right: -12px;
    }
}

@media (max-width: 600px) {
    .films-grid {
        flex-direction: column;
        overflow-x: visible;
        gap: 1.5rem;
        padding-bottom: 0;
        scroll-snap-type: none;
    }
    .film-card {
        min-width: 100%;
        max-width: 100%;
    }
    .film-info {
        opacity: 1;
        position: static;
        background: none;
        color: var(--text-light);
        padding: 0.7rem 0 0 0;
        border-radius: 0;
        pointer-events: auto;
    }
    .top-number {
        position: absolute;
        left: 10px;
        top: 10px;
        font-size: 2.2rem;
    }
    .films-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.films-carousel {
    position: relative;
}