/* Index/Home Page Styles - Alphabetically Organized */

@keyframes dot-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 171, 162, 0.7); }
    100% { box-shadow: 0 0 0 14px rgba(0, 171, 162, 0); }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes track-pattern {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 0;
    }
}

body.home {
    background: var(--black);
    background-image: none;
}

.hero {
    height: 100vh;
    background: linear-gradient(black),
    url('../images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20%;
    margin-top: 80px;
}

.hero h1 {
    font-size: 2rem;
    max-width: 1000px;
    text-shadow: 0 8px 5px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
}

.hero h1 span {
    font-weight: 900;
    display: inline;
}

.hero p {
    font-size: 1rem;
    color: var(--gray);
    margin: 20px 0 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

.filled-text {
    font-weight: 900;
    color: var(--white);
    display: inline;
}

.outline-text {
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.7);
    display: inline;
}

.hero-mobile-image {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;   
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    text-align: left;
    z-index: 3;  
    padding: 0 8%;
}

.hero-video-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--black);
}

.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;
}

.news-button {
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 800;
    display: block;
    width: fit-content;
    margin: 0 auto;
    position: center;
    padding: 14px 30px;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.news-button:hover {
    background: #00aba2;
    color: black;
}

.news-card {
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.news-card h3 {
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin-top: 15px;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.news-card img {
    width: 100%;
    border-radius: 12px;
    transition: opacity 0.3s ease;
    box-shadow: 4px 4px 12px rgba(255, 255, 255, 0.581);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card:hover img {
    opacity: 1;
}

.news-card-date {
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin-top: 2px;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
}

.news-card-title {
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin-top: 2px;
    font-size: 1.1rem;
    line-height: 1.35;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.news-grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.news-grid-layout .article-title {
    font-size: 1.4rem;
}

.news {
    position: relative;
    background: transparent;
    padding: 90px 8% 150px;
    overflow: visible;
    margin-top: 0;
    margin-bottom: 0;
}

.news::before {
    content: "";
    position: absolute;
    top: 35%;
    left: -20%;
    width: 140%;
    height: 950px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="40 70 520 480" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg"><path d="M 85 535 C 78 538, 75 530, 82 522 L 105 498 C 110 492, 102 485, 100 478 C 98 470, 108 465, 118 462 C 128 458, 130 448, 138 445 C 148 442, 155 446, 165 440 C 175 434, 182 422, 178 415 C 172 408, 162 418, 152 422 C 142 425, 135 415, 125 410 C 115 405, 112 395, 102 390 C 92 385, 85 372, 78 362 C 72 352, 70 342, 76 332 C 82 322, 82 308, 78 295 C 75 282, 75 268, 68 258 C 62 248, 52 245, 55 238 C 58 232, 72 230, 85 222 C 98 214, 112 205, 118 192 C 124 180, 125 168, 135 160 C 145 152, 158 148, 168 138 C 175 130, 172 118, 162 112 C 152 106, 155 98, 165 92 C 175 85, 182 78, 192 84 C 202 90, 205 102, 215 102 C 225 102, 232 98, 240 102 C 248 106, 250 96, 258 92 C 268 88, 282 88, 295 84 C 305 80, 312 75, 314 85 C 316 95, 312 110, 320 122 C 328 134, 342 140, 358 144 C 374 148, 385 158, 395 168 C 405 178, 418 170, 428 162 C 438 154, 452 152, 460 158 C 465 162, 450 168, 438 172 C 428 175, 425 184, 435 186 C 448 188, 465 184, 478 175 C 488 168, 485 152, 492 148 C 500 144, 515 154, 526 164 C 536 174, 540 185, 534 195 C 528 202, 542 208, 542 218 C 542 228, 530 225, 520 225 C 510 225, 504 238, 500 250 C 496 262, 498 272, 486 274 C 474 276, 468 286, 460 296 C 452 306, 435 306, 420 306 C 408 306, 400 295, 392 295 C 384 295, 384 306, 394 314 C 404 322, 412 332, 404 342 C 396 350, 375 356, 350 366 L 265 400 C 245 408, 232 420, 222 432 C 212 444, 198 448, 185 456 C 172 464, 162 475, 148 485 C 135 494, 120 498, 122 508 C 124 516, 114 522, 102 528 Z" fill="none" stroke="%23555" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.news-preview {
    position: relative;
    z-index: 1;
}

.news-preview h2 {
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin-bottom: 30px;
    text-transform: uppercase;
    text-align: left;
}



.season-timeline {
    grid-column: 1 / -1;
    position: relative;
    padding: 80px 20px 20px;
    margin-top: 40px;
}

.season-timeline h2 {
    text-align: center;
    margin-bottom: 70px;
    text-shadow: #00aba2 5px 5px 5px;
    scroll-margin-top: 100px;
}

.season-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    right: -12.5%;
    width: min(380px, 30%);
    height: 380px;
    pointer-events: none;
    background:
        repeating-linear-gradient(100deg, rgba(0, 0, 0, 0.55) 0 40px, transparent 40px 90px, rgba(0, 0, 0, 0.35) 90px 130px, transparent 130px 190px),
        repeating-conic-gradient(rgba(255, 255, 255, 0.9) 0 25%, transparent 0 50%) 0 0 / 70px 70px;
    filter: url(#flag-wave);
    opacity: 0.16;
    transform-origin: right top;
    transform: perspective(700px) rotateY(-24deg) skewY(8deg);
    -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 100%), linear-gradient(to bottom, #000 0%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to left, #000 0%, transparent 100%), linear-gradient(to bottom, #000 0%, transparent 100%);
    mask-composite: intersect;
}

.segment {
    margin-right: 16px;
    padding: 16px 18px;
    text-align: left;
    font-size: 1rem;
    color: #ddd;
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, #181818 0%, #0e0e0e 100%);
    transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.segment small {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.5;
    color: #9a9a9a;
}

.segment strong {
    display: block;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.segment.current {
    border-color: var(--accent);
    box-shadow: 0 0 24px rgba(0, 171, 162, 0.3);
}

.segment.done {
    color: var(--white);
    border-color: rgba(0, 171, 162, 0.45);
}

.stat-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 40px 20px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(160deg, #181818 0%, #0e0e0e 100%);
    box-shadow: 0 0 25px rgba(0, 171, 162, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: transparent;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: transparent;
    box-shadow: 0 0 40px rgba(0, 171, 162, 0.4);
    text-align: center;
}

.stat-card p {
    color: var(--gray);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--accent);
    text-shadow: 0 0 24px rgba(0, 171, 162, 0.35);
    display: block;
    margin-bottom: 10px;
    text-align: center;
}

.stats-section {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 120px 10% 20px;
    background: transparent;
    text-align: center;
}

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.left {
    transform: translateX(-60px);
}

.reveal.left.active,.reveal.right.active {
    transform: translateX(0);
}

.reveal.right {
    transform: translateX(60px);
}

.rollout-banner {
    position: relative;
    min-height: 610px;
    margin: 46px 6% 30px;
    padding: clamp(26px, 4vw, 50px);
    border-radius: 28px;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.30)),
        url('../images/Rollout1.webp') center/cover no-repeat;
    background-blend-mode: multiply;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.rollout-banner h2 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1;
    letter-spacing: 0.06em;
    color: #f6ffff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.rollout-banner.is-live .rollout-status {
    color: #6df1de;
    font-weight: 700;
}

.rollout-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/car1.png') right 3% bottom -30px / min(62%, 880px) auto no-repeat;
    opacity: 0.96;
    filter: brightness(0.72) saturate(1.04) contrast(1.01) drop-shadow(0 20px 24px rgba(0, 0, 0, 0.55));
    z-index: 1;
    pointer-events: none;
}

.rollout-banner::before {
    content: none;
    position: absolute;
    inset: 0;
    background: none;
    z-index: 0;
}

.rollout-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.rollout-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 16px;
    width: 100%;
}

.rollout-datetime {
    white-space: nowrap;
}

.rollout-kicker {
    display: inline-block;
    margin-top: -8px;
    margin-bottom: 10px;
    padding: 8px 14px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 999px;
    color: #021f1d;
    background: linear-gradient(90deg, #6df1de 0%, #9af6ff 100%);
}

.rollout-label {
    margin-top: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.76);
}

.rollout-status {
    margin-top: 16px;
    font-size: 0.95rem;
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.92);
}

.rollout-subtitle {
    margin-bottom: 22px;
    max-width: 760px;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
}

.rollout-time-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 118px;
    padding: 16px 10px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(180deg, rgba(12, 16, 20, 0.68) 0%, rgba(2, 8, 10, 0.82) 100%);
    box-shadow: inset 0 0 22px rgba(109, 241, 222, 0.18), 0 12px 24px rgba(0, 0, 0, 0.45);
}

.rollout-value {
    font-size: clamp(1.8rem, 4.7vw, 3.2rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-shadow: 0 0 14px rgba(109, 241, 222, 0.55);
}

.linkedin-icon {
    width: 40px;
    height: 40px; 
    max-width: 40px; 
    max-height: 40px; 
    object-fit: contain;
    margin-top: 8px;
    transition: transform 0.2s ease;
}

.linkedin-icon:hover {
    transform: scale(1.15);
}

.split-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

.split-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-align: center;
    box-shadow: 5px 8px 15px rgba(0, 0, 0, 0.6);
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: auto;
    align-items: start;
    position: relative;
    background: transparent;
}

.split-section.team {
    z-index: 1;
    background: transparent;
    min-height: auto !important;
    margin-top: -100px;
}

.split-section.team .split-image {
    max-height: 400px;
    overflow: hidden;
}

.split-section.car {
    margin-top: -100px;
    margin-bottom: 0;
    min-height: auto;
    align-items: stretch;
}

.split-text {
    padding: 50px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: auto;
}

.split-text h2 {
    max-width: 455px;
    text-shadow: #00aba2 5px 5px 5px;
}

.split-text p {
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    max-width: 720px;
    margin: 30px 0;
    font-size: 1.1rem;
    text-align: justify;
}

.timeline-car {
    position: absolute;
    width: 100px;
    height: auto;
    top: auto;
    bottom: 2px;
    left: 30%;
    transform: translateX(-100%);
    transition: left 0.3s ease;
    pointer-events: none;
}

.timeline-car img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.timeline-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #00aba2;
    border-radius: 2px;
    width: 30%;
    transition: width 0.3s ease;
}

.timeline-segments {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 30px;
}

.timeline-track {
    position: relative;
    height: 4px;
    margin-bottom: 30px;
}

.timeline-track::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.video-hero {
    position: relative;
    width: 100%;
    height: 100vh;       
    overflow: hidden;
    background: black;  
}

.video-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 35vh; 
    background: linear-gradient(transparent, black);
    pointer-events: none;
    z-index: 2; 
}

.video-hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;    
    transform: translate(-50%, -50%);
    z-index: 1;
}

@media (max-width: 768px) {
    .segment {
        margin-right: 6px;
        padding: 10px 8px;
    }

    .segment small {
        display: none;
    }

    .split-section.dark {
        grid-template-areas: "text" "image";
    }

    .split-section.dark .split-image {
        order: 2;
        align-self: start;
    }

    .split-section.dark .split-text {
        order: 1;
    }

    .split-section .split-text {
        text-align: center;
    }

    .split-section .split-text p {
        text-align: center;
        font-size: 1rem;
    }

    .split-section .split-text .btn {
        margin: 0 auto;
    }

    .split-section .split-text .btn.dark {
        margin: 0 auto;
    }

    .split-section.team .split-text .btn.dark {
        margin-left: auto;
        margin-right: 0;
        display: block;
    }
}

@media (max-width: 600px) {
    .hero-mobile-image {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
    }

    .video-hero {
        height: 100vh;
        padding: 0;
        margin-top: 0;
    }

    .hero-video-frame {
        display: flex;
    }

    .hero-video-frame video {
        display: none;
    }

    .achievements-heading {
        min-height: auto;
        margin: 30px 0 20px 0;
        display: block;
    }

    .achievements-driver {
        position: static;
        transform: none;
        width: 60%;
        max-width: 100%;
        opacity: 0.5;
        margin: 20px auto 0;
        display: block;
    }

    .achievements-heading-text h2 {
        font-size: 1.6rem;
        padding: 10px 0;
    }
}

@media (max-width: 900px) {
    .split-section {
        grid-template-columns: 1fr;
    }

    .split-text {
        padding: 34px 20px;
    }
}

.combined-section {
    background: var(--black);
}
