/*Flat UI*/
:root {
    --royal-blue: #305CDE;
    --gold: #FFD700;        /* Gold */
    --white: #FFFFFF;
    --gold-glow: rgba(212, 175, 55, 0.4); 
    --glass-white: rgba(255, 255, 255, 0.95);
    --light-grey: #F4F7F6;
    --dark-text: #2C3E50;
    /* Soft shadow rather than hard shape lines */
    --flat-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

body {
    margin: 0;
    font-family: 'Segoe UI', 'Playfair Display', sans-serif;
    font-size: 1.3rem;
    color: var(--dark-text);
    background-color: var(--white);
}

/* Header: Floating Flat Style */
header {
    background-color: var(--royal-blue);
    color: var(--white);
    padding: 15px 5%;
    box-shadow: var(--flat-shadow); /* No hard border line */
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-area { display: flex; align-items: center; gap: 15px; }
.logo-img { height: 50px; }

.company-name {
    font-size: 1.7rem;
    font-weight: 800;
    display: block;
}

/* Navigation */
nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
}

.portal-btn {
    background: var(--gold);
    color: var(--royal-blue) !important;
    padding: 8px 18px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Social Icons in Header */
.header-socials {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.header-socials a {
    color: var(--gold);
    font-size: 0.9rem;
    text-decoration: none;
}

.header-socials a:hover {
    color: var(--white);
}

/* Portal Navigation Link */
.portal-link {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px); /* Frost effect */
    border: 1px solid var(--gold-bright);
    padding: 10px 22px;
    border-radius: 50px; /* Pill shape for depth */
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.portal-link:hover {
    background: var(--gold-bright);
    color: var(--gold) !important;
    box-shadow: 0 0 15px var(--gold-glow);
}

/* Hero Section */
.hero {
    background: var(--royal-blue);
    color: var(--white); /* White text */
    padding: 100px 5%;
    text-align: center;
}

.hero h1 { 
    font-size: 3rem; 
    margin: 0; 
    color: var(--white); 
    text-shadow:
    -1px -1px 0 #FFD700,
     1px -1px 0 #FFD700,
    -1px  1px 0 #FFD700,
     1px  1px 0 #FFD700;
}

.hero-content p {font-size: 1.5rem;}

/* --- Logistics Lifecycle Section Styles --- */
.logistics-lifecycle {
    padding: 100px 6%;
    background-color: var(--bg-light);
}

.section-intro {
    text-align: center;
    margin-bottom: 60px;
}

.section-intro h2 {color: var(--royal-blue); font-size: 1.8rem;}

.section-intro p {font-size: 1.5rem;}

.lifecycle-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* The Step Card */
.step-card {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--soft-shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0; /* Starts hidden for scroll reveal */
    transform: translateY(30px);
}

/* Alternating Layout for visual interest */
.step-card:nth-child(even) {
    flex-direction: row-reverse;
}

.media-wrap {
    flex: 1;
    overflow: hidden;
    background: #f0f4f8;
}

.media-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Subtle breathing animation for GIFs */
    animation: imageFloat 6s ease-in-out infinite;
}

.step-content {
    flex: 1;
    padding: 60px;
    position: relative;
}

.step-num {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(48, 92, 222, 0.05); /* Very faint Royal Blue */
    position: absolute;
    top: 20px;
    left: 40px;
}

.step-content h3 {
    color: var(--royal-blue);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* --- Captivating Animations --- */

/* 1. Image Floating Effect */
@keyframes imageFloat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 2. Entrance Animation (Triggered by JS or Scroll) */
.step-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Hover Interaction */
.step-card:hover {
    box-shadow: 0 20px 40px rgba(48, 92, 222, 0.12);
    transform: scale(1.02);
}

.step-card:hover .step-num {
    color: var(--gold);
    opacity: 0.2;
    transition: 0.4s ease;
}

/* The Global Connect: Contact Info Style */
/* --- Contact Section Styles --- */
.contact-us {
    padding: 80px 6%;
    background-color: var(--white);
}

.contact-container {
    display: flex;
    gap: 50px;
    align-items: center;
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--soft-shadow); /* Soft shadows instead of lines */
}

.contact-info {
    flex: 1;
}

.section-title {
    color: var(--royal-blue);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.subtitle {
    color: #718096;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item i {
    color: var(--gold);
    font-size: 1.4rem;
    margin-top: 5px;
}

.info-item h4 {
    margin: 0;
    color: var(--royal-blue);
    font-size: 1.1rem;
}

.info-item p {
    margin: 5px 0 0;
    color: #4A5568;
}

/* WhatsApp Community Button */
.wa-community-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    background-color: var(--royal-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(48, 92, 222, 0.2);
}

.wa-community-btn:hover {
    background-color: var(--gold);
    color: var(--royal-blue);
    transform: translateY(-3px);
}

/* Map Styling */
.map-wrapper {
    flex: 1.2;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--soft-shadow);
}

.styled-map {
    width: 100%;
    height: 100%;
    border: none;
    /* This filter tints the map to Royal Blue */
    filter: hue-rotate(190deg) brightness(0.9) contrast(1.1) saturate(0.8);
}

/* Optional Overlay to add a Gold 'glow' to the map edge */
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border: 2px solid rgba(212, 175, 55, 0.1);
    border-radius: 20px;
}

/* Subsidiary Hub */
.subsidiary-grid {
    padding: 80px 5%;
    background: var(--light-grey);
}

.section-title { text-align: center; margin-bottom: 50px; }

.logo-hub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.sub-card {
    background: var(--white);
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: var(--royal-blue);
    display: block;
    border-radius: 0.5em;
    box-shadow: var(--flat-shadow); /* Replaces borders for shape */
    transition: transform 0.2s;
}

.sub-card img { height: 80px; margin-bottom: 15px; }

.sub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(48, 92, 222, 0.15);
}

/* Footer */
footer {
    background: #081633;
    color: var(--white);
    padding: 50px 5% 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

/* Footer Socials */
.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-social-links a {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
}

.bottom-tag {
    text-align: center;
    margin-top: 40px;
    font-size: 0.8rem;
    border-top: 1px solid #333;
    padding-top: 20px;
}

/* --- Back to Top Button Styles --- */
#backToTop {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--royal-blue);
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Circular shape */
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(48, 92, 222, 0.3); /* Soft blue shadow */
    transition: all 0.3s ease;
}

#backToTop:hover {
    background-color: var(--gold);
    color: var(--royal-blue);
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* --- Mobile Responsiveness (Phones & Tablets) --- */
@media screen and (max-width: 768px) {
    
    /* 1. Header: Stack branding and nav if they get too tight */
    .navbar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .brand-area {
        flex-direction: column;
    }

    /* 2. Lifecycle Section: Force vertical stacking */
    .step-card, .step-card:nth-child(even) {
        flex-direction: column !important;
        height: auto;
    }

    .media-wrap, .step-content {
        width: 100%;
        padding: 30px 20px;
    }

    .step-num {
        font-size: 3.5rem; /* Shrink background numbers for mobile */
        top: 10px;
        left: 20px;
    }

    .hero h1 {
        font-size: 2.2rem; /* Scale down hero text */
    }

    /* 3. Contact Section: Stack Map and Info */
    .contact-container {
        flex-direction: column;
        padding: 20px;
    }

    .map-wrapper {
        width: 100%;
        height: 300px; /* Shorter map for mobile viewing */
    }

    /* 4. Navigation Links */
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    nav a {
        margin: 0 10px;
        font-size: 0.8rem;
    }

    /* 5. Back to Top: Move slightly for thumb-reach */
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
