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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #0ea5e9;
    --accent: #f43f5e;
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Glassmorphism */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl);
}

.glass-card-dark {
    background: var(--glass-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 0;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0.8) 100%);
    z-index: -1;
}

.hero-content {
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mobile Enhancements */
@media (max-width: 768px) {
    /* Touch-friendly buttons */
    .btn {
        min-height: 48px;
        padding: 12px 24px;
        font-size: 16px; /* Prevent zoom on iOS */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .btn-lg {
        min-height: 52px;
        padding: 14px 28px;
        font-size: 18px;
    }

    /* Mobile hero section */
    .hero-section {
        min-height: auto;
        padding: 120px 0 100px;
        background-image: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #2563eb 100%);
        background-size: cover;
        background-position: center;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-video {
        display: none; /* Disable video on mobile for performance */
    }

    .video-overlay {
        background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #2563eb 100%);
    }

    /* Mobile spacing */
    .py-6 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    /* Glass card mobile adjustments */
    .glass-card {
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* Mobile testimonial cards */
    .testimonial-card {
        margin: 15px 0;
        padding: 30px 20px;
    }

    /* Mobile FAQ items */
    .faq-item {
        margin-bottom: 8px;
    }

    .faq-question {
        padding: 16px;
        font-size: 16px;
    }

    /* Mobile coverage cards */
    .coverage-card {
        padding: 12px;
        margin-bottom: 8px;
    }

    /* Mobile service cards */
    .card {
        margin-bottom: 16px;
    }
}

/* Buttons */
.btn-premium {
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    filter: brightness(1.1);
}

/* Cards & Animations */
.hover-3d {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-3d:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* Ticker */
.ticker-wrapper {
    overflow: hidden;
    white-space: nowrap;
    padding: 20px 0;
    background: white;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.ticker-content {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Steps */
.step-item {
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.1);
}

/* Section Header */
.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-tag {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Testimonials */
.testimonial-card {
    padding: 40px;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-lg);
    margin: 20px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.15) !important;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
    color: white;
    overflow: hidden;
}

.cta-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

/* Coverage Map */
.map-container {
    position: relative;
    background: #f1f5f9;
    border-radius: 30px;
    padding: 40px;
    text-align: center;
}

.city-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.city-marker:hover {
    transform: scale(1.5);
    background: var(--accent);
}

.city-label {
    position: absolute;
    background: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.city-marker:hover .city-label {
    opacity: 1;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.1s ease;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 1000;
    transition: top 0.3s ease;
}

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

/* Animated Gradient Background */
.animated-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 30%, #2563eb 70%, #7c3aed 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

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

/* Mobile Sticky CTA */
.mobile-cta {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* FAQ Accordion */
.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: white;
}

.faq-question {
    background: white;
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 20px 20px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Pulse animation for CTA buttons */
.pulse-primary {
    animation: pulse-primary 2s infinite;
}

@keyframes pulse-primary {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    .animated-gradient {
        animation: none;
        background: #1e3a5f !important;
    }
}

/* Small mobile screens */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .hero-stats > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 8px;
    }

    .btn-group-vertical .btn {
        margin-bottom: 0;
    }

    /* Mobile coverage grid */
    .coverage-card {
        margin-bottom: 12px;
    }

    /* Mobile testimonial carousel */
    .testimonial-carousel {
        padding: 0 15px;
    }

    .testimonial-slider {
        overflow: hidden;
    }

    .testimonial-slide {
        flex-shrink: 0;
    }

    .carousel-indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #e2e8f0;
        border: none;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .carousel-indicator.active {
        background: var(--primary);
    }

    /* Mobile testimonial single column */
    .row.g-4 > .col-md-6 {
        margin-bottom: 2rem;
    }

    /* Mobile package types */
    .col-6 {
        margin-bottom: 16px;
    }

    /* Mobile shipping methods */
    .col-md-6 {
        margin-bottom: 2rem;
    }
}

/* Mobile CTA enhancements */
.mobile-cta {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px;
    min-height: 90px; /* Ensure consistent height */
}

.mobile-cta .btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Add padding for mobile CTA */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 90px; /* Account for mobile CTA height */
    }

    main {
        padding-bottom: 0; /* Override default padding */
    }
}

/* Touch feedback */
@media (hover: none) and (pointer: coarse) {
    .btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .hover-lift:active {
        transform: translateY(2px);
    }

    .hover-3d:active {
        transform: translateY(2px) scale(0.98);
    }
}

/* Mobile performance optimizations */
@media (max-width: 768px) {
    /* Reduce animation complexity on mobile */
    .animate-on-scroll {
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .floating-card {
        animation-duration: 8s; /* Slower animation */
    }

    /* Disable heavy effects on low-end mobile */
    @media (max-width: 480px) {
        .glass-card {
            backdrop-filter: none;
            background: rgba(255, 255, 255, 0.95);
        }

        .hero-bg-shapes {
            display: none; /* Hide decorative shapes on small screens */
        }
    }
}

/* Mobile accessibility */
@media (max-width: 768px) {
    .skip-link {
        top: -50px;
        font-size: 14px;
        padding: 12px 16px;
    }

    .skip-link:focus {
        top: 10px;
        left: 10px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #0f172a;
        --text-main: #f1f5f9;
        --glass: rgba(30, 41, 59, 0.8);
    }
}