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

/* ===================================
   MODERN DESIGN SYSTEM
   Vibrant, premium aesthetics
   =================================== */

:root {
    /* Modern Color Palette - Dark Theme with Vibrant Accents */
    --color-dark-primary: #0a0e27;
    --color-dark-secondary: #1a1d3a;
    --color-dark-tertiary: #2a2d4a;

    /* Gradient Colors */
    --gradient-primary-start: #6366f1;
    --gradient-primary-end: #3b82f6;
    --gradient-secondary-start: #8b5cf6;
    --gradient-secondary-end: #6366f1;
    --gradient-accent-start: #06b6d4;
    --gradient-accent-end: #3b82f6;
    --gradient-warm-start: #f59e0b;
    --gradient-warm-end: #ef4444;

    /* Text Colors */
    --color-text-primary: #f8fafc;
    --color-text-secondary: #cbd5e1;
    --color-text-muted: #94a3b8;

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.3);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   BASE STYLES
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--color-dark-primary);
    color: var(--color-text-primary);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Focus Management for Accessibility */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--gradient-primary-start);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ===================================
   UTILITY CLASSES
   =================================== */

/* Gradients */
.gradient-primary {
    background: linear-gradient(135deg, var(--gradient-primary-start), var(--gradient-primary-end));
}

.gradient-secondary {
    background: linear-gradient(135deg, var(--gradient-secondary-start), var(--gradient-secondary-end));
}

.gradient-accent {
    background: linear-gradient(135deg, var(--gradient-accent-start), var(--gradient-accent-end));
}

.gradient-warm {
    background: linear-gradient(135deg, var(--gradient-warm-start), var(--gradient-warm-end));
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-primary-start), var(--gradient-accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass {
    background: rgba(10, 14, 39, 0.85);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

@supports (backdrop-filter: blur(0)) {
    .glass {
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

@supports (backdrop-filter: blur(0)) {
    .glass-card {
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .glass-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.08);
    }
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    transform: translateY(-8px);
}

@supports (backdrop-filter: blur(0)) {
    .glass-card:hover {
        background: rgba(255, 255, 255, 0.05);
    }
}

@media (prefers-reduced-motion: reduce) {
    .glass-card:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.1);
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.float {
    animation: float 3s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(10, 14, 39, 0.85) 0%, rgba(26, 29, 58, 0.85) 50%, rgba(42, 45, 74, 0.85) 100%),
        url('/static/assets/images/hero-background.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Enable parallax only on desktop with no reduced motion preference */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
    .hero-section {
        background-attachment: fixed;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* ===================================
   BUTTONS & CTAs
   =================================== */

.btn-primary {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--gradient-primary-start), var(--gradient-primary-end));
    color: white;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-primary:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.5);
    outline-offset: 4px;
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-outline {
    padding: 16px 32px;
    background: transparent;
    color: var(--color-text-primary);
    font-weight: 600;
    border-radius: 12px;
    border: 2px solid rgba(99, 102, 241, 0.5);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--gradient-primary-start);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.btn-outline:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.5);
    outline-offset: 4px;
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--gradient-primary-start);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   STATS & COUNTERS
   =================================== */

.stats-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    transition: all var(--transition-base);
}

.stats-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 32px rgba(99, 102, 241, 0.2);
}

.stats-number {
    background: linear-gradient(135deg, var(--gradient-primary-start), var(--gradient-accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
    font-weight: 800;
}

/* ===================================
   SERVICE CARDS
   =================================== */

.service-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-primary-start), var(--gradient-accent-end));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(99, 102, 241, 0.25);
}

.service-card:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.6);
    outline-offset: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(99, 102, 241, 0.25);
}

.service-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gradient-primary-start), var(--gradient-primary-end));
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    margin-bottom: 24px;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5);
}

/* ===================================
   FLEET CARDS
   =================================== */

.fleet-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: all var(--transition-base);
}

.fleet-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.fleet-card:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.6);
    outline-offset: 4px;
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.fleet-card img {
    transition: transform var(--transition-slow);
}

.fleet-card:hover img {
    transform: scale(1.1);
}

/* ===================================
   MARQUEE & CLIENT LOGOS
   =================================== */

.marquee-container {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    width: 100%;
}

.marquee {
    display: flex;
    width: fit-content;
    animation: marquee 60s linear infinite;
    will-change: transform;
}

.marquee:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logo-item {
    width: 150px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    margin: 0 8px;
    transition: all var(--transition-base);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.logo-item:focus-visible,
.marquee a:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.6);
    outline-offset: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 24px rgba(99, 102, 241, 0.2);
}

.logo-img {
    width: 70px;
    height: 35px;
    object-fit: contain;
    margin-bottom: 8px;
    transition: transform var(--transition-base);
}

.logo-item:hover .logo-img {
    transform: scale(1.05);
}

.company-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-primary);
    text-align: center;
    line-height: 1.2;
    margin-bottom: 4px;
}

.company-location {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-align: center;
}

/* ===================================
   FORM STYLES
   =================================== */

input,
textarea,
select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 20px;
    color: var(--color-text-primary);
    transition: all var(--transition-base);
    font-family: 'Inter', sans-serif;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gradient-primary-start);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), var(--shadow-md);
}

input::placeholder,
textarea::placeholder {
    color: var(--color-text-muted);
}

/* ===================================
   SCROLLBAR
   =================================== */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-dark-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--gradient-primary-start), var(--gradient-primary-end));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--gradient-secondary-start), var(--gradient-secondary-end));
}

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

@media (max-width: 768px) {
    .stats-number {
        font-size: 2rem;
    }

    .service-card,
    .fleet-card {
        padding: 24px;
    }

    .btn-primary,
    .btn-outline {
        padding: 12px 24px;
        font-size: 14px;
    }
}