/* =====================================================
   Nexora Freight Service - Main Stylesheet
   Modern Professional Logistics Design
   ===================================================== */

:root {
    --primary-color: #003d82;
    --secondary-color: #ffcc00;
    --accent-color: #e63946;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --danger-color: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

/* ===== NAVIGATION ===== */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-brand span {
    color: var(--secondary-color);
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--secondary-color);
}

/* ===== MEGA HERO SLIDER ===== */
.mega-hero-slider {
    position: relative;
    margin-top: 70px;
    overflow: hidden;
}

.mega-hero-slider .carousel-inner {
    height: 100vh;
    min-height: 700px;
}

.mega-hero-slider .carousel-item {
    height: 100vh;
    min-height: 700px;
}

.mega-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mega-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 61, 130, 0.5) 100%);
}

.mega-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 1000px;
    animation: megaSlideIn 1.2s ease-out;
}

.mega-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--dark-color);
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(255, 204, 0, 0.4);
}

.mega-title {
    font-size: 6rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1;
    text-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: -3px;
}

.mega-subtitle {
    font-size: 2rem;
    font-weight: 300;
    opacity: 0.95;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
}

.mega-hero-slider .carousel-control-prev-icon,
.mega-hero-slider .carousel-control-next-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.mega-hero-slider .carousel-control-prev-icon:hover,
.mega-hero-slider .carousel-control-next-icon:hover {
    background-color: var(--secondary-color);
    transform: scale(1.15);
}

.mega-hero-slider .carousel-indicators {
    bottom: 40px;
}

.mega-hero-slider .carousel-indicators li {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin: 0 10px;
    background-color: rgba(255, 255, 255, 0.4);
    border: 3px solid white;
    transition: all 0.3s;
}

.mega-hero-slider .carousel-indicators .active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    width: 50px;
    border-radius: 10px;
}

/* Quick Track Float */
.quick-track-float {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    z-index: 100;
}

.quick-track-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 60px;
    padding: 1rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
}

.quick-track-form {
    display: flex;
    gap: 1rem;
}

.quick-track-form input {
    flex: 1;
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    background: transparent;
    color: var(--dark-color);
}

.quick-track-form input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.quick-track-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.quick-track-form button:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    transform: scale(1.05);
}

@keyframes megaSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ===== VISUAL SERVICES GRID ===== */
.visual-services {
    padding: 0;
    margin: 0;
}

.visual-service-item {
    padding: 0;
}

.visual-service-card {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s;
}

.visual-service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 61, 130, 0.85), rgba(0, 86, 179, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s;
}

.visual-service-card:hover .visual-service-overlay {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.9), rgba(230, 57, 70, 0.8));
}

.visual-service-content {
    text-align: center;
    color: white;
    transform: translateY(0);
    transition: all 0.5s;
}

.visual-service-card:hover .visual-service-content {
    transform: translateY(-20px);
}

.visual-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.visual-service-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.visual-divider {
    width: 80px;
    height: 4px;
    background: white;
    margin: 1.5rem auto;
}

.visual-service-content p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* ===== IMAGE SHOWCASE ===== */
.image-showcase {
    padding: 0;
    margin: 0;
}

.showcase-image {
    height: 600px;
    background-size: cover;
    background-position: center;
}

.showcase-content {
    padding: 5rem;
    background: var(--dark-color);
    color: white;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.showcase-content h2 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    letter-spacing: -2px;
}

.showcase-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.8;
    font-weight: 300;
}

.btn-showcase {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--dark-color);
    padding: 1.5rem 3.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s;
    align-self: flex-start;
}

.btn-showcase:hover {
    background: white;
    transform: translateX(10px);
    text-decoration: none;
    color: var(--dark-color);
}

/* ===== WHY CHOOSE BANNER ===== */
.why-choose-banner {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    position: relative;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 61, 130, 0.9), rgba(0, 86, 179, 0.85));
}

.banner-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

.banner-content h2 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 3rem;
    letter-spacing: -2px;
}

.why-item {
    text-align: center;
    transition: all 0.3s;
}

.why-item:hover {
    transform: translateY(-15px);
}

.why-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.why-item h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

/* ===== TRACKING FORM ===== */
.tracking-form-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.tracking-form-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 61, 130, 0.15);
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #00529e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 61, 130, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #ffdb4d;
    transform: translateY(-2px);
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 120px 0 80px;
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.service-card.image-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.service-card.image-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.service-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    transition: all 0.4s;
}

.service-card.image-card:hover .service-image::before {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 61, 130, 0.6) 100%);
}

.service-content {
    padding: 2rem;
    text-align: center;
    position: relative;
}

.service-content .service-icon {
    width: 70px;
    height: 70px;
    margin: -55px auto 1.5rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
    transition: all 0.3s;
}

.service-card.image-card:hover .service-icon {
    background: var(--secondary-color);
    transform: scale(1.1) rotate(5deg);
}

.service-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.service-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.service-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 80px 0;
    background: white;
}

.feature-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.feature-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.feature-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 61, 130, 0.7) 100%);
}

.feature-content {
    padding: 1.5rem;
    text-align: center;
}

.feature-content h5 {
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    font-size: 1.2rem;
}

.feature-box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s;
}

.feature-box:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.feature-content p {
    color: var(--text-light);
    margin: 0;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 60px 0;
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
}

.stat-box h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-box p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== TRACKING RESULTS ===== */
.tracking-result-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 2rem 0;
}

.tracking-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 2rem;
    text-align: center;
}

.tracking-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tracking-number {
    font-size: 1.5rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    margin-top: 1rem;
}

.tracking-body {
    padding: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    padding: 1rem;
    background: var(--light-color);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.info-item label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.info-item .value {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* ===== TIMELINE ===== */
.timeline-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.timeline-section h4 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 600;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-color);
    z-index: 1;
}

.timeline-item.active::before {
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 61, 130, 0.2);
}

.timeline-content {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.timeline-content .status {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-content .location {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.timeline-content .description {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.timeline-content .time {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer h5 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== BADGES ===== */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.badge-primary {
    background-color: var(--primary-color);
}

.badge-success {
    background-color: var(--success-color);
}

.badge-warning {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.badge-info {
    background-color: var(--info-color);
}

.badge-danger {
    background-color: var(--danger-color);
}

.badge-secondary {
    background-color: #6c757d;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 0;
    }
    
    .mega-hero-slider .carousel-inner,
    .mega-hero-slider .carousel-item {
        height: 80vh;
        min-height: 600px;
    }
    
    .mega-title {
        font-size: 3rem;
    }
    
    .mega-subtitle {
        font-size: 1.2rem;
    }
    
    .mega-badge {
        font-size: 0.75rem;
        padding: 0.6rem 1.5rem;
        letter-spacing: 2px;
    }
    
    .quick-track-float {
        position: relative;
        bottom: auto;
        padding: 1rem;
        margin-top: -80px;
    }
    
    .quick-track-box {
        padding: 0.8rem;
    }
    
    .quick-track-form {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .quick-track-form input,
    .quick-track-form button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .visual-service-card {
        height: 350px;
    }
    
    .visual-icon {
        font-size: 3.5rem;
    }
    
    .visual-service-content h3 {
        font-size: 1.8rem;
    }
    
    .showcase-image {
        height: 400px;
    }
    
    .showcase-content {
        height: auto;
        padding: 3rem 2rem;
    }
    
    .showcase-content h2 {
        font-size: 2.5rem;
    }
    
    .showcase-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .banner-content h2 {
        font-size: 2.5rem;
    }
    
    .why-icon {
        font-size: 3rem;
    }
    
    .why-item h4 {
        font-size: 1.3rem;
    }
    
    .services-section {
        padding: 80px 0 60px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .service-card.image-card {
        margin-bottom: 2rem;
    }
    
    .service-image {
        height: 200px;
    }
    
    .feature-image {
        height: 150px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .page-hero {
        height: 300px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .service-detail-image {
        height: 220px;
    }
    
    .service-detail-content {
        padding: 2rem 1.5rem;
    }
    
    .contact-form-card {
        padding: 2rem 1.5rem;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
}

/* ===== UTILITIES ===== */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-muted { color: var(--text-light); }

/* ===== PAGE HERO ===== */
.page-hero {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 61, 130, 0.85), rgba(0, 86, 179, 0.75));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ===== SERVICE DETAIL CARDS ===== */
.service-detail-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s;
    height: 100%;
}

.service-detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-detail-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-detail-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.service-detail-content {
    padding: 2.5rem;
}

.service-detail-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: -60px auto 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
}

.service-detail-content h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.service-detail-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
}

.service-features i {
    color: var(--success-color);
    margin-right: 0.75rem;
}

/* ===== CONTACT CARDS ===== */
.contact-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-dark);
    margin: 0;
    line-height: 1.8;
}

.contact-form-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-form-card h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* ===== FAQ ITEMS ===== */
.faq-item {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border-left: 5px solid var(--secondary-color);
}

.faq-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-left-color: var(--primary-color);
}

.faq-item h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.faq-item h4 i {
    color: var(--secondary-color);
    margin-right: 0.75rem;
}

.faq-item p {
    color: var(--text-dark);
    line-height: 1.8;
    margin: 0;
    font-size: 1.05rem;
}

/* ===================================================
   RESPONSIVE & MOBILE NAV FIXES (appended patch)
   =================================================== */

/* ── Navbar mobile ─────────────────────────────────── */
.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 6px 10px;
    outline: none !important;
    box-shadow: none !important;
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%23003d82' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: #ffffff;
        border-radius: 12px;
        margin-top: 10px;
        padding: 8px 0 4px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
        border: 1px solid #e8e8e8;
    }
    .navbar-nav .nav-link {
        padding: 13px 20px !important;
        border-bottom: 1px solid #f2f2f2;
        font-size: 0.95rem;
    }
    .navbar-nav .nav-item:last-child .nav-link { border-bottom: none; }
    .navbar-nav .nav-link.active {
        border-bottom: 1px solid #f2f2f2;
        background: #f8f9ff;
        color: var(--primary-color) !important;
    }
    .navbar-nav .nav-link:hover {
        background: #f0f4ff;
        color: var(--primary-color) !important;
    }
}

/* ── General responsive helpers ────────────────────── */
img { max-width: 100%; height: auto; }
.container { padding-left: 15px; padding-right: 15px; }

/* ── Tracking form card ─────────────────────────────── */
.tracking-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}
@media (max-width: 576px) {
    .tracking-form-card { padding: 1.25rem; margin-top: -20px; }
    .tracking-form-card .form-control,
    .tracking-form-card .btn { font-size: 0.9rem; }
}

/* ── Hero section (docx pages) ──────────────────────── */
.docx-hero {
    background: linear-gradient(135deg, #003d82 0%, #0066cc 100%);
    padding: 100px 0 60px;
    margin-top: 70px;
    color: #fff;
    text-align: center;
}
.docx-hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: .5rem; }
.docx-hero p  { font-size: 1.1rem; opacity: .9; }
@media (max-width: 768px) {
    .docx-hero { padding: 90px 0 50px; }
    .docx-hero h1 { font-size: 1.7rem; }
    .docx-hero p  { font-size: 0.95rem; }
}
@media (max-width: 480px) {
    .docx-hero h1 { font-size: 1.4rem; }
}

/* ── PDF iframe viewer ──────────────────────────────── */
#pdf-frame {
    width: 100%;
    height: 80vh;
    min-height: 500px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    display: block;
}
@media (max-width: 768px) {
    #pdf-frame { height: 65vh; min-height: 380px; }
}
@media (max-width: 480px) {
    #pdf-frame { height: 55vh; min-height: 320px; }
}

/* ── Footer responsive ──────────────────────────────── */
@media (max-width: 576px) {
    .footer .col-md-4,
    .footer .col-md-2,
    .footer .col-md-3 { margin-bottom: 1.5rem; }
    .footer-bottom { padding: 15px 0; font-size: 0.8rem; }
}

/* ── Service cards responsive ───────────────────────── */
@media (max-width: 576px) {
    .service-card { padding: 1.5rem 1rem; }
    .service-icon { width: 60px; height: 60px; font-size: 1.5rem; }
}

/* ── Buttons responsive ─────────────────────────────── */
@media (max-width: 480px) {
    .btn { padding: .5rem .9rem; font-size: .875rem; }
}

/* ── Tables on mobile ───────────────────────────────── */
@media (max-width: 768px) {
    .table-responsive { -webkit-overflow-scrolling: touch; }
}

/* ── Admin panel responsive ─────────────────────────── */
@media (max-width: 768px) {
    .admin-sidebar { width: 100%; position: relative; height: auto; }
    .admin-main { margin-left: 0; padding: 1rem; }
    .admin-card { margin-bottom: 1rem; }
    .form-row > [class*="col-"] { margin-bottom: .75rem; }
}

/* ── Cards ──────────────────────────────────────────── */
.card { border: none; box-shadow: 0 3px 15px rgba(0,0,0,0.07); }
.card-body { padding: 1.5rem; }
@media (max-width: 576px) {
    .card-body { padding: 1rem; }
}

/* =====================================================
   COMPREHENSIVE RESPONSIVE FIXES - Full Site
   Mobile-first overrides for all screen sizes
   ===================================================== */

/* ── Prevent horizontal overflow site-wide ────────── */
html, body { overflow-x: hidden; max-width: 100%; }
*, *::before, *::after { box-sizing: border-box; }

/* ── Homepage hero slider: mobile fixes ──────────── */
@media (max-width: 767px) {
    .mega-hero-slider .carousel-inner,
    .mega-hero-slider .carousel-item {
        height: 100vh !important;
        min-height: 560px !important;
    }

    /* Hero text container */
    .mega-hero-slider [style*="top:50%;left:50%;transform:translate(-50%,-50%)"],
    .mega-hero-slider [style*="position:absolute;top:50%"] {
        width: 92% !important;
        padding: 0 8px;
    }

    /* Giant h1 titles in slider */
    .mega-hero-slider h1[style*="font-size:6rem"],
    .mega-hero-slider h1 {
        font-size: 2.4rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.1 !important;
    }

    /* Subtitle */
    .mega-hero-slider p[style*="font-size:2rem"] {
        font-size: 1rem !important;
    }

    /* Badge pill */
    .mega-hero-slider div[style*="padding:0.8rem 2.5rem"] {
        font-size: 0.7rem !important;
        padding: 0.5rem 1.2rem !important;
        letter-spacing: 1.5px !important;
        margin-bottom: 1rem !important;
    }

    /* Tracking search bar at bottom */
    .mega-hero-slider > div[style*="position:absolute;bottom:50px"],
    .mega-hero-slider > div[style*="bottom:50px"] {
        bottom: 15px !important;
        left: 0 !important;
        right: 0 !important;
        padding: 0 12px;
    }

    /* Search box wrapper */
    .mega-hero-slider div[style*="background:rgba(255,255,255,0.95)"] {
        border-radius: 14px !important;
        padding: 0.75rem !important;
        flex-direction: column !important;
    }

    /* Inner form */
    .mega-hero-slider form[action*="tracking.php"] {
        flex-direction: column !important;
        gap: 0.6rem !important;
        width: 100% !important;
    }

    .mega-hero-slider form[action*="tracking.php"] input {
        width: 100% !important;
        font-size: 0.9rem !important;
        padding: 0.75rem 1rem !important;
        border-radius: 10px !important;
        border: 1px solid #ddd !important;
    }

    .mega-hero-slider form[action*="tracking.php"] button {
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        border-radius: 10px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .mega-hero-slider h1[style*="font-size:6rem"],
    .mega-hero-slider h1 {
        font-size: 1.8rem !important;
    }
}

/* ── Tracking page: form stacking on mobile ───────── */
@media (max-width: 576px) {
    .tracking-form-card .row > .col-md-9,
    .tracking-form-card .row > .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0.5rem;
    }
    .tracking-form-card .btn-block { width: 100%; }
}

/* ── Info grid on tracking results ───────────────── */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 576px) {
    .info-grid { grid-template-columns: 1fr; }
    .info-grid .info-item[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }
}

/* ── Homepage: stats section on small screens ────── */
@media (max-width: 576px) {
    .stats-section { padding: 50px 0; }
    .stat-box { padding: 20px 10px; }
    .stat-number { font-size: 2rem !important; }
    .stat-label { font-size: 1rem; }
}

/* ── CTA section ─────────────────────────────────── */
@media (max-width: 576px) {
    .cta-section { padding: 60px 0; }
    .cta-section h2 { font-size: 1.6rem !important; }
    .cta-section p { font-size: 1rem !important; }
    .btn-cta { padding: 14px 30px !important; font-size: 1rem !important; }
}

/* ── Services section ────────────────────────────── */
@media (max-width: 576px) {
    .services-section { padding: 60px 0; }
    .section-header h2 { font-size: 1.7rem !important; }
    .section-header p { font-size: 0.95rem; }
    .service-box { padding: 25px 20px; }
    .service-box h4 { font-size: 1.2rem; }
}

/* ── Features section ────────────────────────────── */
@media (max-width: 576px) {
    .features-section { padding: 60px 0; }
    .feature-card { padding: 20px; }
    .feature-card:hover { transform: none; }
    .feature-card h4 { font-size: 1.1rem; }
}

/* ── Page hero (about/faq/services/contact) ──────── */
@media (max-width: 576px) {
    .page-hero { height: 220px; }
    .hero-content h1 { font-size: 1.8rem !important; }
    .hero-content p  { font-size: 1rem !important; }
}

/* ── Footer ──────────────────────────────────────── */
@media (max-width: 767px) {
    .footer { padding: 40px 0 0; }
    .footer .row > div { margin-bottom: 1.5rem; }
    .footer h5 { margin-bottom: 0.75rem; }
}

/* ── Contact form ────────────────────────────────── */
@media (max-width: 576px) {
    .contact-form-card { padding: 1.5rem 1.25rem; }
    .contact-form-card h3 { font-size: 1.4rem; }
    .contact-card { padding: 1.5rem 1rem; }
}

/* ── FAQ page ────────────────────────────────────── */
@media (max-width: 576px) {
    .faq-item { padding: 1.25rem; }
    .faq-item:hover { transform: none; }
    .faq-item h4 { font-size: 1.1rem; }
}

/* ── Docx / clearance form stacking ─────────────── */
@media (max-width: 576px) {
    .tracking-form-card .row .col-md-9,
    .tracking-form-card .row .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-bottom: 0.5rem;
    }
    #submit_btn { width: 100%; }
}

/* ── Navbar brand on very small screens ──────────── */
@media (max-width: 360px) {
    .navbar-brand { font-size: 1rem !important; }
    .navbar-brand i { display: none; }
}

/* ── Images ──────────────────────────────────────── */
img { max-width: 100%; height: auto; }

/* ── Tracking timeline on mobile ─────────────────── */
@media (max-width: 576px) {
    .timeline-item { padding-left: 2rem; }
    .timeline-content { padding: 0.75rem; }
    .timeline-content .status { font-size: 0.9rem; }
}

/* ── Service detail cards ────────────────────────── */
@media (max-width: 576px) {
    .service-detail-content { padding: 1.5rem 1rem; }
    .service-detail-content h3 { font-size: 1.3rem; }
    .service-detail-image { height: 180px; }
}

/* ── Table responsive wrapper ────────────────────── */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Prevent button overflow in action columns ───── */
@media (max-width: 576px) {
    .action-btn { padding: 0.25rem 0.5rem !important; font-size: 0.75rem !important; }
    td.actions { white-space: nowrap; }
}

/* ── Hero tracking bar responsive ───────────────────── */
.hero-track-bar { position: absolute; bottom: 50px; left: 0; right: 0; z-index: 100; }

@media (max-width: 767px) {
    .hero-track-bar {
        bottom: 12px !important;
        padding: 0 12px;
    }
    .hero-track-bar > .container > div {
        border-radius: 12px !important;
        padding: 0.75rem !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    .hero-track-bar form {
        flex-direction: column !important;
        gap: 0.5rem !important;
        width: 100%;
    }
    .hero-track-bar form input {
        border-radius: 8px !important;
        border: 1px solid #ccc !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }
    .hero-track-bar form button {
        border-radius: 8px !important;
        width: 100% !important;
        padding: 0.75rem !important;
        font-size: 0.9rem !important;
    }
}

/* ── Tracking result card mobile ─────────────────── */
@media (max-width: 576px) {
    .tracking-header { padding: 1.25rem 1rem; }
    .tracking-header h2 { font-size: 1.3rem; }
    .tracking-number { font-size: 1rem; padding: 0.4rem 1rem; }
    .tracking-body { padding: 1.25rem 1rem; }
    .info-grid { grid-template-columns: 1fr !important; gap: 0.75rem; }
    .info-item[style*="grid-column"] { grid-column: span 1 !important; }
    .info-item { padding: 0.75rem; }
    .info-item .value { font-size: 0.95rem; }
    .timeline-item { padding-left: 1.5rem; }
    .tracking-result-card .btn { margin: 3px; }
}

/* ── About / Services / Contact: page-hero responsive ── */
@media (max-width: 576px) {
    .page-hero { height: 200px; margin-top: 60px; }
    .hero-content h1 { font-size: 1.6rem !important; }
    .hero-content p  { font-size: 0.9rem !important; }
}

/* ── Navbar height offset ─────────────────────────── */
@media (max-width: 576px) {
    .navbar { padding: 0.5rem 0; }
    .mega-hero-slider { margin-top: 60px !important; }
    section[style*="margin-top: 70px"],
    section[style*="margin-top:70px"] { margin-top: 60px !important; }
}

/* ═══════════════════════════════════════════════════════
   NEXORA FREIGHT SERVICE — BRAND ENHANCEMENTS
   ═══════════════════════════════════════════════════════ */

/* Brand color palette update */
:root {
    --nfs-blue: #003d82;
    --nfs-gold: #f0a500;
    --nfs-dark: #0a1628;
    --nfs-light: #f4f7fb;
    --nfs-accent: #0066cc;
    --nfs-success: #28a745;
}

/* ── Enhanced Navbar ────────────────────────────────── */
.navbar-brand {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px;
}

.navbar-brand i {
    color: var(--nfs-gold);
    margin-right: 6px;
}

/* ── Contact card improvements ─────────────────────── */
.contact-card {
    background: white;
    border-radius: 12px;
    padding: 25px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid var(--nfs-gold);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.contact-form-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.contact-form-card h3 {
    color: var(--nfs-blue);
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--nfs-gold);
}

/* ── Footer brand column ───────────────────────────── */
.footer h5 {
    color: var(--nfs-gold) !important;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

/* ── Admin sidebar brand ───────────────────────────── */
.sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

/* ── Responsive: tablet ─────────────────────────────── */
@media (max-width: 768px) {
    .contact-form-card {
        padding: 25px 20px;
    }

    .contact-form-card h3 {
        font-size: 1.3rem;
    }

    .footer .col-md-4,
    .footer .col-md-3 {
        margin-bottom: 20px;
    }
}

/* ── Responsive: mobile ─────────────────────────────── */
@media (max-width: 576px) {
    .contact-form-card {
        padding: 20px 15px;
    }

    .navbar-brand {
        font-size: 1.05rem !important;
    }

    .footer-bottom p {
        font-size: 0.82rem;
        text-align: center;
    }
}

/* ── Button improvements ────────────────────────────── */
.btn-primary {
    background: var(--nfs-blue) !important;
    border-color: var(--nfs-blue) !important;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--nfs-accent) !important;
    border-color: var(--nfs-accent) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,61,130,0.35);
}

/* ── Form input styling ─────────────────────────────── */
.form-control:focus {
    border-color: var(--nfs-gold);
    box-shadow: 0 0 0 0.2rem rgba(240,165,0,0.2);
}

/* ── Skip link for accessibility ───────────────────── */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--nfs-blue);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.3s;
}

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