/* CSS Variables (Custom Properties) */
:root {
    --primary-color: #6b7280;
    --primary-dark: #4b5563;
    --primary-light: #9ca3af;
    --secondary-color: #374151;
    --accent-color: #9ca3af;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #64748b;
    --background-primary: #ffffff;
    --background-secondary: #f8fafc;
    --background-card: #ffffff;
    --background-hover: #f3f4f6;
    --border-color: rgba(0, 0, 0, 0.06);
    --border-light: #f3f4f6;
    --gradient-primary: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    --gradient-secondary: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --shadow-light: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-large: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Scroll offset for fixed header */
#contact {
    scroll-margin-top: 50px;
}

/* Form enhancements for Netlify */
.contact-form {
    position: relative;
}

.form-field {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--background-primary);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Netlify form success/error states */
.form-success {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}

.form-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo img {
    height: 35px;
    width: auto;
    display: none; /* Hide by default */
    margin-right: 12px;
}

/* Show text as fallback when image is not available */
.nav-logo::after {
    content: 'Custom & Classics';
}

/* Show image when it loads successfully */
.nav-logo img[src]:not([src=""]) {
    display: block;
}

.nav-logo img[src]:not([src=""]) + * {
    display: none;
}

/* Hide title text on smaller screens */
@media (max-width: 1100px) {
    .nav-logo::after {
        display: none;
    }
    
    .nav-logo img {
        height: 32px;
    }
}

@media (max-width: 480px) {
    .nav-logo img {
        height: 28px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--text-primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-contact-btn {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.nav-contact-btn::after {
    display: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    background: var(--gradient-secondary);
    color: var(--text-primary);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: left;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-large);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.02);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    text-align: left;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
}

.hero-contact-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.hero-contact-section .btn {
    padding: 1.2rem 3.5rem;
}

.hero-phone {
    margin: 0;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    padding: 1rem 1.5rem;
    background: rgba(107, 114, 128, 0.1);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.phone-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.phone-link i {
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    background: var(--gradient-primary);
    color: white;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 1;
    letter-spacing: 0.01em;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: white;
}

/* Product card button styling */
.product-card .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    margin-top: 1.5rem;
    align-self: center;
}

/* Section Structure */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    background: var(--background-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-color);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: grayscale(0.2);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Inventory Section */
.inventory {
    background: var(--gradient-secondary);
}

.truck-grid,
.car-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Tablet responsive breakpoint */
@media (max-width: 1200px) {
    .truck-grid,
    .car-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Medium tablet responsive breakpoint */
@media (max-width: 900px) {
    .truck-grid,
    .car-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .product-card {
        min-height: 400px;
    }
    
    .product-image {
        height: 180px;
    }
}

.product-card {
    background: var(--background-card);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 450px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-secondary);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.product-card:hover .product-image::before {
    transform: translateX(100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.product-content p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
}

.product-stats {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex: 1;
    justify-content: center;
}

.stat i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.product-price {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.5rem 0 0 0;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

/* Modal System */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--background-card);
    margin: 1rem;
    padding: 2rem;
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-large);
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.close:hover {
    color: var(--text-primary);
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.modal-image-gallery {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 2rem;
    margin-bottom: 2rem;
}

.image-container {
    position: relative;
    width: 100%;
    height: 400px;
}

.modal-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
}

.loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--background-card);
    border-radius: 12px;
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-spinner p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.image-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 5;
}

.nav-arrow {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    opacity: 0;
    transform: scale(0.8);
}

.image-container:hover .nav-arrow {
    opacity: 1;
    transform: scale(1);
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.nav-arrow-left {
    margin-left: 1rem;
}

.nav-arrow-right {
    margin-right: 1rem;
}

.swipe-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.image-container:hover .swipe-hint {
    opacity: 1;
}

.swipe-hint i {
    font-size: 1rem;
    animation: pointLeft 2s ease-in-out infinite;
}

@keyframes pointLeft {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    align-content: start;
}

.thumbnail {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.modal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.detail-group {
    margin-bottom: 0.75rem;
}

.detail-group h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.detail-group p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Modal contact button styling */
.modal .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.modal div[style*="text-align: center"] {
    margin-top: 1rem !important;
}

/* Fullscreen Image Modal */
.fullscreen-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.fullscreen-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.fullscreen-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 3001;
}

/* Forms */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-field label {
    font-weight: 500;
    color: var(--text-primary);
}

.form-field input,
.form-field textarea,
.form-field select {
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--background-primary);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* Contact Section */
.contact {
    background: var(--background-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info i {
    color: var(--primary-color);
    width: 20px;
}

/* Contact Form Styles */
.contact-form-container {
    background: var(--background-card);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.contact-form-container h3 {
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-field {
    position: relative;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--background-primary);
    color: var(--text-primary);
    font-family: inherit;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Form submit button */
.form-submit-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

/* Form validation styles */
.form-field input:invalid:not(:focus):not(:placeholder-shown),
.form-field textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-field input:valid:not(:focus):not(:placeholder-shown),
.form-field textarea:valid:not(:focus):not(:placeholder-shown) {
    border-color: #10b981;
}

/* Required field indicator */
.form-field label:has(+ input[required])::after,
.form-field label:has(+ textarea[required])::after {
    content: ' *';
    color: #ef4444;
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--gradient-primary);
    color: #ffffff;
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.footer-section p {
    color: #b3b3b3;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #b3b3b3;
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
    font-weight: 400;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #8a8a8a;
    font-size: 0.9rem;
}

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 4000;
    animation: slideIn 0.3s ease;
}

.notification.success {
    background: #10b981;
}

.notification.error {
    background: #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow-medium);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        text-align: center;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .hero-contact-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .hero-phone {
        margin: 0;
    }
    
    .phone-link {
        font-size: 1.2rem;
        padding: 0.9rem 1.3rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 1.2rem 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .hero-contact-section .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 1.2rem 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .hero-phone .phone-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }
    
    .features-grid,
    .truck-grid,
    .car-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-card,
    .product-card {
        padding: 1.5rem 1rem;
    }
    
    .modal-content {
        max-width: 95vw;
        padding: 1.5rem;
    }
    
    .modal-image-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .image-container {
        height: 300px;
    }
    
    .modal-main-image {
        height: 300px;
    }
    
    .nav-arrow {
        opacity: 0.7;
        transform: scale(1);
    }
    
    .swipe-hint {
        opacity: 0.8;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .thumbnail {
        height: 60px;
    }
    
    .modal-details {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-form-container h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .form-field input,
    .form-field textarea,
    .form-field select {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
    
    .form-submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .product-stats {
        justify-content: center;
    }
}

@media (min-width: 769px) {
    .nav-menu {
        display: flex;
    }
    
    .hamburger {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }
    
    .nav-logo {
        font-size: 1.8rem;
    }
    
    .modal-content {
        margin: 0.5rem;
        padding: 1rem;
        max-height: 95vh;
        max-width: 98vw;
    }
    
    .image-container {
        height: 250px;
    }
    
    .modal-main-image {
        height: 250px;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .swipe-hint {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .thumbnail {
        height: 50px;
    }
    
    .truck-grid,
    .car-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-card {
        min-height: 350px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-card .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        margin-top: 1.25rem;
    }
    
    .product-stats {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        gap: 0.25rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .modal,
    .notification {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 24pt;
    }
    
    .hero-contact-section {
        gap: 1rem;
    }
    
    .phone-link {
        font-size: 1.1rem;
        padding: 0.8rem 1.2rem;
    }
    
    section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
}

/* View All Section Styles */
.view-all-section {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.view-all-section .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.view-all-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

/* Page Header Styles */
.page-header {
    background: var(--gradient-secondary);
    padding: 4rem 0;
    text-align: center;
    margin-top: 0; /* Remove space before hero section */
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Active Navigation Link */
.nav-menu li a.active {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
    .page-header {
        padding: 3rem 0;
        margin-top: 70px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .view-all-section .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}