:root {
    --jet-black: #0a0a0a; /* Slightly off-black for better contrast */
    --racing-red: #FF0000;
    --titanium-gray: #808080;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --font-primary: 'Inter', sans-serif;
    --card-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.5);
    --card-shadow-hover: 0 15px 35px -10px rgba(0, 0, 0, 0.7);
    --button-glow: 0 0 15px rgba(255, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--jet-black);
    color: var(--light-gray);
    line-height: 1.6;
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 50%, #0a0a0a 100%);
}

/* Create the animated mesh pattern overlay */
body:before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, transparent 0, transparent 1px, rgba(255, 255, 255, 0.03) 1px, transparent 2px) 0 0 / 40px 40px,
        radial-gradient(circle at 75% 75%, transparent 0, transparent 1px, rgba(255, 255, 255, 0.03) 1px, transparent 2px) 0 0 / 40px 40px;
    z-index: -1;
    animation: meshFloat 60s linear infinite;
    pointer-events: none;
}

@keyframes meshFloat {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 40px 40px, 40px 40px;
    }
}

a {
    color: var(--racing-red);
    text-decoration: none;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    font-weight: 900;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--racing-red);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

/* Header/Nav */
header {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(5px);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--titanium-gray);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header .logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
}

header nav ul {
    display: flex;
    align-items: center;
}

header nav ul li {
    margin-left: 1.5rem;
}

header nav ul li a {
    color: var(--light-gray);
    padding: 0.5rem;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--racing-red);
}

/* Keep the nav CTA button white when active/selected */
header nav ul li a.cta-button-primary {
    color: var(--white);
}

header nav ul li a.cta-button-primary:hover {
    color: var(--white);
}

/* Buttons */
.cta-button-primary,
.cta-button-secondary {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    margin: 0.5rem;
    position: relative;
    overflow: hidden;
}

.cta-button-primary {
    background-color: var(--racing-red);
    color: var(--white);
    border: 2px solid var(--racing-red);
}

.cta-button-primary:hover {
    background-color: #FF0000;
    border-color: #FF0000;
    transform: translateY(-3px);
    box-shadow: var(--button-glow);
}

.cta-button-secondary {
    background-color: transparent;
    color: var(--racing-red);
    border: 2px solid var(--racing-red);
}

.cta-button-secondary:hover {
    background-color: var(--racing-red);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--button-glow);
}

/* Hero Section */
#hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
}

#hero h1 {
    max-width: 800px;
}

#hero .subhead {
    font-size: 1.2rem;
    max-width: 650px;
    color: var(--titanium-gray);
    margin-top: 1rem;
    margin-bottom: 2rem;
}

#hero .cta-buttons {
    margin-top: 1.5rem;
}

/* Sections General Styling */
section {
    padding: 5rem 2rem;
}

section:nth-child(odd) {
   /* Add subtle background difference if needed */
   /* background-color: #1a1a1a; */
}

/* How It Works */
#how-it-works .steps {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 0;
}

#how-it-works .step {
    flex: 1;
    padding: 1.5rem;
    border: 1px solid var(--titanium-gray);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

#how-it-works .step-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    background-color: var(--racing-red);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
}

#how-it-works .step h3 {
    margin-bottom: 0.5rem;
    color: var(--white);
}

/* Gallery */
/* Remove Old Gallery Grid Styles */
/* 
#gallery p:first-of-type {
    text-align: center;
    color: var(--titanium-gray);
    margin-bottom: 3rem;
}

#gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

#gallery .gallery-item {
    border: 1px solid var(--titanium-gray);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
}

#gallery .gallery-item img {
    width: 100%;
    height: 250px; 
    object-fit: cover; 
    background-color: var(--titanium-gray); 
}

#gallery .gallery-item p {
    padding: 1rem;
    font-weight: bold;
    margin: 0;
}
*/

/* New Gallery Preview Styles */
#gallery {
    background-color: var(--jet-black); /* Match body background */
}

#gallery > p {
    text-align: center;
    color: var(--titanium-gray);
    margin-bottom: 3rem;
}

.gallery-previews {
    display: flex;
    flex-direction: column;
    gap: 4rem; /* Space between rows */
}

.preview-row {
    display: flex;
    gap: 2rem;
    align-items: stretch; /* Changed from center to stretch */
    background-color: rgba(255, 255, 255, 0.05); /* Subtle background for the row */
    padding: 1.5rem;
    border-radius: 8px;
}

.preview-row.row-reversed {
    flex-direction: row-reverse;
}

.beer-slider {
    flex: 1;
    min-width: 0;
    border-radius: 5px;
    overflow: hidden;
}

.mod-details {
    flex: 1;
    padding: 1rem;
}

.row-reversed .mod-details {
     padding-left: 0;
     padding-right: 1rem; /* Add padding if slider is on the right */
}

.mod-details h3 {
    color: var(--racing-red);
    margin-bottom: 0.8rem;
}

.mod-details p {
    color: var(--light-gray);
    font-size: 1rem;
    line-height: 1.7;
}

/* Reference Image Placeholders */
.mod-reference-images {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem; /* Space above the boxes */
    flex-wrap: wrap; /* Allow wrapping if many boxes */
}

.ref-image-box {
    width: 102px;
    height: 102px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--titanium-gray);
    border-radius: 4px;
    /* Add a placeholder icon or text later if desired */
}

/* New Side-by-Side Image Styles */
.preview-image-container {
    flex: 2; /* Takes up the space the slider did */
    display: flex; /* Arrange images side-by-side */
    gap: 0; /* No gap between images */
    min-width: 0; 
    overflow: hidden; /* Ensure images stay within bounds */
    border-radius: 8px; /* Match the row's border radius */
    /* aspect-ratio removed - height will be intrinsic */
    background-color: #222; /* Placeholder background */
    border: 1px solid var(--titanium-gray); /* Add a subtle border */
}

.preview-image-container img {
    /* position, top, left removed */
    width: 50%; /* Each image takes half the width */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Cover the 50% width area */
    /* transition removed */
    /* border-radius removed - applied to container */
}

/* Removed image-after opacity rules */

/* Removed hover-indicator rules */

/* Pricing */
#pricing .pricing-table {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 3rem auto 0;
}

#pricing .plan {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    padding: 2.5rem 2rem;
    border: 1px solid var(--titanium-gray);
    border-radius: 8px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    box-shadow: var(--card-shadow);
    transform: translateY(0);
}

#pricing .plan:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(255, 0, 0, 0.4);
}

#pricing .plan.popular {
    border-color: var(--racing-red);
    border-width: 2px;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.2);
    z-index: 1;
}

#pricing .plan.popular:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 0, 0, 0.25);
}

#pricing .plan h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

#pricing .plan .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--racing-red);
    margin-bottom: 1.5rem;
}

#pricing .plan .price span {
    font-size: 1rem;
    color: var(--titanium-gray);
    font-weight: 400;
}

#pricing .plan ul {
    margin-bottom: 2rem;
}

#pricing .plan ul li {
    margin-bottom: 0.8rem;
    color: var(--light-gray);
}

#pricing .plan .cta-button-primary,
#pricing .plan .cta-button-secondary {
    width: 100%;
    margin-top: 1rem;
}

/* Testimonials */
#testimonials {
    background-color: #1a1a1a; /* Subtle background change */
}

#testimonials .testimonial-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

#testimonials .testimonial {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
    border-left: 4px solid var(--racing-red);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    transform: translateY(0);
}

#testimonials .testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    background: rgba(0, 0, 0, 0.5);
}

#testimonials .testimonial p:first-child {
    font-style: italic;
    margin-bottom: 1rem;
}

#testimonials .testimonial .author {
    font-weight: bold;
    color: var(--titanium-gray);
    text-align: right;
    margin: 0;
}

/* Final CTA */
#final-cta {
    text-align: center;
    background: linear-gradient(145deg, rgba(10, 10, 10, 0.95) 0%, rgba(30, 30, 30, 0.9) 50%, rgba(10, 10, 10, 0.95) 100%), 
                radial-gradient(circle at center, rgba(255, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 70%);
    background-size: cover;
    background-position: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Add a subtle racing pattern to the CTA background */
#final-cta:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, transparent 94%, rgba(255, 0, 0, 0.1) 96%, transparent 100%),
        linear-gradient(0deg, transparent 96%, rgba(255, 0, 0, 0.08) 98%, transparent 100%);
    background-size: 60px 30px;
    z-index: 0;
    opacity: 0.3;
}

#final-cta h2, 
#final-cta p, 
#final-cta .cta-buttons {
    position: relative;
    z-index: 1;
}

#final-cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

#final-cta h2::after {
    background-color: var(--white);
}

#final-cta p {
    color: var(--light-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background-color: #050505;
    color: var(--titanium-gray);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #222;
}

footer .footer-content {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

footer .footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 0.5rem;
}

footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

footer .footer-nav a {
    color: var(--titanium-gray);
    margin: 0 0.5rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

footer .footer-nav a:hover {
    color: var(--racing-red);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }

    header nav {
        flex-direction: column;
    }

    header nav ul {
        margin-top: 1rem;
        justify-content: center;
    }

    header nav ul li {
        margin: 0 0.8rem;
    }

    #hero {
        min-height: auto;
        padding: 3rem 1rem;
    }

    section {
        padding: 3rem 1rem;
    }

    #how-it-works .steps {
        flex-direction: column;
        gap: 1.5rem;
    }

    #pricing .pricing-table {
        flex-direction: column;
        align-items: center;
    }

    #pricing .plan {
        width: 90%;
        max-width: 400px; /* Allow wider on mobile */
    }

    #pricing .plan.popular {
        transform: scale(1);
    }

    #testimonials .testimonial-container {
        flex-direction: column;
        align-items: center;
    }

    #testimonials .testimonial {
         width: 90%;
         max-width: 450px;
    }

    footer .footer-content {
        padding: 0 1rem;
    }

    /* Responsive adjustments for new gallery */
    .preview-row {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .preview-row.row-reversed {
        flex-direction: column; /* Keep stacking */
    }
    .mod-details {
        padding: 0 !important; /* Remove side padding on mobile */
        text-align: center;
    }
     .preview-image-container {
        flex-direction: column; /* Stack images vertically on mobile */
    }
    .preview-image-container img {
        width: 100%; /* Full width when stacked */
        height: auto;
    }

    .beer-slider {
        height: 300px; /* Smaller height on mobile */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    header nav ul li a {
        padding: 0.3rem;
    }

    .cta-button-primary,
    .cta-button-secondary {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        width: 80%; /* Make buttons wider on small screens */
        display: block;
        margin: 0.5rem auto;
    }

    #hero .cta-buttons a:first-child {
        margin-bottom: 0.8rem;
    }

    #gallery .gallery-grid {
        grid-template-columns: 1fr; /* Stack gallery items */
    }

    .beer-slider {
        height: 250px; /* Even smaller on tiny screens */
    }
}

/* Beer Slider Custom Styling */
/* REMOVED - Consolidating styles into the rule block near line 359 
.beer-slider {
    flex: 2; 
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
    min-width: 0;
    position: relative; 
}
*/

/* Custom handle styling */
/* Styles moved or handled by inline styles or earlier rules */
/*
.beer-handle {
    background: rgba(255, 255, 255, 0.25) !important; 
    border-radius: 3px !important;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2) !important;
    color: var(--white) !important;
    width: 3px !important; 
    opacity: 0.8 !important;
}
*/

/* Highlight handle on hover */
/* Styles moved or handled by inline styles or earlier rules */
/*
.beer-slider:hover .beer-handle {
    background: rgba(255, 255, 255, 0.35) !important;
}
*/

/* Ensure images cover the container */
/* Styles moved or handled by inline styles or earlier rules */
/*
.beer-slider img, .beer-reveal img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
*/

/* Style the reveal element */
/* Styles moved or handled by inline styles or earlier rules */
/*
.beer-reveal {
    border-right: none !important;
}
*/

/* Override default BeerSlider labels */
/* Styles moved or handled by inline styles or earlier rules */
/*
.beer-slider[data-beer-label]:after,
.beer-reveal[data-beer-label]:after {
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    top: initial;
    bottom: 1rem;
}
*/

/* Add reveal animations */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.animate-on-scroll.animated {
    animation: fadeUp 0.7s ease forwards;
}

/* Staggered animation delays */
.animate-on-scroll.delay-1 {
    animation-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
    animation-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
    animation-delay: 0.3s;
}

/* Why ModSnap Section */
#why-modsnap {
    text-align: center;
    padding: 5rem 2rem;
    background-color: rgba(20, 20, 20, 0.5);
}

#why-modsnap .benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 3rem auto 2rem;
}

#why-modsnap .benefit {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    padding: 2rem;
    border: 1px solid var(--titanium-gray);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    box-shadow: var(--card-shadow);
    transform: translateY(0);
}

#why-modsnap .benefit:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(255, 0, 0, 0.4);
}

#why-modsnap .benefit h3 {
    color: var(--racing-red);
    margin-bottom: 1rem;
}

#why-modsnap .benefit p {
    color: var(--light-gray);
}

.cta-center {
    margin-top: 3rem;
    text-align: center;
}

/* FAQ Section Styles */
#faq {
    padding: 5rem 2rem;
}

.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--titanium-gray);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--racing-red);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--card-shadow);
}

.faq-item h3 {
    color: var(--racing-red);
    margin-bottom: 0.8rem;
}

.faq-item p {
    color: var(--light-gray);
}

/* Form Container for Free Render Page */
#form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 5rem 2rem;
    text-align: center;
}

.form-container {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

/* Keep the old placeholder for reference */
.form-placeholder {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 4rem;
    border: 2px dashed var(--titanium-gray);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--titanium-gray);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #why-modsnap .benefits {
        flex-direction: column;
        align-items: center;
    }

    #why-modsnap .benefit {
        width: 90%;
        max-width: 400px;
    }

    .faq-container {
        width: 90%;
    }
} 