:root {
    --bg-deep: #030508;
    --bg-card: #0a0f18;
    --neon-blue: #00f0ff;
    --neon-purple: #7000ff;
    --accent-glow: rgba(0, 240, 255, 0.4);
    --text-main: #f0f4f8;
    --text-muted: #8b9bb4;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Background Particles Container */
#particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: var(--neon-blue);
    border-radius: 50%;
    animation: floatParticle linear infinite;
    opacity: 0.5;
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Glassmorphism Navigation */
header#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(3, 5, 8, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    z-index: 1000;
}

.logo-container {
    position: relative;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #fff, var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

#sound-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

#sound-toggle:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Shimmer Buttons */
.shimmer-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.shimmer-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(30deg) translateX(-100%);
    transition: transform 0.7s ease-in-out;
}

.shimmer-btn:hover::after {
    transform: rotate(30deg) translateX(100%);
}

.shimmer-btn:hover {
    box-shadow: 0 0 30px var(--neon-blue);
    transform: translateY(-2px);
}

.outline-btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-main);
    background: transparent;
    padding: 12px 28px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
}

.outline-btn:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.05);
}

/* Hero Section */
.parallax-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
    z-index: 2;
}

.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(112, 0, 255, 0.15), transparent 60%);
    z-index: -2;
}

.city-skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    background: linear-gradient(transparent, rgba(3, 5, 8, 0.9));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 3;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    font-size: 12px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.glitch-text {
    font-family: 'Orbitron', sans-serif;
    font-size.clamp: 3rem;
    font-size: 56px;
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.hero-content p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Moving Cars Layer */
.hero-cars-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2;
}

.moving-car {
    position: absolute;
    font-size: 40px;
    color: var(--neon-blue);
    filter: drop-shadow(0 0 10px var(--neon-blue));
    animation: driveCar linear infinite;
}

.moving-car.car-1 {
    bottom: 120px;
    animation-duration: 6s;
    font-size: 60px;
}

.moving-car.car-2 {
    bottom: 80px;
    animation-duration: 9s;
    animation-delay: 3s;
    opacity: 0.7;
}

@keyframes driveCar {
    0% { transform: translateX(-150vw); }
    100% { transform: translateX(150vw); }
}

/* Highway Road Animation */
.highway-road {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #05080f;
    border-top: 2px solid var(--neon-blue);
    box-shadow: 0 -10px 30px rgba(0, 240, 255, 0.3);
    overflow: hidden;
    z-index: 3;
}

.road-stripes {
    position: absolute;
    top: 50%;
    left: 0;
    width: 200%;
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--neon-blue) 0, var(--neon-blue) 50px, transparent 50px, transparent 100px);
    animation: moveRoad 1s linear infinite;
}

@keyframes moveRoad {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100px); }
}

/* Statistics Section */
.stats-section {
    padding: 80px 10%;
    background: var(--bg-deep);
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 20px;
    border-radius: 8px;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.15);
    transform: translateY(-5px);
}

.stat-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.stat-card p {
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 1px;
}

/* Models Section & 3D Tilt Cards */
.models-section {
    padding: 100px 10%;
    background: linear-gradient(to bottom, var(--bg-deep), var(--bg-card));
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
}

.car-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.car-card {
    background: rgba(10, 15, 24, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.1s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.car-card:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.2);
}

.card-image-wrapper {
    height: 200px;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.1), #030508);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.supercar-icon {
    font-size: 70px;
    color: var(--neon-blue);
    filter: drop-shadow(0 0 15px var(--neon-blue));
    transition: transform 0.4s ease;
}

.car-card:hover .supercar-icon {
    transform: scale(1.1) translateZ(30px);
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    margin-bottom: 8px;
}

.price {
    display: block;
    color: var(--neon-blue);
    font-weight: 600;
    margin-bottom: 20px;
}

.specs-mini {
    list-style: none;
    margin-bottom: 25px;
}

.specs-mini li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: var(--text-muted);
}

.specs-mini li span {
    color: #fff;
    font-weight: 600;
}

/* Performance Section */
.performance-section {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(3,5,8,0.8), rgba(3,5,8,0.8)), url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    z-index: 2;
}

.performance-content {
    max-width: 700px;
    padding: 0 20px;
}

.performance-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    margin-bottom: 20px;
}

.performance-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Speedometer Graphic Loader */
.speedometer-loader {
    width: 120px;
    height: 120px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--neon-blue);
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    animation: spinSpeedo 3s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speed-readout {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    color: var(--neon-blue);
}

@keyframes spinSpeedo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Technology Section */
.tech-section {
    padding: 100px 10%;
    background: var(--bg-deep);
    z-index: 2;
    position: relative;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tech-box {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 8px;
    transition: var(--transition);
}

.tech-box:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 0 25px rgba(112, 0, 255, 0.2);
    transform: translateY(-5px);
}

.tech-box i {
    font-size: 36px;
    color: var(--neon-blue);
    margin-bottom: 20px;
}

.tech-box h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    margin-bottom: 12px;
}

.tech-box p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Scroll Reveal Initial States */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    padding: 60px 10%;
    background: #010204;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    z-index: 2;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

footer p {
    color: var(--text-muted);
    font-size: 13px;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: var(--text-muted);
    font-size: 18px;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}