/* Redesign.css - Premium Modern Logistics Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --primary: #38bdf8;
    --primary-hover: #0ea5e9;
    --accent: #f59e0b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --glow: 0 0 20px rgba(56, 189, 248, 0.3);
}

body#home {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* Global Overrides */
a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
    color: var(--primary);
}

/* Utilities */
.text-primary {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 20%),
        var(--bg-dark);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeDown 0.8s ease-out;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeUp 0.8s ease-out 0.2s backwards;
}

/* Hero Background Video */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    /* Dark overlay to ensure text readability */
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    animation: fadeUp 0.8s ease-out 0.4s backwards;
}

/* Modern Tracking Card */
.tracking-card-container {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    margin-bottom: 80px;
    perspective: 1000px;
    animation: fadeUp 1s ease-out 0.6s backwards;
}

.tracking-card {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg), var(--glow);
    max-width: 800px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.tracking-card:hover {
    transform: translateY(-5px);
}

.track-form-group {
    display: flex;
    gap: 16px;
    position: relative;
}

.track-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

.track-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

.track-btn {
    background: linear-gradient(135deg, var(--primary), #0284c7);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0 40px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(56, 189, 248, 0.3);
}

.track-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(56, 189, 248, 0.4);
}

/* Features Grid */
.features-section {
    padding: 100px 0;
    background: #0b1120;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    height: 100%;
    transition: all 0.4s ease;
}

.feature-card:hover {
    background: rgba(56, 189, 248, 0.05);
    border-color: var(--primary);
    transform: translateY(-10px);
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(56, 189, 248, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    font-size: 24px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.feature-desc {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Steps Section */
.steps-section {
    padding: 120px 0;
    background: var(--bg-dark);
}

.step-item {
    text-align: center;
    position: relative;
    padding: 20px;
}

.step-number {
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.step-content {
    position: relative;
    z-index: 1;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Testimonials */
.testimonials-section {
    padding: 100px 0;
    background: #0b1120;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 40px;
    margin: 15px;
    border: 1px solid var(--border-color);
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

/* Animations */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .track-form-group {
        flex-direction: column;
    }

    .track-btn {
        width: 100%;
        padding: 16px;
    }
}

/* Services Section */
.service-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    height: 100%;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    margin-top: 24px;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)),
        url('/static/assets/img/block/delivery.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: relative;
    overflow: hidden;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary), #0284c7);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(2, 132, 199, 0.3);
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.15) 1px, transparent 0);
    background-size: 20px 20px;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-btn {
    background: #fff;
    color: #0284c7;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    margin-top: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    color: #0ea5e9;
}