/* ============================================
   Feza Film - Modern Cinema Website Styles
   Bootstrap 5 Compatible
   ============================================ */

/* ============================================
   CSS Variables - Cinema Theme
   ============================================ */
:root {
    /* Primary Colors - Gold Theme */
    --primary-gold: #FFD700;
    --gold-dark: #B8860B;
    --gold-light: #FFED4E;
    --gold-hover: #FFC400;
    
    /* Background Colors */
    --bg-black: #0D0D0D;
    --bg-dark: #1A1A1A;
    --bg-dark-alt: #242424;
    --bg-darker: #000000;
    
    /* Text Colors */
    --text-white: #FFFFFF;
    --text-gray-light: #E8E8E8;
    --text-gray-medium: #999999;
    --text-gray-dark: #666666;
    
    /* Accent Colors */
    --accent-red: #DC2626;
    --accent-green: #10B981;
    --accent-blue: #3B82F6;
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    --gradient-gold-hover: linear-gradient(135deg, #FFED4E 0%, #FFD700 100%);
    --gradient-dark: linear-gradient(180deg, #0D0D0D 0%, #1A1A1A 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(13, 13, 13, 0.8) 0%, rgba(13, 13, 13, 0.9) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 20px rgba(255, 215, 0, 0.3);
    --shadow-gold-hover: 0 6px 30px rgba(255, 215, 0, 0.5);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;
    
    /* Z-index Layers */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 1000;
    --z-modal: 2000;
    --z-toast: 3000;
}

/* ============================================
   Global Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-black);
    color: var(--text-gray-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--primary-gold);
    color: var(--bg-black);
}

::-moz-selection {
    background-color: var(--primary-gold);
    color: var(--bg-black);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-white);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--gold-hover);
}

.text-gold {
    color: var(--primary-gold) !important;
}

.text-muted {
    color: var(--text-gray-medium) !important;
}

/* ============================================
   Utility Classes
   ============================================ */
.section-padding {
    padding: var(--spacing-2xl) 0;
}

.bg-black {
    background-color: var(--bg-black) !important;
}

.bg-dark {
    background-color: var(--bg-dark) !important;
}

.bg-dark-alt {
    background-color: var(--bg-dark-alt) !important;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

/* ============================================
   Skip Link (Accessibility)
   ============================================ */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-gold);
    color: var(--bg-black);
    padding: var(--spacing-sm) var(--spacing-md);
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   Preloader
   ============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.preloader-content {
    text-align: center;
}

.preloader-content img {
    width: 120px;
    height: auto;
    margin-bottom: var(--spacing-md);
    animation: pulse 1.5s ease-in-out infinite;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-dark-alt);
    border-top-color: var(--primary-gold);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.preloader-content p {
    color: var(--text-gray-medium);
    font-size: 0.875rem;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-sm) 0;
    z-index: var(--z-sticky);
    transition: all var(--transition-base);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(13, 13, 13, 0.98);
}

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

.header .logo a {
    display: block;
}

.header .logo img {
    height: 50px;
    width: auto;
    transition: transform var(--transition-base), filter var(--transition-base);
}

.header .logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--spacing-md);
}

.main-nav ul li a {
    color: var(--text-gray-light);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--primary-gold);
    transition: transform var(--transition-base);
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary-gold);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-gold);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Desktop CTA Button */
.header-cta .btn {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.875rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: var(--spacing-2xl) var(--spacing-md);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: var(--spacing-lg);
}

.hero-logo img {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-gray-light);
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--primary-gold);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
    position: relative;
    background: linear-gradient(var(--gradient-overlay)), url('https://via.placeholder.com/1920x400/1a1a1a/f4a920?text=Page+Header') center/cover;
    padding: 100px 0;
    margin-bottom: var(--spacing-2xl);
    text-align: center;
}

.page-header h1 {
    color: var(--text-white);
    margin-bottom: var(--spacing-md);
}

.page-header .lead {
    color: var(--text-gray-light);
    max-width: 800px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: var(--spacing-md);
    justify-content: center;
}

.breadcrumb-item {
    color: var(--text-gray-light);
}

.breadcrumb-item a {
    color: var(--primary-gold);
}

.breadcrumb-item.active {
    color: var(--text-white);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-gray-medium);
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    height: 100%;
}

.card:hover {
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-gold-hover);
}

.card-img {
    position: relative;
    overflow: hidden;
    background: var(--bg-dark-alt);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-img img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 13, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-body {
    padding: var(--spacing-md);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-white);
}

.card-text {
    color: var(--text-gray-medium);
    font-size: 0.9375rem;
}

.card-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--text-gray-medium);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1.5;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--bg-black);
    border-color: var(--primary-gold);
}

.btn-primary:hover {
    background: var(--gradient-gold-hover);
    color: var(--bg-black);
    box-shadow: var(--shadow-gold-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-gold);
    border-color: var(--primary-gold);
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: var(--bg-black);
    box-shadow: var(--shadow-gold);
}

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

/* ============================================
   Forms
   ============================================ */
.form-control,
.form-select {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    transition: all var(--transition-base);
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-dark-alt);
    border-color: var(--primary-gold);
    color: var(--text-white);
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-gray-dark);
}

.form-label {
    color: var(--text-gray-light);
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    padding: var(--spacing-2xl) 0 var(--spacing-md);
    margin-top: var(--spacing-2xl);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about img {
    height: 60px;
    width: auto;
    margin-bottom: var(--spacing-md);
}

.footer-about p {
    color: var(--text-gray-medium);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-title {
    color: var(--text-white);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--text-gray-medium);
    font-size: 0.9375rem;
    transition: color var(--transition-base), padding-left var(--transition-base);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-gold);
    padding-left: var(--spacing-xs);
}

.footer-links i {
    color: var(--primary-gold);
    margin-right: var(--spacing-xs);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    color: var(--text-gray-medium);
    font-size: 0.875rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark-alt);
    border-radius: var(--radius-full);
    color: var(--text-gray-light);
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--primary-gold);
    color: var(--bg-black);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

/* Sticky Social Bar */
.sticky-social-bar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: var(--z-dropdown);
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sticky-social-bar .social-item {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: all var(--transition-base);
    position: relative;
}

.sticky-social-bar .social-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    opacity: 0.9;
    z-index: -1;
}

.sticky-social-bar .social-item:hover {
    width: 60px;
    box-shadow: var(--shadow-md);
}

.sticky-social-bar .facebook { background: #1877F2; }
.sticky-social-bar .instagram { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4); }
.sticky-social-bar .youtube { background: #FF0000; }
.sticky-social-bar .tiktok { background: #000000; }

/* ============================================
   Counter Animation
   ============================================ */
.counter {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary-gold);
    line-height: 1;
}

/* ============================================
   Timeline Component
   ============================================ */
.timeline {
    position: relative;
}

.timeline-year h3 {
    color: var(--primary-gold);
    font-size: 3rem;
    font-weight: 700;
}

.timeline .card-title {
    color: var(--primary-gold);
}

.timeline .card-text {
    color: var(--text-gray-light);
}

.timeline ul {
    color: var(--text-gray-light);
}

.timeline ul li strong {
    color: var(--primary-gold);
}

/* ============================================
   About Section Styles
   ============================================ */
.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-content h3 {
    color: var(--primary-gold);
}

.about-content h5 {
    color: var(--text-gray-light);
    font-weight: 400;
}

/* ============================================
   Award Cards
   ============================================ */
.card .fas.fa-trophy {
    font-size: 3rem;
    color: var(--primary-gold);
}

/* ============================================
   Contact CTA Section
   ============================================ */
.contact-cta-section {
    background: var(--gradient-gold);
    padding: var(--spacing-2xl) 0;
}

.contact-cta-section h2 {
    color: var(--bg-black);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-cta-section p {
    color: var(--bg-black);
    font-size: 1.1rem;
}

.contact-cta-section .btn {
    background: var(--bg-black);
    color: var(--primary-gold);
    border-color: var(--bg-black);
}

.contact-cta-section .btn:hover {
    background: var(--bg-dark);
    border-color: var(--bg-dark);
}

.contact-info-item {
    display: flex;
    align-items: center;
}

.contact-info-item i {
    font-size: 2rem;
    color: var(--bg-black);
    margin-right: 1rem;
}

.contact-info-item h6 {
    color: var(--bg-black);
    margin-bottom: 0.25rem;
}

.contact-info-item p {
    color: var(--bg-black);
    margin: 0;
    font-weight: 600;
}

/* ============================================
   Main Content Padding
   ============================================ */
#main-content {
    padding-top: 100px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

/* Tablet and below */
@media (max-width: 991px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-black);
        padding: 80px 20px 20px;
        transition: right var(--transition-base);
        z-index: 1000;
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav ul li a {
        display: block;
        padding: var(--spacing-md);
    }
    
    .main-nav ul li a::after {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-cta {
        display: none;
    }
    
    .d-desktop {
        display: none !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .sticky-social-bar {
        display: none;
    }
}

/* Mobile */
@media (max-width: 575px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
    }
    
    .header .logo img {
        height: 40px;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .hero-logo img {
        height: 70px;
    }
    
    .page-header {
        padding: 60px 0;
    }
    
    .section-padding {
        padding: var(--spacing-xl) 0;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .header,
    .footer,
    .mobile-menu-toggle,
    .sticky-social-bar,
    .hero-buttons,
    .btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
