/* MG 5 Specific Styles */

/* Hero Section */
.hero-video {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Sticky Tabs */
.sticky-tabs {
    position: sticky;
    background: white;
    z-index: 40;
    transition: all 0.3s ease;
}

.sticky-tabs.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Tab Animations */
.tab-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.tab-content.active {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Styles */
.thumb {
    transition: all 0.3s ease;
    cursor: pointer;
}

.thumb:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item {
    transition: all 0.3s ease;
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.pricing-card.popular {
    border-color: #F97316;
    position: relative;
}

/* Form Styles */
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Modal Styles */
#imageModal {
    transition: opacity 0.3s ease;
}

#imageModal.show {
    display: flex !important;
    opacity: 1;
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #F97316;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin: 1rem 0;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-video {
        height: 70vh;
    }
    
    .hero-content {
        top: 50%;
        left: 5%;
        transform: translateY(-50%);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .sticky-tabs {
        top: 60px;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .tab-btn i {
        margin-right: 0.25rem;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .spec-value {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons a {
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .sticky-tabs,
    .cta-buttons,
    #test-drive,
    footer {
        display: none !important;
    }
    
    .hero-video {
        height: auto;
        position: relative;
    }
    
    .hero-overlay {
        display: none;
    }
    
    .hero-content {
        position: relative;
        color: black;
        text-shadow: none;
        transform: none;
        top: auto;
        left: auto;
    }
}