/* =============================================
   Courier Logistics - Optimised Stylesheet
   ============================================= */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    background: #f8fafc;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { text-decoration: none; color: inherit; transition: color 0.3s, background 0.3s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }

/* === Buttons === */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 50px; font-weight: 600;
    font-size: 15px; border: none; cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: inherit; -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: linear-gradient(135deg, #1e3a5f, #2d6da3); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(30,58,95,0.3); }
.btn-white { background: #fff; color: #1e3a5f; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.btn-glow { box-shadow: 0 4px 15px rgba(30,58,95,0.4); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* === Navbar === */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 15px 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: padding 0.3s, box-shadow 0.3s;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.navbar.scrolled { padding: 8px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 20px; font-weight: 700; color: #1e3a5f;
}
.nav-brand i { font-size: 24px; color: #2d6da3; }
.nav-logo-img { height: 36px; width: auto; object-fit: contain; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
    padding: 8px 16px; border-radius: 50px; font-weight: 500;
    font-size: 14px; color: #4a5568; transition: color 0.3s, background 0.3s;
}
.nav-menu a:hover, .nav-menu a.active { color: #1e3a5f; background: rgba(30,58,95,0.08); }
.nav-btn { background: linear-gradient(135deg, #1e3a5f, #2d6da3) !important; color: #fff !important; }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
    -webkit-tap-highlight-color: transparent;
}
.nav-toggle span { width: 24px; height: 2.5px; background: #1e3a5f; border-radius: 5px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === Hero === */
.hero, .track-hero, .page-hero {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    min-height: 620px;
    background: #0a1628;
    overflow: hidden; padding-top: 80px;
}
.track-hero { min-height: 460px; background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #2d6da3 100%); }
.page-hero { min-height: 360px; background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #2d6da3 100%); }
.hero-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: url('../images/hero-bg.webp') center/cover no-repeat;
    opacity: 0.15;
}
.track-hero .hero-overlay { background-image: url('../images/track-bg.webp'); }
.page-hero .hero-overlay { background-image: url('../images/page-bg.webp'); }

/* Hero Image Slideshow */
.hero-slides {
    position: absolute; inset: 0; z-index: 0;
}
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.2s ease, transform 6s ease;
}
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    animation: heroKenBurns 6s ease forwards;
}
@keyframes heroKenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* Hero Gradient Overlay */
.hero-gradient {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(135deg, rgba(10,22,40,0.88) 0%, rgba(30,58,95,0.75) 50%, rgba(45,109,163,0.65) 100%),
        linear-gradient(to top, rgba(10,22,40,0.6) 0%, transparent 40%);
}

/* Floating Particles */
.hero-particles {
    position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none;
}
.hero-particles span {
    position: absolute; display: block;
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(56,189,248,0.3);
    animation: particleFloat linear infinite;
}
.hero-particles span:nth-child(1) { left: 10%; width: 8px; height: 8px; animation-duration: 12s; animation-delay: 0s; bottom: -10%; }
.hero-particles span:nth-child(2) { left: 25%; width: 5px; height: 5px; animation-duration: 16s; animation-delay: 2s; bottom: -10%; background: rgba(255,255,255,0.2); }
.hero-particles span:nth-child(3) { left: 45%; width: 10px; height: 10px; animation-duration: 14s; animation-delay: 4s; bottom: -10%; }
.hero-particles span:nth-child(4) { left: 65%; width: 6px; height: 6px; animation-duration: 18s; animation-delay: 1s; bottom: -10%; background: rgba(255,255,255,0.15); }
.hero-particles span:nth-child(5) { left: 80%; width: 7px; height: 7px; animation-duration: 13s; animation-delay: 3s; bottom: -10%; }
.hero-particles span:nth-child(6) { left: 55%; width: 4px; height: 4px; animation-duration: 20s; animation-delay: 5s; bottom: -10%; background: rgba(255,255,255,0.25); }
@keyframes particleFloat {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Hero Badge */
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; border-radius: 50px;
    background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #38bdf8; font-size: 12px; font-weight: 600;
    margin-bottom: 20px; letter-spacing: 0.3px;
    animation: fadeInDown 0.8s ease 0.2s both;
}
.hero-badge i { font-size: 14px; }

/* Slide Navigation Dots */
.hero-slide-dots {
    display: flex; gap: 10px; justify-content: center;
    margin-top: 32px;
}
.hero-dot {
    width: 10px; height: 10px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    background: transparent; cursor: pointer;
    transition: all 0.3s; padding: 0;
}
.hero-dot.active {
    background: #fff; border-color: #fff;
    box-shadow: 0 0 12px rgba(255,255,255,0.4);
    width: 28px; border-radius: 6px;
}

.hero-content { position: relative; z-index: 2; text-align: center; width: 100%; padding: 20px 0; }
.hero-title {
    font-size: clamp(28px, 5vw, 54px); font-weight: 800; color: #fff;
    margin-bottom: 16px; line-height: 1.12;
    animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-subtitle {
    font-size: clamp(14px, 2vw, 18px); color: rgba(255,255,255,0.8);
    max-width: 620px; margin: 0 auto 36px;
    animation: fadeInUp 0.8s ease 0.6s both;
}
.hero-tracking {
    max-width: 620px; margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.8s both;
}
.hero-form { width: 100%; }
.hero-input-group {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.95);
    border-radius: 60px; padding: 6px 6px 6px 24px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
}
.hero-input-group i.fa-search { color: #94a3b8; font-size: 16px; flex-shrink: 0; }
.hero-input-group input {
    flex: 1; border: none; outline: none; padding: 12px 14px;
    font-size: 15px; font-family: inherit;
    background: transparent; color: #1e3a5f;
    min-width: 0;
}
.hero-input-group input::placeholder { color: #94a3b8; }

/* Hero entrance animations */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* === Stats === */
.stats-section { padding: 50px 0; background: #fff; border-bottom: 1px solid #e2e8f0; }
.stats-floating {
    position: relative; z-index: 10;
    margin-top: -60px; padding: 0; background: transparent; border: none;
}
.stats-floating .stats-grid {
    background: #fff; border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    padding: 30px 20px;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { text-align: center; padding: 16px 8px; position: relative; }
.stat-card:not(:last-child)::after {
    content: ''; position: absolute; right: 0; top: 20%; height: 60%;
    width: 1px; background: #e2e8f0;
}
.stat-icon { font-size: 28px; color: #2d6da3; margin-bottom: 10px; }
.stat-number { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: #1e3a5f; }
.stat-label { font-size: 13px; color: #64748b; font-weight: 500; margin-top: 2px; }

/* === Section Headers === */
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
    display: inline-block; padding: 6px 18px; border-radius: 50px;
    background: rgba(45,109,163,0.1); color: #2d6da3;
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 12px;
}
.section-title { font-size: clamp(24px, 3.5vw, 36px); font-weight: 700; color: #1e3a5f; margin-bottom: 10px; }
.section-subtitle { font-size: clamp(13px, 1.5vw, 16px); color: #64748b; max-width: 550px; margin: 0 auto; }

/* === Services with Images === */
.services-section { background: #fff; }
.services-img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-img-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    border: 1px solid #e2e8f0; transition: transform 0.3s, box-shadow 0.3s;
    will-change: transform;
}
.service-img-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.service-img-wrap { position: relative; aspect-ratio: 3/2; overflow: hidden; background: #e2e8f0; }
.service-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s;
}
.service-img-card:hover .service-img-wrap img { transform: scale(1.06); }
.service-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(30,58,95,0.5), transparent 50%);
    display: flex; align-items: flex-end; padding: 14px;
}
.service-img-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px;
}
.service-img-body { padding: 20px; }
.service-img-body h3 { font-size: 17px; color: #1e3a5f; margin-bottom: 6px; }
.service-img-body p { font-size: 13px; color: #64748b; line-height: 1.7; }

/* === Steps with Images === */
.how-section { background: #f8fafc; }
.steps-img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-img-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s;
}
.step-img-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,0,0,0.1); }
.step-img-wrap { aspect-ratio: 4/3; overflow: hidden; background: #e2e8f0; }
.step-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.step-img-card:hover .step-img-wrap img { transform: scale(1.05); }
.step-img-body { padding: 22px; text-align: center; position: relative; }
.step-img-body .step-number {
    position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #1e3a5f, #2d6da3); color: #fff;
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; border: 3px solid #fff;
}
.step-img-body h3 { font-size: 17px; color: #1e3a5f; margin: 8px 0 6px; }
.step-img-body p { font-size: 13px; color: #64748b; }

/* === Fleet Gallery === */
.fleet-section { background: #0a1628; padding: 80px 0; }
.fleet-section .section-tag { background: rgba(45,109,163,0.3); color: #38bdf8; }
.fleet-section .section-title { color: #fff; }
.fleet-section .section-subtitle { color: #94a3b8; }
.fleet-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fleet-item {
    position: relative; border-radius: 14px; overflow: hidden;
    aspect-ratio: 16/9; background: #1e293b;
}
.fleet-item.fleet-large { grid-row: span 2; aspect-ratio: auto; }
.fleet-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.fleet-item:hover img { transform: scale(1.04); }
.fleet-label {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 14px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
    color: #fff; font-size: 14px; font-weight: 600;
}
.fleet-label i { margin-right: 6px; }

/* === Scroll Reveal === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === Testimonials === */
.testimonials-section { background: #f8fafc; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Testimonial Slider */
.testimonial-slider { position: relative; }
.testimonial-track-wrapper { overflow: hidden; }
.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.testimonial-slider .testimonial-card {
    min-width: calc(33.333% - 16px);
    margin: 0 8px;
    flex-shrink: 0;
}
.testimonial-card {
    background: #fff; border-radius: 14px; padding: 28px;
    border: 1px solid #e2e8f0; transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.07); }
.testimonial-stars { color: #f59e0b; font-size: 13px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card > p { font-size: 14px; color: #475569; line-height: 1.8; font-style: italic; margin-bottom: 18px; }
.testimonial-author {
    display: flex; align-items: center; gap: 12px;
    padding-top: 14px; border-top: 1px solid #f1f5f9;
}
.testimonial-author img,
.testimonial-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    object-fit: cover; border: 2px solid #e2e8f0;
}
.testimonial-avatar {
    background: linear-gradient(135deg, #1e3a5f, #2d6da3);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px; flex-shrink: 0; border: none;
}
.testimonial-author strong { display: block; font-size: 13px; color: #1e3a5f; }
.testimonial-author span { font-size: 11px; color: #94a3b8; }

/* Testimonial Navigation */
.testimonial-nav {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; margin-top: 28px;
}
.testimonial-arrow {
    width: 42px; height: 42px; border-radius: 50%;
    border: 2px solid #e2e8f0; background: #fff;
    display: flex; align-items: center; justify-content: center;
    color: #1e3a5f; font-size: 14px; cursor: pointer;
    transition: all 0.3s;
}
.testimonial-arrow:hover {
    background: linear-gradient(135deg, #1e3a5f, #2d6da3);
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 16px rgba(30,58,95,0.3);
}
.testimonial-dots {
    display: flex; gap: 8px; align-items: center;
}
.testimonial-dots button {
    width: 8px; height: 8px; border-radius: 50%; padding: 0;
    border: none; background: #cbd5e1; cursor: pointer;
    transition: all 0.3s;
}
.testimonial-dots button.active {
    background: #1e3a5f; width: 22px; border-radius: 4px;
}

/* === CTA Section === */
.cta-section {
    padding: 80px 0; text-align: center;
    background: linear-gradient(135deg, #1e3a5f, #2d6da3);
}
.cta-image { position: relative; overflow: hidden; background: none; }
.cta-overlay {
    position: absolute; inset: 0;
    background: url('../images/cta-bg.webp') center/cover no-repeat;
}
.cta-overlay::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(30,58,95,0.9), rgba(45,109,163,0.85));
}
.cta-image .container { position: relative; z-index: 1; }
.cta-content h2 { font-size: clamp(24px, 3.5vw, 36px); color: #fff; margin-bottom: 12px; }
.cta-content p { font-size: clamp(14px, 1.5vw, 18px); color: rgba(255,255,255,0.8); margin-bottom: 28px; }

/* === Tracking Results === */
.tracking-results { padding-top: 40px; }
.tracking-status-header {
    text-align: center; margin-bottom: 36px;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.status-badge-large {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 26px; border-radius: 50px; color: #fff;
    font-size: 16px; font-weight: 600;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.status-badge-large i { font-size: 18px; }
.tracking-number-display { text-align: center; }
.tracking-number-display small { display: block; font-size: 12px; color: #64748b; }
.tracking-number-display strong { font-size: clamp(18px, 3vw, 24px); color: #1e3a5f; letter-spacing: 2px; }

.tracking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }

/* === Glass Card === */
.glass-card {
    background: #fff;
    border-radius: 14px; border: 1px solid #e8ecf1;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 28px; transition: box-shadow 0.3s;
}
.glass-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.card-header-styled {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 22px; padding-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
}
.card-header-styled i { font-size: 18px; color: #2d6da3; }
.card-header-styled h3 { font-size: 17px; color: #1e3a5f; }

/* === Details Grid === */
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.detail-item { display: flex; flex-direction: column; gap: 3px; }
.detail-label { font-size: 11px; color: #94a3b8; font-weight: 500; display: flex; align-items: center; gap: 5px; }
.detail-label i { font-size: 10px; color: #2d6da3; }
.detail-value { font-size: 14px; font-weight: 600; color: #1e3a5f; word-break: break-word; }

/* === Timeline === */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
    content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px;
    width: 2px; background: #e2e8f0;
}
.timeline-item {
    position: relative; padding-bottom: 22px; padding-left: 18px;
    opacity: 0; animation: fadeInUp 0.4s ease forwards;
}
.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute; left: -24px; top: 5px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #cbd5e1; border: 3px solid #f8fafc;
    z-index: 1;
}
.timeline-item.active .timeline-dot { box-shadow: 0 0 0 4px rgba(45,109,163,0.2); }
.timeline-status { font-weight: 600; color: #1e3a5f; font-size: 14px; }
.timeline-location { font-size: 12px; color: #64748b; margin-top: 2px; }
.timeline-location i { color: #2d6da3; font-size: 10px; }
.timeline-desc { font-size: 12px; color: #94a3b8; margin-top: 3px; }
.timeline-date { font-size: 11px; color: #94a3b8; margin-top: 5px; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Map === */
.map-card { overflow: hidden; }
.shipment-map-iframe { width: 100%; height: 300px; border: none; border-radius: 0 0 10px 10px; display: block; }
.maps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.map-location-label { padding: 6px 16px; font-size: 12px; color: #64748b; font-weight: 500; }

/* === Error Card === */
.error-card {
    text-align: center; padding: 50px 20px;
    background: #fff; border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.error-icon { font-size: 44px; color: #f59e0b; margin-bottom: 14px; }
.error-card h3 { font-size: 20px; color: #1e3a5f; margin-bottom: 6px; }
.error-card p { color: #64748b; font-size: 14px; }

/* === Empty State === */
.empty-state { text-align: center; padding: 28px; color: #94a3b8; }
.empty-state i { font-size: 32px; margin-bottom: 8px; display: block; }

/* === About === */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-grid.reverse { direction: rtl; }
.about-grid.reverse > * { direction: ltr; }
.about-text h2 { font-size: clamp(24px, 3vw, 32px); color: #1e3a5f; margin: 10px 0 18px; }
.about-text p { color: #64748b; margin-bottom: 14px; line-height: 1.8; font-size: 14px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.about-feature { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.about-feature i { color: #10b981; flex-shrink: 0; }
.rounded-img { border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,0.1); width: 100%; }
.about-image { position: relative; }

/* === Team Section === */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { text-align: center; transition: transform 0.3s; }
.team-card:hover { transform: translateY(-4px); }
.team-img-wrap {
    width: 140px; height: 140px; border-radius: 50%; overflow: hidden;
    margin: 0 auto 14px; border: 4px solid #e2e8f0;
    transition: border-color 0.3s; background: #e2e8f0;
}
.team-card:hover .team-img-wrap { border-color: #2d6da3; }
.team-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { font-size: 15px; color: #1e3a5f; margin-bottom: 3px; }
.team-card span { font-size: 12px; color: #64748b; }

/* === Gallery Grid === */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gallery-item {
    position: relative; border-radius: 14px; overflow: hidden;
    aspect-ratio: 16/10; background: #e2e8f0;
}
.gallery-item.gallery-wide { grid-column: span 2; aspect-ratio: 21/9; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-label {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 14px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: #fff; font-size: 13px; font-weight: 600;
}

/* === Values === */
.values-section { background: #f8fafc; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card {
    text-align: center; padding: 30px 20px;
    background: #fff; border-radius: 14px;
    border: 1px solid #e2e8f0; transition: transform 0.3s, box-shadow 0.3s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.07); }
.value-icon { font-size: 28px; color: #2d6da3; margin-bottom: 14px; }
.value-card h3 { font-size: 17px; color: #1e3a5f; margin-bottom: 6px; }
.value-card p { font-size: 13px; color: #64748b; }

/* === Contact === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info h2 { font-size: clamp(24px, 3vw, 32px); color: #1e3a5f; margin-bottom: 10px; }
.contact-info > p { color: #64748b; margin-bottom: 24px; font-size: 14px; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 18px; background: #f8fafc; border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.contact-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: linear-gradient(135deg, #1e3a5f, #2d6da3); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.contact-item h4 { font-size: 14px; color: #1e3a5f; margin-bottom: 3px; }
.contact-item p { font-size: 12px; color: #64748b; }
.contact-form-wrapper .glass-card h3 { font-size: 20px; color: #1e3a5f; margin-bottom: 22px; }

/* === Contact Banner === */
.contact-banner {
    position: relative; aspect-ratio: 21/7; overflow: hidden; background: #1e3a5f;
    max-height: 350px;
}
.contact-banner img { width: 100%; height: 100%; object-fit: cover; }
.contact-banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(30,58,95,0.85), rgba(45,109,163,0.7));
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; text-align: center; padding: 20px;
}
.contact-banner-overlay h3 { font-size: clamp(20px, 3vw, 28px); margin-bottom: 6px; }
.contact-banner-overlay p { font-size: clamp(13px, 1.5vw, 15px); color: rgba(255,255,255,0.8); }

/* === Partners === */
.partners-grid {
    display: flex; align-items: center; justify-content: center;
    gap: 40px; flex-wrap: wrap; padding: 16px 0;
}
.partner-item { opacity: 0.35; transition: opacity 0.3s, filter 0.3s; filter: grayscale(100%); }
.partner-item:hover { opacity: 1; filter: grayscale(0%); }
.partner-item img { height: 44px; width: auto; }

/* === Forms === */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: #475569; margin-bottom: 5px; }
.form-control {
    width: 100%; padding: 11px 14px; border-radius: 10px;
    border: 1.5px solid #e2e8f0; font-family: inherit;
    font-size: 14px; transition: border-color 0.3s, box-shadow 0.3s;
    background: #f8fafc; outline: none;
    -webkit-appearance: none;
}
.form-control:focus { border-color: #2d6da3; box-shadow: 0 0 0 3px rgba(45,109,163,0.1); background: #fff; }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }

/* === Footer === */
.footer { background: #0a1628; color: #94a3b8; padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 14px;
}
.footer-brand i { color: #2d6da3; }
.footer-logo-img { height: 32px; width: auto; }
.footer-text { font-size: 13px; line-height: 1.7; margin-bottom: 18px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(255,255,255,0.06); display: flex;
    align-items: center; justify-content: center;
    color: #94a3b8; transition: background 0.3s, color 0.3s, transform 0.3s;
}
.footer-social a:hover { background: #2d6da3; color: #fff; transform: translateY(-2px); }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: 13px; color: #94a3b8; }
.footer-col ul a:hover { color: #fff; padding-left: 4px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; }
.footer-contact i { color: #2d6da3; margin-top: 3px; flex-shrink: 0; }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 13px; color: #64748b; }

/* === Live Chat Button === */
.live-chat-btn {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #1e3a5f, #2d6da3);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 22px; box-shadow: 0 6px 24px rgba(30,58,95,0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}
.live-chat-btn:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(30,58,95,0.5); }

/* === WhatsApp Floating Widget === */
.whatsapp-float {
    position: fixed; bottom: 24px; left: 24px; z-index: 999;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 24px rgba(37,211,102,0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: whatsappPulse 2s ease infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 32px rgba(37,211,102,0.5);
    animation: none;
    color: #fff;
}
.whatsapp-tooltip {
    position: absolute; left: 68px; top: 50%; transform: translateY(-50%);
    background: #fff; color: #333; padding: 6px 14px; border-radius: 8px;
    font-size: 12px; font-weight: 600; white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(-50%) translateX(-8px);
}
.whatsapp-tooltip::before {
    content: ''; position: absolute; left: -6px; top: 50%; transform: translateY(-50%);
    border: 6px solid transparent; border-right-color: #fff;
}
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1; transform: translateY(-50%) translateX(0);
}
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 6px 24px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0.1); }
}

/* === Toast Notification === */
.toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
    background: #10b981; color: #fff; padding: 14px 28px; border-radius: 12px;
    font-family: inherit; font-size: 14px; font-weight: 500;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 9999; opacity: 0; transition: transform 0.4s, opacity 0.4s;
    max-width: calc(100% - 40px); text-align: center;
}
.toast-show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast-error { background: #ef4444; }

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .timeline-item { opacity: 1; }
    .reveal { opacity: 1; transform: none; }
    .hero-slide.active { transform: scale(1); animation: none; }
    .hero-particles { display: none; }
}

/* === Google Translate Custom Dropdown === */
.nav-translate-wrapper { position: relative; }
.translate-dropdown { position: relative; }
.translate-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 50px; font-weight: 500;
    font-size: 13px; color: #4a5568; background: rgba(30,58,95,0.06);
    border: 1px solid rgba(30,58,95,0.1); cursor: pointer;
    font-family: inherit; transition: background 0.3s, color 0.3s;
}
.translate-btn:hover { color: #1e3a5f; background: rgba(30,58,95,0.12); }
.translate-btn .fa-globe { color: #2d6da3; }
.translate-arrow { font-size: 10px; margin-left: 2px; transition: transform 0.3s; }
.translate-dropdown.open .translate-arrow { transform: rotate(180deg); }
.translate-menu {
    display: none; position: absolute; top: calc(100% + 8px); right: 0;
    background: #fff; border-radius: 12px; padding: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15); border: 1px solid #e2e8f0;
    min-width: 180px; z-index: 1100;
}
.translate-dropdown.open .translate-menu { display: block; }
.translate-option {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: 8px; font-size: 13px;
    color: #475569; transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.translate-option:hover { background: rgba(30,58,95,0.06); color: #1e3a5f; }
.translate-option.active { background: rgba(45,109,163,0.1); color: #1e3a5f; font-weight: 600; }
.translate-flag {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 20px; border-radius: 4px;
    background: linear-gradient(135deg, #1e3a5f, #2d6da3); color: #fff;
    font-size: 9px; font-weight: 700; letter-spacing: 0.5px; flex-shrink: 0;
}

/* Hide Google Translate default UI */
.goog-te-banner-frame, .skiptranslate { display: none !important; }
body { top: 0 !important; }
.goog-te-gadget { font-size: 0 !important; }

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* === Tablet landscape (1024px) === */
@media (max-width: 1024px) {
    .services-img-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-card:nth-child(2)::after { display: none; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-slider .testimonial-card { min-width: calc(50% - 16px); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .maps-grid { grid-template-columns: 1fr; }
}

/* === Tablet portrait / large phone (768px) === */
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .section { padding: 50px 0; }

    /* Nav mobile */
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: min(260px, 80vw); height: 100vh; height: 100dvh;
        background: #fff; flex-direction: column; padding: 80px 24px 30px;
        box-shadow: -8px 0 30px rgba(0,0,0,0.1); transition: right 0.35s ease;
        gap: 2px; overflow-y: auto; z-index: 1001;
    }
    .nav-menu.active { right: 0; }
    .nav-menu a { width: 100%; padding: 12px 16px; border-radius: 10px; font-size: 15px; }
    .translate-label { display: none; }
    .translate-btn { padding: 8px 12px; font-size: 12px; }
    .translate-menu { right: auto; left: 0; }
    .nav-translate-wrapper { padding: 8px 0; }

    /* Hero mobile */
    .hero { min-height: 540px; padding-bottom: 70px; }
    .track-hero { min-height: 440px; }
    .page-hero { min-height: 280px; }
    .hero-badge { font-size: 11px; padding: 6px 14px; }
    .hero-slide-dots { margin-top: 24px; }
    .stats-floating { margin-top: -40px; }
    .stats-floating .stats-grid { padding: 20px 14px; border-radius: 14px; }
    .stat-card::after { display: none !important; }
    .hero-particles { display: none; }
    .testimonial-slider .testimonial-card { min-width: calc(100% - 16px); }
    .hero-input-group {
        flex-direction: column; border-radius: 16px;
        padding: 10px; gap: 8px;
    }
    .hero-input-group i.fa-search { display: none; }
    .hero-input-group input { text-align: center; padding: 10px 12px; font-size: 14px; }
    .hero-input-group .btn { width: 100%; justify-content: center; }

    /* Grids to single column */
    .services-img-grid, .steps-img-grid { grid-template-columns: 1fr; }
    .tracking-grid { grid-template-columns: 1fr; }
    .about-grid, .about-grid.reverse, .contact-grid { grid-template-columns: 1fr; gap: 28px; direction: ltr; }
    .values-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .details-grid { grid-template-columns: 1fr; }

    /* Fleet & Gallery */
    .fleet-section { padding: 50px 0; }
    .fleet-gallery { grid-template-columns: 1fr; }
    .fleet-item, .fleet-item.fleet-large { aspect-ratio: 16/9; grid-row: auto; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item, .gallery-item.gallery-wide { grid-column: auto; aspect-ratio: 16/10; }

    /* Map */
    .shipment-map-iframe { height: 250px; }

    /* Cards */
    .glass-card { padding: 20px; }
    .service-img-card:hover, .step-img-card:hover,
    .testimonial-card:hover, .value-card:hover { transform: none; }

    /* Contact banner */
    .contact-banner { aspect-ratio: 16/9; max-height: 260px; }

    /* Partners */
    .partners-grid { gap: 24px; }
    .partner-item img { height: 36px; }

    /* Chat button */
    .live-chat-btn { width: 50px; height: 50px; font-size: 20px; bottom: 20px; right: 16px; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 24px; bottom: 20px; left: 16px; }
    .whatsapp-tooltip { display: none; }

    /* Toast */
    .toast { bottom: 80px; font-size: 13px; padding: 12px 20px; }
}

/* === Small phone (480px) === */
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .section { padding: 40px 0; }

    .navbar { padding: 10px 0; }
    .nav-brand { font-size: 17px; gap: 8px; }
    .nav-brand i { font-size: 20px; }
    .nav-logo-img { height: 30px; }

    .hero { min-height: 500px; padding-bottom: 60px; }
    .track-hero { min-height: 400px; }
    .page-hero { min-height: 240px; }
    .hero-content { padding: 16px 0; }
    .hero-badge { font-size: 10px; padding: 5px 12px; margin-bottom: 14px; }
    .hero-badge i { font-size: 12px; }
    .hero-slide-dots { margin-top: 18px; }
    .hero-dot { width: 8px; height: 8px; }
    .hero-dot.active { width: 22px; }
    .stats-floating { margin-top: -35px; }
    .stats-floating .stats-grid { padding: 16px 10px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stat-card { padding: 12px 4px; }
    .stat-icon { font-size: 22px; margin-bottom: 6px; }
    .stat-label { font-size: 11px; }

    .testimonial-nav { gap: 10px; }
    .testimonial-arrow { width: 36px; height: 36px; font-size: 12px; }
    .testimonial-slider .testimonial-card { padding: 20px; }
    .testimonial-card > p { font-size: 13px; }

    .values-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .team-img-wrap { width: 100px; height: 100px; }
    .team-card h4 { font-size: 13px; }
    .team-card span { font-size: 11px; }

    .about-features { grid-template-columns: 1fr; gap: 8px; }

    .status-badge-large { font-size: 14px; padding: 8px 18px; }

    .cta-section { padding: 50px 0; }
    .cta-content .btn-lg { padding: 14px 28px; font-size: 14px; }

    .contact-banner { aspect-ratio: 16/10; }
    .partners-grid { gap: 16px; }
    .partner-item img { height: 28px; }

    .footer { padding: 40px 0 0; }
    .footer-brand { font-size: 16px; }
    .footer-col h4 { font-size: 14px; margin-bottom: 12px; }
}

/* === Tiny phone (360px) === */
@media (max-width: 360px) {
    .container { padding: 0 12px; }
    .nav-brand span { font-size: 15px; }
    .hero { min-height: 480px; }
    .hero-input-group { padding: 8px; }
    .hero-badge { display: none; }
    .stats-grid { gap: 6px; }
    .stat-card { padding: 10px 2px; }
    .glass-card { padding: 16px; }
    .btn { padding: 10px 20px; font-size: 13px; }
    .btn-lg { padding: 12px 24px; font-size: 14px; }
}

/* === Safe area for notched devices === */
@supports (padding: env(safe-area-inset-bottom)) {
    .footer-bottom { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
    .live-chat-btn { bottom: calc(24px + env(safe-area-inset-bottom)); }
    .whatsapp-float { bottom: calc(24px + env(safe-area-inset-bottom)); }
    .toast { bottom: calc(30px + env(safe-area-inset-bottom)); }
}
