:root {
    --bg-dark: #0a0a0f;
    --bg-darker: #000000;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-hover: #0891b2;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --speed-bar-bg: rgba(255, 255, 255, 0.08);
    --speed-bar-fill: linear-gradient(90deg, #06b6d4, #8b5cf6);
}

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

html {
    scroll-behavior: smooth;
}

html.smooth-scroll {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

body.loading {
    overflow: hidden;
}

/* Sci-Fi Door Opening Animation */
.door-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    pointer-events: none;
}

.door {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(135deg, #000000 0%, #0a0a0f 50%, #000000 100%);
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: inset 0 0 100px rgba(6, 182, 212, 0.1);
}

.door::before {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(6, 182, 212, 0.03) 25%, 
        rgba(139, 92, 246, 0.03) 50%, 
        rgba(6, 182, 212, 0.03) 75%, 
        transparent 100%);
    animation: doorShimmer 2s ease-in-out infinite;
}

.door-left {
    top: 0;
    border-bottom: 2px solid var(--accent-cyan);
    box-shadow: 
        inset 0 -10px 30px rgba(6, 182, 212, 0.2),
        0 10px 50px rgba(6, 182, 212, 0.3);
}

.door-right {
    bottom: 0;
    border-top: 2px solid var(--accent-cyan);
    box-shadow: 
        inset 0 10px 30px rgba(6, 182, 212, 0.2),
        0 -10px 50px rgba(6, 182, 212, 0.3);
}

.door-line {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(to right, 
        transparent,
        var(--accent-cyan),
        var(--accent-purple),
        var(--accent-cyan),
        transparent
    );
    box-shadow: 0 0 20px var(--accent-cyan);
    animation: doorLineGrow 1s ease-out forwards;
}

.thunder-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    font-size: 5rem;
    color: var(--accent-cyan);
    animation: thunderPulse 1s ease-in-out infinite, thunderFadeOut 0.5s ease 1.5s forwards;
    filter: drop-shadow(0 0 30px var(--accent-cyan)) drop-shadow(0 0 60px var(--accent-purple));
}

.door-overlay.opening .door-left {
    transform: translateY(-100%);
}

.door-overlay.opening .door-right {
    transform: translateY(100%);
}

.door-overlay.opening .door-line {
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes doorShimmer {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes doorLineGrow {
    0% {
        width: 0;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 1;
    }
}

@keyframes thunderPulse {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes thunderFadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

h1, h2, h3, h4, .logo {
    font-family: 'Orbitron', sans-serif;
}

/* Utilities */
.accent {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-accent {
    color: var(--accent-cyan);
}

.cyber-text {
    color: var(--accent-cyan);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-main);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('supercar_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    will-change: transform;
    transform: translateZ(0);
    animation: subtleZoom 30s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
}

.glitch-wrapper {
    overflow: hidden;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-main);
    position: relative;
    display: inline-block;
    padding-left: 2rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 3px;
    display: block;
    color: var(--text-muted);
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-25px);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--accent-cyan);
    color: var(--bg-darker);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-cyan);
    font-size: 0.85rem;
}

.btn:hover {
    background: transparent;
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
}

/* About Section */
.about {
    padding: 6rem 5%;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    position: relative;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Models Section */
.models {
    padding: 6rem 5%;
    background-color: var(--bg-darker);
    position: relative;
}

.electric-fleet {
    background: var(--bg-dark);
}

.hypercars-section {
    background: var(--bg-darker);
}

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

.models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.model-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    aspect-ratio: 1 / 1;
}

.model-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
}

.model-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    padding: 0.3rem 0.8rem;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 10;
    text-transform: uppercase;
    border: 1px solid var(--glass-border);
}

.model-image {
    height: 45%;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.car-logo {
    position: relative;
    z-index: 2;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.15);
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 
        0 0 20px rgba(0, 0, 0, 0.8),
        2px 2px 0 rgba(0, 0, 0, 0.5);
    letter-spacing: -2px;
    user-select: none;
    pointer-events: none;
}

.model-info {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.model-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.model-subtitle {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.spec-coming-soon {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.spec-status {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.spec-promise {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.5;
    font-weight: 300;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.spec-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-main);
}

/* Speed Meter */
.speed-meter {
    margin-top: auto;
    padding-top: 1rem;
}

.speed-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.speed-label span:first-child {
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    font-weight: 500;
}

.speed-value {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-cyan);
}

.speed-bar {
    width: 100%;
    height: 6px;
    background: var(--speed-bar-bg);
    border: none;
    position: relative;
    overflow: hidden;
}

.speed-fill {
    height: 100%;
    background: var(--speed-bar-fill);
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    position: relative;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.model-card.is-visible .speed-fill {
    width: var(--speed-width);
}

.feature-list {
    list-style: none;
    margin: 1rem 0 0.5rem 0;
    flex: 1;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.feature-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-size: 1rem;
}

.link-btn {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: auto;
    padding-top: 0.5rem;
    position: relative;
}

.link-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

.link-btn:hover {
    color: var(--accent-hover);
    transform: translateX(3px);
}

.link-btn:hover::after {
    width: 100%;
}

/* Footer */
footer {
    background: var(--bg-darker);
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--text-main);
}

footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations */
@keyframes subtleZoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes gridScroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(50px);
    }
}

@keyframes scrollDown {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

.delay-3 {
    animation-delay: 0.9s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation Classes */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    visibility: hidden;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .models-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .about-container {
        padding: 0 1rem;
    }
    
    .models-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .model-card {
        aspect-ratio: auto;
    }
    
    .model-image {
        height: 250px;
    }
    
    .hero h1 {
        font-size: 3rem;
        padding-left: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        transform: translateY(-20px);
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        padding-left: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        transform: translateY(-15px);
    }
}
