@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --primary-dark: #121212; 
    --accent-gold: #b8860b; 
    --accent-hover: #d4af37;
    --light-bg: #f8f9fa;
    --text-muted: #888888;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--primary-dark);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* --- NAVIGATION --- */
header {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.logo img {
    max-height: 70px;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
}

nav a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-gold);
}

.btn-track {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 2px;
    border: 1px solid var(--primary-dark);
}

.btn-track:hover {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--white);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 5%;
    margin-top: 80px;
    background: linear-gradient(rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.8)), url('port_klang.jpg') center/cover;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    font-weight: 300;
    color: #e0e0e0;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--white);
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- STATS SECTION --- */
.stats-container {
    display: flex;
    justify-content: space-around;
    padding: 60px 5%;
    background-color: var(--primary-dark);
    color: var(--white);
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* --- IMAGE MARQUEE (SCROLLING BADGES) --- */
.image-marquee-wrapper {
    overflow: hidden;
    background: var(--white); /* Changed to pure white */
    padding: 40px 0;
    border-top: 1px solid #eaeaea; /* Light grey border so it blends perfectly */
    border-bottom: 1px solid #eaeaea;
    display: flex; 
}

.image-marquee {
    display: flex;
    flex-shrink: 0;
    min-width: 100%;
    align-items: center;
    justify-content: space-around; 
    animation: scrollMarquee 20s linear infinite;
}

.image-marquee img {
    height: 85px; 
    margin: 0 40px; 
    object-fit: contain;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Pause the scrolling if a client hovers over it to read a badge */
.image-marquee-wrapper:hover .image-marquee {
    animation-play-state: paused;
}
}

/* --- GENERAL SECTIONS --- */
.section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    margin: 20px auto 0;
}

/* --- INTERACTIVE SERVICE SHOWCASE --- */
.showcase-container {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    background: var(--white);
    border: 1px solid #eaeaea;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.showcase-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--primary-dark);
}

.showcase-btn {
    padding: 30px;
    text-align: left;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.showcase-btn:hover {
    color: var(--white);
    background: rgba(255,255,255,0.05);
}

.showcase-btn.active {
    color: var(--white);
    background: var(--accent-gold);
    border-left: 5px solid var(--white);
}

.showcase-content-area {
    flex: 2;
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.showcase-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.showcase-pane.active {
    display: block;
}

.showcase-pane img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 2px;
}

.showcase-pane h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.showcase-pane ul {
    list-style: none;
    margin-top: 20px;
}

.showcase-pane ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.showcase-pane ul li::before {
    content: '\f058'; 
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

/* --- UPGRADED GLOBAL REACH SECTION --- */
.global-footprint {
    /* Adding a dark, professional background image instead of solid color */
    background: linear-gradient(rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.95)), url('global.jfif') center/cover fixed;
    color: var(--white);
    padding: 100px 5%;
    border-bottom: 2px solid var(--accent-gold);
}

.global-footprint h2 {
    color: var(--white);
    margin-bottom: 20px;
    text-align: center;
}

.hubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.hub-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-top: 3px solid var(--accent-gold);
    backdrop-filter: blur(5px);
}

.hub-card h4 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.hub-card p {
    color: #cccccc;
    font-size: 0.9rem;
}

/* --- CORPORATE COOKIE CONSENT BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0; /* Anchor it to the bottom */
    left: 0;
    width: 100%;
    background-color: var(--primary-dark);
    border-top: 2px solid var(--accent-gold);
    color: var(--white);
    padding: 20px 5%;
    z-index: 9999;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    
    /* THE FIX: Push it down by 120% of its own height, no matter how tall it is */
    transform: translateY(120%); 
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); /* Keeps your smooth animation */
    
    display: flex;
    justify-content: center;
}

.cookie-banner.show {
    /* Bring it back to normal position */
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    width: 100%;
    gap: 40px;
}

.cookie-content p {
    font-size: 0.85rem;
    color: #d0d0d0;
    margin: 0;
    line-height: 1.6;
}

.cookie-content a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s;
}

.cookie-content a:hover {
    border-bottom: 1px solid var(--accent-gold);
}

@media (max-width: 900px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}


/* --- FOOTER UPGRADE --- */
footer {
    background-color: #080808; /* Much darker than the section above it so it stands out */
    color: var(--text-muted);
    text-align: center;
    padding: 40px 5%;
    font-size: 0.9rem;
}

footer strong {
    color: var(--white);
}


/* =========================================
   MOBILE RESPONSIVE FIXES (Under 768px)
   ========================================= */
@media screen and (max-width: 768px) {
    
    /* 1. Fix the giant text cutting off */
    h1 {
        font-size: 2.2rem !important; /* The !important overrides your inline styles */
        line-height: 1.2;
    }
    
    h2, .section-title {
        font-size: 1.8rem !important;
    }
    
    p {
        font-size: 1rem !important;
    }

    /* 2. Fix the Header for Mobile */
    header {
        padding: 15px 5%;
        flex-wrap: wrap; /* Allows items to wrap if needed */
    }

    /* Hide standard navigation on mobile */
    header nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #ffffff;
        position: absolute;
        top: 70px; /* Adjust based on your header height */
        left: 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
        z-index: 1000;
    }

    /* Show navigation when active */
    header nav ul.active {
        display: flex;
    }

    header nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    /* 3. Hamburger Menu Icon Styling */
    .mobile-menu-btn {
        display: block !important;
        font-size: 1.8rem;
        color: #121212;
        cursor: pointer;
        position: absolute;
        right: 5%;
        top: 25px;
    }
	
	/* Fix the Index Showcase squish */
    .showcase-content-area {
        flex-direction: column; /* Stacks image under text */
        padding: 30px 20px; /* Reduces the massive desktop padding */
        gap: 30px;
    }
	
	/* Fix the Services zigzag rows squish */
    .service-row, .service-row:nth-child(even) {
        flex-direction: column !important; /* Stacks everything on mobile */
        padding: 0 5% !important;
        gap: 30px;
    }

    /* Fix the Contact page grid squish */
    .contact-grid {
        grid-template-columns: 1fr !important; /* Changes 2 columns to 1 column */
    }
}

/* Hide hamburger on desktop */
.mobile-menu-btn {
    display: none;
}