/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #d4af37;
    --accent-color: #1a1a1a;
    --text-dark: #ffffff;
    --text-light: #cccccc;
    --white: #ffffff;
    --dark-bg: #0a0a0a;
    --card-bg: #1e1e1e;
    --gradient-primary: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    --shadow-light: 0 5px 15px rgba(0,0,0,0.3);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.4);
    --shadow-heavy: 0 20px 60px rgba(0,0,0,0.6);
    --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.3);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    position: relative;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-gold);
}

.section-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--white);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary {
    background: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--dark-bg);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-medium);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    box-shadow: var(--shadow-heavy);
    border-radius: var(--border-radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 1rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-call {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-gold);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-call:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(26, 26, 26, 0.4) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.title-main {
    display: block;
    font-weight: 400;
}

.title-sub {
    display: block;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Hero Slogan */
.hero-slogan {
    margin: 2rem 0;
    text-align: center;
}

.slogan-main {
    font-size: 2.2rem;
    font-family: 'Playfair Display', serif;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slogan-details {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--white);
    opacity: 0.9;
}

.slogan-item {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: var(--transition);
}

.slogan-item:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.slogan-separator {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition);
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.scroll-indicator i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Section Spacing */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* About Section */
.about {
    background: var(--gradient-dark);
}

.about-slogan {
    margin: 2rem 0;
    text-align: center;
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.about-slogan-title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.about-slogan-desc {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
    font-style: italic;
}

/* FIXED ABOUT FEATURES - 5 items trên 1 hàng */
.about-features {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-gold);
    border-color: rgba(212, 175, 55, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.feature-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Cars Section - UPDATED với xóa biển số */
.cars {
    background: var(--dark-bg);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--text-light);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--gradient-primary);
    border-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Car Cards - ĐÃ XÓA BIỂN SỐ */
.car-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition);
    position: relative;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-gold);
    border-color: rgba(212, 175, 55, 0.3);
}

.car-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-image::before {
    content: '🚗';
    font-size: 3rem;
    opacity: 0.2;
    color: var(--text-light);
}

.car-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    z-index: 1;
}

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

.car-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-gold);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.car-info {
    padding: 1.5rem;
}

.car-name {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
    text-align: center;
}

/* CHỈ HIỂN THỊ NĂM SẢN XUẤT - ĐÃ XÓA BIỂN SỐ */
.car-details {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.car-year {
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.car-specs {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.car-specs span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(212, 175, 55, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    flex: 1;
    justify-content: center;
    transition: var(--transition);
}

.car-specs span:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.4);
}

.car-specs i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.car-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
}

.period {
    color: var(--text-light);
    font-size: 0.9rem;
    opacity: 0.8;
}

.car-book-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gradient-gold);
    border: none;
    transition: var(--transition);
}

.car-book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
}

.car-book-btn i {
    font-size: 0.9rem;
}

/* Services Section */
.services {
    background: var(--gradient-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-gold);
    border-color: rgba(212, 175, 55, 0.3);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-item:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.service-content p {
    color: var(--text-light);
}

/* Contact Section */
.contact {
    background: var(--dark-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.contact-details p {
    color: var(--text-light);
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--dark-bg);
    color: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Footer */
.footer {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 45px;
    border-radius: 8px;
    object-fit: contain;
}

.footer-logo span {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.company-info {
    margin: 1rem 0;
}

.company-info h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.company-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

.company-slogan {
    color: var(--secondary-color) !important;
    font-style: italic;
    font-weight: 600;
    margin: 0.5rem 0 !important;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.working-hours p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Booking Modal */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.modal-header h3 {
    margin: 0;
    color: var(--white);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--secondary-color);
}

.modal-body {
    padding: 1.5rem;
}

.car-summary {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--accent-color);
    border-radius: var(--border-radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.car-summary img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--dark-bg);
}

.car-summary .car-details h4 {
    margin: 0 0 0.5rem 0;
    color: var(--white);
}

.car-summary .car-details p {
    margin: 0.25rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-options .btn {
    justify-content: center;
}

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    padding: 1rem 1.5rem;
    z-index: 10001;
    transform: translateX(100%);
    opacity: 0;
    transition: var(--transition);
    max-width: 400px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    border-left: 4px solid #10b981;
}

.notification-info {
    border-left: 4px solid #3b82f6;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-success i {
    color: #10b981;
}

.notification-info i {
    color: #3b82f6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Header Scrolled State */
.header.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: var(--shadow-heavy);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.header.scrolled .navbar {
    padding: 0.5rem 0;
}

/* Loading States */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Lazy Loading Images */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* Car Grid Loading State */
.cars-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

.cars-grid:empty::after {
    content: 'Đang tải danh sách xe...';
    display: block;
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* Car Count Display */
.car-count {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-light);
    font-size: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.car-count strong {
    color: var(--secondary-color);
}

/* Placeholder for missing car images */
.car-image img[src*="placeholder.jpg"] {
    display: none;
}

.car-image:has(img[src*="placeholder.jpg"])::before,
.car-image img[onerror]::before {
    content: '📷 Ảnh xe';
    font-size: 1rem;
    color: var(--text-light);
    opacity: 0.7;
}

/* Debug styles - can be removed in production */
.debug-info {
    position: fixed;
    top: 10px;
    right: 10px;
    background: var(--card-bg);
    color: var(--white);
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    z-index: 9999;
    border: 1px solid var(--secondary-color);
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.tab-btn:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

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

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

::-webkit-scrollbar-track {
    background: var(--accent-color);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Print styles */
@media print {
    .header,
    .hero-scroll,
    .contact-form,
    .social-links,
    .booking-modal,
    .notification,
    .debug-info,
    .car-book-btn {
        display: none !important;
    }
    
    .hero {
        height: auto;
        padding: 2rem 0;
    }
    
    .hero-content {
        color: var(--primary-color) !important;
    }
    
    section {
        padding: 1rem 0;
        break-inside: avoid;
    }
    
    .btn {
        border: 1px solid var(--primary-color) !important;
        color: var(--primary-color) !important;
        background: transparent !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-light: #ffffff;
        --shadow-medium: 0 10px 30px rgba(0,0,0,0.8);
        --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.6);
    }
    
    .car-card,
    .feature-item,
    .service-item {
        border: 2px solid var(--secondary-color);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator i {
        animation: none;
    }
    
    .hero-slide {
        transition: none;
    }
}

/* Large screens optimization */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .about-features {
        max-width: 1600px;
    }
    
    .cars-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
    .cars-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1600px;
        margin: 0 auto;
    }
    
    .about-features {
        gap: 2rem;
    }
}
/* ===================
   FLOATING CONTACT BUTTONS (Bottom Right) - FIXED VERSION
   =================== */
.floating-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999; /* Tăng z-index cao hơn */
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto; /* Đảm bảo có thể click */
}

.contact-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border: none;
    cursor: pointer;
    transform: scale(1);
    animation: pulse 2s infinite;
    position: relative; /* Đảm bảo positioning */
    z-index: 100000;
}

.contact-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.phone-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.phone-btn:hover {
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
}

.zalo-btn {
    background: linear-gradient(135deg, #0068ff 0%, #0052cc 100%);
}

.zalo-btn:hover {
    box-shadow: 0 15px 35px rgba(0, 104, 255, 0.4);
}

/* Tooltip cho contact buttons */
.contact-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-50%) translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    z-index: 100001;
}

.contact-btn:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ===================
   VISIT COUNTER (Bottom Left) - FIXED VERSION
   =================== */
.visit-counter {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99999; /* Tăng z-index cao hơn */
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--accent-color) 100%);
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    min-width: 160px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    pointer-events: auto; /* Đảm bảo có thể tương tác */
}

.visit-counter:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
    border-color: #f4d03f;
}

.counter-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.counter-icon {
    width: 24px;
    height: 24px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--white);
    flex-shrink: 0;
}

.counter-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.counter-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    font-family: 'Courier New', monospace;
    line-height: 1.2;
}

.counter-label {
    display: none;
}

/* Counter animation */
.counter-number.updated {
    animation: counterUpdate 0.5s ease;
}

@keyframes counterUpdate {
    0% { transform: scale(1); color: var(--white); }
    50% { transform: scale(1.1); color: var(--secondary-color); }
    100% { transform: scale(1); color: var(--white); }
}

/* Pulse animation for contact buttons */
@keyframes pulse {
    0% { box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 8px 25px rgba(0,0,0,0.3), 0 0 0 10px rgba(255,255,255,0.1); }
    100% { box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
}

/* ===================
   SCROLL BEHAVIOR - IMPROVED
   =================== */
.floating-contact.scrolling {
    opacity: 0.8;
    transform: scale(0.95);
}

.visit-counter.scrolling {
    opacity: 0.9;
    transform: scale(0.98) translateY(-2px);
}

/* ===================
   RESPONSIVE DESIGN - COMPLETELY FIXED
   =================== */

/* Large Tablet */
@media (max-width: 1024px) {
    .floating-contact {
        bottom: 20px;
        right: 20px;
        z-index: 99999;
    }

    .visit-counter {
        bottom: 20px;
        left: 20px;
        z-index: 99999;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px;
        right: 20px;
        gap: 10px;
        z-index: 99999;
    }

    .contact-btn {
        width: 55px;
        height: 55px;
        font-size: 20px;
    }

    .visit-counter {
        bottom: 20px;
        left: 20px;
        padding: 10px 12px;
        min-width: 140px;
        z-index: 99999;
    }

    .counter-number {
        font-size: 18px;
    }

    /* Hide tooltips on tablet */
    .contact-btn::before {
        display: none;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .floating-contact {
        bottom: 15px;
        right: 15px;
        gap: 8px;
        z-index: 99999;
        position: fixed !important;
    }

    .contact-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    }

    .visit-counter {
        bottom: 15px;
        left: 15px;
        padding: 8px 10px;
        min-width: 120px;
        z-index: 99999;
        position: fixed !important;
    }

    .counter-header {
        margin-bottom: 6px;
    }

    .counter-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .counter-title {
        font-size: 10px;
    }

    .counter-number {
        font-size: 16px;
    }

    .counter-label {
        display: none;
    }

    /* Ensure no tooltips on mobile */
    .contact-btn::before {
        display: none !important;
    }
}

/* Very Small Mobile */
@media (max-width: 375px) {
    .floating-contact {
        bottom: 10px;
        right: 10px;
        z-index: 99999;
    }

    .contact-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .visit-counter {
        bottom: 10px;
        left: 10px;
        padding: 6px 8px;
        min-width: 100px;
        z-index: 99999;
    }

    .counter-number {
        font-size: 14px;
    }

    .counter-title {
        font-size: 9px;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .floating-contact {
        bottom: 30px;
        right: 30px;
    }

    .visit-counter {
        bottom: 30px;
        left: 30px;
    }

    .contact-btn {
        width: 65px;
        height: 65px;
        font-size: 26px;
    }
}

/* Ultra-wide screens */
@media (min-width: 1600px) {
    .floating-contact {
        bottom: 40px;
        right: 40px;
    }

    .visit-counter {
        bottom: 40px;
        left: 40px;
    }
}

/* ===================
   MOBILE TOUCH OPTIMIZATION
   =================== */
@media (hover: none) and (pointer: coarse) {
    .contact-btn:hover {
        transform: scale(1) !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
    }
    
    .contact-btn::before {
        display: none !important;
    }
    
    .contact-btn:active {
        transform: scale(0.95) !important;
        transition: transform 0.1s ease !important;
    }

    .visit-counter:hover {
        transform: none !important;
    }

    .visit-counter:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease !important;
    }
}

/* ===================
   LANDSCAPE MODE OPTIMIZATION
   =================== */
@media (max-width: 768px) and (orientation: landscape) {
    .floating-contact {
        bottom: 10px;
        right: 10px;
        gap: 6px;
    }

    .contact-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .visit-counter {
        bottom: 10px;
        left: 10px;
        padding: 6px 8px;
        min-width: 110px;
    }

    .counter-number {
        font-size: 14px;
    }
}

/* ===================
   HIGH CONTRAST & ACCESSIBILITY
   =================== */
@media (prefers-contrast: high) {
    .visit-counter {
        border-width: 3px;
        background: var(--primary-color);
    }
    
    .contact-btn {
        border: 2px solid rgba(255,255,255,0.5);
    }

    .counter-number,
    .counter-title {
        color: var(--white);
        font-weight: 700;
    }
}

/* ===================
   REDUCED MOTION SUPPORT
   =================== */
@media (prefers-reduced-motion: reduce) {
    .contact-btn {
        animation: none !important;
    }
    
    .contact-btn,
    .visit-counter {
        transition: none !important;
    }

    .contact-btn:hover,
    .visit-counter:hover {
        transform: none !important;
    }
}

/* ===================
   PRINT STYLES - Hide floating widgets
   =================== */
@media print {
    .floating-contact,
    .visit-counter {
        display: none !important;
    }
}

/* ===================
   FALLBACK FOR OLDER BROWSERS
   =================== */
.floating-contact,
.visit-counter {
    /* Fallback for browsers that don't support custom properties */
    background: #1e1e1e;
    color: #ffffff;
}

/* ===================
   IMPORTANT OVERRIDES FOR MOBILE
   =================== */
@media (max-width: 768px) {
    body .floating-contact {
        display: flex !important;
        position: fixed !important;
        z-index: 99999 !important;
        bottom: 15px !important;
        right: 15px !important;
    }

    body .visit-counter {
        display: block !important;
        position: fixed !important;
        z-index: 99999 !important;
        bottom: 15px !important;
        left: 15px !important;
    }
}

/* ===================
   SAFE AREA INSETS FOR MODERN MOBILE DEVICES
   =================== */
@supports (bottom: env(safe-area-inset-bottom)) {
    @media (max-width: 768px) {
        .floating-contact {
            bottom: calc(15px + env(safe-area-inset-bottom));
            right: calc(15px + env(safe-area-inset-right));
        }

        .visit-counter {
            bottom: calc(15px + env(safe-area-inset-bottom));
            left: calc(15px + env(safe-area-inset-left));
        }
    }
}

/* ===================
   DEBUGGING STYLES (Remove in production)
   =================== */
.debug-widgets {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 100000;
    font-family: monospace;
}

/* Force visibility on all devices */
html .floating-contact,
html .visit-counter {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
}

/* Contact Map Styles */
.contact-map {
    margin-top: 2rem;
}

.map-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    background: var(--card-bg);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 250px;
    border: none;
    border-radius: var(--border-radius);
}

.map-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-gold);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.map-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--primary-color);
}

.map-link i {
    font-size: 0.8rem;
}

html .visit-counter {
    display: block !important;
}