/* =========================================
   Trivara Logistics - Premium Design System
   ========================================= */

:root {
    /* Brand Colors */
    --brand-primary: #262629;
    /* Vibrant Blue */
    --brand-secondary: #262629;
    /* Darker Blue */
    --brand-accent: #ff6b00;
    /* Orange Accent */
    --brand-dark: #262629;
    /* deep charcoal */
    --brand-light: #f8f9fa;
    /* Off-white */

    /* Text Colors */
    --text-main: #2c3e50;
    --text-muted: #6c757d;
    --text-light: #ffffff;

    /* Backgrounds */
    --bg-body: #f4f7fc;
    --bg-footer: #262629;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --glass-blur: blur(12px);

    /* Spacing & Layout */
    --navbar-height: 80px;
    --section-spacing: 100px;

    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s ease;
}

/* =========================================
   Base Styles & Typography
   ========================================= */

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-main);
    background: linear-gradient(180deg, #f4f7fc 0%, #eef2f7 100%);
    overflow-x: hidden;
    width: 100%;
    line-height: 1.6;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--brand-dark);
}

a {
    text-decoration: none;
    transition: var(--transition-fast);
}

/* =========================================
   Components
   ========================================= */

/* Buttons */
.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px #ff6b00;
    transition: var(--transition-medium);
}

.btn-primary:hover {
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px #ff6b00;
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-medium);
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-primary);
}

/* Form Inputs */
.form-control {
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
    border-color: var(--brand-primary);
    background: #fff;
}

/* =========================================
   Header & Navbar
   ========================================= */

.navbar {
    padding: 1.2rem 0;
    transition: var(--transition-medium);
    background: #262629;
    /* Initial Dark State */
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.85);
    /* Light Glass on scroll */
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
    height: 45px;
    transition: var(--transition-fast);
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0 10px;
    position: relative;
}

.navbar.scrolled .nav-link {
    color: var(--brand-dark) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--brand-accent);
    transition: var(--transition-medium);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-brand-nav {
    background: var(--brand-accent);
    color: white !important;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    border: none;
}

.btn-brand-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.5);
    background: #e65100;
}

/* =========================================
   Hero Section
   ========================================= */

.hero-section {
    position: relative;
    padding: 180px 0 100px;
    background: radial-gradient(circle at 10% 20%, rgb(242, 246, 252) 0%, rgb(235, 240, 255) 90%);
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

/* Background Shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: rgba(13, 110, 253, 0.15);
    animation: floatShape 10s ease-in-out infinite alternate;
}

.shape-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 107, 0, 0.1);
    animation: floatShape 12s ease-in-out infinite alternate-reverse;
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Hero Image/Animation Area */
.hero-visual {
    position: relative;
    z-index: 2;
}

.truck-container {
    padding: 20px;
    position: relative;
    perspective: 1000px;
}

.truck-image {
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    animation: truckFloat 6s ease-in-out infinite;
}

@keyframes truckFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.floating-card {
    position: absolute;
    background: white;
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 5;
    animation: floatCard 4s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    left: 0%;
    animation-delay: 1.5s;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.icon-box-sm {
    width: 40px;
    height: 40px;
    background: var(--brand-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
}

/* =========================================
   Tracking Section
   ========================================= */

.tracking-wrapper {
    margin-top: 0;
    position: relative;
    z-index: 10;
    padding-bottom: 50px;
}

.tracking-widget {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tracking-input-group {
    flex: 1;
    display: flex;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 8px 8px 8px 25px;
    border: 1px solid #e9ecef;
    transition: var(--transition-fast);
}

.tracking-input-group:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    background: #fff;
}

.tracking-input-group input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 1.1rem;
    outline: none;
    color: var(--text-main);
}

.btn-track {
    border-radius: 40px;
    padding: 12px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* =========================================
   Features Section
   ========================================= */

.section-features {
    padding: var(--section-spacing) 0;
    background: #fff;
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: rgba(13, 110, 253, 0.1);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-medium);
}

.glass-card:hover .feature-icon-wrapper {
    background: var(--brand-primary);
    color: white;
    transform: rotateY(180deg);
}


/* =========================================
   Process Section
   ========================================= */

.section-process {
    padding: var(--section-spacing) 0;
    background: linear-gradient(to bottom, #f8f9fa, #fff);
}

.process-step-item {
    text-align: center;
    position: relative;
    padding: 20px;
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    line-height: 1;
}

.step-icon {
    position: relative;
    z-index: 1;
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--brand-primary);
    margin: 0 auto 20px;
    border: 2px solid transparent;
    transition: var(--transition-medium);
}

.process-step-item:hover .step-icon {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
    transform: scale(1.1);
}

/* =========================================
   Footer
   ========================================= */

.footer-section {
    background-color: var(--bg-footer);
    color: #aeaeae;
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer-logo {
    /* filter: brightness(10); */
    /* Make logo white */
    margin-bottom: 20px;
}

.footer-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aeaeae;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--brand-accent);
    padding-left: 5px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    margin-right: 10px;
    transition: var(--transition-medium);
}

.footer-social-link:hover {
    background: var(--brand-primary);
    transform: translateY(-3px);
    color: #fff;
}

/* =========================================
   Responsive Adjustments
   ========================================= */

@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .nav-link {
        color: var(--brand-dark) !important;
        margin: 10px 0;
        font-weight: 700;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-section {
        padding: 120px 0 60px;
        text-align: center;
    }

    .hero-visual {
        margin-top: 50px;
    }

    .tracking-wrapper {
        margin-top: 0;
        padding-bottom: 50px;
    }
}

/* =========================================
   Inner Page Styles
   ========================================= */

.hero-mini {
    padding: 180px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero-mini::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-mini h1 {
    font-size: 3.5rem;
    color: var(--brand-dark);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.text-xs {
    font-size: 0.75rem;
}

.ls-2 {
    letter-spacing: 2px;
}

.bg-primary-subtle {
    background-color: #ffffff !important;
}

.border-top-primary {
    border-top: 4px solid var(--brand-primary) !important;
}

.border-top-success {
    border-top: 4px solid #ff6b00 !important;
}

/* =========================================
   Aggregator Animations (New)
   ========================================= */

/* 1. Orbit Animation */
.orbit-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit-center {
    width: 100px;
    height: 100px;
    background: #262629;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 50px #ff6b00;
    z-index: 10;
    position: relative;
    overflow: hidden;
}

.orbit-center img {
    max-width: 80%;
    max-height: 80%;
}

.orbit-ring {
    position: absolute;
    border: 1px dashed #ff6b00;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 300px;
    height: 300px;
    animation: spinRight 20s linear infinite;
}

.ring-2 {
    width: 450px;
    height: 450px;
    animation: spinLeft 30s linear infinite;
}

.orbit-item {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--brand-primary);
    transition: transform 0.3s ease;
}

.orbit-item:hover {
    transform: scale(1.2) rotate(0deg) !important;
    z-index: 20;
}

/* Positioning items on rings */
.item-1 {
    top: 0;
    left: 50%;
    margin-top: -30px;
    margin-left: -30px;
}

.item-2 {
    bottom: 0;
    left: 50%;
    margin-bottom: -30px;
    margin-left: -30px;
}

.item-3 {
    top: 50%;
    left: 0;
    margin-top: -30px;
    margin-left: -30px;
}

.item-4 {
    top: 50%;
    right: 0;
    margin-top: -30px;
    margin-right: -30px;
}

@keyframes spinRight {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spinLeft {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

/* 2. Infinite Marquee */
.marquee-wrapper {
    overflow: hidden;
    background: #fafafa;
    padding: 30px 0;
    position: relative;
    border-bottom: 1px solid #eee;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.profile-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 30px;
    margin: 0 20px;
    border-radius: 50px;
    min-width: 120px;
    height: 60px;
    /* Removed background/border to make it cleaner */
}

.profile-card img {
    height: 35px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.profile-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 3. Typing Effect Cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-start infinite;
    color: var(--brand-accent);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* 4. Stat Counter Card */
.stats-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}