:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #4338ca;
    --accent: #f59e0b;
    --text: #1e293b;
    --text-light: #64748b;
    --background: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

/* Font Awesome icons we actually use */
.fa-map-marker-alt::before { content: "\f3c5"; }
.fa-road::before { content: "\f018"; }
.fa-clock::before { content: "\f017"; }
.fa-phone::before { content: "\f095"; }
.fa-envelope::before { content: "\f0e0"; }
.fa-map-marker-alt::before { content: "\f3c5"; }
.fa-plus-circle::before { content: "\f055"; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.sticky-header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 100;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.burger-menu span {
    width: 2rem;
    height: 0.25rem;
    background: var(--primary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--primary);
}

.nav-button {
    display: none;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
    max-width: 150px;
    object-fit: contain;
}

.header-content h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--primary);
}

/* Hero */
.hero {
    padding: 4rem 0;
    color: var(--text);
    margin-top: 2rem;
    position: relative;
}

.hero-title-container {
    display: flex;
    align-items: center;
}

.image-container {
    position: relative;
    width: 100%;
}

.image-container::before {
    content: "";
    display: block;
    padding-top: 75%; /* 4:3 aspect ratio */
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-logo-container {
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-logo {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--text);
    margin: 0 auto 2rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.hero-price {
    color: var(--primary);
    font-weight: 700;
}

.hero-features-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
}

.hero-features li {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.hero-logo-container {
    margin-bottom: 3rem;
}

.hero-logo {
    max-width: 700px;
    height: auto;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    color: var(--text);
}

.hero-features i {
    color: var(--primary);
    font-size: 1.8rem;
}

.hero-features strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.hero-right i {
    color: var(--primary);
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        max-height: 300px;
        object-fit: cover;
    }
}


.hero-content {
    animation: fadeIn 1s ease-out, slideUp 0.8s ease-out;
    animation-fill-mode: both;
    animation-delay: 0.3s;
    transform: translateZ(0);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Sections */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary);
}

/* Van Section */
.van-section {
    padding: 6rem 0;
    animation: fadeIn 1s ease-out;
}

.van-detail {
    animation: slideUp 0.8s ease-out;
    animation-fill-mode: both;
    animation-delay: 0.2s;
}

.van-detail {
    display: block;
    margin-top: 3rem;
}

.specs {
    margin-left: calc(50% + 2rem);
    padding: 1rem;
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 50%;
    margin-right: 2rem;
    float: left;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    max-width: 100%;
}

.thumbnails {
    display: flex;
    gap: 1rem;
}

.thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    max-height: 140px;
    overflow: hidden;
}

.thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnails img:hover,
.thumbnails img:active {
    border-radius: 8px;
    border-color: var(--primary);
}

.thumbnails img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.main-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    max-width: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    border-radius: var(--radius);
    background-color: var(--background);
    aspect-ratio: 4/3;
}

/* Critical CSS for above-the-fold content */
.sticky-header,
.hero {
    will-change: transform;
}

/* Optimize font loading */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiA.woff2) format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@keyframes fadeInImage {
    from { opacity: 0.5; transform: scale(0.95); border-radius: var(--radius); }
    to { opacity: 1; transform: scale(1); border-radius: var(--radius); }
}

.image-change {
    animation: fadeInImage 0.3s ease-out;
}

.specs h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.year {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.detailed-specs {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.detailed-specs h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.detailed-specs ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.detailed-specs li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.detailed-specs strong {
    color: var(--primary-dark);
}

.spec-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.spec-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.spec-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.features-column ul {
    list-style: none;
    padding: 0;
}

.features-column li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.features-column li::before {
    content: "✓";
    color: var(--primary);
    position: absolute;
    left: 0;
}

.capacity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.person-icon {
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.person-icon:hover {
    transform: scale(1.2);
}

.price-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.km-limit {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: var(--radius);
}

.km-limit p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.km-limit i {
    width: 20px;
    text-align: center;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

/* Benefits */
.benefits-section {
    background-color: #f9fafb;
    padding: 6rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .van-detail {
        display: grid;
        grid-template-columns: 1fr;
    }
    
    .gallery {
        max-width: 100%;
        float: none;
        margin-right: 0;
    }
    
    .specs {
        margin-left: 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
    animation-fill-mode: both;
}

.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary);
    transition: height 0.3s ease;
}

.benefit-card:hover::before {
    height: 100%;
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Contact */
.contact-section {
    padding: 6rem 0;
    animation: fadeIn 1s ease-out;
}

.contact-content {
    animation: slideUp 0.8s ease-out;
    animation-fill-mode: both;
    animation-delay: 0.2s;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.map-container {
    margin-top: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
}

.contact-info i {
    color: var(--primary);
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Buttons */
.cta-button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.cta-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Scroll and Cursor Effects */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(79, 70, 229, 0.3);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: multiply;
    transition: transform 0.2s, width 0.2s, height 0.2s;
}

.custom-cursor.active {
    width: 40px;
    height: 40px;
    background-color: rgba(79, 70, 229, 0.2);
}

.custom-cursor.clicking {
    transform: translate(-50%, -50%) scale(0.8);
    background-color: rgba(79, 70, 229, 0.4);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--primary);
    z-index: 9998;
    transition: width 0.1s;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.scroll-animate.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* FAQ Section */
.faq-section {
    background-color: #f9fafb;
    padding: 6rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 1.8rem;
    text-align: left;
    background: white;
    border: none;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-question:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.faq-question::after {
    content: '+';
    font-size: 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background: white;
}

.faq-answer p {
    padding: 0 3rem 2.5rem;
    margin: 0;
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1.8;
}

.faq-answer.show {
    max-height: 1000px;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-color: var(--text);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 5;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav a {
        padding: 1rem 0;
        font-size: 1.2rem;
    }

    .nav-button {
        display: block;
        margin-top: 2rem;
        width: 100%;
    }

    .van-detail,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: row;
        gap: 1rem;
        padding: 1rem;
    }

    .hero {
        padding: 1rem 0 2rem;
        margin-top: 0;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
        white-space: normal;
    }

    .hero-features li {
        font-size: 1.2rem;
    }

    .specs-grid {
        grid-template-columns: 1fr 1fr;
    }

    .detailed-specs ul {
        grid-template-columns: 1fr;
    }

    .thumbnails {
        justify-content: center;
    }

    .reenio-modal-content {
        width: 98vw;
        height: 98vh;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .reenio-modal-content {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }
}

/* Reenio Modal */
.reenio-modal-content {
    position: relative;
    width: 95vw;
    max-width: 800px;
    height: auto;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--border);
}

.reenio-modal-content::-webkit-scrollbar {
    width: 8px;
}

.reenio-modal-content::-webkit-scrollbar-track {
    background: var(--border);
}

.reenio-modal-content::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 4px;
}

#reenio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
