:root {
    --primary-color: #dc3545;
    --primary-dark: #c82333;
    --primary-light: #f8d7da;
    --secondary-color: #6c757d;
    --dark-color: #1a1a2e;
    --darker-color: #0f0f1e;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-radius: 15px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== CONTACT PAGE STYLES ========== */

/* Contact Hero Section */
.contact-hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.contact-hero-section::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 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
}

.contact-hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Form Card */
.contact-form-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.contact-form-header {
    margin-bottom: 30px;
}

.contact-form-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.contact-form-header p {
    color: var(--secondary-color);
    margin: 0;
}

.modern-contact-form .form-floating > label {
    color: var(--secondary-color);
}

.modern-contact-form .form-control,
.modern-contact-form .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: var(--transition);
}

.modern-contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.modern-contact-form .form-check-input {
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
}

.modern-contact-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.modern-contact-form .form-check-label {
    color: var(--secondary-color);
    cursor: pointer;
}

/* Contact Info Card */
.contact-info-card {
    background: linear-gradient(135deg, var(--light-gray), white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.contact-info-header {
    margin-bottom: 30px;
}

.contact-info-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.contact-info-header p {
    color: var(--secondary-color);
    margin: 0;
}

/* Contact Info Items */
.contact-info-list {
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.15);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.3);
}

.contact-info-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-info-content h5 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.contact-info-content p {
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.6;
}

.contact-info-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-info-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Quick Actions */
.contact-quick-actions {
    margin-bottom: 30px;
}

.contact-quick-actions .btn-block {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Social Media */
.contact-social {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.contact-social h5 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.social-icons-contact {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon-contact {
    width: 45px;
    height: 45px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-icon-contact:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(220, 53, 69, 0.3);
}

/* Map Section */
.map-section {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.map-header {
    padding: 30px;
    background: linear-gradient(135deg, var(--light-gray), white);
    text-align: center;
}

.map-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.map-header p {
    color: var(--secondary-color);
    margin: 0;
}

.map-container {
    position: relative;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    display: block;
    border: none;
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.faq-section h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 30px;
}

.faq-item {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.15);
}

.faq-item h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.6;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
    padding: 15px 20px;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 4px solid var(--primary-color);
}

/* Responsive */
@media (max-width: 991px) {
    .contact-hero-title {
        font-size: 2.5rem;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 30px 25px;
    }
    
    .contact-info-item {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .contact-hero-section {
        padding: 60px 0 40px;
    }
    
    .contact-hero-title {
        font-size: 2rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1rem;
    }
    
    .contact-form-card,
    .contact-info-card,
    .faq-section {
        padding: 25px 20px;
    }
    
    .contact-info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info-icon {
        margin: 0 auto;
    }
    
    .map-header {
        padding: 20px;
    }
    
    .faq-item {
        padding: 20px;
    }
}

/* ========== NAVBAR STYLES FOR YOUR STRUCTURE ========== */

/* Navbar Container */
.navbar {
    background: white !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    contain: layout style paint;
    transform: translateZ(0);
}

.navbar.sticky-top {
    z-index: 1030;
}

/* Logo */
.navbar-brand img {
    max-height: 50px;
    transition: transform 0.3s ease;
    mix-blend-mode: darken;
    background: transparent;
    backface-visibility: hidden;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Desktop Logo - Fixed Size */
@media (min-width: 992px) {
    .navbar-brand img.logo-img {
        max-height: 80px;
        width: auto;
        height: auto;
        object-fit: contain;
        backface-visibility: hidden;
    }
}

/* Navbar Toggler */
.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 8px 12px;
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(220, 53, 69, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Nav Items List */
.navbar-nav {
    align-items: center;
    gap: 5px;
}

/* Nav Links */
.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 600;
    padding: 10px 18px;
    transition: color 0.3s ease, padding 0.3s ease, font-size 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    position: relative;
    background: transparent !important;
    border-radius: 0;
    backface-visibility: hidden;
}

.navbar-nav .nav-link i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
    backface-visibility: hidden;
}

/* Outline style for home icon */
.navbar-nav .nav-link i.icon-outline {
    -webkit-text-stroke: 1.5px var(--primary-color);
    -webkit-text-fill-color: transparent;
    font-weight: 400;
}

/* Nav Link Hover */
.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link:hover i {
    transform: scale(1.2);
}

/* Active Nav Link - Simple Red Line Below */
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background: transparent !important;
    box-shadow: none !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 3px 3px 0 0;
}

.navbar-nav .nav-link.active i {
    color: var(--primary-color);
}

/* Contact Button */
.navbar-nav .btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-nav .btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

.navbar-nav .btn-outline-primary i {
    color: inherit;
    margin: 0;
}

/* Active Contact Button - Red Underline */
.navbar-nav .btn-outline-primary.active {
    position: relative;
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: none;
}

.navbar-nav .btn-outline-primary.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 3px;
}

/* WhatsApp Button - RED THEME */
.navbar-nav .btn-success {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.navbar-nav .btn-success:hover {
    background: linear-gradient(135deg, var(--primary-dark), #8B0000);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.5);
    color: white;
}

.navbar-nav .btn-success i {
    font-size: 1.1rem;
    color: white;
}

/* Remove default margins */
.navbar-nav .me-3 {
    margin-right: 0.5rem !important;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .navbar {
        padding: 10px 0;
    }

    .navbar-collapse {
        margin-top: 20px;
        background: white;
        padding: 25px;
        border-radius: 15px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        gap: 12px;
        align-items: stretch !important;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 20px;
        margin: 0;
        border-radius: 8px;
    }

    .navbar-nav .nav-link.active::after {
        display: none;
    }

    .navbar-nav .nav-link.active {
        background: var(--primary-light) !important;
        border-left: 4px solid var(--primary-color);
        padding-left: 16px;
    }

    .navbar-nav .btn-outline-primary,
    .navbar-nav .btn-success {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        margin: 0;
    }

    .navbar-nav .btn-outline-primary.active::after {
        display: none;
    }

    .navbar-nav .btn-outline-primary.active {
        background: var(--primary-light) !important;
        border-left: 4px solid var(--primary-color);
        border-radius: 8px;
    }

    .navbar-nav .me-3 {
        margin-right: 0 !important;
    }

    .navbar-brand img {
        width: auto !important;
        height: 60px !important;
        max-height: 60px !important;
    }
}

/* Tablet Responsive */
@media (min-width: 768px) and (max-width: 991px) {
    .navbar-collapse {
        padding: 20px;
    }
}

/* Desktop - ensure proper spacing for underline */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        padding: 10px 18px 15px;
    }
}

/* Navbar Scroll Animation */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar.sticky-top {
    animation: slideDown 0.4s ease-out;
}

/* Smooth transitions for specific navbar elements only */
.navbar-nav .nav-link,
.navbar-brand img,
.navbar-toggler {
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--dark-color);
    overflow-x: hidden;
    background-color: #fff;
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    margin-top: -70px;
    padding-top: 70px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: kenburns 20s ease-in-out infinite alternate;
}

@keyframes kenburns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.88) 0%, rgba(26, 26, 46, 0.92) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    padding: 80px 0;
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 3px 3px 20px rgba(0, 0, 0, 0.6);
    letter-spacing: -1px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.2s ease-out;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1.4s ease-out;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 14px 32px;
    font-size: 0.95rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background: var(--light-gray);
    color: var(--primary-dark);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* ========== STATS BANNER ========== */
.stats-banner {
    background: white;
    padding: 40px 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 15px;
    transition: var(--transition);
}

.stat-box:hover {
    background: var(--light-gray);
    transform: translateY(-5px);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.3);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--dark-color);
    margin: 0 0 5px 0;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin: 0;
    font-weight: 500;
}

/* ========== FILTER SECTION ========== */
.filter-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.filter-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.filter-header {
    text-align: center;
    margin-bottom: 40px;
}

.filter-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.filter-header p {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.filter-form {
    max-width: 100%;
}

.filter-group {
    position: relative;
    z-index: auto;
}

.filter-label {
    display: block;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    color: var(--dark-color);
    position: relative;
    z-index: 100;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
    z-index: 101;
}

.filter-actions {
    display: flex;
    gap: 10px;
    height: 100%;
    align-items: flex-end;
}

.btn-filter-search,
.btn-filter-reset {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-filter-search {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.3);
}

.btn-filter-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.btn-filter-reset {
    background: var(--secondary-color);
    color: white;
}

.btn-filter-reset:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Results and Sort */
.results-count {
    display: flex;
    align-items: center;
    padding: 15px 0;
}

.results-count span {
    font-size: 1rem;
    color: var(--secondary-color);
}

.results-count strong {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.1rem;
}

.sort-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.sort-label {
    font-weight: 700;
    color: var(--dark-color);
    white-space: nowrap;
}

.sort-select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
    min-width: 200px;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

/* ========== INVENTORY SECTION ========== */
.inventory-section {
    padding: 80px 0;
    background: white;
}

/* Cars Container Responsive Grid */
#cars-container {
    display: grid;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Default: 1 column for mobile-first approach */
#cars-container {
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Small phones (320px - 479px) */
@media (min-width: 320px) and (max-width: 479px) {
    #cars-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Large phones (480px - 575px) */
@media (min-width: 480px) and (max-width: 575px) {
    #cars-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Small tablets (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    #cars-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    #cars-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

/* Small desktops (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    #cars-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Medium desktops (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    #cars-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Large desktops (1400px - 1599px) */
@media (min-width: 1400px) and (max-width: 1599px) {
    #cars-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Ultra-wide screens (1600px+) */
@media (min-width: 1600px) {
    #cars-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }
}

/* Ensure car items fill their grid cells */
.car-item {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Empty state wrapper for full width */
.empty-state-wrapper {
    grid-column: 1 / -1;
    width: 100%;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark-color);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.title-divider {
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    margin: 0 auto;
    border-radius: 3px;
}

/* Car Cards */
.car-item {
    transition: none;
    min-width: 0;
    max-width: 100%;
}

.car-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    width: 100%;
    height: 100%;
}

.car-card-modern:hover {
    /* Hover effects removed */
}

.car-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 Aspect Ratio */
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

.car-image-wrapper:hover {
    /* Hover effect removed */
}

.car-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
    transform: none;
}

.car-preview-image {
    transition: none;
    transform: none;
}

.car-card-modern:hover .car-main-image,
.car-card-modern:hover .car-preview-image,
.car-image-wrapper:hover .car-main-image,
.car-image-wrapper:hover .car-preview-image {
    /* All hover effects removed */
    transition: none;
    transform: none;
    filter: none;
    opacity: 1;
}

.car-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.96), rgba(139, 0, 0, 0.96));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    z-index: 2;
    pointer-events: none;
}

/* Show overlay on hover, but keep it behind nav buttons */
.car-image-wrapper:hover .car-overlay {
    opacity: 0;
}

/* Only show overlay when NOT hovering over nav buttons */
.car-image-wrapper:hover .car-overlay:hover {
    opacity: 1;
    pointer-events: all;
}

/* Alternative: Show overlay when clicking on image area (not nav buttons) */
.car-image-wrapper .car-main-image {
    cursor: pointer;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: none;
    transition: none;
}

.car-image-wrapper:hover .overlay-content {
    transform: none;
}

.overlay-content i {
    font-size: 3.5rem;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.overlay-content p {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.car-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
}

.car-badge i {
    font-size: 0.9rem;
}

/* Car Content */
.car-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.car-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.car-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--dark-color);
    margin: 0;
    flex: 1;
    line-height: 1.3;
    /* Limit to 2 lines with ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.47rem; /* 0.95rem * 1.3 line-height * 2 lines */
    max-height: 2.47rem;
}

.car-price {
    font-size: 1rem;
    font-weight: 900;
    color: var(--primary-color);
    white-space: nowrap;
}

/* Car Specs */
.car-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
    flex-grow: 1;
}

.spec-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--secondary-color);
    padding: 10px 12px;
    background: var(--light-gray);
    border-radius: 10px;
    transition: var(--transition);
}

.spec-item:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateX(5px);
}

.spec-item i {
    font-size: 1.1rem;
    margin-right: 10px;
    color: var(--primary-color);
    min-width: 22px;
}

/* Car Actions */
.car-actions {
    margin-top: auto;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-weight: 700;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 20px;
}

.empty-state i {
    font-size: 6rem;
    color: var(--primary-light);
    margin-bottom: 30px;
}

.empty-state h4 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.empty-state p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ========== WHY CHOOSE US SECTION ========== */
.why-choose-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, white 100%);
}

.section-subtitle {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 20px;
}

.feature-card {
    background: white;
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(220, 53, 69, 0.2);
    border-color: var(--primary-color);
}

.feature-icon-box {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
    transition: var(--transition);
}

.feature-card:hover .feature-icon-box {
    transform: rotateY(360deg);
}

.feature-icon-box i {
    font-size: 2.5rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: linear-gradient(135deg, var(--dark-color), var(--darker-color));
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::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 1440 320"><path fill="rgba(220,53,69,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 15px;
    line-height: 1.2;
}

.cta-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 14px 36px;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 40px rgba(220, 53, 69, 0.5);
    transition: var(--transition);
}

.btn-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(220, 53, 69, 0.7);
    color: white;
}

/* ========== MODALS ========== */
.modern-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 18px 25px;
}

.modern-modal .modal-title {
    font-weight: 800;
    font-size: 1.2rem;
}

.modern-modal .modal-body {
    padding: 25px;
}

/* Form Styles */
.modern-form {
    max-width: 100%;
}

.form-floating > label {
    color: var(--secondary-color);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: var(--primary-color);
}

.form-control,
.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-color);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.12);
    background: white;
    transform: translateY(-1px);
}

/* Enhanced Select Dropdown Styling */
.form-select {
    cursor: pointer;
    padding-right: 45px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dc3545' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-select:hover {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
}

/* Small select variants */
.form-select-sm {
    padding: 10px 14px;
    padding-right: 40px;
    font-size: 0.9rem;
    border-radius: 10px;
    background-position: right 12px center;
    background-size: 14px 14px;
}

/* Inline select styling */
.form-select.d-inline-block,
.form-select.d-inline {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e0e0e0;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-select.d-inline-block:hover,
.form-select.d-inline:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.form-select.d-inline-block:focus,
.form-select.d-inline:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
    transform: translateY(-1px);
}

/* Disabled select styling */
.form-select:disabled {
    background: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3rem + 2px);
}

.interested-car-badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    border-left: 4px solid var(--primary-color);
    font-size: 0.95rem;
}

.alert-info-custom {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: none;
    border-left: 4px solid #2196F3;
    border-radius: 10px;
    padding: 12px 18px;
    color: #1565c0;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.form-section {
    margin-bottom: 30px;
}

.section-heading {
    color: var(--dark-color);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-light);
}

/* ========== BUTTONS ========== */
.btn {
    border-radius: 10px;
    padding: 10px 24px;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-lg {
    padding: 12px 32px;
    font-size: 1rem;
}

/* ========== RESPONSIVE ========== */


/* Scale card content proportionally */
@media (max-width: 1399px) {
    .car-image-wrapper {
        padding-top: 65%;
    }

    .car-content {
        padding: 22px;
    }

    .car-name {
        font-size: 1rem;
        min-height: 2.6rem; /* 1rem * 1.3 line-height * 2 lines */
        max-height: 2.6rem;
    }

    .car-price {
        font-size: 1.1rem;
    }

    .spec-item {
        font-size: 0.88rem;
        padding: 9px 11px;
    }
}

@media (max-width: 1199px) {
    .col-xl-3 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .car-image-wrapper {
        padding-top: 68%;
    }

    .car-content {
        padding: 20px;
    }

    .car-name {
        font-size: 1rem;
        min-height: 2.6rem; /* 1rem * 1.3 line-height * 2 lines */
        max-height: 2.6rem;
    }

    .car-price {
        font-size: 1.05rem;
    }

    .spec-item {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
}

@media (max-width: 991px) {
    .car-image-wrapper {
        padding-top: 70%;
    }

    .car-content {
        padding: 18px;
    }

    .car-name {
        font-size: 0.95rem;
        min-height: 2.47rem; /* 0.95rem * 1.3 line-height * 2 lines */
        max-height: 2.47rem;
    }

    .car-price {
        font-size: 1rem;
    }

    .car-header {
        margin-bottom: 15px;
    }

    .car-specs {
        gap: 10px;
        margin-bottom: 20px;
    }

    .spec-item {
        font-size: 0.82rem;
        padding: 7px 9px;
    }

    .spec-item i {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .inventory-section {
        padding: 50px 0;
    }

    .car-image-wrapper {
        padding-top: 66%;
    }

    .car-content {
        padding: 18px;
    }

    .car-name {
        font-size: 0.95rem;
        min-height: 2.47rem;
        max-height: 2.47rem;
    }

    .car-price {
        font-size: 1rem;
    }

    .car-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 18px;
    }

    .spec-item {
        font-size: 0.85rem;
        padding: 8px 10px;
    }

    .car-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
}

@media (max-width: 576px) {
    .inventory-section {
        padding: 40px 0;
    }

    .car-image-wrapper {
        padding-top: 70%;
    }

    .car-content {
        padding: 16px;
    }

    .car-name {
        font-size: 0.9rem;
        min-height: 2.34rem;
        max-height: 2.34rem;
    }

    .car-price {
        font-size: 0.95rem;
    }

    .car-header {
        margin-bottom: 14px;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .car-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 16px;
    }

    .spec-item {
        font-size: 0.8rem;
        padding: 8px 10px;
    }

    .spec-item i {
        font-size: 0.95rem;
        min-width: 20px;
    }

    .btn-block {
        padding: 14px;
        font-size: 0.95rem;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 479px) {
    .inventory-section {
        padding: 30px 0;
    }

    .car-image-wrapper {
        padding-top: 75%;
    }

    .car-content {
        padding: 14px;
    }

    .car-name {
        font-size: 0.85rem;
        min-height: 2.21rem;
        max-height: 2.21rem;
    }

    .car-price {
        font-size: 0.9rem;
    }

    .car-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .spec-item {
        font-size: 0.75rem;
        padding: 6px 8px;
    }

    .spec-item i {
        font-size: 0.85rem;
    }

    .section-header {
        margin-bottom: 25px;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 1199px) {
    .col-xl-3 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 991px) {
    .hero-section {
        min-height: 55vh;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-content {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .filter-container {
        padding: 30px 25px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        margin-top: -60px;
        padding-top: 60px;
        min-height: 50vh;
    }

    .hero-content {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: 16px 35px;
        font-size: 1rem;
    }
    
    .stats-banner {
        padding: 30px 0;
    }
    
    .stat-box {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .filter-container {
        padding: 25px 20px;
    }
    
    .filter-header h3 {
        font-size: 1.5rem;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .btn-filter-search,
    .btn-filter-reset {
        width: 100%;
    }
    
    .sort-options {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .sort-select {
        width: 100%;
    }
    
    .car-specs {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .cta-text {
        text-align: center;
        font-size: 1rem;
    }
    
    .btn-cta {
        width: 100%;
    }
    
    .modern-modal .modal-body {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 45vh;
    }

    .hero-content {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 14px 30px;
        font-size: 0.95rem;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .filter-header h3 {
        font-size: 1.3rem;
    }
    
    .filter-header p {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    /* .car-image-wrapper {
        height: 200px;
    } */
}

/* ========== IMAGE GALLERY ENHANCEMENTS ========== */

/* Image Navigation Overlay */
.image-nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(90deg,
        rgba(0, 0, 0, 0.15) 0%,
        transparent 20%,
        transparent 80%,
        rgba(0, 0, 0, 0.15) 100%);
}

.car-image-wrapper:hover .image-nav-overlay {
    opacity: 1;
    pointer-events: all;
}

.image-nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    z-index: 4;
    opacity: 0.9;
    outline: none;
}

.image-nav-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    transform: scale(1.15);
    border-color: var(--primary-dark);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.5);
    opacity: 1;
}

.image-nav-btn:active {
    transform: scale(0.98);
}

.image-nav-btn i {
    pointer-events: none;
}

/* Pulse animation for nav buttons */
@keyframes pulseButton {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    }
    50% {
        box-shadow: 0 5px 25px rgba(220, 53, 69, 0.4);
    }
}

.car-image-wrapper:hover .image-nav-btn {
    animation: none;
}

/* Image Counter */
.image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.car-image-wrapper:hover .image-counter {
    background: rgba(220, 53, 69, 0.95);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 25px rgba(220, 53, 69, 0.6);
    transform: none;
}

.image-counter .current-image {
    color: #FFD700;
    font-weight: 900;
    font-size: 1rem;
}

.car-image-wrapper:hover .image-counter .current-image {
    color: #FFD700;
    text-shadow: none;
}

/* Gallery Modal Styles */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
}

.gallery-modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.gallery-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    display: flex;
    flex-direction: column;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    color: white;
}

.gallery-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.gallery-close {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.gallery-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: rotate(90deg) scale(1.1);
}

.gallery-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gallery-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: imageZoomIn 0.4s ease;
}

@keyframes imageZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    z-index: 10;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.gallery-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.15);
}

.gallery-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.gallery-prev {
    left: 30px;
}

.gallery-next {
    right: 30px;
}

.gallery-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.gallery-counter .current {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 900;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    padding: 20px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.1);
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.gallery-thumbnail {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    opacity: 0.6;
}

.gallery-thumbnail:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.5);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-container {
        width: 95%;
        height: 90vh;
    }

    .gallery-header {
        padding: 15px;
    }

    .gallery-title {
        font-size: 1.2rem;
    }

    .gallery-close {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .gallery-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .gallery-prev {
        left: 15px;
    }

    .gallery-next {
        right: 15px;
    }

    /* Make nav buttons more visible on tablets */
    .image-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .image-nav-overlay {
        padding: 0 8px;
        background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.2) 0%,
            transparent 25%,
            transparent 75%,
            rgba(0, 0, 0, 0.2) 100%);
    }

    .image-counter {
        font-size: 0.8rem;
        padding: 6px 12px;
        bottom: 12px;
        right: 12px;
    }

    .gallery-thumbnails {
        padding: 15px 10px;
    }

    .gallery-thumbnail {
        width: 80px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    /* Larger touch targets for mobile */
    .image-nav-overlay {
        padding: 0 6px;
        background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.25) 0%,
            transparent 30%,
            transparent 70%,
            rgba(0, 0, 0, 0.25) 100%);
    }

    .image-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        border-width: 2px;
    }

    /* Always show buttons on mobile for easier navigation */
    .car-image-wrapper .image-nav-overlay {
        opacity: 0.6;
        pointer-events: all;
    }

    .car-image-wrapper:active .image-nav-overlay {
        opacity: 1;
    }

    .image-counter {
        bottom: 10px;
        right: 10px;
        font-size: 0.75rem;
        padding: 5px 11px;
    }
    
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .gallery-counter {
        font-size: 0.95rem;
        padding: 10px 20px;
    }
    
    .gallery-thumbnail {
        width: 70px;
        height: 50px;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ========== UTILITIES ========== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== FOOTER STYLES ========== */
footer {
    background: linear-gradient(135deg, var(--dark-color), var(--darker-color)) !important;
    color: white;
    position: relative;
    overflow: hidden;
}

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 1440 320"><path fill="rgba(220,53,69,0.08)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat top;
    opacity: 0.6;
    pointer-events: none;
}

footer h5 {
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 18px;
    position: relative;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

footer p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

footer p i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
}

footer a {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

footer .social-links a {
    display: inline-block;
    transition: var(--transition);
}

footer .social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
}

footer hr {
    border-color: rgba(255, 255, 255, 0.2) !important;
    opacity: 1 !important;
    margin: 30px 0;
}

footer .map-container iframe {
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Footer responsive */
@media (max-width: 768px) {
    footer h5 {
        font-size: 1.15rem;
        margin-bottom: 15px;
    }

    footer .col-md-4 {
        margin-bottom: 30px;
    }
}