/*
  Champion Logistics - Main Stylesheet
  Date: 02 August 2025
  Structure:
  1.  Imports & Root Variables
  2.  Global Styles & Typography
  3.  Header & Navigation
  4.  Hero Section
  5.  Card Sections (Services, Introduction)
  6.  Homepage Sections (About, Stats, Clients)
  7.  Animations & Utility Classes
  8.  Responsive Media Queries
*/

/* ===== 1. Imports & Root Variables ===== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
    --blue: #003082;
    --gray: #767676;
    --h2_font_size: 30px;
}

/* ===== 2. Global Styles & Typography ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #f7fafc;
    color: var(--blue);
    overflow-x: hidden;
}

p {
    color: var(--gray);
    line-height: 1.6;
}

h2 {
    text-align: center;
    margin: 20px;
    font-size: var(--h2_font_size);
}

/* Generic Section for Inner Pages */
.section {
    padding: 24px 26px;
}

/* Call to Action Button */
.cta-btn {
    display: inline-block;
    background-color: var(--blue);
    color: #ffffff;
    padding: 16px 35px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(32, 66, 93, 0.2);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background-color: var(--gray);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(32, 66, 93, 0.3);
}


/* ===== 3. Header & Navigation ===== */
.navbar {
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    background: transparent;
    position: relative;
    z-index: 99;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo_img {
    height: 200px;
    width: auto;
    vertical-align: middle;
    position: absolute;
    top: -40px;
    left: -20px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--blue);
    font-weight: 600;
    font-size: 1.12rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #00509e;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00509e;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 35px;
    height: 30px;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    margin-right: 40px;
}

.bar {
    height: 2px;
    width: 28px;
    background: var(--blue);
    margin: 3.2px 0;
    border-radius: 2.5px;
    transition: 0.4s;
}

/* Hamburger Active State (X shape) */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* ===== 4. Hero Section ===== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 5vw;
    min-height: 90vh;
    background: linear-gradient(180deg, #f7fafc 0%, #f7faff 100%);
    overflow: hidden;
}

.hero-content, .img_div {
    position: relative;
    z-index: 2; /* Keep content above background animation */
    flex: 1;
}

.hero-content {
    max-width: 550px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 35px;
}

.img_div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero_img {
    max-width: 500px;
    width: 100%;
    height: auto;
    animation: floatAnimation 5s ease-in-out infinite;
}


/* ===== 5. Card Sections (Services, Introduction) ===== */
.services, .introduction {
    padding-top: 20px;
    padding-bottom: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.services-cards, .introduction-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin: 42px auto 0 auto;
}

.service-card, .introduction-card {
    background: #fff;
    border-radius: 12px;
    padding: 36px 26px;
    text-align: center;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
    width: 260px;
}

.service-card h3, .introduction-card h3 {
    margin-bottom: 12px;
}

.gif_icon {
    width: 100px;
    height: 100px;
}


/* ===== 6. Homepage Sections (About, Stats, Clients) ===== */

/* About Section on Homepage */
.about-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.about-text {
    max-width: 450px;
    padding: 20px;
}

.about-link {
    display: inline-block;
    color: #20425d;
    text-decoration: none;
    margin-top: 15px;
    font-weight: bold;
}

.about-link i {
    margin-left: 6px;
}

.about-image img {
    max-width: 260px;
    border-radius: 16px;
    display: block;
    animation: floatAnimation 5s ease-in-out infinite;
}

/* Animated Statistics Section */
.stats-section {
    background: #ffffff;
    padding: 50px 20px;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.stats-title {
    font-size: 2rem;
    color: var(--blue);
    margin-bottom: 40px;
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-card {
    background: #f7fafc;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    width: 220px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--blue);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: #555;
    font-weight: 600;
}

/* Clients Section */
.clients-section {
    background: #f7fafc;
    padding: 60px 20px;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.clients-section h2 {
    font-size: var(--h2_font_size);
    color: var(--blue);
    margin-bottom: 45px;
    font-weight: 700;
}

.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
    max-width: 1000px;
    margin: 0 auto;
}

.client-logos img {
    max-width: 140px;
    height: 100px;
    object-fit: contain;
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-logos img:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}


/* ===== 7. Animations & Utility Classes ===== */

/* Floating Animation for Images */
@keyframes floatAnimation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* Background Animated Elements for Hero Section */
.animation-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.box-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.box-area li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(32, 66, 93, 0.15);
    animation: animateElements 25s linear infinite;
    bottom: -150px;
}

.box-area li:nth-child(1) { left: 85%; width: 80px; height: 80px; animation-delay: 0s; }
.box-area li:nth-child(2) { left: 10%; width: 25px; height: 25px; animation-delay: 2s; animation-duration: 12s; }
.box-area li:nth-child(3) { left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.box-area li:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.box-area li:nth-child(5) { left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
.box-area li:nth-child(6) { left: 15%; width: 110px; height: 110px; animation-delay: 3.5s; }

@keyframes animateElements {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

/* Reveal-on-Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ===== 8. Responsive Media Queries ===== */

/* Tablets and smaller desktops */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.7rem;
    }
    .hero_img {
        max-width: 400px;
    }
    .stat-card {
        width: 200px;
    }
}

/* Tablets and large mobiles */
@media (max-width: 768px) {
    /* Navbar */
    .nav-menu {
        flex-direction: column;
        position: fixed;
        top: 1px;
        right: -100%;
        background: #fff;
        width: 200px;
        box-shadow: 0 9px 28px rgba(20, 60, 60, 0.09);
        height: calc(100vh - 62px);
        gap: 0;
        padding-top: 82px;
        transition: right 0.4s cubic-bezier(.55, .06, .68, .19);
        z-index: 99;
        align-items: flex-start;
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-item {
        width: 100%;
    }
    .nav-link {
        display: block;
        padding: 10px 22px;
        width: 100%;
    }
    .hamburger {
        display: flex;
        margin-right: -50px;
    }

    /* Hero Section */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
        min-height: auto;
    }
    .hero-content {
        order: 2; /* Text below image */
    }
    .img_div {
        order: 1; /* Image above text */
        margin-bottom: 40px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    
    .services {
      margin-top: 0px;
    }

    /* Other Sections */
    .about-home {
        flex-direction: column;
        gap: 22px;
    }
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    .stat-card {
        width: 80%;
        max-width: 300px;
    }
    .clients-section {
        padding: 40px 15px;
    }
    .clients-section h2 {
        font-size: var(--h2_font_size);
        margin-bottom: 30px;
    }
    .client-logos {
        gap: 25px;
    }
    .client-logos img {
        max-width: 120px;
        height: 50px;
        padding: 8px 18px;
    }
}

/* Smaller Mobiles */
@media (max-width: 600px) {
    .logo_img {
        height: 140px;
        top: -30px;
        left: -25px;
        margin-right: 6px;
    }
}

/* Smallest Mobiles */
@media (max-width: 480px) {
    .clients-section h2 {
        font-size: 1.8rem;
    }
    .client-logos img {
        max-width: 100px;
        height: 45px;
        padding: 6px 15px;
    }
}

@media (max-width: 430px) {
    .logo_img {
      height: 140px;
      top: -30px;
      left: -20px;
    }
    .services-cards {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .hero {
        padding: 10px 20px 20px 10px;
        margin-bottom: 40px;
    }
    .hero-content {
      margin-top: 0;
      margin-bottom: 40px;
    }
    .img_div {
      margin-top: 100px;
      margin-bottom: 40px;
    }
    .hero-content h1 {
        font-size: 2.3rem;
    }
}

