/* ==========================================
   HYPERCAR HOMEPAGE STYLES
   Futuristic, High-Performance Aesthetic
   ========================================== */

:root {
    /* Color Palette - High-performance inspired */
    --primary: #00FF9D;
    --primary-dim: #00CC7D;
    --secondary: #FFD700;
    --accent: #FF0066;
    --bg-dark: #0A0A0A;
    --bg-darker: #050505;
    --surface: #151515;
    --surface-light: #1F1F1F;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-display: 'Syncopate', sans-serif;
    --font-title: 'Teko', sans-serif;
    --font-body: 'Barlow', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-darker);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px var(--primary));
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ==========================================
   ANIMATED BACKGROUND
   ========================================== */

.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 157, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 157, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.speed-lines {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--primary) 50%,
            transparent 100%);
    opacity: 0;
    animation: speedLinesPulse 3s ease-in-out infinite;
}

@keyframes speedLinesPulse {

    0%,
    100% {
        opacity: 0;
        transform: translateX(-100%);
    }

    50% {
        opacity: 0.3;
        transform: translateX(100%);
    }
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -200px;
    left: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: 50%;
    right: 10%;
    animation-delay: -10s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.badge-text {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--primary);
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.title-line {
    display: block;
    opacity: 0;
    animation: revealLine 0.8s ease-out forwards;
}

.title-line[data-reveal="1"] {
    animation-delay: 0.2s;
}

.title-line[data-reveal="2"] {
    animation-delay: 0.4s;
}

.title-line[data-reveal="3"] {
    animation-delay: 0.6s;
}

@keyframes revealLine {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.title-highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.5;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 1s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-large {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.3);
}

.btn-primary-large::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-dim);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-primary-large:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary-large:hover {
    box-shadow: 0 0 50px rgba(0, 255, 157, 0.5);
    transform: translateY(-2px);
}

.btn-text,
.btn-icon {
    position: relative;
    z-index: 1;
}

.btn-secondary-large {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary-large:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ==========================================
   STATS BAR
   ========================================== */

.stats-bar {
    display: flex;
    gap: 3rem;
    padding: 2rem;
    background: rgba(21, 21, 21, 0.5);
    border: 1px solid var(--border);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out 1.2s backwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    background: var(--border);
}

/* ==========================================
   VEHICLE SHOWCASE
   ========================================== */

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.vehicle-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.vehicle-card {
    position: relative;
    padding: 2rem 2.5rem;
    background: rgba(21, 21, 21, 0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    cursor: pointer;
    animation: slideInRight 0.8s ease-out backwards;
}

.vehicle-card[data-vehicle="1"] {
    animation-delay: 0.4s;
    border-left: 3px solid #FFD700;
}

.vehicle-card[data-vehicle="2"] {
    animation-delay: 0.6s;
    border-left: 3px solid #0066FF;
}

.vehicle-card[data-vehicle="3"] {
    animation-delay: 0.8s;
    border-left: 3px solid #FF0066;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.vehicle-card:hover {
    transform: translateX(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 255, 157, 0.2);
}

.vehicle-name {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.vehicle-stat {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--primary);
}

.vehicle-glow {
    position: absolute;
    top: 50%;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.vehicle-card:hover .vehicle-glow {
    opacity: 0.3;
}

/* ==========================================
   FEATURES SECTION
   ========================================== */

.features {
    position: relative;
    padding: 8rem 2rem;
    background: var(--bg-dark);
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.4s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 255, 157, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px var(--primary));
}

.feature-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==========================================
   CTA SECTION
   ========================================== */

.cta-section {
    position: relative;
    padding: 8rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.05), rgba(255, 215, 0, 0.05));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    z-index: 1;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* ==========================================
   FOOTER
   ========================================== */

.main-footer {
    position: relative;
    padding: 4rem 2rem 2rem;
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.footer-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .stats-bar {
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
    }

    .vehicle-cards {
        margin-top: 3rem;
    }

    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .nav-container {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.65rem;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .stats-bar {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-divider {
        display: none;
    }

    .features,
    .cta-section {
        padding: 4rem 1.5rem;
    }
}

/* ==========================================
   NEW FEATURES SECTION - CENTERED & POLISHED
   ========================================== */

.new-features-section {
    padding: 100px 2rem;
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.03), rgba(0, 204, 255, 0.03));
    position: relative;
    overflow: hidden;
}

.new-features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 255, 157, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 204, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.new-features-section .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 1;
}

.new-features-section .section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), #00CCFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.new-features-section .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.new-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.new-feature-card {
    padding: 40px 30px;
    background: rgba(15, 15, 15, 0.8);
    border: 2px solid rgba(0, 255, 157, 0.2);
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.new-feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 157, 0.5);
    box-shadow: 0 15px 50px rgba(0, 255, 157, 0.2);
}

.new-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), #00CCFF);
    color: var(--bg-dark);
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
}

.new-feature-card h3 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.new-feature-card p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .new-features-section {
        padding: 60px 1.5rem;
    }

    .new-features-section .section-title {
        font-size: 2rem;
    }

    .new-features-section .section-subtitle {
        font-size: 1rem;
    }

    .new-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .new-feature-card {
        padding: 30px 24px;
    }

    .new-feature-card h3 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .new-feature-card p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .new-features-section .section-title {
        font-size: 1.6rem;
        letter-spacing: 0.05em;
    }

    .new-feature-card {
        padding: 24px 20px;
    }

    .new-badge {
        top: 16px;
        right: 16px;
        padding: 6px 12px;
        font-size: 10px;
    }
}