/* General Styles */
:root {
    --primary-color: #d80c18; /* Changed from #e30613 to a slightly darker red */
    --secondary-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Models Section */
.models {
    padding: 80px 0;
}

.card {
    border: none;
    transition: transform 0.3s ease;
    margin-bottom: 30px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Slightly more prominent shadow */
}

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

.card-img-top {
    height: 320px;
    object-fit: contain;
    background-color: #fff;
}

/* Pre-order Section */
.pre-order-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.pre-order-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url('../images/form-bg-pattern.png') no-repeat left center/cover;
    opacity: 0.05;
    z-index: 0;
}

.pre-order-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.pre-order-content .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.pre-order-content .section-title::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background: #e30613;
    border-radius: 2px;
}

.pre-order-content .lead {
    font-size: 1.1rem;
    color: #4a4a4a;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #333;
}

.feature-item i {
    margin-left: 10px;
    font-size: 1.2rem;
}

.pre-order-form {
    position: relative;
    z-index: 1;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: #fff;
}

.pre-order-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.pre-order-form h3 {
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.pre-order-form h3::after {
    content: '';
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    bottom: 0;
    width: 60px;
    height: 3px;
    background: #e30613;
    border-radius: 2px;
}

.form-control,
.form-select {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #e30613;
    box-shadow: 0 0 0 0.25rem rgba(227, 6, 19, 0.15);
}

.form-label {
    font-weight: 500;
    color: #444;
    margin-bottom: 0.5rem;
}

.btn-primary {
    background-color: #e30613;
    border: none;
    padding: 14px 25px;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #c10510;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
}

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

.invalid-feedback {
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .pre-order-content {
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .pre-order-content .section-title::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .feature-item {
        justify-content: center;
    }
    
    .feature-item i {
        margin-left: 10px;
        margin-right: 0;
    }
}

/* Footer */
footer {
    background-color: #1a1a1a; /* Darker footer background */
    color: #f8f9fa;
    padding: 50px 0;
    font-size: 0.95rem;
}

footer h5 {
    color: var(--primary-color); /* Primary color for footer headings */
    margin-bottom: 1.5rem;
    font-weight: 700;
}

footer p {
    color: #ccc;
    line-height: 1.8;
}

footer .social-links a {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f8f9fa;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

footer .social-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

footer .text-center.mt-3 p {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
    color: #aaa;
}

/* Main Slider (formerly Hero Section) */
.main-slider .carousel-item {
    height: 85vh; /* Increased height for a more immersive feel */
    background-size: cover;
    background-position: center center;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
}

.main-slider .carousel-item:nth-child(1) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/slider1.jpg'); /* Example background image */
}

.main-slider .carousel-item:nth-child(2) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/slider2.jpg'); /* Example background image */
}

.main-slider .carousel-caption {
    position: static; /* Adjust as needed for content positioning */
    text-align: right; /* Align text to the right */
    padding-bottom: 0;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
}

.main-slider .carousel-caption .container {
    max-width: 960px; /* Adjust container width */
}

.main-slider .carousel-caption h1 {
    font-size: 3.5rem; /* Larger heading */
    margin-bottom: 1.5rem;
}

.main-slider .carousel-caption p {
    font-size: 1.25rem; /* Larger paragraph text */
    margin-bottom: 2rem;
}

.main-slider .slider-buttons .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px; /* Rounded buttons */
}

.main-slider .slider-buttons .btn-outline-light {
    border-color: #fff;
    color: #fff;
}

.main-slider .slider-buttons .btn-outline-light:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* Ensure images from models/tiggo8pro.png, etc. have consistent size and background */
.models-section .card-img-top {
    height: 250px; /* Adjusted height for model images */
    object-fit: contain;
    background-color: #f0f2f5; /* Light grey background for images */
    padding: 15px; /* Add some padding */
}

/* Section Titles general styling */
.section-title {
    font-size: 2.5rem; /* Larger section titles */
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 5px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

/* Specific styling for the Pre-order Section Title to override general */
.pre-order-section .section-title {
    color: #1a1a1a; /* Specific color for this section title */
    text-align: right; /* Align to right as it was */
}

.pre-order-section .section-title::after {
    right: 0; /* Align the underline to the right */
    left: auto; /* Remove left auto */
    transform: translateX(0); /* Remove transform */
}

/* Adjust feature items in pre-order section */
.pre-order-content .feature-item {
    justify-content: flex-end; /* Align features to the right */
}

.pre-order-content .feature-item i {
    margin-right: 10px; /* Adjust icon margin */
    margin-left: 0;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Utility Classes */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    right: 0;
}
