/* ==========================================================================
   GLOBAL SETTINGS & RESET
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background: #fff;
    color: #111;
    overflow-x: hidden;
}

/* ==========================================================================
   NAVBAR & HEADER LOGO
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 95px; 
    z-index: 999;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.nav {
    width: 90%;
    max-width: 1200px;
    height: 95px; 
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-box {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.logo {
    height: 70px; 
    max-height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.menu {
    display: flex;
    gap: 28px;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: 0.3s ease;
}

.menu a:hover {
    color: #0057b8;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #0057b8;
    transition: 0.3s ease;
}

.menu a:hover::after {
    width: 100%;
}

/* ==========================================================================
   HERO SECTION (DYNAMIC SLIDESHOW EDITION)
   ========================================================================== */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: #001f42;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.06);
    animation: premiumHeroFade 18s linear infinite;
}

.hero-slide:nth-child(1) {
    background-image: url("images/hero1.jpg");
    animation-delay: 0s;
}
.hero-slide:nth-child(2) {
    background-image: url("images/hero2.jpg");
    animation-delay: 6s;
}
.hero-slide:nth-child(3) {
    background-image: url("images/hero3.jpg");
    animation-delay: 12s;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 25, 50, 0.65) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 90%;
    max-width: 900px;
    margin: auto;
    padding-top: 95px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.5px;
    opacity: 0;
    transform: translateY(25px);
    animation: heroTextReveal 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.2s;
}

.hero p {
    margin-top: 20px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    animation: heroTextReveal 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.4s;
}

.hero-actions {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(15px);
    animation: heroTextReveal 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.6s;
}

.btn {
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.primary {
    background: #0057b8;
    color: #ffffff;
    border: 1px solid #0057b8;
}

.primary:hover {
    background: #004494;
    border-color: #004494;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 87, 184, 0.3);
}

.outline {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.outline:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: #111111;
    transform: translateY(-2px);
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.stats {
    padding: 60px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.stats-grid {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat h2 {
    color: #0057b8;
    font-size: 36px;
    margin-bottom: 5px;
}

.stat p {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.stat {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.stat.animated-in {
    opacity: 1;
    transform: translateY(0);
}

.stats-grid .stat:nth-child(1) { transition-delay: 0.1s; }
.stats-grid .stat:nth-child(2) { transition-delay: 0.2s; }
.stats-grid .stat:nth-child(3) { transition-delay: 0.3s; }
.stats-grid .stat:nth-child(4) { transition-delay: 0.4s; }

/* ==========================================================================
   ABOUT SECTION (CHAIRMAN TEXT & IMAGE CENTERED ADJUSTMENT)
   ========================================================================== */
.about {
    padding: 100px 0;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
}

.tag {
    font-size: 12px;
    letter-spacing: 2px;
    color: #0057b8;
    font-weight: 600;
}

.about-text h2 {
    font-size: 42px;
    margin: 15px 0;
    color: #111;
    line-height: 1.3;
}

.about-text p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 15px;
}

.quote-box {
    margin-top: 25px;
    padding: 20px;
    border-left: 4px solid #0057b8;
    background: #f7f9fc;
}

.quote {
    font-style: italic;
    color: #222;
    font-size: 15px;
}

.author {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.about-image {
    position: relative;
    text-align: center; 
}

.about-image img {
    width: 100%;
    max-width: 320px; 
    margin: 0 auto;  
    border-radius: 12px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.chairman-title {
    margin-top: 20px;
    text-align: center; 
}

.chairman-title h4 {
    color: #0057b8;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.chairman-title p {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0;
}

/* ==========================================================================
   OUR BUSINESS SECTORS
   ========================================================================== */
.section {
    padding: 90px 0;
}

.alt {
    background: #f7f9fc;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: 700;
    color: #111;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    position: relative;
    height: 320px; 
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: flex-end; 
    padding: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    background-color: #fff;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: 0;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.card:hover::before {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.85) 0%, 
        rgba(0, 0, 0, 0.4) 35%, 
        rgba(0, 0, 0, 0) 70%
    );
    z-index: 1;
    transition: background 0.4s ease;
}

.card:hover .card-overlay {
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(0, 0, 0, 0.5) 40%, 
        rgba(0, 0, 0, 0.05) 70%
    );
}

.card-content {
    position: relative;
    z-index: 2; 
    text-align: left;
    width: 100%;
}

.card-content h3 {
    color: #ffffff;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sector-food::before { background-image: url("images/food.jpg"); }
.sector-agriculture::before { background-image: url("images/agriculture.jpg"); }
.sector-fashion::before { background-image: url("images/fashion.jpg"); }
.sector-logistics::before { background-image: url("images/logistics.jpg"); }
.sector-realestate::before { background-image: url("images/realestate.jpg"); }
.sector-investment::before { background-image: url("images/investment.jpg"); }

/* ==========================================================================
   INFINITE PORTFOLIO LOGO SLIDER
   ========================================================================== */
#brands {
    background-color: #f7f9fc;
    padding: 100px 0;
}

.logo-slider {
    overflow: hidden;
    padding: 20px 0 60px 0; 
    position: relative;
    width: 100%;
    margin-top: 30px; 
    mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.logo-track {
    display: flex;
    align-items: center;    
    width: calc(380px * 30); 
    transform: translateX(calc(-380px * 15)); 
    animation: scrollLogosRight 40s linear infinite;
}

.logo-track:hover {
    animation-play-state: paused;
}

.logo-slider .slide {
    width: 350px; 
    height: 190px; 
    margin: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04); 
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 15px 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-slider .slide:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.logo-slider .slide img {
    width: 100%;
    height: 100%;
    max-height: 150px; 
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-slider .slide:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    background-color: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
    box-sizing: border-box;
}

.contact-info-panel h2 {
    font-size: 32px;
    color: #001f42;
    margin: 10px 0 15px 0;
    font-weight: 700;
}

.section-subtitle-text {
    color: #666;
    font-size: 15px;
    margin: 10px 0 35px 0;
    line-height: 1.5;
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.office-card {
    background: #f7f9fc;
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 24px;
    border-radius: 12px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.office-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    border-color: rgba(0, 87, 184, 0.15);
}

.office-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.country-flag {
    width: 28px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    object-fit: contain;
}

.office-card h3 {
    font-size: 16px;
    color: #111;
    font-weight: 600;
    margin: 0;
}

.office-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.contact-form-panel {
    width: 100%;
}

.form-box {
    background: #001f42;
    padding: 45px 35px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 31, 66, 0.15);
    box-sizing: border-box;
}

.form-box h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.4;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form input,
.form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form input::placeholder,
.form textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form input:focus,
.form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: #0057b8;
    box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.25);
}

.form button {
    background: #0057b8;
    color: #ffffff;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
    box-sizing: border-box;
    transition: background 0.3s ease, transform 0.2s ease;
}

.form button:hover {
    background: #004494;
    transform: translateY(-2px);
}

/* ==========================================================================
   GLOBAL SITE FOOTER
   ========================================================================== */
.site-footer {
    display: block !important;
    width: 100% !important;
    background-color: #001f42 !important;
    padding: 35px 0;
    box-sizing: border-box !important;
    clear: both !important;
    margin-top: 50px;
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto !important;
    display: flex;
    flex-direction: column;
    align-items: center !important;    
    justify-content: center !important;
    text-align: center !important;
    gap: 8px;           
    padding: 0 20px;
    box-sizing: border-box !important;
}

.copyright {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px !important;
    margin: 0 !important;
    letter-spacing: 0.3px;
    text-align: center !important;
}

.footer-link {
    color: #0057b8 !important;         
    font-size: 14px !important;
    text-decoration: none !important;
    font-weight: 500;
    display: inline-block;
    transition: color 0.3s ease;
    text-align: center !important;
}

.footer-link:hover {
    color: #ffffff !important;         
    text-decoration: underline !important;
}

/* ==========================================================================
   KEYFRAME ENGINES
   ========================================================================== */
@keyframes premiumHeroFade {
    0% { opacity: 0; transform: scale(1.06); }
    8% { opacity: 1; }
    33% { opacity: 1; }
    41% { opacity: 0; transform: scale(1.02); }
    100% { opacity: 0; }
}

@keyframes heroTextReveal {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollLogosRight {
    0% { transform: translateX(calc(-380px * 15)); }
    100% { transform: translateX(0); }
}

/* ==========================================================================
   GLOBAL RESPONSIVENESS MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .hero h1 { font-size: 42px; }
    .about-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 768px) {
    .navbar, .nav { height: 75px; }
    .menu { display: none; }
    .logo { height: 52px; max-height: 52px; }
    .hero h1 { font-size: 32px; line-height: 1.3; }
    .hero p { font-size: 15px; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .btn { width: 100%; text-align: center; }
    .about { padding: 60px 0; }
    .about-text h2 { font-size: 28px; }
    .grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    
    /* LOGO SLIDER ON MOBILE */
    .logo-track {
        width: calc(260px * 30);
        transform: translateX(calc(-260px * 15));
    }
    .logo-slider .slide {
        width: 240px; 
        height: 140px; 
        margin: 0 10px;
        padding: 10px 15px;
    }
    .logo-slider .slide img {
        max-height: 110px; 
        width: 100%;
        height: 100%;
    }
    @keyframes scrollLogosRight {
        0% { transform: translateX(calc(-260px * 15)); }
        100% { transform: translateX(0); }
    }
    
    /* MOBILE CONTACT CONTAINER FIXES */
    .contact-section {
        padding: 50px 0;
    }
    .contact-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
        padding: 0 15px !important;
    }
    .offices-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .contact-info-panel, 
    .contact-form-panel {
        width: 100% !important;
    }
    .contact-info-panel h2,
    .contact-info-panel .tag,
    .section-subtitle-text {
        text-align: center !important;
        display: block;
    }
    .section-subtitle-text {
        margin-bottom: 30px !important;
    }
    .form-box {
        padding: 25px 20px !important;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 14px; }
    .section-title { font-size: 24px; }
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    background-color: #0057b8;
    color: white;
    border: none;
    outline: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTop:hover {
    background-color: #004494;
    transform: translateY(-3px);
}

/* Show class triggered by JavaScript */
#backToTop.show {
    opacity: 1;
    visibility: visible;
}

/* Adjust position slightly on mobile so it doesn't block content */
@media (max-width: 768px) {
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}
/* ==========================================================================
   MOBILE MENU CORE RESPONSIVE OVERRIDES
   ========================================================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #001f42; /* Clean deep blue theme contrast */
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Transform hamburger into an 'X' close indicator when active */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Reveal mobile trigger */
    }

    .menu {
        position: fixed;
        top: 0;
        right: -100%; /* Hide completely off-screen by default */
        width: 280px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        display: flex !important; /* Force layout activation on responsive check */
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 120px 40px 40px 40px;
        gap: 35px;
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 1000;
    }

    .menu.active {
        right: 0; /* Smoothly slide menu in from the right edge */
    }

    .menu a {
        font-size: 18px;
        font-weight: 600;
        width: 100%;
    }
    
    .menu a::after {
        display: none; /* Strip off desktop hover animations for tap screens */
    }
}