/* Responsive Styles */

/* Tablet and smaller devices */
@media (max-width: 992px) {
    .nav-links {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 250px;
        height: 100%;
        background-color: var(--card-bg-light);
        padding-top: 60px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    body.dark-mode .nav-links {
        background-color: var(--card-bg-dark);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 0;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color-light);
    }

    body.dark-mode .nav-links li {
        border-bottom: 1px solid var(--border-color-dark);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .car-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .about-content, .contact-content {
        flex-direction: column;
    }

    .about-text, .about-image,
    .contact-form-container, .contact-info {
        min-width: unset;
        width: 100%;
    }

    footer .container {
        flex-direction: column;
        align-items: center;
    }

    footer .footer-col {
        text-align: center;
        min-width: unset;
        width: 100%;
    }

    .social-links {
        margin-top: 20px;
    }
}

/* Mobile devices */
@media (max-width: 576px) {
    .hero {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .car-card-content {
        padding: 15px;
    }

    .car-card h3 {
        font-size: 1.3rem;
    }

    .car-card-price {
        font-size: 1.1rem;
    }

    .contact-form-container {
        padding: 20px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 10px;
    }

    .dark-mode-toggle {
        font-size: 1.2rem;
    }

    #back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
}