/* ========================================
   EXMARKET - Modern Car Import Platform
   ======================================== */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f8fafc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-hover: linear-gradient(135deg, var(--primary-dark) 0%, #7c3aed 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    padding: 0.75rem 0;
}

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

.logo span {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#mainNav .navbar-nav .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

#mainNav .navbar-nav .nav-link:hover {
    color: #fff !important;
}

#mainNav.scrolled .navbar-nav .nav-link {
    color: var(--dark) !important;
}

#mainNav.scrolled .navbar-nav .nav-link:hover {
    color: var(--primary) !important;
}

#mainNav .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
    transform: translateX(-50%);
}

#mainNav .navbar-nav .nav-link:hover::after {
    width: 60%;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: var(--radius);
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border: 2px solid var(--primary);
    color: var(--primary);
    transition: var(--transition);
}

.btn-login:hover {
    background: var(--gradient);
    border-color: transparent;
    color: var(--white);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1920&h=1080&fit=crop') center/cover no-repeat;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.9) 0%,
        rgba(15, 23, 42, 0.7) 50%,
        rgba(99, 102, 241, 0.3) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease;
}

.hero-badge i {
    color: #fbbf24;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.text-gradient {
    background: linear-gradient(135deg, #818cf8 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* VIN Tracker */

.vin-tracker {
    max-width: 600px;
    margin: 0 auto 3rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.vin-input-wrapper {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 0.5rem;
    box-shadow: var(--shadow-xl);
    gap: 0.5rem;
}

.vin-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    color: var(--gray);
    font-size: 1.25rem;
}

.vin-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem;
    font-size: 1rem;
    outline: none;
}

.vin-input::placeholder {
    color: var(--gray-light);
}

.btn-track {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient);
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.875rem 1.5rem;
    color: var(--white);
    font-weight: 600;
    transition: var(--transition);
}

.btn-track:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
}

.vin-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.vin-example {
    color: rgba(255, 255, 255, 0.9);
    font-family: monospace;
}

/* Hero Stats */

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s both;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* Scroll Indicator */

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

/* ========================================
   Section Styles
   ======================================== */

section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
}

/* ========================================
   Features Section
   ======================================== */

.features {
    background: var(--light);
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.feature-text {
    color: var(--gray);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ========================================
   How It Works Section
   ======================================== */

.steps-wrapper {
    position: relative;
}

.steps-line {
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.2;
}

.step-card {
    text-align: center;
    position: relative;
    padding-top: 1rem;
}

.step-number {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto 1.5rem;
    transition: var(--transition);
}

.step-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.step-card:hover .step-icon {
    background: var(--gradient);
}

.step-card:hover .step-icon i {
    color: var(--white);
}

.step-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.step-text {
    color: var(--gray);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ========================================
   Popular Cars Section
   ======================================== */

.popular-cars {
    background: var(--light);
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: var(--radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border: 2px solid var(--primary);
    color: var(--primary);
    transition: var(--transition);
}

.btn-view-all:hover {
    background: var(--gradient);
    border-color: transparent;
    color: var(--white);
}

.car-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.car-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.car-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.car-card:hover .car-image img {
    transform: scale(1.05);
}

.car-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ef4444;
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.car-badge-new {
    background: #22c55e;
}

.car-content {
    padding: 1.5rem;
}

.car-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.car-specs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.car-specs span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--gray);
}

.car-specs i {
    color: var(--primary);
}

.car-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.price-old {
    font-size: 0.9375rem;
    color: var(--gray-light);
    text-decoration: line-through;
}

.price-new {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.car-content .btn-primary {
    background: var(--gradient);
    border: none;
    border-radius: var(--radius);
    padding: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
}

.car-content .btn-primary:hover {
    background: var(--gradient-hover);
}

/* ========================================
   Calculator Section
   ======================================== */

.calculator-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.calculator-info {
    background: var(--gradient);
    padding: 3rem;
    height: 100%;
    color: var(--white);
}

.calculator-info .section-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.calculator-info .section-title {
    color: var(--white);
}

.calculator-info .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.calculator-features {
    margin-top: 2rem;
}

.calc-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.calc-feature i {
    color: #22c55e;
}

.calculator-form {
    padding: 3rem;
}

.form-label {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-calculate {
    background: var(--gradient);
    border: none;
    border-radius: var(--radius);
    padding: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition);
}

.btn-calculate:hover {
    background: var(--gradient-hover);
}

.calculation-result {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--gray);
}

.result-row.result-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.result-value {
    font-weight: 600;
    color: var(--dark);
}

/* ========================================
   Testimonials Section
   ======================================== */

.testimonials {
    background: var(--light);
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: #fbbf24;
}

.testimonial-text {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    font-size: 0.875rem;
    color: var(--gray);
}

/* ========================================
   CTA Section
   ======================================== */

.cta {
    padding: 0;
}

.cta-wrapper {
    background: var(--gradient);
    border-radius: var(--radius-xl);
    padding: 4rem;
    color: var(--white);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius);
    padding: 1rem 2rem;
    font-weight: 600;
    transition: var(--transition);
}

.cta-buttons .btn-light {
    background: var(--white);
    color: var(--primary);
}

.cta-buttons .btn-light:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.cta-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.cta-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-brand .logo span {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
}

.footer-text {
    color: var(--gray-light);
    margin: 1.5rem 0;
    max-width: 300px;
}

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

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient);
    transform: translateY(-4px);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--gray-light);
}

.footer-contacts i {
    color: var(--primary);
    font-size: 1.125rem;
}

.footer-contacts a {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contacts a:hover {
    color: var(--white);
}

.footer-bottom {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--gray-light);
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

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

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 991.98px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-divider {
        display: none;
    }

    .steps-line {
        display: none;
    }

    .step-number {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin-bottom: 1rem;
    }

    .step-card {
        text-align: left;
    }

    .step-icon {
        margin: 0 0 1rem 0;
    }

    .calculator-info {
        padding: 2rem;
    }

    .calculator-form {
        padding: 2rem;
    }

    .cta-wrapper {
        padding: 2.5rem;
        text-align: center;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-buttons {
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 60px 0;
    }

    .vin-input-wrapper {
        flex-direction: column;
    }

    .vin-icon {
        display: none;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: var(--radius);
        width: 100%;
    }

    .scroll-indicator {
        display: none;
    }

    .cta-wrapper {
        padding: 2rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.btn-primary {
    background: var(--gradient);
    border: none;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
}
