/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background-color: #ffffff;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 8px 0;
    font-size: 14px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background-color: #1a1a1a !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.nav-link {
    font-weight: 500;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #ffc107 !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: #ffc107 !important;
    border-bottom: 2px solid #ffc107;
}

/* Logo Styles - Optimized Size */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}

.logo-img {
    height: 35px !important;
    width: auto;
    max-width: 80px;
    border-radius: 6px;
    object-fit: contain;
    background-color: white;
    padding: 3px;
}

.brand-text {
    line-height: 1.2;
}

.brand-name {
    font-size: 1rem;
    display: block;
    color: white;
}

.tagline {
    font-size: 8px;
    color: #ffc107;
    margin-top: 2px;
    white-space: nowrap;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background-color: #0a0a0a;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.pexels.com/photos/9875865/pexels-photo-9875865.jpeg?auto=compress&cs=tinysrgb&w=1600');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.stat-box {
    border-left: 3px solid #ffc107;
    padding-left: 15px;
}

/* ============================================
   HERO IMAGE STYLES
   ============================================ */
.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

.truck-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
}

.truck-badge .badge {
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* ============================================
   IMAGE HANDLING
   ============================================ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.tracking-demo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

img[src=""] {
    opacity: 0;
}

img.loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: #ffc107;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-card img {
    margin-top: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.02);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,193,7,0.125);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    font-size: 35px;
    color: #ffc107;
}

.service-card h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* ============================================
   FLEET CARDS
   ============================================ */
.fleet-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.fleet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.fleet-card img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.fleet-card:hover img {
    transform: scale(1.05);
}

/* ============================================
   FEATURE LIST
   ============================================ */
.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,193,7,0.125);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
}

/* ============================================
   COVERAGE SECTION
   ============================================ */
.route-tabs .nav-link {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.route-tabs .nav-link.active {
    background-color: #ffc107;
    color: #000;
    font-weight: 600;
}

.route-tabs .nav-link:not(.active):hover {
    background-color: rgba(255,193,7,0.125);
    transform: translateY(-2px);
}

.coverage-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.coverage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.coverage-header {
    border-bottom: 3px solid #ffc107;
}

.route-list li {
    margin-bottom: 10px;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
    transition: all 0.3s ease;
}

.route-list li:hover {
    padding-left: 5px;
    color: #ffc107;
}

.route-list li:last-child {
    border-bottom: none;
}

.corridor-item {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.corridor-item:hover {
    background: #fff3cd;
    transform: translateX(5px);
}

.progress {
    height: 5px;
    border-radius: 10px;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stat-item {
    padding: 20px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background-color: #ffc107;
    color: #1a1a1a;
}

.btn-outline-white {
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: #1a1a1a;
    color: #ffc107;
    border-color: #1a1a1a;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-warning {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,193,7,0.3);
}

.btn-warning:active::after {
    width: 300px;
    height: 300px;
}

/* ============================================
   FORMS
   ============================================ */
.form-control:focus, 
.form-select:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255,193,7,0.25);
}

.is-valid {
    border-color: #28a745 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2rem !important;
}

.is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2rem !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* ============================================
   MODAL
   ============================================ */
.modal.fade .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.fade.show .modal-dialog {
    transform: scale(1);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    z-index: 9999;
}

.toast {
    min-width: 300px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.toast.show {
    display: block;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #ffc107;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #1a1a1a;
    color: #ffc107;
    transform: translateY(-3px);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background-color: #0a0a0a !important;
}

.footer-link {
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #ffc107 !important;
    padding-left: 5px;
}

/* Footer Logo */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo {
    height: 45px !important;
    width: auto;
    max-width: 100px;
    border-radius: 6px;
    background-color: white;
    padding: 3px;
    object-fit: contain;
}

.partner-logo {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* ============================================
   CARDS & BADGES
   ============================================ */
.card {
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.badge {
    padding: 5px 12px;
    font-weight: 500;
}

/* ============================================
   TRACKING TIMELINE
   ============================================ */
.tracking-timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-step {
    text-align: center;
    position: relative;
    padding: 15px;
}

.timeline-step .step-icon {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.timeline-step.active .step-icon {
    background: #ffc107;
    color: #1a1a1a;
    transform: scale(1.1);
}

.timeline-step.completed .step-icon {
    background: #28a745;
    color: white;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.tab-pane {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.preloader .loader {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ffc107;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
html {
    scroll-behavior: smooth;
}

button:focus, 
a:focus {
    outline: 2px solid #ffc107;
    outline-offset: 2px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
/* Mobile Devices */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 60px 0;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-icon i {
        font-size: 25px;
    }
    
    .stat-box {
        text-align: center;
        border-left: none;
        border-top: 2px solid #ffc107;
        padding-top: 10px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .route-list li {
        font-size: 14px;
    }
    
    .corridor-item h5 {
        font-size: 16px;
    }
    
    /* Logo Responsive */
    .logo-img {
        height: 25px !important;
        max-width: 60px;
        padding: 2px;
    }
    
    .brand-name {
        font-size: 0.8rem;
    }
    
    .tagline {
        font-size: 6px;
        white-space: normal;
        max-width: 100px;
    }
    
    .navbar-brand {
        gap: 5px;
    }
    
    .footer-logo {
        height: 35px !important;
        max-width: 80px;
    }
    
    .footer-brand h5 {
        font-size: 0.9rem;
    }
    
    /* Hero Image Responsive */
    .truck-badge .badge {
        padding: 5px 10px;
        font-size: 10px;
    }
    
    .truck-badge {
        bottom: 10px;
        right: 10px;
    }
    
    /* Route Tabs */
    .route-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 10px;
    }
    
    .route-tabs::-webkit-scrollbar {
        height: 4px;
    }
    
    .route-tabs::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    .route-tabs::-webkit-scrollbar-thumb {
        background: #ffc107;
        border-radius: 10px;
    }
    
    .nav-pills {
        flex-wrap: nowrap;
    }
    
    .nav-pills .nav-item {
        display: inline-block;
        white-space: nowrap;
    }
    
    .toast {
        min-width: auto;
        width: calc(100vw - 2rem);
        margin: 0 1rem;
    }
    
    .toast-container {
        width: 100%;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        margin-left: 0 !important;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
    }
    
    .gap-3 {
        gap: 1rem !important;
    }
    
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Tablet Devices */
@media (min-width: 769px) and (max-width: 1024px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .coverage-card {
        margin-bottom: 20px;
    }
    
    .route-list li {
        font-size: 13px;
    }
    
    .logo-img {
        height: 30px !important;
        max-width: 70px;
    }
    
    .brand-name {
        font-size: 0.9rem;
    }
}

/* Desktop Large Screens */
@media (min-width: 1200px) {
    .logo-img {
        height: 35px !important;
        max-width: 80px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .coverage-card {
        margin-bottom: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Touch Devices */
@media (hover: none) {
    .btn, 
    .nav-link, 
    .service-card {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
}

/* Print Styles */
@media print {
    .top-bar,
    .navbar,
    .cta-section,
    footer,
    .scroll-top,
    .modal {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}