/* ===================================================
   CineArchive Landing Page — Custom Styles
   Cinema Dark Mode Design System
   =================================================== */

/* --- Smooth Scroll & Selections --- */
html {
    scroll-behavior: smooth;
}

::selection {
    background-color: rgba(192, 38, 211, 0.3);
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e1b4b;
}

::-webkit-scrollbar-thumb {
    background: #4338ca;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

/* --- Navbar Glassmorphism --- */
#navbar {
    background: transparent;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(4, 14, 31, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* --- Video Glow Border --- */
.video-glow-border {
    background: linear-gradient(135deg, #06b6d4, #4f46e5, #c026d3, #06b6d4);
    background-size: 300% 300%;
    animation: gradient-shift 4s ease infinite;
    box-shadow: 
        0 0 30px rgba(6, 182, 212, 0.2),
        0 0 60px rgba(6, 182, 212, 0.1);
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- Solution Cards Hover --- */
.solution-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* --- Benefit Cards Hover --- */
.benefit-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(6, 182, 212, 0.05);
}

/* --- Pricing Cards --- */
.pricing-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card-featured {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 0 30px rgba(192, 38, 211, 0.1),
        0 0 60px rgba(192, 38, 211, 0.05);
}

.pricing-card-featured:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(192, 38, 211, 0.15),
        0 0 80px rgba(192, 38, 211, 0.08);
}

/* --- FAQ Accordion --- */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.faq-item.active {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(30, 27, 75, 0.6);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-content.show {
    max-height: 300px;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for children */
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* --- Responsive Adjustments --- */
@media (max-width: 640px) {
    .video-glow-border {
        box-shadow: 
            0 0 15px rgba(6, 182, 212, 0.15),
            0 0 30px rgba(6, 182, 212, 0.07);
    }

    .pricing-card-featured {
        box-shadow: 
            0 0 20px rgba(192, 38, 211, 0.08),
            0 0 40px rgba(192, 38, 211, 0.04);
    }
}

/* --- Focus States for Accessibility --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #818cf8;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Noise/Grain overlay for premium feel --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    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)'/%3E%3C/svg%3E");
}

/* --- Utility: Gradient text --- */
.text-gradient-primary {
    background: linear-gradient(135deg, #818cf8, #c026d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-accent {
    background: linear-gradient(135deg, #22d3ee, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
