:root {
    --primary: #2563eb;
    --secondary: #1e40af;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --black: #000000;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    color: var(--gray-800);
    line-height: 1.6;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
}

/* Accessible focus state (CSS3 :focus-visible) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Utility text/icon classes (replace former Tailwind utilities) */
.accent-text {
    color: #60a5fa;
}

.accent-text-dark {
    color: var(--primary);
}

.text-link {
    color: var(--gray-800);
}

.text-link:hover {
    color: var(--primary);
}

.logo-icon,
.brand-logo-icon {
    font-size: 1.75rem;
    color: var(--white);
    margin-right: 0.5rem;
}

.brand-logo-icon {
    color: #60a5fa;
}

.logo-text {
    color: var(--white);
    font-weight: bold;
    font-size: 1.25rem;
}

.brand-logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.stat-icon {
    font-size: 1.5rem;
    color: #60a5fa;
    margin-right: 0.5rem;
}

.contact-icon {
    color: var(--primary);
    margin-top: 0.25rem;
    margin-right: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.nav {
    position: fixed;
    width: 100%;
    background-color: var(--gray-900);
    background-opacity: 0.9;
    z-index: 50;
    transition: all 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.desktop-menu {
    display: none;
}

.nav-link {
    color: var(--white);
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-button {
    display: block;
}

.mobile-menu-button button {
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    padding: 1rem 0;
}

.mobile-nav-link {
    display: block;
    color: var(--white);
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.mobile-nav-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url(./images/car.jpg) no-repeat center center;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text {
    margin-bottom: 3rem;
    text-align: center;
}

.hero-text h1 {
    font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem);
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.primary-btn {
    background-color: var(--primary);
    color: var(--white);
    font-weight: bold;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
    transform: scale(1);
}

.primary-btn:hover {
    background-color: var(--secondary);
    transform: scale(1.05);
}

.secondary-btn {
    background-color: transparent;
    color: var(--white);
    font-weight: bold;
    padding: 0.75rem 2rem;
    border: 1px solid var(--white);
    border-radius: 0.5rem;
    transition: all 0.3s;
    transform: scale(1);
}

.secondary-btn:hover {
    background-color: var(--white);
    color: var(--gray-900);
    transform: scale(1.05);
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
}

.stat {
    display: flex;
    align-items: center;
}

.stat-label {
    color: var(--gray-300);
}

.stat-value {
    font-size: 1.25rem;
    font-weight: bold;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.car-image {
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--gray-50);
}

.features h2 {
    font-size: 2.25rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-600);
}

/* Specifications Section */
.specs {
    padding: 5rem 0;
    background-color: var(--white);
}

.specs h2 {
    font-size: 2.25rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 4rem;
}

.specs-table-container {
    overflow-x: auto;
}

.specs-table {
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.specs-table thead {
    background-color: var(--gray-900);
    color: var(--white);
}

.specs-table th {
    padding: 1rem 1.5rem;
    text-align: left;
}

.specs-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.specs-table tr:nth-child(even) {
    background-color: var(--gray-50);
}

.specs-button {
    margin-top: 3rem;
    text-align: center;
}

/* Gallery Section */
.gallery {
    padding: 5rem 0;
    background-color: var(--gray-50);
}

.gallery h2 {
    font-size: 2.25rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery-img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    transition: all 0.3s;
}

.gallery-img:hover {
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--white);
}

.contact h2 {
    font-size: 2.25rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 4rem;
}

.contact-container {
    display: flex;
    flex-direction: column;
}

.contact-info {
    margin-bottom: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.social-links {
    margin-top: 2rem;
}

.social-links h4 {
    font-weight: bold;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: var(--gray-700);
    transition: color 0.3s;
}

.social-icon:hover {
    color: var(--primary);
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 6rem;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background-color: var(--gray-900);
    color: var(--white);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.brand-logo {
    display: flex;
    align-items: center;
}

.brand-description {
    color: var(--gray-400);
    max-width: 24rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-link-group h4 {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-link-group ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link-group a {
    color: var(--gray-400);
    transition: color 0.3s;
}

.footer-link-group a:hover {
    color: var(--white);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.copyright {
    color: var(--gray-400);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary);
    color: var(--white);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--secondary);
}

/* Responsive Styles */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
        gap: 2rem;
    }

    .mobile-menu-button {
        display: none;
    }

    .hero-content {
        flex-direction: row;
    }

    .hero-text {
        text-align: left;
        margin-bottom: 0;
        width: 50%;
    }

    .hero-image {
        width: 50%;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-container {
        flex-direction: row;
    }

    .contact-info {
        width: 50%;
        margin-bottom: 0;
        padding-right: 2rem;
    }

    .contact-form {
        width: 50%;
    }
}

@media (min-width: 1024px) {
    .hero-text h1 {
        font-size: 3rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }
}