@keyframes light-sweep {
    0% { left: -60%; }
    14%, 100% { left: 130%; }
}
@keyframes light-sweep-hover {
    from { left: -60%; }
    to { left: 130%; }
}

.btn.dark {
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    border-color: var(--black);
    border-width: 2px;
    color: var(--black);
    font-size: 16px;
}
.btn.dark:hover {
    background: var(--black);
    color: var(--white);
}
.car-card {
    display: grid;
    grid-template-rows: auto 1fr;
    text-decoration: none;
    color: var(--white);
    border: 1px solid #1f1f1f;
    border-radius: 16px;
    overflow: hidden;
    background: #101010;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.car-card:hover {
    transform: translateY(-6px);
    border-color: var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.car-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}
.car-card-body {
    padding: 18px 20px 22px;
}
.car-card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.car-card-body p {
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    color: #cfcfcf;
}
.car-catalog {
    background: #0b0b0b;
}
.car-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 26px;
    margin-top: 30px;
}
.car-chip {
    border: 1px solid #2a2a2a;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--white);
    font-size: 0.85rem;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.02);
}
.car-chip:hover {
    border-color: var(--white);
    color: var(--white);
}
.car-gallery {
    background: #0b0b0b;
}
.car-gallery .container h2 {
    text-align: center;
    margin-bottom: 30px;
}
.car-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}
.car-gallery-grid img {
    width: 100%;
    border-radius: 12px;
    transition: 0.3s;
}
.car-gallery-grid img:hover {
    transform: scale(1.03);
}
.car-hero {
    padding-top: 160px;
    background: radial-gradient(circle at top, rgba(0, 171, 162, 0.2), transparent 55%);
}
.car-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 50px;
}
.car-hero-media img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.car-hero-text h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.car-hero-text p {
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    color: #d9d9d9;
    max-width: 600px;
}
.car-highlights {
    margin-top: 20px;
}
.car-highlights li {
    padding: 8px 0 8px 20px;
    position: relative;
}
.car-highlights li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    position: absolute;
    left: 0;
    top: 16px;
}
.car-page ul li {
    padding: 10px 0;
    border-bottom: 1px solid #222;
}
.car-profile {
    border-top: 1px solid #1a1a1a;
}
.car-profile-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.car-profile-media img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}
.car-profile-text p {
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    color: #d9d9d9;
}
.car-profile.reverse .car-profile-inner {
    direction: rtl;
}
.car-profile.reverse .car-profile-text,
.car-profile.reverse .car-profile-media {
    direction: ltr;
}
.car-selector {
    background: #0f0f0f;
}
.car-selector-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.car-story {
    background: linear-gradient(180deg, #0a0a0a 0%, #080808 100%);
}
.car-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    color: var(--white);
    margin-bottom: 15px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}
.loop-video-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 0;
    overflow: hidden;
    box-shadow: 5px 8px 15px rgba(0, 0, 0, 0.6);
}
.loop-video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.section-lead {
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    color: #cfcfcf;
    max-width: 700px;
    margin-bottom: 25px;
}
.split-image {
    position: relative;
    overflow: hidden;
}
.split-image::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 35%;
    z-index: 2;
    pointer-events: none;
    transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    animation: light-sweep 10s ease-out 0.6s infinite;
}
.split-image:hover::before {
    animation: light-sweep-hover 1s ease-out 1 both;
}
.split-image::after {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 3;
    padding: 8px 16px;
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--white);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}
.split-image img,
.loop-video-frame {
    border-radius: 0;
    box-shadow: none;
}
.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-align: center;
    box-shadow: 5px 8px 15px rgba(0, 0, 0, 0.6);
}
.split-section .split-text .btn {
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 800;
    font-size: 16px;
    display: inline-block;
    padding: 14px 0;
    border: none;
    background: linear-gradient(currentColor, currentColor) left bottom / 0 2px no-repeat;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-size 0.3s ease;
}
.split-section .split-text .btn:hover {
    background-size: 100% 2px;
}
.split-section .split-text .btn::after {
    content: "→";
    display: inline-block;
    margin-left: 10px;
    color: var(--accent);
    transition: transform 0.3s ease;
}
.split-section .split-text .btn:hover::after {
    transform: translateX(6px);
}
.split-section .split-text .btn.dark {
    color: var(--white);
}
.split-section.dark .split-image::after {
    content: "FRC-13";
}
.split-section.light,
.split-section.dark {
    position: relative;
    margin: 0;
    padding: 80px 8%;
    gap: 70px;
    min-height: 0;
    color: var(--white);
    background: transparent;
}
.split-section.light {
    z-index: 3;
}
.split-section.light::before {
    content: "BME MOTORSPORT";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0;
    transform: translateY(50%);
    z-index: -1;
    pointer-events: none;
    white-space: nowrap;
    text-align: center;
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 6.9vw;
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.1);
}
.split-section.light::after {
    content: "";
    position: absolute;
    top: -95%;
    left: 15%;
    width: 70%;
    height: 150%;
    z-index: -1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 560' fill='none'%3E%3Cpath id='t' d='M110 420 L330 420 C380 420 400 400 420 380 L470 330 C490 310 520 312 535 335 C560 375 600 380 640 350 L700 305 C720 290 715 262 690 255 L560 225 C525 215 520 175 548 155 L640 95 C670 75 710 85 725 115 L760 190 C775 225 815 235 850 215 L920 175 C960 152 985 190 960 225 L900 320 C885 345 895 385 930 395 C965 405 960 460 920 475 L300 500 C230 505 150 495 115 470 C85 450 85 425 110 420 Z' stroke='white' stroke-opacity='0.12' stroke-width='4.4' stroke-linejoin='round'/%3E%3Cpath d='M170 408 L170 432' stroke='white' stroke-opacity='0.35' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 40%, transparent 80%);
    mask-image: radial-gradient(ellipse at 50% 50%, #000 40%, transparent 80%);
}
.split-section.light .split-image::after {
    content: "BME MOTORSPORT 2026";
}
.split-text {
    padding: 0;
}
.split-text h2 {
    max-width: 455px;
    text-shadow: none;
}
.split-text p {
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    max-width: 620px;
    margin: 24px 0 30px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #d0d0d0;
    text-align: left;
}
.story-media img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}
.story-text p {
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    color: #d6d6d6;
    margin-bottom: 18px;
}
/* Cars/Vehicle Page Styles */

.car-page ul {
    list-style: none;
    margin-top: 20px;
}
/* Split Section Styles for Cars */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 70vh;
    align-items: center;
}

@media (max-width: 900px) {
    .car-hero-grid,
    .car-story-grid,
    .car-profile-inner {
        grid-template-columns: 1fr;
    }

    .car-hero {
        padding-top: 140px;
    }
}
.linkedin-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(1);
}

.linkedin-icon:hover {
    transform: scale(1.1);
    filter: brightness(1.3);
}

@media (max-width: 900px) {
    .split-section {
        grid-template-columns: 1fr;
    }

    .split-section.light,
    .split-section.dark {
        margin: 0;
        padding: 50px 5%;
        gap: 30px;
    }

    .split-text {
        padding: 34px 20px;
    }
}
