/* Custom CSS for QualityAI Website */

:root {
    /* QualityAI Brand Colors */
    --botticelli: #d8deec;
    --cerulean-blue: #2154b6;
    --fuel-yellow: #f3a437;
    --blue-marguerite: #7b72c6;
    --torea-bay: #14399c;
    --san-marino: #4a6bb7;
    --denim: #1164dc;
    --chetwode-blue: #89adda;
    --havelock-blue: #4e88d4;
    --mariner: #276fd2;
    
    /* Primary Brand Colors */
    --primary-color: var(--cerulean-blue);
    --primary-dark: var(--torea-bay);
    --primary-light: var(--havelock-blue);
    --secondary-color: var(--fuel-yellow);
    --accent-color: var(--blue-marguerite);
    
    /* UI Colors */
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: var(--botticelli);
    --bg-gradient-start: var(--denim);
    --bg-gradient-end: var(--mariner);
    --border-color: #e5e7eb;
    
    /* Interactive Colors */
    --hover-color: var(--san-marino);
    --active-color: var(--torea-bay);
    --light-accent: var(--chetwode-blue);
    
    /* Shadows */
    --shadow: 0 10px 25px rgba(33, 84, 182, 0.1);
    --shadow-lg: 0 20px 40px rgba(33, 84, 182, 0.15);
    --shadow-primary: 0 8px 25px rgba(33, 84, 182, 0.2);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Navigation Styles */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark) !important;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.navbar-logo {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.footer-logo {
    height: 35px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-primary);
    color: white !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--hover-color), var(--active-color));
    color: white !important;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Enhanced Navigation Styles */
.enhanced-navbar {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.95)) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(31, 97, 190, 0.08);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(31, 97, 190, 0.08);
}

.enhanced-navbar.scrolled {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98)) !important;
    box-shadow: 0 4px 25px rgba(31, 97, 190, 0.12);
}

.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-logo {
    height: 50px;
    width: auto;
    border-radius: 10px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(31, 97, 190, 0.2));
}

.enhanced-brand:hover .navbar-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(31, 97, 190, 0.3));
}

.enhanced-brand {
    text-decoration: none !important;
}

.brand-tagline {
    font-size: 0.7rem;
    color: #718096;
    font-weight: 500;
    opacity: 0.9;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.enhanced-nav-link {
    font-weight: 500;
    color: #4a5568 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.enhanced-nav-link:hover {
    color: #1f61be !important;
    background: linear-gradient(135deg, rgba(31, 97, 190, 0.08), rgba(31, 97, 190, 0.12));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 97, 190, 0.15);
}

.enhanced-nav-link i {
    color: #718096;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.enhanced-nav-link:hover i {
    color: #1f61be;
    opacity: 1;
    transform: scale(1.1);
}

.enhanced-cta-btn {
    background: linear-gradient(135deg, #1f61be, #2563eb) !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 20px rgba(31, 97, 190, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white !important;
}

.enhanced-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.enhanced-cta-btn:hover::before {
    left: 100%;
}

.enhanced-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(31, 97, 190, 0.35);
    background: linear-gradient(135deg, #2563eb, #1f61be) !important;
}

.enhanced-toggler {
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    padding: 0.5rem;
}

.enhanced-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(31, 97, 190, 0.25);
}

/* Mobile Navigation Improvements */
@media (max-width: 991px) {
    .brand-tagline {
        display: none;
    }
    
    .brand-name {
        font-size: 1.3rem;
    }
    
    .navbar-logo {
        height: 35px;
    }
    
    .enhanced-nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
    }
    
    .enhanced-cta-btn {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    color: var(--text-dark) !important;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Force all text in hero section to be dark */
.hero-section * {
    color: var(--text-dark) !important;
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section p,
.hero-section .lead,
.hero-section .stat-item h3,
.hero-section .stat-item p {
    color: var(--text-dark) !important;
    text-shadow: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(33, 84, 182, 0.05) 0%, rgba(33, 84, 182, 0.02) 100%);
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

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

.hero-section h1 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    text-shadow: none;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 1;
    margin-bottom: 2rem;
    color: var(--text-muted) !important;
    text-shadow: none;
}

.hero-buttons .btn {
    margin-bottom: 1rem;
}

.hero-stats {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.hero-stats .stat-item p {
    color: var(--text-muted) !important;
    text-shadow: none;
    font-weight: 500;
}

.hero-section .stat-item h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color) !important;
    font-weight: 700;
}

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

/* Dynamic Responsive Video Container */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(33, 84, 182, 0.2);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: contain;
    background: #1f61be;
    transition: all 0.3s ease;
}

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

/* Video Play Button Overlay */
.video-container::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.video-container:hover::after {
    opacity: 1;
}

.video-container.playing::after {
    opacity: 0;
}

/* Video Loading States */
.video-container.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 15;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Mobile Video Optimizations */
@media (max-width: 768px) {
    .video-container {
        border-radius: 8px;
    }
    
    .video-container video {
        border-radius: 8px;
    }
    
    .video-container::after {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .video-container:hover {
        transform: none;
    }
    
    .video-container::after {
        opacity: 0.8;
    }
    
    .video-container:active::after {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

/* Features Section */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-primary);
}

.feature-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Dashboard Preview */
.dashboard-preview img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.dashboard-preview img:hover {
    transform: scale(1.02);
}

/* Demo Section */
.demo-video-large {
    position: relative;
    margin: 0 auto;
}

.demo-video-large video {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* Pilot Form */
.pilot-form-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(33, 84, 182, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--torea-bay), var(--primary-dark)) !important;
}

footer .logo-circle {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Footer Text Contrast Fixes */
footer .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer h6 {
    color: white !important;
}

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

footer a {
    color: rgba(255, 255, 255, 0.75) !important;
    transition: color 0.3s ease;
}

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

footer .fw-bold {
    color: white !important;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.footer-logo {
    height: 32px;
    width: auto;
    border-radius: 6px;
    filter: brightness(1.1);
}

/* Pricing Section */
.pricing-card {
    transition: all 0.3s ease;
    border-radius: 16px !important;
    overflow: visible;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(31, 97, 190, 0.15) !important;
}

.pricing-card-featured {
    position: relative;
    z-index: 2;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.pricing-card-featured:hover {
    transform: translateY(-8px);
}

.pricing-card-featured .card-header {
    background: var(--primary-blue) !important;
    color: white !important;
}

.pricing-card-featured .card-header h3,
.pricing-card-featured .card-header p {
    color: white !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.pricing-card-featured .card-body,
.pricing-card-featured .card-footer {
    background: white !important;
}

.pricing-card-featured .btn {
    color: white !important;
    background: var(--primary-blue) !important;
    border: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-weight: 600 !important;
}

.pricing-card-featured .pricing-price,
.pricing-card-featured .pricing-features,
.pricing-card-featured h3,
.pricing-card-featured p {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.pricing-card-featured .price-amount {
    color: var(--primary-blue) !important;
    font-size: 3.5rem !important;
    font-weight: 700 !important;
}

.pricing-card-featured .pricing-features li {
    color: #4a5568 !important;
    display: list-item !important;
}

/* Direct Pro plan header text fixes */
.pricing-card-featured .card-header h3.fw-bold {
    color: white !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

.pricing-card-featured .card-header p.mb-0 {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem !important;
    margin-bottom: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

/* Additional specific targeting */
.pricing-card-featured .card-header * {
    color: white !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force Pro plan header background and text - ultimate fix */
.pricing-card-featured .card-header {
    background-color: #1f61be !important;
    background: #1f61be !important;
    color: white !important;
}

.pricing-card.pricing-card-featured .card-header h3 {
    color: #ffffff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    text-rendering: optimizeLegibility !important;
    margin-bottom: 0 !important;
}

.pricing-card.pricing-card-featured .card-header p {
    color: rgba(255, 255, 255, 0.9) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 0.9rem !important;
    text-rendering: optimizeLegibility !important;
    margin-bottom: 0 !important;
}

/* Force override any Bootstrap text utilities */
.pricing-card-featured .text-white,
.pricing-card-featured .fw-bold,
.pricing-card-featured .mb-0 {
    color: white !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.pricing-card-featured .btn-primary {
    background-color: #1f61be !important;
    border-color: #1f61be !important;
    color: white !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.popular-badge span {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1f61be;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.pricing-icon {
    width: 60px;
    height: 60px;
    background: rgba(31, 97, 190, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.pricing-icon i {
    font-size: 1.5rem;
}

.pricing-card-featured .pricing-icon {
    background: rgba(255, 255, 255, 0.2);
}

.pricing-price {
    margin: 2rem 0;
}

.price-currency {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-blue);
    vertical-align: top;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.price-amount-custom {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.price-period {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    display: block;
    margin-top: 0.25rem;
}

.pricing-features {
    text-align: left;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #4a5568;
}

.pricing-card .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.pricing-card .btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 97, 190, 0.3);
}

.pricing-card .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border: none;
    box-shadow: 0 4px 15px rgba(31, 97, 190, 0.3);
}

.pricing-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 97, 190, 0.4);
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
}

/* Pricing Responsive Design */
@media (max-width: 991px) {
    .pricing-card-featured {
        transform: none;
        margin-top: 2rem;
    }
    
    .pricing-card-featured:hover {
        transform: translateY(-8px);
    }
    
    .popular-badge {
        top: -15px;
    }
}

@media (max-width: 767px) {
    .price-amount {
        font-size: 2.8rem;
    }
    
    .price-amount-custom {
        font-size: 2rem;
    }
    
    .pricing-features {
        text-align: center;
    }
}

/* Comprehensive Responsive Design for All Devices */

/* Extra Small Devices (Phones, 320px and up) */
@media (max-width: 575.98px) {
    .hero-section {
        padding-top: 70px;
        padding-bottom: 3rem;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }
    
    .stat-item {
        margin-bottom: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .video-container {
        margin-top: 2rem;
        padding-bottom: 60%; /* Slightly taller for mobile */
    }
    
    .video-container::after {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .feature-card {
        text-align: center;
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    .pilot-form-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-logo {
        height: 30px;
    }
}

/* Small Devices (Landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons .btn {
        display: inline-block;
        width: auto;
        margin-right: 1rem;
        margin-bottom: 1rem;
    }
    
    .video-container {
        padding-bottom: 56.25%;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding-top: 90px;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-buttons .btn {
        margin-right: 1rem;
        margin-bottom: 1rem;
    }
    
    .pilot-form-card {
        padding: 2.5rem;
    }
    
    .video-container {
        padding-bottom: 56.25%;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .container {
        max-width: 960px;
    }
}

/* Extra Large Devices (Large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Landscape Orientation Optimizations */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        padding-top: 60px;
        min-height: auto;
    }
    
    .hero-section .min-vh-100 {
        min-height: auto !important;
    }
    
    .hero-stats {
        margin-top: 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-logo,
    .footer-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

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

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-video {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Success/Error Messages */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* 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: var(--primary-dark);
}
