/* Premium Logistics Design System */
:root {
    --deep-navy: #0B1F3B;
    --ocean-blue: #1E4D8C;
    --sky-blue: #4DA3FF;
    --white: #FFFFFF;
    --light-gray-bg: #F5F7FA;
    --soft-border: #E6EAF0;
    --success-green: #2ECC71;
    --warning-orange: #F39C12;
    --error-red: #E74C3C;
    --text-dark: #1A1A2E;
    --text-muted: #6C757D;
}

.py-6 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--light-gray-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    padding-right: 15px;
    padding-left: 15px;
}

.row {
    margin-right: -15px;
    margin-left: -15px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Scroll reveal effect */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(11, 31, 59, 0.08);
    padding: 0.25rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1;
}

/* Portable navbar logo — fixed height, never overflows */
.brand-logo-img {
    height: 44px;
    width: auto;
    max-width: 160px;
    max-height: 44px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.brand-logo-img:hover {
    opacity: 0.85;
}

/* Compact brand title text */
.brand-logo-text {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--deep-navy) !important;
    letter-spacing: -0.2px;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .brand-logo-img {
        height: 36px;
        max-width: 130px;
    }
    .brand-logo-text {
        font-size: 0.82rem !important;
    }
}

@media (max-width: 575px) {
    .brand-logo-img {
        height: 30px;
        max-width: 110px;
    }
    .brand-logo-text {
        font-size: 0.75rem !important;
    }
}

.auth-seal-logo {
    height: 100px !important;
    max-height: 100px !important;
    width: auto !important;
    object-fit: contain !important;
    margin-bottom: 15px !important;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.75rem 1.25rem !important;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: rgba(77, 163, 255, 0.1);
    color: var(--ocean-blue) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ocean-blue), var(--sky-blue));
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 77, 140, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 77, 140, 0.4);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--ocean-blue) 100%);
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?w=1920') center/cover;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Tracking Card */
.tracking-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.tracking-card h3 {
    color: var(--deep-navy);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.tracking-card .form-control {
    border: 2px solid var(--soft-border);
    border-radius: 50px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.tracking-card .form-control:focus {
    border-color: var(--sky-blue);
    box-shadow: 0 0 0 0.25rem rgba(77, 163, 255, 0.25);
}

/* Cards */
.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--soft-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(11, 31, 59, 0.15);
    border-color: var(--sky-blue);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--ocean-blue), var(--sky-blue));
    color: white;
}

.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--soft-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(11, 31, 59, 0.1);
    border-color: var(--sky-blue);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(30, 77, 140, 0.1), rgba(77, 163, 255, 0.1));
    color: var(--ocean-blue);
}

.stat-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--soft-border);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(11, 31, 59, 0.1);
}

/* Statistics Section */
.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 0.75rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.fs-5.fw-medium {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
}

/* Statistics cards hover */
.statistics-section .col-lg-3 .p-4 {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.statistics-section .col-lg-3:hover .p-4 {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--deep-navy);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Testimonial */
.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--soft-border);
}

/* Footer */
.footer {
    background: var(--deep-navy);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--sky-blue);
}

/* Dashboard */
.dashboard-sidebar {
    background: var(--white);
    border-right: 1px solid var(--soft-border);
    min-height: 100vh;
    padding: 1.5rem 0;
}

.dashboard-sidebar .nav-link {
    padding: 0.85rem 1.5rem;
    color: var(--text-dark);
    border-radius: 10px;
    margin: 0.25rem 1rem;
    transition: all 0.3s ease;
}

.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
    background: rgba(30, 77, 140, 0.1);
    color: var(--ocean-blue);
    font-weight: 600;
}

.dashboard-content {
    padding: 2rem;
}

.card {
    border: 1px solid var(--soft-border);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.card-header {
    background: var(--white);
    border-bottom: 1px solid var(--soft-border);
    border-radius: 16px 16px 0 0 !important;
    padding: 1.25rem 1.5rem;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .py-6 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .tracking-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .carousel-item img,
    .carousel-inner {
        height: 300px !important;
    }

    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .tracking-card {
        padding: 1.25rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
