/* Color Palette Variables */
:root {
    --absolute-black: #000000;
    --absolute-white: #FFFFFF;
    --off-white: #F7F7F7;
    --off-black: #121212;
    --divider-gray: #2E2E2E;
    --primary-red: #E50914; /* Netflix-style vibrant red */
    --hover-darker-red: #B0060F;
    --soft-red-tint: #FF4D57;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Futura', sans-serif; /* Fallback to generic sans-serif */
    line-height: 1.6;
    color: var(--off-black);
    background-color: var(--off-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 20px 0;
}

.hidden {
    display: none;
}

/* Typography */
h1, h2 {
    font-weight: 700;
    color: var(--absolute-black);
    text-transform: uppercase;
}

h1 {
    font-size: 3.5em; /* Adjust for mobile */
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

h2 {
    font-size: 2.2em;
    margin-bottom: 25px;
    text-align: center;
}

p {
    font-size: 1em;
    line-height: 1.8;
}

/* Glitch Effect for H1 */
.glitch-text {
    position: relative;
    color: var(--absolute-white);
    font-size: 3em;
    text-align: center;
    animation: glitch-anim 1s infinite alternate;
}

@keyframes glitch-anim {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--primary-red);
    background: var(--absolute-black);
    overflow: hidden;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 1s infinite alternate;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 var(--soft-red-tint), 2px 2px var(--primary-red);
    background: var(--absolute-black);
    overflow: hidden;
    clip: rect(85px, 450px, 120px, 0);
    animation: glitch-anim-3 1s infinite alternate;
}

@keyframes glitch-anim-2 {
    0% { clip: rect(20px, 9999px, 50px, 0); transform: translate(-5px, 0); }
    20% { clip: rect(100px, 9999px, 80px, 0); transform: translate(5px, 0); }
    40% { clip: rect(70px, 9999px, 100px, 0); transform: translate(-5px, 0); }
    60% { clip: rect(120px, 9999px, 90px, 0); transform: translate(5px, 0); }
    80% { clip: rect(50px, 9999px, 130px, 0); transform: translate(-5px, 0); }
    100% { clip: rect(150px, 9999px, 60px, 0); transform: translate(5px, 0); }
}

@keyframes glitch-anim-3 {
    0% { clip: rect(10px, 9999px, 40px, 0); transform: translate(5px, 0); }
    20% { clip: rect(110px, 9999px, 70px, 0); transform: translate(-5px, 0); }
    40% { clip: rect(80px, 9999px, 110px, 0); transform: translate(5px, 0); }
    60% { clip: rect(130px, 9999px, 100px, 0); transform: translate(-5px, 0); }
    80% { clip: rect(60px, 9999px, 140px, 0); transform: translate(5px, 0); }
    100% { clip: rect(160px, 9999px, 70px, 0); transform: translate(-5px, 0); }
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    margin: 10px 0;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid var(--primary-red);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9em;
    letter-spacing: 0.05em;
}

.btn.primary-red-bg {
    background-color: var(--primary-red);
    color: var(--absolute-white);
}

.btn.primary-red-bg:hover {
    background-color: var(--hover-darker-red);
    border-color: var(--hover-darker-red);
}

.btn.secondary-btn {
    background-color: transparent;
    color: var(--absolute-white);
    border-color: var(--absolute-white);
    margin-left: 10px; /* Add space between buttons */
}

.btn.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-red);
    border-color: var(--primary-red);
}


/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--absolute-black); /* Fallback */
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures video covers the entire container */
    filter: grayscale(100%); /* Force B&W for consistency */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--absolute-black) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--absolute-white);
    padding: 20px;
}

.hero-subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    letter-spacing: 0.15em;
    font-weight: 400;
}

/* About Section */
.about-section {
    background-color: var(--absolute-black);
    color: var(--off-white);
    padding: 60px 0;
}

.about-section .container {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    gap: 40px;
}

.about-content {
    flex: 1;
    text-align: center;
}

.about-content h2 {
    color: var(--absolute-white);
    margin-bottom: 20px;
}

.about-content h3 {
    color: var(--absolute-white);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.3em;
    text-align: center;
}

.about-content p {
    max-width: 600px;
    margin: 0 auto 15px auto;
}

.about-image-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column; /* Column layout for mobile */
    gap: 20px; /* Space between images on mobile */
    overflow: hidden; /* Important for parallax image */
    max-height: none; /* Allow full height for multiple images */
    position: relative;
    background-color: var(--divider-gray); /* Gray background on mobile */
    padding: 20px; /* Add some padding around images */
}

.about-image {
    width: 100%;
    height: auto;
    min-height: 300px; /* Ensure decent height for each image */
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: transform 0.1s ease-out; /* Smooth parallax */
}

/* Hide mobile-only images by default (will show on mobile only) */
.mobile-only {
    display: block;
}

/* Contact Section */
.contact-section {
    background-color: var(--off-white);
    padding: 60px 0;
    color: var(--off-black);
}

.contact-section h2 {
    color: var(--absolute-black);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 5px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--divider-gray);
    background-color: var(--absolute-white);
    color: var(--off-black);
    font-size: 1em;
    font-family: 'Futura', sans-serif;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--divider-gray);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px var(--soft-red-tint); /* Soft red focus outline */
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    border: none;
    padding: 15px 20px;
    font-size: 1.1em;
    letter-spacing: 0.1em;
    margin-top: 10px;
}

/* Footer */
footer {
    background-color: var(--absolute-black);
    color: var(--divider-gray);
    text-align: center;
    padding: 25px 0;
    font-size: 0.9em;
}


/* Responsive Styles (Mobile First) */

/* For smaller tablets and up */
@media (min-width: 768px) {
    h1 {
        font-size: 5em;
    }
    h2 {
        font-size: 2.8em;
    }
    .hero-subtitle {
        font-size: 1.5em;
    }
    /* Desktop about section styling */
    .about-section {
        background-color: var(--absolute-black); /* Black background on desktop */
    }
    .about-section .container {
        flex-direction: row; /* Side-by-side on larger screens */
        align-items: center;
        text-align: left;
    }
    .about-image-wrapper {
        order: 2; /* Image on right */
        max-height: 600px; /* Allow taller image on desktop */
        gap: 0; /* No gap needed on desktop */
        background-color: transparent; /* Remove gray background on desktop */
        padding: 0; /* Remove padding on desktop */
    }
    .about-content {
        order: 1; /* Content on left */
        text-align: left;
    }
    .about-content h2 {
        text-align: left;
    }
    .about-content h3 {
        text-align: left;
    }
    .about-content p {
        margin: 0 0 15px 0;
    }
    /* Hide mobile-only images on desktop */
    .mobile-only {
        display: none;
    }
    .about-image {
        height: 100%; /* Full height on desktop */
        min-height: auto; /* Remove min-height on desktop */
    }
    .form-group {
        flex-direction: row;
    }
    .form-group input,
    .form-group textarea {
        flex: 1;
    }
    .submit-btn {
        width: auto; /* Auto width on desktop */
        margin-left: auto; /* Push to right */
        margin-right: auto;
    }
}

/* For larger desktops */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }
    h1 {
        font-size: 6em;
    }
    .hero-subtitle {
        font-size: 1.8em;
    }
    .about-section .container {
        gap: 80px;
    }
}

/* Desktop Only: Red Text Highlight on Hover */
@media (hover: hover) and (pointer: fine) {
    body:not(.no-hover-effect) .hero-content p,
    body:not(.no-hover-effect) .about-section p {
        display: inline; /* Needed for span wrap */
    }
}

/* Temporary Full Video Section - if you link 'Watch the Ride' to it */
.full-video-section {
    background-color: var(--absolute-black);
    padding: 60px 0;
    text-align: center;
}
.full-video-section h2 {
    color: var(--absolute-white);
}
.responsive-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}
.responsive-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}