/* ==========================================================================
   RUU CINEMA - Modern 3D Scroll-Driven Styling
   Color Palette: Obsidian Black (#000000, #050505), Crimson Red (#E50914)
   ========================================================================== */

:root {
    --bg-black: #000000;
    --bg-dark-1: #050505;
    --bg-dark-2: #080808;
    --bg-dark-3: #0d0d0d;
    --bg-card: rgba(18, 18, 18, 0.7);
    --primary-red: #E50914;
    --bright-red: #FF1A24;
    --dark-red: #7A0007;
    --text-white: #FFFFFF;
    --text-muted: #E5E5E5;
    --text-dim: #A8A8A8;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --glass-border: rgba(255, 255, 255, 0.1);
    --red-glow: 0 0 35px rgba(229, 9, 20, 0.45);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Typography & Utilities */
h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-transform: uppercase;
}

.text-gradient-red {
    background: linear-gradient(135deg, #FFFFFF 0%, #FF1A24 60%, #E50914 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-tag {
    display: inline-block;
    color: var(--primary-red);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

/* Navbar */
.navbar-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 2rem;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar-header.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 9, 20, 0.2);
    padding: 0.85rem 2rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(229, 9, 20, 0.4);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.3);
}

.nav-menu-desktop {
    display: flex;
    gap: 2.25rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dim);
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-link:hover {
    color: var(--primary-red);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-red-glow {
    background: linear-gradient(135deg, var(--bright-red), var(--primary-red));
    color: #FFF;
    border: none;
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.4);
}

.btn-red-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 26, 36, 0.7);
}

.play-store-icon {
    width: 20px;
    height: 20px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-toggle .bar {
    width: 26px;
    height: 2px;
    background-color: var(--text-white);
    transition: 0.3s;
}

/* Mobile Nav Modal */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white);
}

/* 3D SCENE CONTAINER & STAGE SETUP */
.viewport-stage {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.pinned-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
    transform-style: preserve-3d;
}

/* Background Atmosphere Glows */
.bg-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(229, 9, 20, 0.15) 0%, rgba(0, 0, 0, 1) 75%);
    transition: background 0.8s ease;
}

/* 3D Smartphone Device Mockup */
.device-container-3d {
    position: relative;
    width: 310px;
    height: 640px;
    z-index: 10;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.device-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: #111;
    border-radius: 44px;
    padding: 12px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 0 0 2px #000,
        0 25px 60px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(229, 9, 20, 0.3);
    overflow: hidden;
}

.device-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 20px;
    background: #000;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 25;
}

.device-screen-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 34px;
    overflow: hidden;
    background: #000;
}

.device-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hero Section Specifics */
.hero-scene {
    min-height: 100vh;
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text-content {
    position: relative;
    z-index: 20;
    max-width: 900px;
    margin-bottom: 2.5rem;
    padding: 0 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    margin-bottom: 1rem;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-dim);
    max-width: 650px;
    margin: 0 auto 1.8rem;
}

/* Feature Scenes (Movies, TV, Premium, AI) */
.scene-layout {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.scene-layout.reverse {
    grid-template-columns: 1fr 1fr;
}

.scene-text {
    max-width: 580px;
}

.scene-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    margin-bottom: 1.25rem;
}

.scene-desc {
    font-size: 1.15rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* 3D Stacked Gallery Effect */
.gallery-3d-stack {
    position: relative;
    width: 100%;
    height: 520px;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.card-3d-plane {
    position: absolute;
    width: 280px;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(229, 9, 20, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.5s ease;
}

.card-3d-plane img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-pos-left {
    transform: translate3d(-60px, 0, -100px) rotateY(15deg);
    z-index: 5;
}

.card-pos-center {
    transform: translate3d(60px, -20px, 0px) rotateY(-5deg);
    z-index: 10;
}

.card-pos-right {
    transform: translate3d(180px, 20px, 80px) rotateY(-20deg);
    z-index: 15;
}

/* Premium VIP Card Styling */
.premium-card-box {
    background: linear-gradient(145deg, rgba(25, 25, 25, 0.9), rgba(10, 10, 10, 0.95));
    border: 1px solid rgba(229, 9, 20, 0.4);
    border-radius: 28px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(229, 9, 20, 0.25);
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.check-icon {
    width: 22px;
    height: 22px;
    color: var(--primary-red);
}

/* Download CTA Section */
.download-section {
    position: relative;
    padding: 8rem 2rem;
    text-align: center;
    background: radial-gradient(circle at 50% 40%, rgba(229, 9, 20, 0.2) 0%, #000 70%);
}

.download-box {
    max-width: 800px;
    margin: 0 auto;
}

.download-title {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.download-subtitle {
    font-size: 1.3rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

.btn-large {
    padding: 1.1rem 2.8rem;
    font-size: 1.1rem;
}

/* Footer */
.site-footer {
    background-color: var(--bg-dark-1);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-tagline {
    color: var(--text-dim);
    margin-top: 1rem;
    max-width: 380px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--text-white);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--text-dim);
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
    .scene-layout, .scene-layout.reverse {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .scene-text {
        max-width: 100%;
        margin: 0 auto;
    }

    .gallery-3d-stack {
        height: 420px;
    }
    
    .card-3d-plane {
        width: 220px;
        height: 380px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu-desktop, .nav-actions .nav-btn {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    .device-container-3d {
        width: 260px;
        height: 530px;
    }

    .download-section {
        padding: 5rem 1.5rem;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibility Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .device-container-3d, .card-3d-plane {
        transform: none !important;
    }
}
