@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&display=swap');

html {
    background: #121111;
    scroll-behavior: smooth;
    max-width: 100vw;
    overflow-x: hidden;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

body {
    max-width: 100vw;
    overflow-x: hidden;
    background: rgba(19, 18, 18, 0.901);
    animation: pageIn 0.6s ease-out forwards;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

* {
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
    outline: none;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

.navbar {
    font-size: 20px;
    padding: 10px 20px;
    /* Balanced internal padding restored */
    background: #000000;
    /* Solid black background */
    border-top: 30px solid #000000;
    /* Added 30px solid black border instead of padding for headroom */
    width: 100%;
    margin: 0;
    top: 0;
    transition: all 0.3s ease;
}

.navbar-collapse {
    justify-content: center;
}

/* Mobile hamburger styling */
.navbar-toggler {
    border-color: rgba(255, 187, 51, 0.5);
    padding: 6px 10px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 187, 51, 0.3);
}

.navbar-toggler-icon {
    filter: brightness(1.2);
}

/* Nav link hover effects */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fb3;
    border: none !important;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

.nav-link:hover {
    color: #fb3 !important;
}

.navbar-brand {
    font-size: 30px
}

#plan {
    background: rgba(19, 18, 18, 0.901)
}

.grey-col {
    background: rgba(19, 18, 18, 0.901)
}

.m-img {
    height: 90px;
    width: 90px
}

.bg-dark2 {
    background: rgba(11, 11, 11, 0.901)
}

.landing {
    background: url(./img/home-background.jpg);
    background-size: cover;
    min-height: 100vh;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: black;
    background-attachment: fixed;
}

/* Bounce animation for scroll indicator */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-8px);
    }
}

/* ==========================================
   HERO SECTION STYLES
   ========================================== */

/* Hero container positioning */
.hero-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center
}

/* Premium dark overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.15) 0%, rgba(10, 10, 10, 0.75) 100%);
    z-index: 1;
}

/* Background video */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Hero content wrapper */
.hero-content {
    position: relative;
    z-index: 2
}

/* Hero headline */
.hero-headline {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase
}

.hero-headline-accent {
    color: #e13030
}

/* Hero tagline */
.hero-tagline {
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
    color: #f0f0f0
}

/* Achievement badge */
.hero-badge {
    font-size: 1.1rem;
    border: 2px solid #fb3;
    border-radius: 50px;
    color: #fb3;
    background: rgba(0, 0, 0, 0.5);
    letter-spacing: 1px
}

/* Stats styling */
.hero-stat-number {
    color: #fb3
}

.hero-stat-label {
    letter-spacing: 1px
}

/* Hero buttons */
.hero-btn-primary {
    color: rgb(0, 0, 0);
    background-color: #fb3;
    border: none;
    letter-spacing: 1px;
    border-radius: 5px
}

.hero-btn-secondary {
    border: 2px solid rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

/* Hero button hover states - override global a:hover */
.hero-btn-primary:hover {
    background-color: #000;
    color: #fb3 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 187, 51, 0.4);
}

.hero-btn-secondary:hover {
    border-color: #fb3;
    background: rgba(255, 187, 51, 0.1);
    color: #fb3 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 187, 51, 0.3);
}

/* Scroll indicator */
.scroll-indicator i {
    color: #fb3;
    opacity: 0.8
}


.trainer-card {
    border-radius: 20px;
    box-shadow: 0px 0px 10px black;
    transition: .5s;
    outline: none
}

.trainer-card:hover {
    box-shadow: 0px 0px 10px turquoise;
    color: white;
    transform: scale(1.1, 1.1);
    border-radius: 20px;
    outline: none
}

.bg-teal2 {
    background-color: turquoise
}

.text-teal2 {
    color: turquoise
}

.cb {
    border-radius: 20px
}

.cb:hover {
    background-color: black;
    border-radius: 20px;
    outline: none
}

.text-insta {
    color: rgb(208, 36, 94)
}

.text-twit {
    color: rgb(10, 184, 227)
}

.text-link {
    color: skyblue
}

a:hover {
    color: #fb3 !important
}

@media(max-width:576px) {
    .landing {
        background: url(./img/home-background.jpg);
        background-size: cover;
        background-position: center;
        min-height: 100vh;
        background-attachment: scroll;
    }

    .m-img {
        height: 100px
    }

    .navbar {
        font-size: 15px;
        padding: 3px;
        background: rgba(0, 0, 0, 0.6)
    }

    .navbar-brand {
        font-size: 8px
    }

    .agni {
        visibility: visible
    }

    .img-card {
        margin-top: 50px
    }

    body {
        overflow-x: hidden
    }

    /* Fix: Hero title breaking on mobile — must fit in one line */
    .hero-headline {
        font-size: 2rem !important;
        letter-spacing: 1px;
    }

    .hero-tagline {
        font-size: 0.85rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 16px !important;
    }

    .hero-stat-number {
        font-size: 1.4rem;
    }

    .hero-stat-label {
        font-size: 0.6rem;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        font-size: 0.85rem;
        padding: 10px 20px !important;
    }

    /* Section spacing reduction on mobile */
    .section-spacious {
        padding: 3rem 0;
    }

    .content-text {
        font-size: 0.95rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .section-cta {
        font-size: 0.8rem;
        padding: 10px 24px;
    }
}

/* Extra-small devices (very narrow phones) */
@media (max-width: 380px) {
    .hero-headline {
        font-size: 1.6rem !important;
    }

    .hero-tagline {
        font-size: 0.78rem;
    }

    .hero-stat-number {
        font-size: 1.2rem;
    }

    .hero-stat-label {
        font-size: 0.55rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    animation: fadeIn 0.6s ease-in-out;
}

.card {
    animation: fadeIn 0.8s ease-in-out;
    animation-fill-mode: both;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

/* ==========================================
   SCROLL-TRIGGERED ANIMATIONS
   ========================================== */
/* Only animate elements that will be scrolled to, not initial viewport */
/* We'll add .scroll-animate class via JavaScript only to elements below the fold */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When scrolled into view, elements become visible */
.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   NAVBAR SCROLL EFFECTS
   ========================================== */
.navbar {
    transition: all 0.1s ease;
    backdrop-filter: blur(10px);
}

/* When scrolled down, navbar gets darker and adds shadow */
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* Animated underline effect on nav links */
.nav-link {
    position: relative;
    transition: color 0.1s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fb3;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* ==========================================
   IMAGE HOVER EFFECTS
   ========================================== */
.img-card .card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.img-card .card img {
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* Images zoom and brighten on hover */
.img-card .card:hover img {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* Shine effect that sweeps across on hover */
.img-card .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.285), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.img-card .card:hover::before {
    left: 100%;
}

/* ==========================================
   BUTTON ENHANCEMENTS
   ========================================== */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Ripple effect background */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Button lifts up on hover */
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 187, 51, 0.3);
}

/* ==========================================
   SOCIAL MEDIA ICON ANIMATIONS
   ========================================== */
.fa-brands {
    transition: all 0.3s ease;
    display: inline-block;
}

/* Instagram - rotate and scale */
.fa-instagram:hover {
    transform: rotate(20deg) scale(1.2);
    color: #E1306C !important;
}

/* YouTube - pulse effect */
.fa-youtube:hover {
    transform: rotate(20deg) scale(1.2);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1.3);
    }
}

/* LinkedIn - bounce up */
.fa-linkedin:hover {
    transform: translateY(-5px) scale(1.2);
    color: #0077B5 !important;
}

/* Twitter/X - rotate opposite direction */
.fa-x-twitter:hover {
    transform: rotate(-15deg) scale(1.2);
}

/* ==========================================
   SCROLL TO TOP BUTTON
   ========================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fb3, #f90);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(255, 187, 51, 0.4);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 187, 51, 0.6);
}

/* ==========================================
   SPONSOR LOGO CARDS
   ========================================== */
.sponsor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px 16px;
    height: 140px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 187, 51, 0.08);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.sponsor-logo:hover {
    border-color: rgba(255, 187, 51, 0.3);
    transform: translateY(-3px);
}

.sponsor-logo img {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
}

/*
 * =================================================================
 * ANIMATION STYLES
 *
 * These styles power all the premium animations.
 * Each section is numbered to match animations.js.
 *
 * TABLE OF CONTENTS:
 *   1. Page Loader (full-screen intro overlay)
 *   2. Ember Canvas (floating particles in hero)
 *   3. Hero Text Reveal (letter-by-letter animation)
 *   4. Scroll Reveals (slide-in on scroll)
 *   5. Number Counters (count-up stats)
 *   6. Racing Ticker (scrolling achievement banner)
 *   7. 3D Tilt Cards (mouse-follow perspective)
 *   8. Magnetic Buttons (cursor-pull effect)
 *   9. Team Page Styles (member cards, headers)
 *  10. Women in Motorsports (gold highlight section)
 * =================================================================
 */

/* ----- 1. PAGE LOADER -----
 * Full-screen dark overlay shown while the page loads.
 * Contains logo + progress bar. Fades out via JS. */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader .loader-logo {
    width: 120px;
    height: 120px;
    animation: loaderPulse 1.2s ease-in-out infinite;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 20px rgba(255, 187, 51, 0.5));
}

@keyframes loaderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.loader-progress-track {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #fb3, #e13030, #fb3);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: loaderFill 1.4s ease-in-out forwards, loaderShimmer 0.8s linear infinite;
}

@keyframes loaderFill {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

@keyframes loaderShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.loader-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 15px;
    font-family: 'PT Sans Narrow', sans-serif;
}

/* ----- 2. EMBER PARTICLE CANVAS -----
 * Positioned behind hero text. The actual particles
 * are drawn by JavaScript — this just positions the canvas. */
#ember-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#ember-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ----- 3. HERO TEXT — LETTER-BY-LETTER REVEAL -----
 * JS wraps each letter in a <span class="split-letter">.
 * Each letter starts invisible + shifted down, then
 * animates upward with a golden glow flash. */
.hero-headline .split-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) rotateX(-15deg);
    animation: letterReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-headline .split-space {
    display: inline-block;
    width: 0.3em;
}

@keyframes letterReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) rotateX(-15deg);
        text-shadow: 0 0 0 transparent;
    }

    60% {
        opacity: 1;
        text-shadow: 0 0 30px rgba(255, 187, 51, 0.6);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
        text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    }
}

.hero-tagline.animate-tagline {
    animation: taglineFade 0.8s ease forwards;
}

.hero-tagline {
    opacity: 0;
}

@keyframes taglineFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge-wrap {
    opacity: 0;
}

.hero-badge-wrap.animate-badge {
    animation: badgeReveal 0.6s ease forwards;
}

@keyframes badgeReveal {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ----- 4. SCROLL REVEAL ANIMATIONS -----
 * Add these classes to any HTML element to make it
 * animate when scrolled into view:
 *
 *   class="reveal-left"   → slides in from left
 *   class="reveal-right"  → slides in from right
 *   class="reveal-up"     → slides up from below
 *   class="reveal-scale"  → zooms in from smaller
 *
 * Add class="stagger-children" to a parent to make
 * its children animate one after another (1st, 2nd, 3rd...) */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed,
.reveal-up.revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Stagger delays: each nth child waits a bit longer
 * so cards animate in one-by-one instead of all at once */
.stagger-children>*:nth-child(1) {
    transition-delay: 0s;
}

.stagger-children>*:nth-child(2) {
    transition-delay: 0.12s;
}

.stagger-children>*:nth-child(3) {
    transition-delay: 0.24s;
}

.stagger-children>*:nth-child(4) {
    transition-delay: 0.36s;
}

.stagger-children>*:nth-child(5) {
    transition-delay: 0.48s;
}

.stagger-children>*:nth-child(6) {
    transition-delay: 0.6s;
}

/* ----- 5. NUMBER COUNTERS -----
 * The counting is done by JS. This CSS just adds
 * a glowing underline that appears after counting finishes. */
.hero-stat-number {
    position: relative;
}

.hero-stat-number::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fb3, transparent);
    transition: width 1s ease 0.5s;
}

.hero-stat-number.counted::after {
    width: 80%;
}

/* ----- 6. RACING TICKER -----
 * A horizontal scrolling banner that shows team achievements.
 * Uses CSS animation to slide the text infinitely.
 * The diagonal stripe comes from a repeating linear-gradient. */
.racing-ticker {
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 25%, #0d0d0d 25%, #0d0d0d 50%, #1a1a1a 50%, #1a1a1a 75%, #0d0d0d 75%);
    background-size: 20px 20px;
    padding: 14px 0;
    margin: 32px 0;
    position: relative;
    border-top: 2px solid #fb3;
    border-bottom: 2px solid #fb3;
}

.racing-ticker::before,
.racing-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.racing-ticker::before {
    left: 0;
    background: linear-gradient(90deg, #0a0a0a, transparent);
}

.racing-ticker::after {
    right: 0;
    background: linear-gradient(-90deg, #0a0a0a, transparent);
}

.ticker-track {
    display: flex;
    animation: tickerScroll 20s linear infinite;
    width: max-content;
}

.ticker-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 0 30px;
    color: #fb3;
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ticker-item i {
    margin-right: 10px;
    color: #e13030;
}

.ticker-separator {
    color: rgba(255, 187, 51, 0.3);
    padding: 0 15px;
    font-size: 0.6rem;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ----- 7. 3D TILT CARDS -----
 * Wrap a card in <div class="tilt-card"> to enable
 * mouse-follow 3D tilt effect. JS handles the movement,
 * this CSS sets up the 3D space (perspective). */
.tilt-card {
    perspective: 800px;
    transform-style: preserve-3d;
}

.tilt-card .card {
    transform-style: preserve-3d;
    transition: transform 0.15s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.tilt-card .card:hover {
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 187, 51, 0.1);
}

.tilt-card .card .card-footer {
    transform: translateZ(20px);
}

/* Inner glow on tilt */
.tilt-card .card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 3;
    background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(255, 187, 51, 0.15), transparent 60%);
}

.tilt-card .card:hover::after {
    opacity: 1;
}

/* ----- 8. MAGNETIC BUTTONS -----
 * Add class="magnetic-btn" to any button. JS moves it
 * toward the cursor on hover. This CSS just ensures
 * the movement animation is smooth. */
.magnetic-btn {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* ----- SECTION HEADING UNDERLINE -----
 * Section headings get an animated gradient underline
 * that grows from 0 to 100% width when scrolled into view. */
.section-heading {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #fb3, #e13030);
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-heading.revealed::after {
    width: 100%;
}

/* =================================================================
 * 9. TEAM PAGE STYLES
 *
 * These styles transform the plain team list into
 * a professional grid with photo overlay cards.
 *
 * KEY CLASSES:
 *   .subsystem-header    → Racing-stripe section divider (e.g. "Powertrain")
 *   .team-member-card    → Photo card with dark gradient overlay
 *   .team-lead-card      → Gold-bordered version for Captain/Vice Captain
 *   .member-overlay      → The name/role text at bottom of card
 *   .member-linkedin     → Floating LinkedIn circle (top-right)
 * ================================================================= */

/* "Team Structure" page title with gradient underline */
.team-hero-title {
    margin-top: 130px;
    padding-bottom: 20px;
    position: relative;
}

.team-hero-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #fb3, #e13030);
    border-radius: 3px;
}

/* Subsystem headers — diagonal stripe pattern comes from repeating
 * linear-gradient at 135deg. The gold left border highlights it. */
.subsystem-header {
    background: linear-gradient(135deg, #1a1a1a 25%, #0d0d0d 25%, #0d0d0d 50%, #1a1a1a 50%, #1a1a1a 75%, #0d0d0d 75%);
    background-size: 14px 14px;
    padding: 10px 25px;
    margin: 40px 0 20px;
    border-left: 4px solid #fb3;
    position: relative;
    display: flex;
    align-items: center;
}

.subsystem-header h4 {
    margin: 0;
    font-family: 'PT Sans Narrow', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
    font-size: 1.2rem;
    color: #fb3;
    position: relative;
    z-index: 1;
}

.subsystem-header .subsystem-icon {
    margin-right: 12px;
    color: #e13030;
    font-size: 1.1rem;
}

.subsystem-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

/* Team member photo cards
 * aspect-ratio: 3/4 ensures all cards are the same tall rectangle
 * shape regardless of the original photo dimensions. */
.team-member-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 25px;
    cursor: pointer;
    background: #111;
    aspect-ratio: 3 / 4;
}

.team-member-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    display: block;
}

/* Gradient overlay — sits on top of the photo at the bottom.
 * Goes from transparent → dark, so the name text is readable. */
.team-member-card .member-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85) 40%, rgba(0, 0, 0, 0.95));
    transition: all 0.4s ease;
}

.team-member-card .member-name {
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    margin: 0;
    letter-spacing: 0.5px;
}

.team-member-card .member-role {
    font-size: 0.75rem;
    color: #fb3;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 4px 0 0;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease 0.1s;
}

.team-member-card .member-linkedin {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.93);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    z-index: 5;
}

.team-member-card .member-linkedin i {
    color: #0077B5;
    font-size: 0.85rem;
}

.team-member-card .member-linkedin:hover {
    background: #0077B5;
}

.team-member-card .member-linkedin:hover i {
    color: #fff !important;
}

/* HOVER EFFECTS — what happens when you mouse over a team card */
.team-member-card:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.team-member-card:hover .member-role {
    opacity: 1;
    transform: translateY(0);
}

.team-member-card:hover .member-linkedin {
    opacity: 1;
    transform: translateY(0);
}

.team-member-card:hover .member-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9) 35%, rgba(0, 0, 0, 0.98));
}

/* Gold border glow — uses ::after pseudo-element as an overlay
 * border that fades from transparent to gold on hover */
.team-member-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
    z-index: 4;
}

.team-member-card:hover::after {
    border-color: rgba(255, 187, 51, 0.4);
}

/* TEAM LEADS — extra gold styling for Captain, Vice Captain, Manager.
 * Wrap their column in .team-lead-card to activate. */
.team-lead-card .team-member-card {
    border: 1px solid rgba(255, 187, 51, 0.2);
}

.team-lead-card .team-member-card::after {
    border: 2px solid rgba(255, 187, 51, 0.15);
}

.team-lead-card .team-member-card:hover::after {
    border-color: rgba(255, 187, 51, 0.6);
    box-shadow: 0 0 20px rgba(255, 187, 51, 0.1);
}

/* =================================================================
 * 10. WOMEN IN MOTORSPORTS — GOLD HIGHLIGHT SECTION
 * ================================================================= */
.wim-section {
    position: relative;
    margin-top: 50px;
    padding: 40px 0;
}

.wim-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.wim-header h2 {
    display: inline-block;
    font-family: 'PT Sans Narrow', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1.8rem;
    color: #fb3;
    position: relative;
    padding: 0 20px;
}

.wim-header h2::before,
.wim-header h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fb3);
}

.wim-header h2::before {
    right: 100%;
    background: linear-gradient(90deg, transparent, #fb3);
}

.wim-header h2::after {
    left: 100%;
    background: linear-gradient(-90deg, transparent, #fb3);
}

.wim-story-card {
    background: linear-gradient(135deg, rgba(255, 187, 51, 0.05), rgba(225, 48, 48, 0.05));
    border: 1px solid rgba(255, 187, 51, 0.15);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wim-story-card:hover {
    border-color: rgba(255, 187, 51, 0.35);
    box-shadow: 0 10px 40px rgba(255, 187, 51, 0.08);
}

.wim-story-card img {
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.wim-story-card:hover img {
    transform: scale(1.03);
}

.wim-story-card .wim-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fb3, #e13030);
    color: #000;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.wim-story-card h3 {
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

/* =================================================================
 * MOBILE RESPONSIVE — screens smaller than 768px (phones)
 *
 * Disables heavy hover effects and adjusts sizes.
 * ================================================================= */
@media (max-width: 768px) {
    .tilt-card .card {
        transform: none !important;
    }

    .tilt-card .card::after {
        display: none;
    }

    .hero-headline .split-letter {
        animation-duration: 0.3s;
    }

    .ticker-track {
        animation-duration: 15s;
    }

    .page-loader .loader-logo {
        width: 80px;
        height: 80px;
    }

    .loader-progress-track {
        width: 150px;
    }

    /* Team page mobile */
    .team-member-card .member-role {
        opacity: 1;
        transform: translateY(0);
    }

    .team-member-card .member-linkedin {
        opacity: 1;
        transform: translateY(0);
    }

    .subsystem-header {
        margin: 25px 0 15px;
    }

    /* Fix: Team page compact 2-column grid on mobile */
    .team-member-card {
        aspect-ratio: 1 / 1;
        margin-bottom: 12px;
    }

    .team-member-card .member-name {
        font-size: 0.85rem;
    }

    .wim-story-card {
        padding: 20px;
    }

    .wim-header h2 {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    .wim-header h2::before,
    .wim-header h2::after {
        width: 30px;
    }

    /* Fix: Bento grid overlapping on mobile */
    .bento-large {
        min-height: 300px;
    }

    .bento-image-card {
        min-height: 200px;
    }

    .col-lg-6 .row [style*="height: calc"] {
        height: auto !important;
    }
}

/* =================================================================
 * 11. PHOTO PLACEHOLDER SLOTS
 *
 * Used on the current team page to show empty slots where
 * team member photos will be added.
 * ================================================================= */
.photo-placeholder {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 50%, #1a1a1a 100%);
    border: 2px dashed rgba(255, 187, 51, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.photo-placeholder:hover {
    border-color: rgba(255, 187, 51, 0.6);
    box-shadow: 0 0 25px rgba(255, 187, 51, 0.08), inset 0 0 40px rgba(255, 187, 51, 0.03);
}

.photo-placeholder .placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    z-index: 1;
}

.photo-placeholder .placeholder-content i {
    font-size: 2.5rem;
    color: rgba(255, 187, 51, 0.25);
    transition: color 0.3s ease, transform 0.3s ease;
}

.photo-placeholder:hover .placeholder-content i {
    color: rgba(255, 187, 51, 0.45);
    transform: scale(1.1);
}

.photo-placeholder .placeholder-content span {
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.photo-placeholder .member-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9) 40%, rgba(0, 0, 0, 0.98));
}

.photo-placeholder .member-role {
    opacity: 1;
    transform: translateY(0);
}

/* =================================================================
 * 12. CONTACT FORM STYLES
 * ================================================================= */
.contact-form-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 187, 51, 0.03));
    border: 1px solid rgba(255, 187, 51, 0.15);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    height: 100%;
}

.contact-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    color: #fff !important;
    padding: 12px 16px !important;
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-input:focus {
    border-color: rgba(255, 187, 51, 0.5) !important;
    box-shadow: 0 0 15px rgba(255, 187, 51, 0.1) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.contact-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.contact-form-card .btn-warning {
    border-radius: 8px;
    padding: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-form-card .btn-warning:hover {
    background: #e6a800;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 187, 51, 0.3);
}

/* =================================================================
 * 13. ACTIVE NAV LINK HIGHLIGHTING
 * ================================================================= */
.nav-link.active {
    color: #fb3 !important;
    position: relative;
}

.nav-link.active::after {
    width: 100%;
    left: 0;
}

/* =================================================================
 * SUB-PAGE HERO BANNER
 *
 * Compact hero section for sub-pages (sponsors, events, gallery, team).
 * Uses the racing diagonal stripe background pattern.
 * ================================================================= */
.sub-page-hero {
    background: linear-gradient(135deg, #1a1a1a 25%, #0d0d0d 25%, #0d0d0d 50%, #1a1a1a 50%, #1a1a1a 75%, #0d0d0d 75%);
    background-size: 20px 20px;
    padding: 140px 0 50px;
    position: relative;
    border-bottom: 2px solid rgba(255, 187, 51, 0.3);
}

.sub-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.sub-page-hero .container {
    position: relative;
    z-index: 1;
}

.sub-page-hero h1 {
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.sub-page-hero h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #fb3, #e13030);
    border-radius: 3px;
}

.sub-page-hero p {
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .sub-page-hero {
        padding: 110px 0 35px;
    }

    .sub-page-hero h1 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .sub-page-hero p {
        font-size: 0.95rem;
    }
}

/* =================================================================
 * 14. PAGE FADE-IN TRANSITION
 * ================================================================= */
body {
    animation: pageFadeIn 0.4s ease-out;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =================================================================
 * 15. SOCIAL MEDIA BRAND HOVER COLORS
 * ================================================================= */
footer .fa-instagram:hover,
section .fa-instagram:hover {
    color: #E1306C !important;
}

footer .fa-youtube:hover,
section .fa-youtube:hover {
    color: #FF0000 !important;
}

footer .fa-linkedin:hover,
section .fa-linkedin:hover {
    color: #0077B5 !important;
}

footer .fa-x-twitter:hover,
section .fa-x-twitter:hover {
    color: #ffffff !important;
}

/* =================================================================
 * 16. SPONSOR PAGE — CONSISTENT IMAGE SIZING
 * ================================================================= */
.sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.sponsor-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    height: 180px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.sponsor-card:hover {
    border-color: rgba(255, 187, 51, 0.3);
    box-shadow: 0 8px 30px rgba(255, 187, 51, 0.08);
    transform: translateY(-4px);
}

.sponsor-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* =================================================================
 * 17. FOOTER STYLES
 * ================================================================= */
.site-footer {
    background: #111;
    border-top: 1px solid rgba(255, 187, 51, 0.15);
    padding: 30px 0 20px;
    margin-top: 40px;
}

.site-footer h4,
.site-footer h5 {
    font-family: 'PT Sans Narrow', sans-serif;
    letter-spacing: 1px;
}

.site-footer h6 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 20px 0 15px;
}

.footer-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-family: 'PT Sans Narrow', sans-serif;
}

/* =================================================================
 * 18. EVENT PAGE — ALTERNATING LAYOUT
 * ================================================================= */
.event-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 187, 51, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    border-color: rgba(255, 187, 51, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.event-card img {
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.event-card:hover img {
    transform: scale(1.03);
}

/* =================================================================
 * 19. GALLERY STYLES
 * ================================================================= */
.gallery-grid {
    columns: 3;
    column-gap: 15px;
    padding: 0 15px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 187, 51, 0.15);
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.15);
}

/* Gallery hover overlay */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 100000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 187, 51, 0.3);
}

/* Gallery section header */
.gallery-section-title {
    margin-top: 130px;
    padding-bottom: 20px;
    position: relative;
}

.gallery-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #fb3, #e13030);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .gallery-grid {
        columns: 2;
    }

    .contact-form-card {
        margin-top: 25px;
    }

    .sponsor-card {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        columns: 1;
    }
}

/* ==========================================
   GALLERY FILTER TAB BAR
   ========================================== */
.gallery-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 40px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 187, 51, 0.15);
}

.gallery-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.gallery-filter-btn i {
    margin-right: 6px;
    font-size: 12px;
}

.gallery-filter-btn:hover {
    background: rgba(255, 187, 51, 0.1);
    border-color: rgba(255, 187, 51, 0.3);
    color: #fb3;
    transform: translateY(-2px);
}

.gallery-filter-btn.active {
    background: linear-gradient(135deg, #fb3, #f90);
    border-color: #fb3;
    color: #000;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 187, 51, 0.3);
}

.gallery-filter-btn.active i {
    color: #000;
}

/* Smooth transitions for gallery sections */
.gallery-category {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (max-width: 576px) {
    .gallery-filter-bar {
        gap: 6px;
        padding: 10px 0;
    }

    .gallery-filter-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* ==========================================
   STATS CARD (Hero Section)
   ========================================== */
.stats-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px 15px;
    border: 1px solid rgba(255, 187, 51, 0.1);
}

/* ==========================================
   FOOTER STYLING
   ========================================== */
.site-footer {
    background: #0a0a0a;
    padding: 50px 0 20px;
    border-top: 2px solid;
    border-image: linear-gradient(90deg, transparent, #fb3, transparent) 1;
}

.site-footer h4,
.site-footer h5 {
    font-weight: 700;
    margin-bottom: 15px;
}

.site-footer h6 {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    line-height: 1.6;
}

.site-footer a {
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline-block;
}

.site-footer a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 187, 51, 0.3), transparent);
    margin: 30px 0 15px;
}

.footer-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* ==========================================
   GOLD COLOR STANDARDIZATION
   Override Bootstrap's #ffc107 to match #fb3
   ========================================== */
.text-warning {
    color: #fb3 !important;
}

.border-warning {
    border-color: #fb3 !important;
}

.btn-warning {
    background-color: #fb3;
    border-color: #fb3;
    color: #000;
}

.btn-warning:hover {
    background-color: #e6a800;
    border-color: #e6a800;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 187, 51, 0.25);
}

.btn-outline-warning {
    color: #fb3;
    border-color: #fb3;
}

.btn-outline-warning:hover {
    background-color: #fb3;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 187, 51, 0.25);
}

/* ==========================================
   CARD HOVER EFFECTS
   ========================================== */
.img-card .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-card .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ==========================================
   SECTION BACKGROUND VARIATION
   ========================================== */
#plan {
    background: #111;
}

.bg-dark2 {
    background: #0d0d0d;
}

/* ==========================================
   EVENT CARD STYLING
   ========================================== */
.event-card {
    padding: 30px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 187, 51, 0.08);
}

.event-card:last-of-type {
    border-bottom: none;
}

.event-card .col-md-6 {
    padding: 10px 25px;
}

.event-card img {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.event-card h3 {
    margin-bottom: 15px;
}

.event-card h5 {
    line-height: 1.7;
    font-weight: 400;
}

/* ==========================================
   SPONSOR PAGE STYLING
   ========================================== */
.sponsor-section {
    padding: 40px 0 30px;
}

.sponsor-section h1 {
    margin-bottom: 20px;
}

.sponsor-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 1rem;
}

.sponsor-logo {
    padding: 20px;
    transition: transform 0.3s ease;
}

.sponsor-logo:hover {
    transform: scale(1.05);
}

.sponsor-logo img {
    border-radius: 8px;
}

/* ==========================================
   HOME PAGE — VISUAL POLISH
   ========================================== */

/* --- Universal Hover Card ---
 * Add .hover-card to any card for premium lift + glow on hover.
 * Used on: stage cards, info cards, why-FS cards. */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}

.hover-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 30px rgba(255, 187, 51, 0.12),
        0 0 15px rgba(255, 187, 51, 0.08);
    border-color: rgba(255, 187, 51, 0.6);
}

/* --- Premium Stage Cards (What We Do Redesign) ---
 * Edge-lit dark grey background without generic borders. */
.premium-stage-card {
    background: #141414;
    padding: 2.5rem;
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Edge Lit highlight borders */
.edge-left {
    border-left: 4px solid #fb3;
}

.edge-right {
    border-right: 4px solid #fb3;
}

.premium-stage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 187, 51, 0.08);
}

.stage-image {
    width: 100%;
    height: 100%;
    min-height: 350px;
    max-height: 450px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: brightness(0.85);
}

.stage-image-container {
    overflow: hidden;
    border-radius: 12px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stage-image-container:hover .stage-image {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* ==========================================
   IMAGE-DRIVEN MOTORSPORT REDESIGN
   ========================================== */

/* --- Innovations (Bento Image Grid) --- */
.bento-image-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    /*if u want box shadow u can have it but make sure to change the hover section after it */
    /* box-shadow: inset 0 -100px 80px -20px rgba(95, 94, 94, 0.9); */
}

.bento-image-card:hover {
    transform: translateY(-5px);
    box-shadow: inset 0 -150px 100px -20px rgba(0, 0, 0, 0.95), 0 15px 35px rgba(255, 187, 51, 0.1);
}

.bento-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transition: transform 0.6s ease;
    filter: brightness(0.8) contrast(1.1);
}

.bento-image-card:hover .bento-bg {
    transform: scale(1.05);
    filter: brightness(0.8) contrast(1.1);
}

.bento-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.bento-large {
    min-height: 524px;
    /* Double height of small cards + gap */
}

.bento-tech {
    min-height: 280px;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.85));
}

/* --- Milestones (Track Timeline) --- */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(255, 187, 51, 0.3), #fb3 50%, rgba(255, 187, 51, 0.3), transparent);
    transform: translateX(-50%);
}

.timeline-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.timeline-row:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    position: relative;
}

.timeline-row:nth-child(odd) .timeline-content {
    text-align: right;
    padding-right: 30px;
}

.timeline-row:nth-child(even) .timeline-content {
    text-align: left;
    padding-left: 30px;
}

.timeline-node {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #111;
    border: 3px solid #fb3;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 187, 51, 0.5);
}

.timeline-row:hover .timeline-node {
    background: #fb3;
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 20px #fb3;
}

.timeline-image-wrapper {
    width: 45%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.timeline-row:nth-child(odd) .timeline-image-wrapper {
    transform: perspective(1000px) rotateY(-5deg);
}

.timeline-row:nth-child(even) .timeline-image-wrapper {
    transform: perspective(1000px) rotateY(5deg);
}

.timeline-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.timeline-row:hover .timeline-image-wrapper img {
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .timeline-track {
        left: 20px;
    }

    .timeline-row,
    .timeline-row:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
        /* Fix: Remove inline scale that causes overlap on mobile */
        transform: none !important;
        z-index: auto !important;
    }

    .timeline-node {
        left: 20px;
        top: 0;
        transform: translate(-50%, 0);
    }

    .timeline-content,
    .timeline-image-wrapper {
        width: 100%;
        text-align: left !important;
        padding: 0 !important;
    }

    .timeline-content {
        margin-bottom: 10px;
    }

    .timeline-image-wrapper {
        height: 150px;
        margin-top: 15px;
        transform: none !important;
    }

    .timeline-row:hover .timeline-node {
        transform: translate(-50%, 0) scale(1.3);
    }
}

/* --- Why FS (Editorial Masonry) --- */
.editorial-banner {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    padding: 60px 40px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    background: #111;
    max-height: 450px;
    overflow: hidden;
}

/* --- Sponsor Theme Blending --- */
.sponsor-blend {
    mix-blend-mode: screen;
    filter: grayscale(100%) contrast(1.2);
    opacity: 0.9;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.sponsor-blend:hover {
    filter: grayscale(0%) contrast(1.1);
    opacity: 1;
}

.editorial-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    mix-blend-mode: luminosity;
    transition: opacity 0.5s ease;
}

.editorial-banner:hover .editorial-bg {
    opacity: 0.5;
}

.editorial-text {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.editorial-column {
    padding: 30px 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

/* --- Speed Badge (170 KMPH) ---
 * Premium badge with hover glow. */
.speed-badge {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid #fb3;
    border-radius: 30px;
    color: #fb3;
    font-size: 1.2em;
    font-weight: 900;
    letter-spacing: 1px;
    background: rgba(255, 187, 51, 0.05);
    box-shadow: 0 0 15px rgba(255, 187, 51, 0.15);
    transition: all 0.3s ease;
}

.speed-badge:hover {
    background: rgba(255, 187, 51, 0.12);
    box-shadow: 0 0 25px rgba(255, 187, 51, 0.3),
        0 0 50px rgba(255, 187, 51, 0.1);
    transform: scale(1.05);
    color: #fb3;
    text-decoration: none;
}

/* --- Section Dividers ---
 * Gold gradient line between sections. Uses .reveal-scale for scroll animation. */
.section-divider {
    width: 120px;
    height: 2px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, #fb3, transparent);
    opacity: 0.6;
}

/* --- Journey Arrow Connectors --- */
.journey-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fb3;
    font-size: 1.5em;
    opacity: 0.5;
    padding: 0 5px;
}

/* ==========================================
   MOBILE RESPONSIVE ADJUSTMENTS
   ========================================== */
@media (max-width: 768px) {

    .hover-card:hover,
    .info-card:hover {
        transform: translateY(-2px) scale(1.01);
        box-shadow: 0 4px 12px rgba(255, 187, 51, 0.08);
    }

    .stage-card:hover {
        transform: translateY(-3px) scale(1.01);
    }

    .milestone-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 187, 51, 0.1);
    }

    .icon-circle {
        width: 55px;
        height: 55px;
    }

    .icon-circle i {
        font-size: 1.4em;
    }

    .section-divider {
        width: 60px;
    }

    .speed-badge {
        font-size: 1em;
        padding: 8px 18px;
    }

    .journey-arrow {
        transform: rotate(90deg);
        padding: 10px 0;
    }

    .info-card:hover .icon-circle {
        transform: scale(1.08);
    }
}

/* ==========================================
   GPU ACCELERATION HINTS (desktop only)
   ========================================== */
@media (min-width: 769px) {

    .nav-link::after,
    .hero-btn-primary,
    .hero-btn-secondary,
    .img-card .card,
    .event-card img,
    .sponsor-logo img {
        will-change: transform;
    }
}

/* Add spacing and rounding to sponsor logos to prevent squishing */
.sponsor-logo {
    margin-bottom: 25px;
    text-align: center;
}

.sponsor-logo img {
    border-radius: 10px;
}

/* Disable expensive effects on mobile */
@media (max-width: 768px) {

    .hero-btn-secondary,
    .section-cta,
    .navbar {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .tilt-card .card {
        will-change: auto;
    }
}

/* ==========================================
   CONTENT VISIBILITY (skip off-screen rendering)
   ========================================== */
.event-card,
.sponsor-section,
.site-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* ==========================================
   CUSTOM NAVBAR CENTERING
   ========================================== */
@media (min-width: 576px) {

    .navbar>.container,
    .navbar>.container-fluid {
        position: relative;
        display: flex;
        justify-content: center;
        max-width: 100%;
        padding-left: 30px;
        padding-right: 30px;
    }

    .navbar-brand {
        position: absolute;
        left: 30px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        z-index: 10;
    }

    .navbar-collapse {
        flex-grow: 0;
        justify-content: center;
    }

    .navbar-nav {
        margin: 0 auto !important;
    }
}

/* ==========================================
   ELEMENT REMOVAL (Per User Request)
   Hide Contact Us elements and footer Twitter icon
   ========================================== */
/*a[href*="contact.html"],
footer.site-footer a[href*="twitter.com"] {
    display: none !important;
}*/

/* =================================================================
 * HOME PAGE — FINALE / GRAND CLOSING SECTION
 *
 * A polished ending section with bold tagline, quick-nav cards,
 * social links, and a smooth fade into the footer.
 * ================================================================= */
.home-finale {
    position: relative;
    padding: 0 0 40px;
    background: #0a0a0a;
    overflow: hidden;
}

/* Racing stripe accent at top */
.finale-stripe {
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #fb3 20%, #e13030 50%, #fb3 80%, transparent 100%);
    margin-bottom: 60px;
}

/* Tagline area */
.finale-tagline {
    text-align: center;
    margin-bottom: 50px;
}

.finale-tagline h2 {
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    line-height: 1.2;
}

.finale-tagline p {
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Quick navigation link cards */
.finale-links {
    max-width: 800px;
    margin: 0 auto 50px;
}

.finale-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 187, 51, 0.12);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.finale-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 120%, rgba(255, 187, 51, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.finale-link-card:hover {
    border-color: rgba(255, 187, 51, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(255, 187, 51, 0.1);
    text-decoration: none;
}

.finale-link-card:hover::before {
    opacity: 1;
}

.finale-link-card i {
    font-size: 1.8rem;
    color: #fb3;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.finale-link-card:hover i {
    transform: scale(1.15);
}

.finale-link-card span {
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.finale-link-card:hover span {
    color: #fb3;
}

/* Social bar */
.finale-social {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.finale-social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.finale-social-icons a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.finale-social-icons a:hover {
    border-color: #fb3;
    color: #fb3;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 187, 51, 0.15);
}

/* Smooth fade into footer */
.finale-fade {
    height: 60px;
    background: linear-gradient(to bottom, #0a0a0a, transparent);
    margin-top: 40px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .finale-tagline h2 {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .finale-tagline p {
        font-size: 0.95rem;
    }

    .finale-stripe {
        margin-bottom: 40px;
    }

    .finale-link-card {
        padding: 20px 10px;
    }

    .finale-link-card i {
        font-size: 1.4rem;
    }

    .finale-link-card span {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .finale-social-icons a {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

/* ==========================================
   TYPOGRAPHY UTILITIES
   ========================================== */
.content-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================
   SECTION SPACING
   ========================================== */
.section-spacious {
    padding: 5rem 0;
}

.editorial-banner {
    margin-bottom: 2rem;
}

/* ==========================================
   KEYBOARD FOCUS OUTLINES
   ========================================== */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.finale-link-card:focus-visible {
    outline: 2px solid #fb3;
    outline-offset: 2px;
}

/* ==========================================
   SECTION CTA BUTTON
   ========================================== */
.section-cta {
    display: inline-block;
    padding: 14px 36px;
    border: 2px solid rgba(255, 187, 51, 0.6);
    border-radius: 5px;
    color: #fb3;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.95rem;
    background: rgba(255, 187, 51, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    text-decoration: none;
}

.section-cta:hover {
    background: rgba(255, 187, 51, 0.15);
    border-color: #fb3;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 187, 51, 0.2);
    text-decoration: none;
    color: #fb3 !important;
}

.section-cta i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.section-cta:hover i {
    transform: translateX(4px);
}

/* ==========================================
   ENRICHED FOOTER (Sub-pages)
   ========================================== */
.site-footer {
    background: #0a0a0a;
    border-top: 2px solid rgba(255, 187, 51, 0.15);
    padding: 50px 0 20px;
}

.site-footer h5 {
    font-family: 'PT Sans Narrow', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fb3 !important;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 30px 0 15px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
    text-align: center;
    margin: 0;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 35px 0 15px;
        text-align: center;
    }

    .site-footer .col-md-4 {
        margin-bottom: 25px;
    }
}

/* ==========================================
   INNOVATIONS SECTION
   ========================================== */
.innovation-card {
    background: linear-gradient(145deg, #161616, #0d0d0d);
    border: 1px solid rgba(255, 187, 51, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 50px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    align-items: center;
}

.innovation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 187, 51, 0.1);
    border-color: rgba(255, 187, 51, 0.4);
}

.innovation-image-wrapper {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    width: 100%;
}

.innovation-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.innovation-card:hover .innovation-image {
    transform: scale(1.05);
}

.innovation-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.innovation-content h3 {
    color: #fb3;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    align-self: flex-start;
}

/* Align right featurette titles to the right */
.flex-row-reverse .innovation-content h3 {
    align-self: flex-end;
}

.innovation-content h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #e13030;
    transition: width 0.3s ease;
}

.flex-row-reverse .innovation-content h3::after {
    left: auto;
    right: 0;
}

.innovation-card:hover .innovation-content h3::after {
    width: 100%;
}

.innovation-content p {
    color: #d1d1d1;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
}

@media(max-width: 767px) {
    .innovation-card {
        flex-direction: column;
        padding: 20px;
    }

    .innovation-image-wrapper {
        margin-bottom: 25px;
    }

    .innovation-content {
        text-align: left !important;
    }

    .innovation-content h3,
    .flex-row-reverse .innovation-content h3 {
        align-self: flex-start;
    }

    .flex-row-reverse .innovation-content h3::after {
        left: 0;
        right: auto;
    }
}

/* ==========================================
   TOAST NOTIFICATION (GMAIL STYLE)
   ========================================== */
.toast-notification {
    position: fixed;
    bottom: -100px;
    left: 30px;
    background: #323232;
    color: #fff;
    padding: 14px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Roboto', 'Montserrat', sans-serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10000;
    transition: bottom 0.4s ease-in-out;
    display: flex;
    align-items: center;
    min-width: 250px;
    overflow: hidden;
}

.toast-notification.show {
    bottom: 30px;
}

.toast-notification i {
    color: #4CAF50;
}

.toast-notification.show::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: #ea4335;
    transform-origin: left;
    animation: toastProgress 4s linear forwards;
}

@keyframes toastProgress {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

/* ==========================================
   TEAM PAGE — Team Card Styles (from current-team.html)
   ========================================== */

/* ── Team card base ── */
.tc-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: default;
}

.tc-wrap:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 40px rgba(255, 193, 7, 0.25);
}

/* photo */
.tc-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
    border-radius: 12px 12px 0 0;
}

.tc-wrap:hover .tc-img {
    transform: scale(1.08);
}

/* always-visible info bar */
.tc-info {
    position: relative;
    z-index: 2;
    padding: 10px 12px 8px;
    background: linear-gradient(180deg, #141414 0%, #1c1c1c 100%);
    border-top: 2px solid rgba(255, 193, 7, 0.4);
}

.tc-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tc-role {
    font-size: 0.72rem;
    color: #ffc107;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* extra-roles revealed on hover */
.tc-extra {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    padding: 0 12px;
    background: #1c1c1c;
}

.tc-wrap:hover .tc-extra {
    max-height: 120px;
    padding: 6px 12px 10px;
}

.tc-extra span {
    display: inline-block;
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.45);
    color: #ffc107;
    font-size: 0.62rem;
    padding: 2px 7px;
    border-radius: 4px;
    margin: 2px 2px 0 0;
    line-height: 1.5;
}

/* faculty placeholder */
.tc-faculty-img {
    width: 100%;
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px 12px 0 0;
}

.tc-faculty-img i {
    font-size: 3.5rem;
    color: #ffc107;
}

.tc-faculty-img small {
    color: #888;
    font-size: 0.75rem;
    margin-top: 8px;
}

/* section headers */
.division-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 48px 0 20px;
    border-bottom: 2px solid #ffc107;
    padding-bottom: 10px;
}

.division-header i {
    color: #ffc107;
    font-size: 1.3rem;
    min-width: 24px;
}

.division-header h4 {
    margin: 0;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* leadership big cards */
.lead-card .tc-img {
    aspect-ratio: 3/4;
}

/* margin utility */
.mb-card {
    margin-bottom: 20px;
}

/* ── Yogananda's Secret Flip Card ── */
#yogi-flip-outer {
    perspective: 900px;
}

#yogi-flip-inner {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
}

#yogi-flip-inner.is-flipped {
    transform: rotateY(180deg);
}

#yogi-flip-front,
#yogi-flip-back {
    width: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

#yogi-flip-front {
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#yogi-flip-back {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transform: rotateY(180deg);
    border-radius: 12px;
    background: linear-gradient(135deg, #0d0d0d 0%, #1c1c1c 60%, #111 100%);
    border: 2px solid #fb3;
    box-shadow: 0 15px 35px rgba(255, 193, 7, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 15px;
    gap: 12px;
}

#yogi-flip-back .flip-rocket {
    font-size: 3.5rem;
}

#yogi-flip-back .flip-msg {
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fb3;
    line-height: 1.5;
}

#yogi-flip-back .flip-sub {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

/* ==========================================
   TEAM MEMBER CARD — Leader name/role overrides
   ========================================== */
.lead-card .tc-name {
    font-size: 1rem;
    text-align: center;
}

.lead-card .tc-role {
    font-size: 0.85rem;
    text-align: center;
}

/* ==========================================
   EASTER EGG — y-secret (from sustainability.html)
   ========================================== */
.y-secret {
    color: transparent;
    font-size: 0.9em;
    cursor: default;
}

.y-secret::selection {
    background: rgba(255, 140, 0, 0.9);
    color: #fff;
}

.y-secret::-moz-selection {
    background: rgba(255, 140, 0, 0.9);
    color: #fff;
}

/* ==========================================
   UTILITY — word-break for long emails in footer
   ========================================== */
.footer-email-break {
    word-break: break-all;
}

/* ==========================================
   HOME PAGE — Inline style replacements
   ========================================== */

/* Spacer div below navbar on home page */
.navbar-spacer {
    height: 100px;
    background: #000;
}

/* Scroll indicator bounce */
.scroll-indicator {
    animation: bounce 2s infinite;
}

/* Journey cards — rounded corners */
.journey-card {
    border-radius: 20px;
}

.journey-card-body {
    border-radius: 20px;
    padding: 0;
}

.journey-card-img {
    border-radius: 20px 20px 0 0;
}

.journey-card-footer {
    border-radius: 0 0 20px 20px;
}

/* About section row alignment */
.about-row {
    justify-content: center;
    align-items: center;
}

/* About section image */
.about-img {
    border-radius: 10px;
}

/* About section text highlight */
.about-highlight {
    font-size: 1.3em;
    letter-spacing: 1px;
}

/* What We Do — section background variants */
.section-bg-dark {
    background: rgba(11, 11, 11, 0.901);
}

.section-bg-darker {
    background: rgba(19, 18, 18, 0.901);
}

/* Stage number badge */
.stage-number {
    background: linear-gradient(135deg, #fb3, #f90);
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2em;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Stage resource label */
.stage-resource-label {
    font-size: 0.85em;
    letter-spacing: 3px;
}

/* Stage text body */
.stage-text {
    line-height: 1.8;
}

/* Innovations section heading */
.innovations-heading {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.innovations-subtitle {
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    letter-spacing: 1px;
}

/* Bento card tech title */
.bento-tech-title {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Bento card stat */
.bento-stat {
    font-size: 1.1em;
}

/* Why Formula Student headings */
.editorial-banner-title {
    font-size: 2.2rem;
}

.editorial-banner-body {
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Timeline highlight row */
.timeline-highlight {
    transform: scale(1.05);
    z-index: 10;
}

/* Timeline highlight stat text */
.timeline-highlight-stat {
    font-size: 1.2em;
}

/* Timeline standard stat */
.timeline-stat {
    font-size: 1.1em;
}

/* Timeline highlight node */
.timeline-highlight-node {
    box-shadow: 0 0 25px #e13030;
    border-color: #e13030;
    background: #e13030;
}

/* Timeline image wrapper gradient */
.timeline-img-gradient {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Home footer */
.home-footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Follow us letter spacing */
.follow-us-label {
    letter-spacing: 3px;
}

/* ==========================================
   CONTACT PAGE — Inline style replacements
   ========================================== */
.contact-heading {
    margin-top: 130px;
}

.map-card {
    border-radius: 12px;
    overflow: hidden;
}

.map-iframe {
    border: none;
}

/* ==========================================
   SUSTAINABILITY PAGE — Inline style replacements
   ========================================== */
.sustainability-spacer {
    padding-top: 60px;
    padding-bottom: 40px;
}

.innovation-hero-title {
    font-size: 3rem;
}

/* Patent badge wrapper */
.patent-badge-outer {
    padding: 2px;
    background: linear-gradient(135deg, #e31b23, #ff8c00);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(227, 27, 35, 0.3);
}

.patent-badge-inner {
    background: #111;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.patent-icon-wrap {
    background: rgba(255, 140, 0, 0.1);
    border-radius: 50%;
    min-width: 60px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.2);
}

.patent-icon {
    font-size: 2.2rem;
    color: #ff8c00;
}

.patent-count-label {
    color: #fff;
    font-size: 2.2rem;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.patent-gradient-text {
    background: linear-gradient(to right, #ff416c, #ff4b2b, #ffc107);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.patent-sub-label {
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

.innovation-section-bg {
    background: rgba(10, 10, 10, 0.4);
}

/* ==========================================
   SPONSORS PAGE — Inline style replacements
   ========================================== */
.sponsor-white-bg {
    background-color: white;
    padding: 10px;
    border-radius: 8px;
}

/* ==========================================
   EVENT / GALLERY PAGES — Row align utilities
   ========================================== */
.row-centered {
    justify-content: center;
    align-items: center;
}

/* ==========================================
   HOME PAGE — Additional Inline Style Replacements
   ========================================== */

/* Bento cards with min height */
.bento-min-h {
    min-height: 260px;
}

/* Bento card headings */
.bento-card-title {
    text-transform: uppercase;
    letter-spacing: 2px;
}

.bento-card-title-sm {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Bento card stat values */
.bento-card-stat {
    font-size: 1.1em;
}

/* About section row */
.about-section-row {
    justify-content: center;
    align-items: center;
}

/* Editorial banner — right-aligned variant */
.editorial-banner-right {
    justify-content: flex-end;
    text-align: right;
}

/* Editorial banner heading/body sizes */
.editorial-title {
    font-size: 2.2rem;
}

.editorial-body {
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Editorial column text */
.editorial-col-text {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Timeline stat sizes */
.timeline-stat-lg {
    font-size: 1.2em;
}

.timeline-stat-md {
    font-size: 1.1em;
}

/* Follow journey label */
.follow-letter-spacing {
    letter-spacing: 3px;
}

/* Journey card image inner top radius */
.journey-card-img-top {
    border-radius: 20px 20px 0 0;
}

/* Yogi secret profile click (cursor pointer) */
.yogi-secret-img {
    cursor: pointer;
}

/* ==========================================
   INNOVATIONS GLASS BADGE REDESIGN
   ========================================== */
.premium-glass-badge {
    position: relative;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.premium-glass-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-25deg);
    transition: left 0.7s ease;
    z-index: 1;
}

.premium-glass-badge:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 187, 51, 0.4);
    box-shadow: 0 15px 40px rgba(255, 187, 51, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.premium-glass-badge:hover::before {
    left: 200%;
    transition: left 0.7s ease;
}

.glow-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 187, 51, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 15px rgba(255, 187, 51, 0.2), 0 0 20px rgba(255, 187, 51, 0.3);
    border: 1px solid rgba(255, 187, 51, 0.3);
    z-index: 2;
}

.patent-icon-glow {
    font-size: 1.8rem;
    color: #fb3;
    animation: iconPulse 2.5s infinite alternate;
}

@keyframes iconPulse {
    0% { filter: drop-shadow(0 0 5px rgba(255, 187, 51, 0.5)); transform: scale(1); }
    100% { filter: drop-shadow(0 0 15px rgba(255, 187, 51, 0.9)); transform: scale(1.05); }
}

.badge-text-content {
    position: relative;
    z-index: 2;
}

.patent-count-label {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.gradient-text-animate {
    background: linear-gradient(90deg, #fb3, #ff4e00, #fb3);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
    to { background-position: 200% center; }
}

.patent-sub-label {
    color: #a0aab2 !important;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    max-width: 500px;
}

@media (max-width: 768px) {
    .premium-glass-badge {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }
    .badge-text-content {
        text-align: center !important;
    }
}

/* =================================================================
 * EASTER EGGS STYLES
 * ================================================================= */

/* Konami Code Car */
.easter-egg-car {
    position: fixed;
    bottom: 20px;
    left: -100px;
    font-size: 50px;
    z-index: 999999;
    animation: driveAcross 4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    filter: drop-shadow(0 5px 15px rgba(255, 187, 51, 0.5));
    pointer-events: none;
}

@keyframes driveAcross {
    0% { transform: translateX(0) skewX(-15deg); }
    10% { transform: translateX(15vw) skewX(-15deg); }
    90% { transform: translateX(110vw) skewX(-15deg); }
    100% { transform: translateX(120vw) skewX(-15deg); }
}

/* IGNITE Screen Shake & Blur */
.ignite-shake {
    animation: engineRev 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    filter: blur(1px) contrast(1.1);
}

@keyframes engineRev {
    0%, 100% { transform: translate3d(0, 0, 0); }
    10%, 30%, 50%, 70%, 90% { transform: translate3d(-4px, 2px, 0); }
    20%, 40%, 60%, 80% { transform: translate3d(4px, -2px, 0); }
}

/* Hidden Dot Stylings */
#secret-dot {
    cursor: crosshair;
    transition: color 0.3s;
}

#secret-dot:hover {
    color: #fb3;
    text-shadow: 0 0 8px #fb3;
}

/* Confetti Pieces */
.confetti-piece {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    z-index: 999999;
    pointer-events: none;
    animation: confettiExplosion 1s ease-out forwards;
}

@keyframes confettiExplosion {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}