:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --surface: rgba(15, 23, 42, 0.72);
    --card: rgba(255, 255, 255, 0.04);
    --card-strong: rgba(15, 23, 42, 0.92);
    --text: #e5eefb;
    --muted: #94a3b8;
    --accent: #38bdf8;
    --accent-strong: #2563eb;
    --accent-soft: rgba(56, 189, 248, 0.16);
    --border: rgba(148, 163, 184, 0.18);
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.35);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 24%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.18), transparent 28%),
        linear-gradient(180deg, #020617 0%, #0f172a 38%, #111827 100%);
    color: var(--text);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

img {
    max-width: 100%;
    display: block;
}

.header {
    padding: 20px 8%;
    background: rgba(2, 6, 23, 0.34);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    backdrop-filter: blur(16px);
}

.header.scrolled {
    background: rgba(2, 6, 23, 0.78);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.28);
}

.logo,
.navbar a,
.social-media a {
    opacity: 1;
    animation: none;
}

.logo {
    color: #ffffff;
    letter-spacing: 0.04em;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    cursor: pointer;
    transition: 0.3s ease;
}

.menu-toggle i {
    font-size: 1.6rem;
}

.menu-toggle:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.navbar a {
    margin: 0;
    padding: 0.68rem 0.95rem;
    color: var(--muted);
    border-radius: 999px;
}

.navbar a:hover,
.navbar a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

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

.social-media {
    width: auto;
    height: auto;
    gap: 0.75rem;
}

.social-media a {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    transform: none;
}

.social-media a:hover {
    border-color: rgba(56, 189, 248, 0.42);
    background: rgba(56, 189, 248, 0.12);
    transform: translateY(-2px);
}

.social-media a i {
    color: #f8fafc;
    transform: none;
    font-size: 1.25rem;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.lang-btn {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.3s ease;
}

.lang-btn:hover {
    color: #ffffff;
}

.lang-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-strong), #4f46e5);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}

main {
    position: relative;
    z-index: 1;
}

.home {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    min-height: 100vh;
    height: auto;
    justify-content: normal;
    align-items: center;
    gap: 3.5rem;
    padding: 10rem 8% 5rem;
}

.home-content {
    max-width: 42rem;
}

.home-content h1,
.home-content h3,
.home-content p {
    opacity: 1;
    animation: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 999px;
    background: var(--accent-soft);
    color: #bae6fd;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-content h1 {
    max-width: 12ch;
    color: #ffffff;
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    line-height: 1.05;
}

.home-content h3 {
    margin-top: 0.9rem;
    color: #67e8f9;
    font-size: clamp(1.15rem, 2vw, 1.6rem);
}

.home-content p {
    max-width: 38rem;
    margin: 1.5rem 0 2rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.45rem;
    border-radius: 999px;
    border-color: var(--accent-strong);
    background: linear-gradient(135deg, var(--accent-strong), #4f46e5);
    color: #ffffff;
    letter-spacing: 0.01em;
    opacity: 1;
    animation: none;
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.25);
}

.btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #4338ca);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-secondary {
    border-color: rgba(148, 163, 184, 0.3);
    background: transparent;
    color: #dbeafe;
    box-shadow: none;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.btn-light {
    border-color: #ffffff;
    background: #ffffff;
    color: #0f172a;
    box-shadow: none;
}

.btn-light:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.52);
    background: transparent;
    color: #ffffff;
    box-shadow: none;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.stat-card {
    padding: 1.2rem 1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.stat-card strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #ffffff;
    font-size: 1.4rem;
}

.stat-card span {
    color: var(--muted);
    font-size: 0.95rem;
}

.home-img {
    position: relative;
    right: auto;
    width: min(34rem, 42vw);
    height: min(34rem, 42vw);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none;
}

.floating-card {
    position: absolute;
    top: 8%;
    left: -8%;
    z-index: 2;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.86);
    box-shadow: var(--shadow);
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 0.65s;
}

.floating-card span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.floating-card strong {
    color: #f8fafc;
    font-size: 1rem;
}

.home-img .rhombus {
    position: relative;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 52px;
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.25), rgba(15, 23, 42, 0.95));
    box-shadow: var(--shadow);
    transform: rotate(45deg);
    overflow: hidden;
    opacity: 0;
    animation: zoomOut 1s ease forwards;
    animation-delay: 0.8s;
}

.home-img .rhombus img {
    position: absolute;
    top: 5%;
    left: -16%;
    width: 138%;
    max-width: 138%;
    object-fit: contain;
    transform: rotate(-45deg);
    opacity: 0;
    animation: car 1s ease forwards;
    animation-delay: 1.1s;
    filter: drop-shadow(0 24px 32px rgba(2, 6, 23, 0.45));
}

.home .rhombus2 {
    top: -16%;
    right: -11%;
    width: 32rem;
    height: 32rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.45) 0%, rgba(37, 99, 235, 0.08) 48%, transparent 70%);
    transform: none;
    opacity: 1;
    animation: none;
}

.section {
    position: relative;
    padding: 1rem 8% 5.5rem;
}

main section[id] {
    scroll-margin-top: 120px;
}

.section-heading {
    max-width: 45rem;
    margin-bottom: 2.5rem;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 0.85rem;
    color: #67e8f9;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.section-heading p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.feature-grid,
.inventory-grid,
.review-grid {
    display: grid;
    gap: 1.25rem;
}

.feature-grid,
.inventory-grid,
.review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.car-card,
.review-card,
.contact-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}

.feature-card {
    padding: 1.65rem;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1rem;
    border-radius: 18px;
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    font-size: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.8rem;
    color: #ffffff;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--muted);
    line-height: 1.7;
}

.section-dark {
    margin: 0 8%;
    padding: 4rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.82));
}

.section-dark .section-kicker {
    color: #93c5fd;
}

.car-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.75rem;
}

.car-card.featured {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.22), rgba(15, 23, 42, 0.98));
    transform: translateY(-12px);
}

.car-card__tag {
    align-self: flex-start;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    color: #bfdbfe;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

.car-card p {
    min-height: 5rem;
    color: var(--muted);
    line-height: 1.7;
}

.car-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    color: #7dd3fc;
    font-weight: 600;
    text-decoration: none;
}

.text-link::after {
    content: "→";
}

.text-link:hover {
    color: #e0f2fe;
}

.review-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: 15rem;
    padding: 1.75rem;
}

.review-card p {
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.85;
}

.review-card strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #ffffff;
}

.review-card span {
    color: var(--muted);
}

.section-accent {
    padding-top: 0;
}

.contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.2rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.94), rgba(14, 165, 233, 0.88));
}

.contact-copy {
    max-width: 38rem;
}

.contact-panel .section-kicker {
    color: rgba(224, 242, 254, 0.82);
}

.contact-panel h2 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.contact-panel p {
    color: rgba(239, 246, 255, 0.86);
    line-height: 1.8;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 8% 2.5rem;
    color: var(--muted);
}

.footer p {
    margin: 0;
}

#footer-year {
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .home {
        grid-template-columns: 1fr;
    }

    .home-content h1 {
        max-width: none;
    }

    .home-img {
        margin-inline: auto;
    }
}

@media (max-width: 960px) {
    .header {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 18px 5%;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .navbar {
        position: absolute;
        top: calc(100% - 0.35rem);
        left: 5%;
        right: 5%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding: 0.75rem;
        border: 1px solid var(--border);
        border-radius: 24px;
        background: rgba(2, 6, 23, 0.94);
        box-shadow: var(--shadow);
    }

    .navbar.is-open {
        display: flex;
    }

    .navbar a {
        width: 100%;
        text-align: center;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .home {
        padding: 8.5rem 5% 4rem;
    }

    .section {
        padding-left: 5%;
        padding-right: 5%;
    }

    .section-dark {
        margin: 0 5%;
        padding: 2rem;
    }

    .hero-stats,
    .feature-grid,
    .inventory-grid,
    .review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-panel,
    .footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-img {
        width: min(26rem, 80vw);
        height: min(26rem, 80vw);
    }

    .floating-card {
        left: 0;
        top: -6%;
    }
}

@media (max-width: 640px) {
    .social-media {
        display: none;
    }

    .header-actions {
        justify-content: flex-end;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-stats,
    .feature-grid,
    .inventory-grid,
    .review-grid {
        grid-template-columns: 1fr;
    }

    .section-dark {
        padding: 1.5rem;
        border-radius: 28px;
    }

    .contact-panel {
        padding: 1.6rem;
    }

    .home-img {
        display: block;
        width: min(21rem, 86vw);
        height: min(21rem, 86vw);
    }

    .floating-card {
        position: static;
        width: 100%;
        margin-bottom: 1rem;
    }

    .home .rhombus2 {
        top: 12%;
        right: -20%;
        width: 18rem;
        height: 18rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
