/* ==========================================================================
   CineInsight Custom Stylesheet
   ========================================================================== */

/* Modern CSS Reset & Variable Definitions */
:root {
    /* Brand Colors */
    --color-primary: #E35614;
    --color-primary-hover: #C2410C;
    --color-primary-light: rgba(227, 86, 20, 0.08);
    --color-primary-glow: rgba(227, 86, 20, 0.25);
    
    /* Neutral Colors */
    --color-dark: #0A1128;
    --color-text-main: #0F172A;
    --color-text-muted: #475569;
    --color-text-light: #64748B;
    --color-bg-footer: #F8FAFC;
    
    /* Layout Constants */
    --max-width: 1200px;
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    
    /* Glassmorphism Styles */
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.06), 
                    0 0 0 1px rgba(15, 23, 42, 0.015);
    --glass-shadow-hover: 0 35px 60px -10px rgba(15, 23, 42, 0.1), 
                          0 0 0 1px rgba(227, 86, 20, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--color-text-main);
    background-color: #F1F5F9;
    background-image: url('assets/theater_background.png');
    background-position: center 80%;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

/* Background overlay to blend theater image with professional design */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.4) 60%, rgba(241, 245, 249, 0.2) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Reusable Utilities & Containers */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography styles */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--color-dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 10px 20px -8px var(--color-primary-glow);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px var(--color-primary-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: white;
    color: var(--color-text-main);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.btn-secondary:hover {
    background-color: var(--color-bg-footer);
    border-color: rgba(203, 213, 225, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
}

.btn-icon {
    margin-right: 8px;
    transition: transform 0.2s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(2px) scale(1.05);
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.main-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s ease;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 20px -10px rgba(15, 23, 42, 0.08);
}

.header-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo-container:hover {
    transform: scale(1.02);
}

.logo-icon {
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 10px rgba(227, 86, 20, 0.2);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--color-dark);
    letter-spacing: -0.01em;
}

.orange-text {
    color: var(--color-primary);
}

/* Nav Links */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    transition: color 0.25s ease;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.25s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.signin-link {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.25s ease;
}

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

.btn-header {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding: 60px 0 40px 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    justify-content: center;
}

.hero-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 64px 48px;
    max-width: 980px;
    width: 100%;
    text-align: center;
    box-shadow: var(--glass-shadow);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* AI Badge */
.badge-container {
    margin-bottom: 24px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid rgba(227, 86, 20, 0.15);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.badge-icon {
    animation: pulse 2s infinite ease-in-out;
}

/* Hero Title */
.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--color-dark);
    letter-spacing: -0.025em;
    margin-bottom: 24px;
}

.hero-title .highlight {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 4px;
    background-color: rgba(227, 86, 20, 0.15);
    border-radius: 2px;
    z-index: -1;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 680px;
    margin: 0 auto 36px auto;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-hero {
    padding: 16px 36px;
    font-size: 1rem;
    border-radius: var(--border-radius-md);
}

/* ==========================================================================
   Features Cards Section
   ========================================================================== */
.features-section {
    padding: 20px 0 80px 0;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1080px;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Delays for cascading entrance animation */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.25s; }
.feature-card:nth-child(3) { animation-delay: 0.4s; }

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(227, 86, 20, 0.3);
    box-shadow: var(--glass-shadow-hover);
}

/* Icon Wrapper */
.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    border: 1px solid rgba(227, 86, 20, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background-color: var(--color-primary);
    transform: scale(1.1) rotate(5deg);
}

.feature-icon {
    transition: stroke 0.3s ease, fill 0.3s ease;
}

.feature-card:hover .feature-icon path,
.feature-card:hover .feature-icon circle {
    stroke: white;
}

/* Feature Texts */
.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.feature-description {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 400;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.main-footer {
    background-color: var(--color-bg-footer);
    border-top: 1px solid #E2E8F0;
    padding: 24px 0;
    margin-top: auto;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left p {
    font-size: 0.88rem;
    color: var(--color-text-light);
}

.footer-center {
    display: flex;
    gap: 32px;
}

.footer-link {
    text-decoration: none;
    color: var(--color-text-light);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.footer-right {
    display: flex;
    gap: 16px;
}

.social-link {
    color: var(--color-text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #E2E8F0;
    transition: all 0.25s ease;
}

.social-link:hover {
    color: var(--color-primary);
    border-color: rgba(227, 86, 20, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

/* ==========================================================================
   Keyframes & Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.8;
        transform: scale(0.96);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.8;
        transform: scale(0.96);
    }
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    /* Navigation Adjustments */
    .main-nav {
        display: none; /* Can be toggled via JS mobile menu later */
    }
    
    .header-container {
        height: 70px;
    }

    /* Hero Area Adjustments */
    .hero-card {
        padding: 48px 24px;
    }
    
    .hero-title {
        font-size: 2.3rem;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        gap: 12px;
    }
    
    .btn-hero {
        width: 100%;
        padding: 14px 28px;
    }

    /* Features Grid Adjustments */
    .features-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
    }
    
    .feature-card {
        padding: 32px 24px;
    }
    
    /* Footer Layout Adjustments */
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer-center {
        justify-content: center;
        gap: 24px;
    }
    
    .footer-right {
        justify-content: center;
    }
}
