/* styles.css - Common styles for all pages */

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

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

body {
    font-family: 'Rajdhani', sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Header Styles */
.cinematic-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0.8));
    backdrop-filter: blur(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 15px 0;
    border-bottom: 2px solid rgba(220, 20, 60, 0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.cinematic-header.scrolled {
    background: rgba(0,0,0,0.98);
    padding: 12px 0;
    border-bottom-color: #DC143C;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-cinematic {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-cinematic:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 15px #DC143C);
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffffff, #DC143C, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.nav-cinematic {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 18px;
    border: 2px solid transparent;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #DC143C, #FF1744);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: #ffffff;
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.6);
    transform: translateY(-2px);
}

.nav-link.active {
    background: #DC143C;
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.5);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: rgba(220, 20, 60, 0.2);
    border: 2px solid #DC143C;
    color: #ffffff;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    font-family: monospace;
}

.mobile-toggle:hover {
    background: #DC143C;
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.6);
    transform: scale(1.05);
}

/* Footer Styles */
.cinematic-footer {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #ffffff;
    border-top: 3px solid #DC143C;
    position: relative;
    overflow: hidden;
}

.cinematic-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1" fill="rgba(220,20,60,0.1)"/><path d="M5,5 Q12.5,0 20,5 T30,10" stroke="rgba(220,20,60,0.05)" fill="none" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
    pointer-events: none;
    opacity: 0.4;
    animation: footerPattern 30s linear infinite;
}

@keyframes footerPattern {
    0% { transform: translateX(0); }
    100% { transform: translateX(-25px); }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px 30px;
    position: relative;
    z-index: 2;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    opacity: 0;
    transform: translateY(30px);
    animation: footerFadeIn 0.8s ease-out forwards;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

@keyframes footerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    color: #DC143C;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.3);
}

.footer-section-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-description {
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.9;
    font-size: 0.95rem;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-block;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #DC143C;
    transition: width 0.3s ease;
}

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

.footer-link:hover {
    color: #DC143C;
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(220, 20, 60, 0.2);
    border: 2px solid rgba(220, 20, 60, 0.5);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-link:hover {
    background: #DC143C;
    border-color: #DC143C;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

.footer-contact p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-icon {
    color: #DC143C;
}

.footer-bottom {
    border-top: 1px solid rgba(220, 20, 60, 0.3);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.footer-tagline {
    color: #DC143C;
    font-style: italic;
    opacity: 0.8;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tagline-separator {
    color: #FFD700;
    font-weight: bold;
}

.footer-credits {
    text-align: right;
    opacity: 0.7;
    font-size: 0.8rem;
}

/* Page Content Spacing */
.page-content {
    margin-top: 100px; /* Space for fixed header */
    min-height: calc(100vh - 100px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-cinematic {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0,0,0,0.98);
        flex-direction: column;
        gap: 0;
        padding: 30px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-top: 3px solid #DC143C;
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
        backdrop-filter: blur(20px);
    }

    .nav-cinematic.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
        padding: 15px;
        border-radius: 12px;
        font-size: 1.1rem;
    }

    .mobile-toggle {
        display: block;
    }

    .header-content {
        padding: 0 20px;
    }

    .container {
        padding: 0 20px;
    }

    .page-content {
        margin-top: 80px;
    }

    .footer-content {
        padding: 40px 20px 20px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-credits {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-tagline {
        justify-content: center;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 15px;
    }
    
    .container {
        padding: 0 15px;
    }

    .footer-content {
        padding: 30px 15px 15px;
    }
    
    .logo-text {
        font-size: 1rem;
    }

    .cinematic-header {
        padding: 12px 0;
    }

    .footer-title {
        font-size: 1.2rem;
    }

    .footer-section-title {
        font-size: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .logo-icon {
        animation: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .nav-link {
        border: 2px solid #ffffff;
    }
}

/* Loading states */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #DC143C;
    font-family: 'Orbitron', monospace;
}

.loading::after {
    content: '🎬';
    margin-left: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Fixed Header - Always Visible */
.cinematic-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 15px 0;
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    /* Ensure it stays fixed */
    transform: translateY(0);
    will-change: transform, background, box-shadow;
}

/* Scrolled state - more opaque background */
.cinematic-header.scrolled {
    background: rgba(0,0,0,0.98);
    padding: 12px 0;
    border-bottom-color: #DC143C;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    backdrop-filter: blur(20px);
}

/* Page content margin to compensate for fixed header */
.page-content {
    margin-top: 80px; /* Adjust based on your header height */
    min-height: calc(100vh - 80px);
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .page-content {
        margin-top: 70px;
    }
}
