/* Flyin' Farmer Pit Stop - Dirt Late Model Theme */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Exo+2:ital,wght@0,300;0,700;0,900;1,700&display=swap');

:root {
    --racing-red: #D21F1F;
    /* Matches the vibrant red in the logo */
    --racing-black: #0a0a0a;
    --asphalt-charcoal: #1A1A1A;
    --chrome-silver: #E0E0E0;
    --dirt-brown: #3E2723;
    /* Subtle dirt undertone */

    --font-heading: 'Oswald', sans-serif;
    /* For "PITSTOP" - Tall, Industrial, Bold */
    --font-script: 'Oswald', sans-serif;
    /* For "Flyin' Farmer" - Unified Industrial Look */
    --font-body: 'Exo 2', sans-serif;

    --skew-angle: -10deg;

    /* Apple-Level Easing for that "High Speed" feel */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out-back: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--racing-black);
    color: var(--chrome-silver);
    font-family: var(--font-body);
    overflow-x: hidden;
    /* Crucial for skewed elements extending off-screen */
}

/* --- Typography --- */
/* --- Typography --- */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-style: normal;
    /* Professional, Upright */
    letter-spacing: 1px;
    line-height: 1.1;
}

.text-red {
    color: var(--racing-red);
}

.text-white {
    color: #fff;
}

/* --- Layout Utilities --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* The "Wrapper" Effect - Skewed Sections */
.speed-section {
    position: relative;
    padding: 80px 0;
    background: var(--asphalt-charcoal);
    transform: skewY(-2deg);
    /* Dynamic page flow */
    transform-origin: 0;
}

.speed-section>* {
    transform: skewY(2deg);
    /* Counter-skew content so it's readable */
}

/* --- Hero Section --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: #111;
    /* Hero Color Injection: Deep Red Gradient Fade */
    background: radial-gradient(circle at center, #500000 0%, #200000 40%, #000000 100%);

    /* Subtle "Ghost" Checkered Flag Pattern Overlay */
    background-image:
        linear-gradient(45deg, rgba(0, 0, 0, 0.3) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.3) 75%, rgba(0, 0, 0, 0.3)),
        linear-gradient(45deg, rgba(0, 0, 0, 0.3) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.3) 75%, rgba(0, 0, 0, 0.3)),
        radial-gradient(circle at center, #990000 0%, #000000 70%);
    /* Red Glow Core */

    background-position: 0 0, 50px 50px, center;
    background-size: 100px 100px, 100px 100px, 100% 100%;
    padding-top: 80px;
}

/* Dark Vignette to focus center */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, #000 100%);
    pointer-events: none;
}

/* Abstract "Livery" Shapes */
.hero-graphic {
    position: absolute;
    width: 90%;
    height: 120%;
    /* Red Fade Gradient -> STEALTH MODE: Dark Carbon with Red Glow */
    background: linear-gradient(135deg, #111 0%, #000 100%);
    border-bottom: 2px solid var(--racing-red);
    /* Accent line instead of full wash */
    top: -10%;
    right: -25%;
    transform: skewX(var(--skew-angle));
    z-index: 1;
    border-left: 5px solid rgba(255, 255, 255, 0.8);
    /* Thin White Stripe */
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
}

.hero-graphic::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -100px;
    width: 200px;
    height: 100%;
    background: var(--asphalt-charcoal);
    transform: skewX(-20deg);
    border-left: 2px solid var(--racing-red);
    /* Accent */
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    /* Wider to breathe */
    background: transparent;
    /* Text floats on background */
    padding: 20px;
    /* Removed border and shadow for clean look */
}

/* Specific styling for the reference image look - CLEAN VERSION */
.hero-title .flyin-text {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Clean, sharp shadow */
    text-shadow: 2px 2px 0 var(--racing-red);
    margin-bottom: 0 !important;
    transform: none;
}

.hero-title .pitstop-text {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    /* WIDE spacing for premium look */
    letter-spacing: 10px !important;
    text-shadow: 2px 2px 0px #000;
    width: 100%;
    background: none;
    -webkit-text-fill-color: #fff;
    filter: none;
    margin-top: 10px;
    transform: none;
}

.hero-title {
    width: 100%;
    padding: 0 !important;
    text-align: center;
}

.hero-title .flyin-text {
    font-size: 5rem !important;
    /* Fixed, authoritative size */
    display: block;
    width: 100%;
    margin-bottom: 0;
}

.hero-title .pitstop-text {
    font-size: 7rem !important;
    /* Large but controlled */
    line-height: 1.0;
    display: block;
    width: 100%;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    /* Changed to white since it's on dark bg now */
    display: inline-block;
    padding: 10px 0;
    border-top: 1px solid #555;
    /* Thinner, subtler */
    border-bottom: 1px solid #555;
    margin-bottom: 30px;
}

.hero-subtitle span {
    display: block;
    transform: skewX(10deg);
    /* Counter skew */
}

/* Call to Action Button */
.btn-racing {
    background: var(--racing-red);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 2rem;
    padding: 15px 40px;
    border: none;
    text-decoration: none;
    display: inline-block;
    transform: skewX(var(--skew-angle));
    border: 2px solid #fff;
    /* Thinner border */
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-racing:hover {
    background: #fff;
    color: var(--racing-red);
    transform: skewX(var(--skew-angle)) scale(1.05);
    box-shadow: 0 0 20px var(--racing-red);
}

.btn-text {
    display: block;
    transform: skewX(10deg);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--racing-red);
    text-shadow: 2px 2px #fff;
    text-decoration: none;
}

/* --- Light Mode (High Contrast Section) --- */
.light-mode {
    background: #e0e0e0;
    /* Bright Silver/White */
    color: #111 !important;
    border-top: 5px solid var(--racing-red);
    border-bottom: 5px solid var(--racing-red);
}

.light-mode h2,
.light-mode h3,
.light-mode .feature-title {
    color: #000 !important;
}

.light-mode p {
    color: #333 !important;
}

.light-mode .feature-card {
    background: #fff;
    border: 2px solid #ccc;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.1);
}

.light-mode .feature-card:hover {
    background: #f9f9f9;
    border-color: var(--racing-red);
    transform: skewX(var(--skew-angle)) translateY(-10px);
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 50px 0;
}

.feature-card {
    background: #222;
    padding: 30px;
    border: 1px solid #444;
    /* Subtle border */
    border-bottom: 3px solid var(--racing-red);
    /* Accent bottom only */
    /* transform: skewX(var(--skew-angle)); Removed skew per user request */
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.3);
    /* Reduced shadow */
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: skewX(var(--skew-angle)) translateY(-10px);
    background: #2a2a2a;
    border-color: var(--racing-red);
}

.feature-card-content {
    transform: skewX(10deg);
    /* Counter skew */
}

.feature-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--chrome-silver);
}

/* --- Fuel Section --- */
.fuel-pump-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.fuel-type {
    background: #fff;
    color: #000;
    padding: 20px;
    font-family: var(--font-heading);
    text-align: center;
    width: 150px;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    /* Rhombus shape */
}

.fuel-type.diesel {
    background: #4CAF50;
    color: #fff;
}

/* Traditional Green for Diesel? Or Black? Sticking to user colors, but diesel pumps are usually green/black. Let's make it styled.*/
.fuel-type.diesel {
    background: #000;
    color: #fff;
    border: 1px solid #555;
}

.fuel-type.offroad {
    background: var(--racing-red);
    color: #fff;
}

.fuel-type.unleaded {
    background: #fff;
    color: #000;
}

/* --- High Speed Animations (Simplified - Hover Only) --- */

/* Remove Load Animations to ensure visibility */
.speed-section p {
    opacity: 1 !important;
    /* Force Visible */
    /* transform: none !important;  <-- API edit: Removed this so individual elements can manage their own transforms */
    transition: transform 0.3s ease;
    /* Keep hover effects */
}

/* Ensure Centering - Strict Mode */
.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.hero-title span {
    text-align: center;
    width: 100%;
    margin: 0 auto;
    left: auto;
    right: auto;
}

/* Specific centering for the "Flyin" text which had left/right positioning */
.hero-title .flyin-text {
    position: relative;
    /* Remove any offset transforms */
    transform: none;
}

/* Specific centering for "Pitstop" */
.hero-title .pitstop-text {
    margin-top: -10px;
    /* Slight overlap for style */
}

/* Parallax Background Class - Keeping this as it works well */
.parallax-bg {
    transition: background-position 0.1s linear;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
    }

    .nav-brand {
        margin-bottom: 15px;
    }

    .hero-title {
        width: 100%;
        padding: 0 !important;
        text-align: center;
    }

    .hero-title .flyin-text {
        font-size: 15vw !important;
        /* Responsive scaling */
        letter-spacing: 1px;
        margin-bottom: 5px !important;
        line-height: 1.0;
    }

    .hero-title .pitstop-text {
        font-size: 18vw !important;
        /* Massive but fitting */
        letter-spacing: 2px !important;
        /* Tighter spacing for mobile */
        line-height: 0.9;
        margin-top: 5px !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
    }

    .speed-section h2 {
        font-size: 2.5rem !important;
        /* Override inline styles */
        text-align: center !important;
    }

    .speed-section p {
        text-align: center !important;
        font-size: 1.1rem !important;
    }

    .fuel-pump-display {
        flex-wrap: wrap;
    }

    .fuel-type {
        width: 100%;
        /* Full width cards on mobile */
        clip-path: none;
        /* Remove rhombus shape for stacking */
        border-radius: 10px;
    }

    .hero-graphic {
        /* Tone down the graphic on mobile so text is readable */
        opacity: 0.5;
    }
}