:root {
    --neon: #ff6b00;
    /* Safety Orange */
    --dark-accent: #0f0f0f;
    --light-bg: #ffffff;
    --soft-gray: #f8f8f8;
    --border: rgba(0, 0, 0, 0.08);
    --text-main: #0f0f0f;
    --text-muted: #666666;
    --nav-bg: rgba(255, 255, 255, 0.05);
    --video-overlay: linear-gradient(to right, rgba(255, 255, 255, 0.95) 40%, rgba(255, 255, 255, 0.7) 100%);
}

/* Dark Mode Override */
[data-theme='dark'] {
    --light-bg: #0a0a0a;
    --soft-gray: #141414;
    --dark-accent: #ffffff;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(0, 0, 0, 0.2);
    --video-overlay: linear-gradient(to right, rgba(10, 10, 10, 0.95) 40%, rgba(10, 10, 10, 0.7) 100%);
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    background-color: var(--light-bg);
    color: var(--text-main);
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
.brand-font,
.unbounded {
    font-family: 'Unbounded', sans-serif;
    letter-spacing: -0.04em;
}

.glass-nav {
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

/* Theme Toggle UI */
.theme-switch {
    width: 44px;
    height: 22px;
    background: var(--soft-gray);
    border: 1px solid var(--border);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
    transition: all 0.3s ease;
}

.theme-switch-dot {
    width: 16px;
    height: 16px;
    background: var(--text-main);
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme='dark'] .theme-switch-dot {
    transform: translateX(22px);
    background: var(--neon);
}

.service-card {
    position: relative;
    height: 450px;
    background: #000;
    overflow: hidden;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(0.5);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.service-card:hover .service-card-bg {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(0.6);
}

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.service-card-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
}

.integration-feature {
    border-bottom: 1px solid var(--border);
    transition: all 0.4s ease;
}

.integration-feature:hover {
    background: var(--soft-gray);
    padding-left: 1rem;
    border-bottom-color: var(--text-main);
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 4rem;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    gap: 4rem;
    min-width: 100%;
    animation: scroll 30s linear infinite;
}

/* Light mode: greyscale, dim — color on hover (handled by Tailwind grayscale/hover:grayscale-0) */
.marquee-content img {
    filter: grayscale(100%) opacity(0.5);
    transition: filter 0.3s ease;
}
.marquee-content img:hover {
    filter: grayscale(0%) opacity(1);
}

/* Dark mode: greyscale + invert so logos are light-grey on dark background */
[data-theme='dark'] .marquee-content img {
    filter: grayscale(100%) invert(1) brightness(1.4) opacity(0.5);
}
[data-theme='dark'] .marquee-content img:hover {
    filter: grayscale(0%) invert(0) opacity(1);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% - 4rem));
    }
}

.btn-dark {
    background-color: var(--text-main);
    color: var(--light-bg);
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background-color: var(--neon);
    color: #000;
}

.form-input {
    background: var(--soft-gray);
    border: 1px solid var(--border);
    color: var(--text-main);
    transition: all 0.3s ease;
    font-size: 16px;
}

.form-input:focus {
    outline: none;
    border-color: var(--text-main);
}

.hidden-view {
    display: none;
}

.reveal {
    animation: fadeIn 0.8s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.line-accent {
    height: 2px;
    background: var(--neon);
    width: 0;
    transition: width 0.6s ease;
}

.reveal .line-accent {
    width: 60px;
}

#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(100%);
}

#mobile-menu.active {
    transform: translateX(0);
}

.hero-title {
    font-size: clamp(2.8rem, 7.5vw, 7rem);
    line-height: 0.85;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.video-container video {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: var(--video-overlay);
    z-index: 1;
    transition: background 0.5s ease;
}

.footer-link {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.75rem;
}

.footer-link:hover {
    color: var(--text-main);
    padding-left: 4px;
}

.social-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-main);
}

.social-circle:hover {
    background: var(--text-main);
    color: var(--neon);
    border-color: var(--text-main);
    transform: translateY(-3px);
}

/* Menu Font Class */
.menu-font {
    font-family: 'Unbounded', sans-serif;
}

/* XPORT Specific Cards */
.logistics-card {
    border: 1px solid var(--border);
    background: var(--light-bg);
    padding: 2.5rem;
    transition: all 0.4s ease;
}

.logistics-card:hover {
    background: var(--soft-gray);
    border-color: var(--text-main);
}

.stat-item {
    border-left: 1px solid var(--border);
    padding-left: 1.5rem;
}

.stat-item:hover {
    border-left-color: var(--neon);
}

/* Language Switcher */
.lang-switch-btn {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.lang-switch-btn.active {
    color: var(--neon);
}

.lang-switch-btn:hover {
    color: var(--text-main);
}

/* Colorful Images Overrides */
.full-color {
    filter: none !important;
}

.hover-color {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.hover-color:hover {
    filter: grayscale(0%);
}

/* Flow Chart Styles */
.flow-step {
    position: relative;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--light-bg);
    transition: all 0.3s ease;
}

.flow-step:hover {
    border-color: var(--neon);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.1);
}

.flow-connector {
    display: none;
}

@media (min-width: 768px) {
    .flow-connector {
        display: block;
        position: absolute;
        top: 50%;
        right: -1rem;
        width: 2rem;
        height: 2px;
        background: var(--border);
        z-index: 0;
    }
}

/* Stats Counter Section */
.stat-counter {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-counter .stat-number {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.stat-counter:hover .stat-number {
    color: var(--neon);
}

.stat-counter .stat-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* Testimonial Card */
.testimonial-card {
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-family: 'Unbounded', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    color: var(--neon);
    opacity: 0.15;
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    line-height: 1;
}

.testimonial-card:hover {
    border-color: var(--neon);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

[data-theme='dark'] .testimonial-card:hover {
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.05);
}

/* CTA Banner */
.cta-banner {
    background: var(--text-main);
    color: var(--light-bg);
    border-radius: 1.5rem;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: var(--neon);
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(80px);
}

.cta-banner .btn-cta {
    display: inline-block;
    background: var(--neon);
    color: #000;
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1.25rem 3rem;
    transition: all 0.3s ease;
}

.cta-banner .btn-cta:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.3);
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 2.5rem;
    border-left: 2px solid var(--border);
}

.timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--neon);
    border: 2px solid var(--light-bg);
}

.timeline-item .timeline-year {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neon);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Value Card */
.value-card {
    background: var(--soft-gray);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s ease;
}

.value-card:hover {
    border-color: var(--neon);
    background: var(--light-bg);
}

/* Accessibility - Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--neon);
    outline-offset: 2px;
}

/* Skip to Content */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--neon);
    color: #000;
    padding: 0.75rem 1.5rem;
    z-index: 999;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* =====================
   RESPONSIVE OVERRIDES
   ===================== */

/* Extra-small phones (<= 390px) */
@media (max-width: 390px) {
    .hero-title {
        font-size: clamp(2.4rem, 13vw, 3.8rem);
        line-height: 0.9;
    }
    .cta-banner {
        padding: 2.5rem 1.25rem;
    }
}

/* Mobile (< 640px) */
@media (max-width: 639px) {
    /* Navigation */
    .glass-nav .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Hero — BIGGER title on mobile */
    .hero-title {
        font-size: clamp(2.8rem, 13vw, 5rem);
        line-height: 0.9;
        word-break: break-word;
    }

    /* Hero section top padding so title isn't hidden by fixed nav */
    section.hero-section,
    main > section:first-child {
        padding-top: 6rem;
    }

    /* Section spacing */
    section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Cards & Logistics */
    .logistics-card {
        padding: 1.5rem;
    }

    .value-card {
        padding: 1.5rem;
    }

    .stat-counter {
        padding: 1.25rem 0.5rem;
    }

    /* CTA Banner */
    .cta-banner {
        padding: 3rem 1.5rem;
        border-radius: 1rem;
    }

    /* Service card height */
    .service-card {
        height: 320px;
    }

    /* Footer */
    footer .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Marquee gap tighter on mobile */
    .marquee,
    .marquee-content {
        gap: 2.5rem;
    }

    /* About/Company hero title */
    h1.hero-title, .text-5xl, .md\:text-8xl {
        word-break: break-word;
    }
}

/* Tablet (640px – 1023px) — BIG title fills the screen */
@media (min-width: 640px) and (max-width: 1023px) {
    .hero-title {
        font-size: clamp(3.5rem, 10vw, 7rem);
        line-height: 0.87;
    }

    .cta-banner {
        padding: 3.5rem 2rem;
    }

    .service-card {
        height: 380px;
    }
}

/* Prevent horizontal overflow site-wide */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Images & videos never overflow */
img, video {
    max-width: 100%;
}

/* Services page image */
.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
