/* ===========================
   CSS RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-dark: #0f172a;
    --primary-light: #ffffff;
    --accent-blue: #3b82f6;
    --accent-blue-dark: #2563eb;
    --secondary-gray: #64748b;
    --light-gray: #f1f5f9;
    --dark-overlay: rgba(15, 23, 42, 0.85);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-max-width: 1200px;

    /* Effects */
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--primary-dark);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-gray);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-dark);
}

.btn-large {
    padding: 16px 48px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.section-light {
    background: var(--primary-light);
    padding: var(--section-padding);
}

.section-dark {
    background: var(--primary-dark);
    color: white;
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* ===========================
   NAVIGATION
   =========================== */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

.nav.scrolled {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    padding: 15px 0;
}

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

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.logo-highlight {
    color: var(--accent-blue);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-blue);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: var(--transition);
}

/* ===========================
   HERO SLIDER SECTION
   =========================== */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: var(--primary-dark);
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 6s ease-out;
    transform: scale(1.05);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
}

/* Add Ken Burns effect to active slide */
.slide.active {
    animation: kenBurns 8s ease-out forwards;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: white;
    padding: 0 20px;
    margin-top: -60px;
    /* Offset for stats */
}

/* Animations for content */
.hero-title,
.hero-subtitle,
.hero-cta,
.hero-badge {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.slide.active .hero-badge {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.slide.active .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.slide.active .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.slide.active .hero-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

/* Badge & Typography reused from previous styles but ensure checks */
.hero-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    pointer-events: none;
    /* Let clicks pass through to content */
}

.slider-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    backdrop-filter: blur(5px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.slider-dots {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    pointer-events: auto;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent-blue);
    transform: scale(1.2);
}

/* Stats Overlay - Pinned to bottom */
.hero-stats-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    padding-bottom: 80px;
    /* Space for scroll indicator */
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 10;
}

@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 mouseScroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.about-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.about-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-dark);
}

.about-card p {
    color: var(--secondary-gray);
    line-height: 1.8;
}

/* ===========================
   SERVICES SECTION
   =========================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 12px;
    transition: var(--transition);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-features {
    list-style: none;
    padding-left: 0;
}

.service-features li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: '✓ ';
    color: var(--accent-blue);
    font-weight: bold;
    margin-right: 8px;
}

/* ===========================
   FLEET SECTION
   =========================== */
.fleet-showcase {
    display: grid;
    gap: 40px;
}

.fleet-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.fleet-item:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.fleet-item:nth-child(even) {
    direction: rtl;
}

.fleet-item:nth-child(even) .fleet-info {
    direction: ltr;
}

.fleet-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.fleet-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 0%, rgba(15, 23, 42, 0.1) 100%);
}

.fleet-image.peterbilt {
    background-color: #c96f6f;
    background-image: url('images/peterbilt_bg.png');
    background-blend-mode: multiply;
}

.fleet-image.freightliner {
    background-color: #6b8dbf;
    background-image: url('images/freightliner_bg.png');
    background-blend-mode: multiply;
}

.fleet-image.volvo {
    background-color: #7f8c8d;
    background-image: url('images/volvo_bg.png');
    background-blend-mode: multiply;
}

.fleet-info {
    padding: 40px;
}

.fleet-info h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--primary-dark);
}

.fleet-info p {
    font-size: 1.125rem;
    color: var(--secondary-gray);
    line-height: 1.8;
}

/* ===========================
   TRUST SECTION
   =========================== */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    transition: var(--transition);
}

.badge-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    border-color: var(--accent-blue);
}

.badge-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.badge-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.contact-description {
    font-size: 1.125rem;
    color: var(--secondary-gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: start;
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: var(--accent-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--secondary-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.contact-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--accent-blue-dark);
}

.contact-text {
    font-size: 1.125rem;
    color: var(--primary-dark);
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ===========================
   LANGUAGE SWITCHER
   =========================== */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
}

.lang-btn:hover {
    color: white;
}

.lang-btn.active {
    color: var(--accent-blue);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.3);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 991px) {
    .nav-container {
        padding: 0 20px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--primary-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        padding: 20px 0;
        z-index: 999;
    }

    .logo {
        margin-right: auto;
        /* Push logo to left */
    }

    .lang-switch {
        margin-left: auto;
        /* Push lang switch to right of logo but before hamburger */
        margin-right: 15px;
    }

    .hamburger {
        display: block;
        margin-left: 0;
    }

    .btn-primary {
        display: none;
        /* Hide Quote button on mobile to save space */
    }
}

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--primary-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 40px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .fleet-item {
        grid-template-columns: 1fr;
    }

    .fleet-item:nth-child(even) {
        direction: ltr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .btn-large {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }
}