/* ===================================
   FleetStreet Landing Page - Main CSS
   =================================== */

/* === Root Variables === */
:root {
    --fleet-blue-900: #0A1F3D;
    --fleet-blue-600: #1E4D8C;
    --fleet-blue-400: #3B7DD6;
    --fleet-cyan-500: #00C2D9;
    --fleet-cyan-300: #4FE5F5;
    --fleet-gray-50: #F8FAFC;
    --fleet-gray-100: #F1F5F9;
    --fleet-gray-600: #475569;
    --fleet-gray-900: #0F172A;
    --fleet-green: #10B981;
    --fleet-orange: #F59E0B;
    --fleet-red: #EF4444;
    --fleet-purple: #8B5CF6;
}

/* === Global Resets === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Navigation Scrolled State === */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#navbar.scrolled .nav-link {
    color: var(--fleet-gray-900);
}

#navbar.scrolled #logo-img {
    /* Logo color change on scroll if needed */
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--fleet-blue-400);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--fleet-blue-600);
}

/* === Gradient Text === */
.gradient-text {
    background: linear-gradient(135deg, var(--fleet-blue-600) 0%, var(--fleet-cyan-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === CTA Button Hover Effects === */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(59, 125, 214, 0.3), 0 10px 10px -5px rgba(59, 125, 214, 0.2);
}

/* === Glassmorphism Effect === */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-white {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* === Card Hover Effects === */
.feature-card {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, var(--fleet-blue-400), var(--fleet-cyan-500));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 194, 217, 0.2), 0 10px 10px -5px rgba(59, 125, 214, 0.1);
}

/* === Perspective Transform === */
.perspective-1000 {
    perspective: 1000px;
}

.rotate-y-5 {
    transform: rotateY(5deg);
}

/* === Video Modal Styles === */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 31, 61, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

.video-modal video {
    width: 100%;
    height: auto;
    display: block;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: var(--fleet-red);
    transform: rotate(90deg);
}

.video-modal-close svg {
    width: 24px;
    height: 24px;
}

/* === Pricing Cards === */
.pricing-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pricing-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--fleet-blue-600), var(--fleet-cyan-500));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pricing-card:hover::after {
    transform: scaleX(1);
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--fleet-blue-400);
}

.pricing-card.featured::after {
    transform: scaleX(1);
}

/* === Testimonial Cards === */
.testimonial-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* === Stats Counter === */
.stat-number {
    font-family: 'Space Grotesk', monospace;
    font-weight: 700;
    background: linear-gradient(135deg, var(--fleet-blue-600) 0%, var(--fleet-cyan-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Floating Animation === */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

/* === Marquee Animation === */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* === Fade In Animation === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* === Slide Up Animation === */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Particles Background === */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* === Language Dropdown === */
.language-dropdown {
    position: relative;
}

#lang-dropdown {
    z-index: 1000;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Form Styles === */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--fleet-blue-400);
    box-shadow: 0 0 0 3px rgba(59, 125, 214, 0.1);
}

/* === Feature Tabs === */
.feature-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid var(--fleet-gray-100);
    overflow-x: auto;
    scrollbar-width: thin;
}

.feature-tab {
    padding: 1rem 2rem;
    font-weight: 600;
    color: var(--fleet-gray-600);
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.feature-tab:hover {
    color: var(--fleet-blue-600);
}

.feature-tab.active {
    color: var(--fleet-blue-600);
    border-bottom-color: var(--fleet-blue-600);
}

.feature-content {
    display: none;
}

.feature-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* === ROI Calculator === */
.calculator-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--fleet-gray-100);
    outline: none;
}

.calculator-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fleet-blue-600), var(--fleet-cyan-500));
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.calculator-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fleet-blue-600), var(--fleet-cyan-500));
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* === Responsive Utilities === */
@media (max-width: 768px) {
    .feature-tabs {
        flex-wrap: wrap;
    }
    
    .feature-tab {
        flex: 1 0 auto;
        min-width: 120px;
        text-align: center;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* === Loading Spinner === */
.spinner {
    border: 3px solid var(--fleet-gray-100);
    border-top: 3px solid var(--fleet-blue-600);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* === Tooltip === */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: var(--fleet-gray-900);
    color: white;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-bottom: 0.5rem;
}

.tooltip:hover::before {
    opacity: 1;
}

/* === Badge Styles === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-blue {
    background: var(--fleet-blue-400);
    color: white;
}

.badge-green {
    background: var(--fleet-green);
    color: white;
}

.badge-orange {
    background: var(--fleet-orange);
    color: white;
}

.badge-purple {
    background: var(--fleet-purple);
    color: white;
}

/* === Print Styles === */
@media print {
    nav, footer, .cta-button, .video-modal {
        display: none !important;
    }
}

/* === Accessibility === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--fleet-blue-400);
    outline-offset: 2px;
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

