/* ===============================================================
   HOME.CSS - Homepage specific styles
   Load only on index.php
================================================================ */
/* ========== HERO BACKGROUND SLIDER ========== */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide:nth-child(1) {
    background-image: linear-gradient(rgba(0, 31, 84, 0.5), rgba(0, 51, 153, 0.5)), 
                      url('/aerial-view-cargo-ship-cargo-container-harbor.jpg');
}

.hero-slide:nth-child(2) {
    background-image: linear-gradient(rgba(0, 31, 84, 0.5), rgba(0, 51, 153, 0.5)), 
                      url('/transport-logistics-products.jpg');
                      transform: scaleY(-1);
}

.hero-slide:nth-child(3) {
    background-image: linear-gradient(rgba(0, 31, 84, 0.5), rgba(0, 51, 153, 0.5)), 
                      url('/warehouse-image.jpg');
}

.hero-slide:nth-child(4) {
    background-image: linear-gradient(rgba(0, 31, 84, 0.5), rgba(0, 51, 153, 0.5)), 
                      url('/truck-vehicle-with-trailers-background.jpg');
}

.hero-slide:nth-child(5) {
    background-image: linear-gradient(rgba(0, 31, 84, 0.5), rgba(0, 51, 153, 0.5)), 
                      url('/car-transport.jpg');
}

.hero-slide:nth-child(6) {
    background-image: linear-gradient(rgba(0, 31, 84, 0.5), rgba(0, 51, 153, 0.5)), 
                      url('/home-relocation-image.jpg');
}

.hero .container,
.hero-content,
.lead-form {
    position: relative;
    z-index: 1;
}

/* Desktop/Mobile Form Toggle */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.mobile-form-section {
    display: none;
    padding: 0;
    background: var(--light-bg);
}
/* ========== HERO ENHANCEMENTS ========== */
/* ========== HERO STATS ========== */
.hero-stats {
    display: flex;
    justify-content: flex-start;  /* Changed: align to start like other content */
    align-items: center;
    gap: 60px;  /* Changed: more space between stats */
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-stat-item {
    text-align: left;
    padding: 0;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
    border: none;
    transition: all 0.4s ease;
    flex-shrink: 0;  /* Added: prevent shrinking */
}

.hero-stat-item:hover {
    transform: translateY(-5px) scale(1.08);
}

.hero-stat-number {
    display: inline-block;
    font-size: 48px;
    font-weight: 900;
    color: var(--highlight-yellow);
    line-height: 1;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.9), 
                 0 0 20px rgba(244, 180, 0, 0.5);
    transition: var(--transition-fast);
    letter-spacing: 2px;
}

.hero-stat-item:hover .hero-stat-number {
    color: var(--accent-green);
    text-shadow: 3px 3px 8px rgba(0,0,0,0.9), 
                 0 0 30px rgba(37, 211, 102, 0.6);
    transform: scale(1.1);
}

.hero-stat-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.9),
                 1px 1px 3px rgba(0,0,0,0.8);
}
/* Inline counter in paragraph */
.inline-counter {
    display: inline-block;
    font-size: inherit;
    font-weight: 800;
    color: var(--highlight-yellow);
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8),
                 0 0 15px rgba(244, 180, 0, 0.5);
    letter-spacing: 1px;
}

/* Mobile styling for stat numbers */
@media (max-width: 992px) {
     /* Hero stats mobile layout */
    /* Hero stats mobile layout */
    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
        margin-bottom: 20px;
        justify-content: center;  /* Changed: center on mobile */
    }
    
    .hero-stat-item {
        padding: 0;
        background: transparent;
        text-align: center;  /* Changed: center text on mobile */
    }
    
    .hero-stat-number {
        font-size: 36px;
        text-shadow: 3px 3px 10px rgba(0,0,0,0.95), 
                     0 0 25px rgba(244, 180, 0, 0.6),
                     0 0 10px rgba(0,0,0,0.8);
    }
    
    .hero-stat-label {
        font-size: 11px;
        margin-top: 6px;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.95),
                     1px 1px 4px rgba(0,0,0,0.9);
    }
    
    /* Inline counter mobile */
    .inline-counter {
        text-shadow: 3px 3px 8px rgba(0,0,0,0.95),
                     0 0 20px rgba(244, 180, 0, 0.6);
    }
}
.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.hero-content {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content h1 {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-content p {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* ========== LEAD FORM ENHANCEMENTS ========== */
.lead-form {
    animation: rotateIn 0.8s ease 0.4s forwards;
    opacity: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 8px rgba(37, 211, 102, 0.3);
    transform: translateY(-1px);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.form-submit {
    width: 100%;
    background: var(--primary-blue);
    color: var(--white);
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-light);
}

.form-submit:hover {
    background: var(--accent-green);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.form-submit:active {
    transform: scale(0.98);
}
.form-message {
    display: none;
    padding: 12px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 14px;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
}

.form-message.show {
    display: block;
}


/* ========== ABOUT SECTION ========== */
.about {
    background: var(--primary-blue);
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

.about-image:hover {
    transform: scale(1.02) rotate(2deg);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.1);
}

.about-text p {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.8;
    color: white;
    transition: var(--transition-fast);
}



.about-features {
    list-style: none;
    margin: 22px 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    transition: all 0.4s ease;
    padding-left: 5px;
}

.about-features li:hover {
    transform: translateX(8px) scale(1.02);
    color: var(--accent-green);
}

.about-features li::before {
    content: '\f061';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--accent-green);
    font-size: 18px;
    transition: var(--transition-fast);
}

.about-features li:hover::before {
    transform: translateX(5px) rotate(90deg);
    color: var(--highlight-yellow);
}

/* ========== STATS SECTION ========== */
.stats {
    background: var(--dark-blue);
    color: var(--white);
    padding: 60px 0;
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    z-index: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 20px;
    transition: all 0.4s ease;
    border-radius: 10px;
}

.stat-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-light);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--highlight-yellow);
    margin-bottom: 10px;
    display: block;
    transition: var(--transition-fast);
}

.stat-item:hover .stat-number {
    color: var(--accent-green);
}

.stat-label {
    font-size: 15px;
    opacity: 0.9;
}

/* ========== SERVICES GRID ========== */
.services {
    background: var(--primary-blue);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.service-card-image {
    height: 170px;
    overflow: hidden;
    transition: all 0.5s ease;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card:hover .service-card-image img {
    transform: scale(1.15) rotate(3deg);
}

.service-card-content {
    padding: 24px;
    transition: var(--transition-fast);
}

.service-card:hover .service-card-content {
    background: rgba(37, 211, 102, 0.05);
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-blue);
    transition: var(--transition-fast);
}

.service-card:hover h3 {
    color: var(--accent-green);
}

.service-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 14px;
    line-height: 1.6;
    transition: var(--transition-fast);
}

.service-card:hover p {
    color: var(--text-color);
}

.service-link {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-fast);
}

.service-link:hover {
    color: var(--accent-green);
    transform: translateX(5px);
}

.service-link i {
    transition: var(--transition-fast);
}

.service-link:hover i {
    transform: translateX(3px);
}

/* ========== WHY CHOOSE US ========== */
.why-choose {
    background: var(--primary-blue);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    box-shadow: var(--shadow-light);
    background: white;
}

.why-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.why-card:hover {
    background: var(--light-bg);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.why-icon {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 18px;
    transition: all 0.5s ease;
}

.why-card:hover .why-icon {
    color: var(--accent-green);
    transform: scale(1.2) rotate(360deg);
}

.why-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
    color: var(--primary-blue);
    transition: var(--transition-fast);
}

.why-card:hover h3 {
    color: var(--accent-green);
}

.why-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    transition: var(--transition-fast);
}

.why-card:hover p {
    color: var(--text-color);
}

/* ========== TESTIMONIALS ========== */
.testimonials {
    background: var(--primary-blue);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 40px 0;
}

.testimonial-slide {
    display: none;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-align: center;
    animation: scaleIn 0.6s ease;
    transition: all 0.4s ease;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-slide:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.testimonial-stars {
    color: var(--highlight-yellow);
    font-size: 24px;
    margin-bottom: 20px;
    transition: var(--transition-fast);
}

.testimonial-slide:hover .testimonial-stars {
    transform: scale(1.1);
}

.testimonial-text {
    font-size: 17px;
    font-style: italic;
    color: #555;
    margin-bottom: 24px;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 16px;
    transition: var(--transition-fast);
}

.testimonial-slide:hover .testimonial-author {
    color: var(--accent-green);
}

.testimonial-location {
    color: #888;
    font-size: 14px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.4s ease;
}

.dot:hover {
    background: var(--accent-green);
    transform: scale(1.3);
}

.dot.active {
    background: var(--highlight-yellow);
    width: 30px;
    border-radius: 6px;
    transform: scale(1.1);
}
/* ===== TRUSTED PARTNERS (Color Matched Version) ===== */
.trusted-partners {
    padding: 90px 0;
    background: var(--primary-blue);
    position: relative;
}

.trusted-logos {
    margin-top: 45px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
    justify-content: center;
    align-items: stretch;
}

/* Trusted Partner Card */
.trusted-card {
    background: #ffffff;
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    opacity: 0;
    transform: translateY(25px);
    animation: fadeUp 0.8s ease forwards;
}

.trusted-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border: 1px solid rgba(0, 51, 153, 0.20); /* primary blue tint */
}

/* Logo */
.trusted-logo {
    max-width: 170px;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 18px;
    transition: transform 0.4s ease;
}

.trusted-card:hover .trusted-logo {
    transform: scale(1.08);
}

/* Verified Badge */
.trusted-name-badge {
    background: rgba(0, 51, 153, 0.08); /* Primary blue light tint */
    color: var(--primary-blue);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    border: 1px solid rgba(0, 51, 153, 0.20);
    transition: 0.4s ease;
}

.trusted-card:hover .trusted-name-badge {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: scale(1.05);
}

/* Short Info Text */
.trusted-info {
    font-size: 14px;
    color: #555;
    margin-bottom: 14px;
    line-height: 1.6;
    max-width: 240px;
    transition: 0.3s ease;
}

.trusted-card:hover .trusted-info {
    color: #333;
}

/* Profile Link */
.trusted-link {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s ease;
}

.trusted-link:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

/* Fade-in animation */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .trusted-card {
        padding: 28px 18px;
    }

    .trusted-logo {
        max-width: 150px;
        max-height: 70px;
    }

    .trusted-partners {
        padding: 70px 0;
    }
}



/* ========== LOCATIONS ========== */
.locations {
    background:var(--primary-blue);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 768px) {
    .location-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .location-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .location-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.custom-badge {
    background-color: white;
    font-size: 0.82rem !important;
    border-radius: 30px;
    transition: 0.25s ease;
    color: black!important;
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.5rem 1rem;
}

.custom-badge:hover {
    background-color: var(--accent-green);
    transform: translateY(-3px);
    color: white)!important;
    font-size:bold;
}

/* ========== FINAL CTA BANNER ========== */
.final-cta {
    background: linear-gradient(135deg, rgba(0, 31, 84, 0.95), rgba(0, 51, 153, 0.92)),
                url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1600&q=80') center/cover;
    color: var(--white);
    padding: 70px 0;
    text-align: center;
    position: relative;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    z-index: 0;
}

.final-cta > * {
    position: relative;
    z-index: 1;
}

.final-cta h2 {
    font-size: 38px;
    margin-bottom: 20px;
    transition: var(--transition-fast);
}

.final-cta:hover h2 {
    transform: scale(1.05);
}

.final-cta p {
    font-size: 19px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .about .container {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Mobile: Show form outside hero */
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .mobile-form-section {
        display: block;
        padding: 40px 0;
    }
    
    /* Hero text overlay styling for mobile - TRANSPARENT FLOATING */
    .hero {
        min-height: 500px;
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        text-align: center;
        background: transparent;
        padding: 30px 20px;
        border-radius: 0;
        backdrop-filter: none;
    }
    
    .hero-content h1 {
        color: var(--white);
        text-shadow: 3px 3px 8px rgba(0,0,0,0.8);
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 15px;
    }
    
    .hero-content > p {
        color: var(--white);
        text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .hero-highlights li {
        color: var(--white);
        text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
        font-weight: 600;
    }
    
    .hero-highlights li::before {
        background: var(--highlight-yellow);
        box-shadow: 0 0 10px rgba(0,0,0,0.5);
    }
    
    .hero-buttons .btn {
        box-shadow: 0 4px 15px rgba(0,0,0,0.4);
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .about-image img {
        height: 300px;
    }
    
    .hero {
        min-height: 450px;
    }
    
    .hero-content h1 {
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    .hero-stat-number {
        font-size: 32px;
        text-shadow: 3px 3px 10px rgba(0,0,0,0.95), 
                     0 0 25px rgba(244, 180, 0, 0.6),
                     0 0 10px rgba(0,0,0,0.8);
    }
    
    .hero-stat-label {
        font-size: 10px;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.95),
                     1px 1px 4px rgba(0,0,0,0.9);
    }
    
    .hero-stats {
        gap: 25px;
        flex-wrap: nowrap;
        justify-content: center;  /* Added: ensure center alignment */
    }
    
    .hero-stat-item {
        text-align: center;  /* Added: ensure center text */
    }
    /* Inline counter mobile small */
    .inline-counter {
        font-size: 18px;
    }
    .hero {
        padding: 40px 0;
        min-height: 420px;
    }
    
    .hero-content {
        padding: 25px 15px;
    }
    
    .hero-content h1 {
        font-size: 24px;
        text-shadow: 2px 2px 6px rgba(0,0,0,0.9);
    }
    
    .hero-content > p {
        font-size: 14px;
        text-shadow: 2px 2px 5px rgba(0,0,0,0.9);
    }
    
    .hero-highlights li {
        font-size: 14px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        justify-content: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .lead-form {
        padding: 18px;
    }
    
    .testimonial-slide {
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 40px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .final-cta h2 {
        font-size: 26px;
    }
    
    .final-cta p {
        font-size: 16px;
    }
}