:root {
    --theme-color: #ff3b30;
    --theme-glow: rgba(255, 59, 48, 0.4);
    --bg-dark: #050505;
    --bg-card: rgba(30, 30, 30, 0.6);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Progress bar */
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--theme-color);
    transition: width 0.1s ease-out, background 1.2s cubic-bezier(0.25, 1, 0.25, 1);
}

/* Scroll Container */
.scroll-container {
    position: relative;
    width: 100%;
}

.scroll-spacer {
    height: 300vh; /* space to scroll over 3 states */
    width: 100%;
}

/* Parallax Background */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    /* Hero background gradient */
    background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--theme-color) 15%, transparent), var(--bg-dark) 80%);
    transition: background 1.2s cubic-bezier(0.25, 1, 0.25, 1);
    /* Extra large to allow for parallax transform without clipping edges */
    transform: scale(1.1);
}

/* Sticky Container */
.sticky-container {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 2;
    /* No bg color here, the parallax-bg sits behind it */
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo span {
    color: var(--theme-color);
    transition: color 1.2s cubic-bezier(0.25, 1, 0.25, 1);
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}
.nav-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Hero Content Area */
.hero-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 15vh;
}

.text-content {
    text-align: center;
    z-index: 10;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.theme-text {
    color: var(--theme-color);
    transition: color 1.2s cubic-bezier(0.25, 1, 0.25, 1);
    text-shadow: 0 1px 1px rgba(255,255,255,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.cta-button {
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    background: var(--theme-color);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 15px var(--theme-glow);
    transition: background 1.2s cubic-bezier(0.25, 1, 0.25, 1), box-shadow 1.2s cubic-bezier(0.25, 1, 0.25, 1), transform 0.2s cubic-bezier(0.25, 1, 0.25, 1), border-color 1.2s;
    font-family: var(--font-body);
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.03);
}

.cta-button:active {
    transform: translateY(1px);
}

/* Cars Container */
.cars-container {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    height: 500px;
    z-index: 5;
    pointer-events: none;
}

/* Car Wrappers using rotation bonus */
.car-wrapper {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9) rotate(0deg);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.25, 1), opacity 1.2s cubic-bezier(0.25, 0, 0.2, 1);
}

.car-wrapper.active {
    transform: translate(-50%, -50%) scale(1.05) rotate(0deg);
    opacity: 1;
    z-index: 10;
}

.car-wrapper.left {
    /* Slight rotation when exiting */
    transform: translate(-120%, -50%) scale(0.8) rotate(-8deg);
    opacity: 0;
    z-index: 5;
}

.car-wrapper.right {
    /* Slight rotation when entering */
    transform: translate(20%, -50%) scale(0.8) rotate(8deg);
    opacity: 0;
    z-index: 5;
}

.car-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: filter 1.2s cubic-bezier(0.25, 1, 0.25, 1);
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

.car-wrapper.active .car-image {
    filter: drop-shadow(0 20px 40px var(--theme-glow));
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    z-index: 20;
    animation: fadeIn 2s forwards;
    animation-delay: 1s;
    opacity: 0;
}

.scroll-indicator p {
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Product Listing overlay */
.product-listing {
    background-color: var(--bg-dark);
    padding: 8rem 5%;
    position: relative;
    z-index: 10;
    box-shadow: 0 -30px 60px rgba(0,0,0,0.8);
}

.listing-header {
    text-align: center;
    margin-bottom: 4rem;
}

.listing-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.listing-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.product-grid {
    display: grid;
    /* Grid layout 3-4 columns based on screen size */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.1);
}

.product-image-container {
    height: 180px;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05), transparent);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    position: relative;
}

.product-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
    transition: transform 0.4s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.08);
}

.product-image-container.coming-soon {
    background: rgba(0,0,0,0.2);
    border: 1px dashed rgba(255,255,255,0.1);
    margin: 1rem;
    height: 160px;
    border-radius: 12px;
}

.placeholder-text {
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0.5;
}

.product-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.specs {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.price {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
    margin-top: auto;
}

.cart-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    background: #fff;
    color: #000;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.cart-btn:hover:not(.disabled) {
    background: #e0e0e0;
    transform: scale(1.02);
}

.cart-btn:active:not(.disabled) {
    transform: scale(0.98);
}

.cart-btn.disabled {
    background: rgba(255,255,255,0.1);
    color: var(--text-muted);
    cursor: not-allowed;
}

footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    background-color: var(--bg-dark);
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 3.5rem; }
    .nav-links { display: none; }
    .cars-container { width: 95%; height: 300px; top: 60%; }
    
    /* Slightly less aggressive transforms on mobile for 'swipe-like' feel */
    .car-wrapper.left { transform: translate(-100%, -50%) scale(0.85) rotate(-4deg); }
    .car-wrapper.right { transform: translate(0%, -50%) scale(0.85) rotate(4deg); }
    
    .product-listing { padding: 4rem 1rem; }
    
    /* Stack layout logic is implicitly handled by CSS Grid minmax */
}
