@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;700;900&display=swap');

:root {
    --primary: #E63946;
    --primary-dark: #C1121F;
    --dark: #0A0A0A;
    --surface: #161616;
    --surface-light: #222222;
    --text: #F8F9FA;
    --text-muted: #ADB5BD;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--dark);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

.text-primary { color: var(--primary); }
.bg-primary { background-color: var(--primary); }
.bg-surface { background-color: var(--surface); }

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(230, 57, 70, 0.3);
    transform: translateY(-5px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.logo span {
    color: var(--primary);
}

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

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

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

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    display: inline-block;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(230, 57, 70, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--white);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.hero-slider {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1.2;
}

.hero-tag {
    background: rgba(230, 57, 70, 0.1);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2rem;
    display: inline-block;
}

.hero h1 {
    font-size: 5.5rem;
    line-height: 0.9;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
    height: 100%;
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 50px rgba(230, 57, 70, 0.2));
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 800px; /* Make it large but controlled */
    object-fit: contain;
}

/* Features Bento */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 1.5rem;
}

.bento-item {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.bento-item:nth-child(1) { grid-column: 1 / 3; }
.bento-item:nth-child(2) { grid-column: 3 / 4; }
.bento-item:nth-child(3) { grid-column: 1 / 2; }
.bento-item:nth-child(4) { grid-column: 2 / 4; }

.bento-item h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.bento-item p {
    color: var(--text-muted);
}

.bento-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

/* Testimonial Slider */
.testimonial-slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.testimonial-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: grab;
    user-select: none;
}

.testimonial-track:active {
    cursor: grabbing;
}

.testimonial-card {
    width: 450px;
    flex-shrink: 0;
    padding: 2.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    opacity: 1 !important; /* Ensure they are visible */
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.slider-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .testimonial-card {
        width: 300px;
    }
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.product-img {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.product-img img {
    max-height: 100%;
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.product-card:hover .product-img img {
    transform: scale(1.1) rotate(5deg);
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.car-name {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 1.2rem;
    line-height: 1.4;
}



.product-meta {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    border-radius: 12px;
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


/* Footer */
footer {
    background: var(--surface);
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info p {
    margin: 1.5rem 0;
    color: var(--text-muted);
}

.footer-links h4 {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    color: var(--text-muted);
}

.footer-links ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

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

/* Animations Reveal - JS controlled */
.reveal {
    will-change: transform, opacity;
}

/* FAQ Styles */
.faq-p {
    display: none;
    padding-top: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Nav Toggle Button Styles */
.nav-toggle {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    background: transparent;
    border: none;
}

.nav-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--white);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.nav-toggle span:nth-child(1) { top: 0px; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

.nav-toggle.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.nav-toggle.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 4rem; }
    .hero-image { width: 50%; right: -2%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

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

    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .logo {
        font-size: 1.2rem;
        gap: 0.3rem;
    }

    .nav-container {
        gap: 0.5rem;
    }

    .btn-outline {
        padding: 0.6rem 1.2rem;
        font-size: 0.75rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: var(--transition);
        z-index: 1000;
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

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

    .hero h1 { font-size: 2.8rem; }
    .hero-image { display: none; }
    .hero-content { text-align: center; margin: 0 auto; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-item:nth-child(n) { grid-column: auto; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 380px) {
    .logo {
        font-size: 1.1rem;
    }
    
    .btn-outline {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(230, 57, 70, 0.4);
}

@media (max-width: 768px) {
    .scroll-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}
