/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* Modern, minimalist styling with a light background */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Header Section */
.header {
    text-align: center;
    padding: 60px 20px 40px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.title {
    font-family: 'Outfit', 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 10px;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 50%, #e74c3c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.truck-info {
    margin-bottom: 25px;
}

.truck-model {
    font-size: 1.4rem;
    color: #7f8c8d;
    font-weight: 500;
    font-style: italic;
}

.price-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #e74c3c;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-link {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9, #3498db);
}

/* Photo Viewer Section */
.photo-viewer-section {
    padding: 0 20px 60px;
    display: flex;
    justify-content: center;
}

.photo-viewer {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1000px;
    width: 100%;
}

.image-container {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    /* Set a consistent aspect ratio container */
    aspect-ratio: 4/3;
    max-height: 600px;
}

.truck-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 15px;
    object-fit: contain;
    transition: opacity 0.4s ease;
    cursor: pointer;
}

.image-counter {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-btn {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.nav-btn:active {
    transform: translateY(0);
}

/* Description Section */
.description-section {
    background: white;
    padding: 80px 20px;
    margin: 60px 0;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
}

.description-block, .features-block, .accessories-block, .closing-block {
    margin-bottom: 60px;
}

.description-block h2, .features-block h2, .accessories-block h2, .closing-block h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
}

.description-text, .closing-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.description-text:last-child, .closing-text:last-child {
    margin-bottom: 0;
}

.features-list {
    list-style: none;
    max-width: 770px;
    margin: 0 auto;
}

.features-list li {
    background: #f8f9fa;
    margin: 15px 0;
    padding: 20px 25px;
    border-radius: 15px;
    border-left: 5px solid #3498db;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.features-list li:hover {
    transform: translateX(10px);
    background: #e3f2fd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.features-list li::before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Feature/Accessory sub-items */
.feature-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

.feature-description {
    font-size: 0.95rem;
    color: #7f8c8d;
    font-style: italic;
    line-height: 1.4;
    margin-left: 0;
    padding-left: 0;
}

/* Accessories List Styling */
.accessories-list {
    list-style: none;
    max-width: 770px;
    margin: 0 auto;
}

.accessories-list li {
    background: #fff3e0;
    margin: 15px 0;
    padding: 20px 25px;
    border-radius: 15px;
    border-left: 5px solid #ff9800;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.accessories-list li:hover {
    transform: translateX(10px);
    background: #ffe0b2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.accessories-list li::before {
    content: "🔧";
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Accessory sub-items inherit the feature styling */
.accessory-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

.accessory-description {
    font-size: 0.95rem;
    color: #bf6900;
    font-style: italic;
    line-height: 1.4;
    margin-left: 0;
    padding-left: 0;
}

/* Final Contact Section */
.final-contact-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.final-contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.final-price {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    color: #f39c12;
}

.contact-info {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.final-contact-btn {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 20px 50px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.final-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6);
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    z-index: 1001;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Contact Popup Speech Bubble */
.contact-popup {
    position: absolute;
    background: #2c3e50;
    color: white;
    padding: 20px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    font-size: 1rem;
    line-height: 1.4;
    max-width: 300px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.contact-popup.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.contact-popup::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #2c3e50;
}

.contact-popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.contact-popup-close:hover {
    opacity: 1;
}

/* Mobile navigation controls - hidden on desktop */
.mobile-nav-controls {
    display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .photo-viewer {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .image-container {
        width: 100%;
    }
    
    .mobile-nav-controls {
        display: flex;
        gap: 30px;
        justify-content: center;
    }
    
    .nav-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    /* Hide the original positioned buttons on mobile */
    .prev-btn, .next-btn {
        display: none;
    }
    
    .price-contact {
        flex-direction: column;
        gap: 20px;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .final-price {
        font-size: 3rem;
    }
    
    .description-text, .closing-text {
        text-align: left;
    }
    
    .features-list li:hover {
        transform: none;
    }
    
    .accessories-list li:hover {
        transform: none;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-counter {
        bottom: 20px;
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .truck-model {
        font-size: 1.1rem;
        text-align: center;
        padding: 0 20px;
    }
    
    .contact-popup {
        max-width: 280px;
        font-size: 0.9rem;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 40px 20px 30px;
    }
    
    .image-container {
        padding: 15px;
    }
    
    .truck-image {
        max-height: 400px;
    }
    
    .image-counter {
        bottom: 20px;
        right: 20px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .description-section {
        padding: 60px 20px;
    }
    
    .description-block, .features-block, .accessories-block, .closing-block {
        margin-bottom: 40px;
    }
}