/* CineNorth Canada - Custom Styles */

:root {
    --primary-color: #dc3545;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --accent-color: #ffc107;
    --gradient-overlay: linear-gradient(135deg, rgba(220, 53, 69, 0.9), rgba(255, 193, 7, 0.8));
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Navigation Styles */
.navbar {
    transition: all 0.3s ease;
    background-color: rgba(33, 37, 41, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 10px;
    color: rgba(255,255,255,0.9) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
    left: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(220, 53, 69, 0.4)), 
                url('../images/hero-tiff-festival.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

/* Animation Classes */
.fade-in {
    animation: fadeInUp 1s ease-out;
}

.fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Styles */
.feature-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(220, 53, 69, 0.2);
}

.feature-card img {
    transition: transform 0.4s ease;
}

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

.card-body {
    position: relative;
    z-index: 2;
}

/* Blog Preview Cards */
.blog-preview {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.blog-preview:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Service Cards */
.service-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    color: #333;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    transition: left 0.5s ease;
    z-index: 0;
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    color: white !important;
}

.service-card:hover h4,
.service-card:hover h5,
.service-card:hover p,
.service-card:hover .btn {
    color: white !important;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #e74c3c);
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
    color: white !important;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.4);
    background: linear-gradient(45deg, #c82333, #dc3545);
    color: white !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: white;
}

.btn-outline-primary:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.3);
    color: white !important;
}

.btn-light {
    color: #212529 !important;
    background-color: white;
    border-color: white;
}

.btn-light:hover {
    color: #212529 !important;
    background-color: #f8f9fa;
}

.btn-outline-light {
    color: white !important;
    border-color: white;
}

.btn-outline-light:hover {
    color: var(--primary-color) !important;
    background-color: white;
    border-color: white;
}

/* Typography */
.display-3, .display-4, .display-5 {
    font-weight: 700;
    line-height: 1.2;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Text contrast improvements */
.text-muted {
    color: #6c757d !important;
}

.lead {
    color: #495057;
}

.bg-light .lead {
    color: #343a40;
}

/* Card text improvements */
.card-text {
    color: #495057;
}

.card-title {
    color: #212529;
}

/* Ensure good contrast on all backgrounds */
section {
    color: #333;
}

.bg-light {
    color: #212529;
}

.bg-white {
    color: #212529;
}

/* Section Styles */
.section-padding {
    padding: 100px 0;
}

.bg-gradient {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.95), rgba(255, 193, 7, 0.85));
    color: white !important;
}

.bg-gradient h1,
.bg-gradient h2,
.bg-gradient h3,
.bg-gradient h4,
.bg-gradient h5,
.bg-gradient h6 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.bg-gradient p,
.bg-gradient .lead {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Contact Form Styles */
.contact-form {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    color: #333;
}

.contact-form h2 {
    color: #212529;
}

.contact-form .lead {
    color: #495057;
}

.form-label {
    color: #495057 !important;
    font-weight: 600;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    color: #495057;
    background-color: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    color: #212529;
}

.form-check-label {
    color: #495057;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    color: white !important;
}

.footer h5 {
    color: var(--accent-color) !important;
    margin-bottom: 1rem;
}

.footer h6 {
    color: var(--accent-color) !important;
}

.footer p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color) !important;
}

.footer .small {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer li {
    color: rgba(255, 255, 255, 0.9);
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    color: #333;
    transform: translateY(-5px);
}

/* Team Member Cards */
.team-member {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    color: #333;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member h5 {
    color: #212529;
}

.team-member p {
    color: #495057;
}

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

.team-member img,
.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    border: 5px solid var(--accent-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-member:hover .team-photo {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.95), rgba(255, 193, 7, 0.85));
    color: white !important;
    text-align: center;
}

.stats-section h3,
.stats-section p {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-color) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* FAQ Styles */
.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.faq-question {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.95), rgba(255, 193, 7, 0.85));
    color: white !important;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: between;
    align-items: center;
}

.faq-question h5 {
    color: white !important;
    margin: 0;
    flex: 1;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.faq-question i {
    color: white !important;
    margin-left: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.faq-question:hover {
    background: linear-gradient(135deg, rgba(200, 35, 51, 0.95), rgba(231, 76, 60, 0.9));
}

.faq-answer {
    padding: 1.5rem;
    display: none;
    background: white;
    color: #333;
}

.faq-answer.active {
    display: block;
}

.faq-answer p {
    color: #495057;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        padding: 100px 0;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .navbar-nav .nav-link {
        margin: 5px 0;
    }
    
    .contact-form {
        padding: 2rem 1rem;
    }
    
    .btn-lg {
        padding: 10px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem !important;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c82333;
}

/* Contact photo styles */
.contact-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid var(--accent-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover .contact-photo {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

/* Card header gradient improvements */
.card-header.bg-gradient {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.95), rgba(255, 193, 7, 0.85)) !important;
    color: white !important;
}

.card-header.bg-gradient h4,
.card-header.bg-gradient h5,
.card-header.bg-gradient p {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Additional contrast improvements */
.badge {
    font-weight: 600;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
    color: white !important;
}

/* Improve readability for cards */
.card {
    color: #333;
}

.card .card-title {
    color: #212529 !important;
}

.card .card-text {
    color: #495057 !important;
}

.card .text-muted {
    color: #6c757d !important;
}

/* Tab content styling */
.nav-tabs .nav-link {
    color: #495057;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color) !important;
}

.tab-content {
    color: #333;
}

/* Blog content styling */
.blog-preview .card-title {
    color: #212529 !important;
}

.blog-preview .card-text {
    color: #495057 !important;
}

.author-info h6 {
    color: #212529 !important;
}

.author-info .text-muted {
    color: #6c757d !important;
}

/* Statistics section text contrast */
.stats-section p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Ensure form text is readable */
.form-check-label {
    color: #495057 !important;
}

.form-text {
    color: #6c757d !important;
}

/* Search box improvements */
.search-box {
    color: #333;
}

.search-box h4 {
    color: #212529;
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
}