:root {
    --bg-light: #F4F6F9;
    --bg-dark-panel: #0C101A;
    --text-dark: #2C3E50;
    --text-muted: #7F8C8D;
    --text-light: #FFFFFF;
    --border-color: #E2E8F0;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    
    /* KMBA BRAND PALETTE IDENTIFIERS */
    --kmba-blue: #005A9C;
    --kmba-teal: #00A896;
    --kmba-green: #02B875;
    
    /* DROPDOWN MATRICES COLOR */
    --dropdown-bg: #EBF1F6;
    --dropdown-text-color: #1E293B;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- CORPORATE ALERT BANNER --- */
.corporate-popup {
    position: fixed;
    bottom: -100px;
    right: 25px;
    background: var(--text-light);
    border-left: 4px solid var(--kmba-blue);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 18px 24px;
    z-index: 9999;
    transition: all 0.4s ease-in-out;
}
.corporate-popup.show-popup {
    bottom: 25px;
}
.popup-content {
    display: flex;
    align-items: center;
    gap: 14px;
}
.popup-icon {
    color: var(--kmba-blue);
    font-size: 1.3rem;
}
#popupText {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}
.popup-link {
    color: var(--kmba-blue);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}
.popup-link:hover {
    color: var(--kmba-teal);
}
.popup-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    margin-left: 15px;
}
.popup-close:hover {
    color: var(--text-dark);
}

/* --- FRAMEWORK WORKSPACE LAYOUT --- */
.workspace {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    width: 100%;
}
.iframe-container {
    width: 100%;
    background: var(--text-light);
}
.site-wrapper {
    width: 100%;
    margin: 0 auto;
}

/* --- BRAND LOGO AND TYPOGRAPHY INFRASTRUCTURE --- */
header {
    background: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .logo {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}

.animated-logo-container {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--text-light);
}
.animated-logo-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--kmba-teal);
    animation: logoGlowPulse 2.5s infinite ease-in-out;
}
header .logo img.mini-logo-img {
    height: 52px;
    width: 52px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

header .logo .brand-text {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--kmba-blue) 30%, var(--kmba-teal)100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
header .logo .brand-text small {
    display: block;
    font-size: 0.72rem;
    color: var(--kmba-green);
    -webkit-text-fill-color: var(--kmba-green);
    letter-spacing: 3px;
    font-weight: 700;
    margin-top: 2px;
}

@keyframes logoGlowPulse {
    0% {
        transform: scale(0.96);
        box-shadow: 0 0 0 0 rgba(0, 168, 150, 0.4);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 15px 4px rgba(0, 90, 156, 0.2);
        opacity: 1;
    }
    100% {
        transform: scale(0.96);
        box-shadow: 0 0 0 0 rgba(0, 168, 150, 0.4);
        opacity: 0.6;
    }
}

/* --- RE-ARCHITECTED INTERACTIVE MENU SYSTEM --- */
nav {
    display: flex;
    gap: 15px;
    align-items: center;
}
.nav-item-wrapper {
    position: relative;
    padding: 10px 12px;
}
nav .nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.94rem;
    transition: color 0.25s;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
}
nav .nav-link:hover, nav .nav-link.active {
    color: var(--kmba-blue);
}
.nav-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
    color: var(--text-muted);
}
.dropdown-trigger-node:hover .nav-arrow {
    transform: rotate(180deg);
    color: var(--kmba-blue);
}

/* SWIPE DROPDOWN CONTAINER ARCHITECTURE */
.swipe-mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--dropdown-bg);
    width: 290px;
    border-radius: 6px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    padding: 14px 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s;
    z-index: 1200;
}
.dropdown-pointer-arrow {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--dropdown-bg);
}
.dropdown-trigger-node:hover .swipe-mega-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(2px);
}

/* DROPDOWN SUBHEADING LINKS LIST */
.dropdown-link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 5;
}
.dropdown-link-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.dropdown-link-list li:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateX(4px);
}
.menu-icon-accent {
    font-size: 1.15rem;
    color: #475569;
    width: 22px;
    text-align: center;
}
.dropdown-link-list li:hover .menu-icon-accent {
    color: var(--kmba-blue);
}
.link-meta span {
    display: block;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--dropdown-text-color);
}

/* --- MOBILE NAVIGATION REFINEMENTS --- */
.mobile-menu-divider {
    height: 1px;
    background: #232D42;
    margin: 8px 0;
}
.mobile-group-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--kmba-teal);
    font-weight: 700;
    margin-bottom: 2px;
}
.sub-m-link {
    padding-left: 12px !important;
    font-size: 1rem !important;
    color: #94A3B8 !important;
}

/* --- APPLICATION SECTION MECHANICS --- */
.web-section {
    padding: 80px 5%;
    display: none;
}
.web-section.active-section {
    display: block;
}
.hero-center-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.centered-corporate-logo {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}
.logo-accent-ring {
    position: absolute;
    top: -12px; left: -12px; right: -12px; bottom: -12px;
    border: 2px dashed var(--kmba-teal);
    border-radius: 50%;
    opacity: 0.4;
}
.main-center-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--text-light);
    padding: 12px;
    box-shadow: var(--card-shadow);
}
.animated-hero-logo {
    animation: logoGlowPulse 4s infinite ease-in-out;
}
.themed-header-text {
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--kmba-blue) 20%, var(--kmba-teal) 60%, var(--kmba-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
}
.hero-tagline {
    font-size: 1.35rem;
    color: var(--text-dark);
    margin-top: 12px;
    font-weight: 500;
    margin-bottom: 50px;
}
.hero-split-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

/* --- STRUCTURED CARD ECOSYSTEM --- */
.corporate-card {
    background: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 35px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.corporate-card.context-highlight {
    border-color: var(--kmba-teal);
    box-shadow: 0 0 25px rgba(0, 168, 150, 0.2);
    transform: scale(1.02);
}
.lead-text {
    font-size: 1.1rem;
    color: #4A5568;
    margin-bottom: 20px;
}
.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.badge {
    background: #EBF8FF;
    color: var(--kmba-blue);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.vision-mission-box {
    background: #F8FAFC;
    border-left: 3px solid var(--kmba-teal);
    padding: 15px;
    border-radius: 0 4px 4px 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-top: 15px;
    width: 100%;
}

/* --- BLUEPRINT DESIGN ASSET CONTAINER --- */
.engineering-blueprint-card {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: #0B132B;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    min-height: 400px;
}
.blueprint-graphic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}
.blueprint-overlay-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--kmba-blue);
    color: var(--text-light);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 2px;
    z-index: 2;
}

/* --- ENTERPRISE PRODUCT GALLERY GRID --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}
.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: #000;
    border: 1px solid var(--border-color);
    aspect-ratio: 16 / 10;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.gallery-item.context-highlight {
    border-color: var(--kmba-blue);
    box-shadow: 0 0 25px rgba(0, 90, 156, 0.3);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0.95;
}
.gallery-item:hover img {
    transform: scale(1.06);
    opacity: 0.35;
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95) 60%);
    padding: 30px 20px 20px 20px;
    color: var(--text-light);
    transform: translateY(45px);
    transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}
.gallery-caption h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-light);
}
.gallery-caption p {
    font-size: 0.85rem;
    color: #CBD5E1;
    line-height: 1.4;
    margin: 0;
}

/* --- CORE GRIDS AND TYPOGRAPHY --- */
.section-title {
    font-size: 2.2rem;
    text-align: center;
    color: var(--text-dark);
    font-weight: 700;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 700px;
    margin: 10px auto 50px auto;
    font-size: 1.05rem;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.icon-box {
    width: 60px;
    height: 60px;
    background: #EBF8FF;
    color: var(--kmba-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    border-radius: 8px;
    margin-bottom: 25px;
}
.corporate-card h3 {
    font-size: 1.35rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}
.corporate-card p {
    color: #5A6A85;
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    background: #F1F5F9;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 3px;
}

/* --- ACCORDION COMPONENT DESIGN --- */
.matrix-accordion {
    max-width: 900px;
    margin: 0 auto;
}
.accordion-node {
    background: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: border-color 0.3s;
}
.accordion-node.context-highlight {
    border-color: var(--kmba-green);
}
.accordion-trigger {
    padding: 22px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-dark);
    background: var(--text-light);
    transition: background 0.3s;
}
.accordion-node:hover .accordion-trigger {
    background: #FBFCFE;
}
.accordion-trigger i {
    transition: transform 0.3s;
    color: var(--text-muted);
}
.accordion-content {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background: #FDFEFE;
    border-top: 0 solid var(--border-color);
}
.accordion-node.open .accordion-trigger {
    color: var(--kmba-blue);
    background: #F5FAFF;
}
.accordion-node.open .accordion-trigger i {
    transform: rotate(180deg);
    color: var(--kmba-blue);
}
.accordion-node.open .accordion-content {
    padding: 25px 30px;
    max-height: 300px;
    border-top: 1px solid var(--border-color);
}

/* --- FORM LAYOUT CONFIGURATION --- */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.name-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    background: #F8FAFC;
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus {
    outline: none;
    border-color: var(--kmba-blue);
    background: var(--text-light);
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.1);
}
.corporate-btn {
    background: var(--kmba-blue);
    color: var(--text-light);
    border: none;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}
.corporate-btn:hover {
    background: var(--kmba-teal);
}

/* --- OFFICE LOCATION TOGGLES --- */
.location-terminal-wrapper {
    display: flex;
    flex-direction: column;
}
.location-selector-bar {
    display: flex;
    background: #E2E8F0;
    padding: 6px;
    border-radius: 6px;
    gap: 4px;
    margin-bottom: 20px;
}
.loc-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}
.loc-tab-btn.active {
    background: var(--text-light);
    color: var(--kmba-blue);
    box-shadow: var(--card-shadow);
}
.location-panel {
    display: none;
}
.location-panel.active-loc {
    display: block;
}
.location-panel h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.address-text {
    font-size: 0.98rem;
    color: #4A5568;
    margin-bottom: 20px;
}
.comms-line {
    font-size: 0.92rem !important;
    margin-bottom: 10px !important;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark) !important;
}
.comms-line i {
    color: var(--kmba-blue);
}
.corporate-map-placeholder {
    height: 140px;
    background: #EDF2F7;
    border: 1px dashed #CBD5E1;
    border-radius: 6px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-weight: 600;
    font-size: 0.85rem;
}

/* --- OVERLAY SMART DEVICE CONTAINER MENU --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-dark-panel);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 30px 24px;
    gap: 12px;
    overflow-y: auto;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-overlay.open-menu {
    left: 0;
}
.mobile-menu-overlay a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 500;
    padding: 4px 0;
    transition: color 0.3s;
}
.mobile-menu-overlay a:hover {
    color: var(--text-light);
}

/* --- ENTERPRISE FOOTER SYSTEM --- */
footer {
    background: var(--bg-dark-panel);
    color: #94A3B8;
    text-align: center;
    padding: 30px 5%;
    font-size: 0.9rem;
    border-top: 1px solid #2D2D3B;
    margin-top: 60px;
}

/* --- RESPONSIVE MEDIA BREAKPOINTS --- */
@media (max-width: 968px) {
    header nav {
        display: none;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .hero-split-grid, .contact-split {
        grid-template-columns: 1fr;
    }
    .themed-header-text {
        font-size: 2.2rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
/* Fix for overlapping section elements */
.web-section {
    padding: 80px 5%;
    display: none;
    width: 100%;
    height: auto; /* DO NOT use height: 100vh or a fixed px here; let text expand naturally */
    min-height: 100vh; /* This ensures it fills the screen safely without compressing content */
}

[data-theme="dark"] {
    /* System Dark Engine Tokens */
    --surface-bg: #090d16;
    --dock-bg: rgba(13, 20, 35, 0.65);
    --dock-border: rgba(255, 255, 255, 0.06);
    --card-bg: rgba(17, 25, 43, 0.45);
    --card-border: rgba(255, 255, 255, 0.04);
    
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    
    --accent-glow: #3b82f6;
    --accent-glow-rgb: 59, 130, 246;
    --accent-neon: #00e5ff;
    --grid-color: rgba(255, 255, 255, 0.02);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.footer-link {
    color: #ffffff; /* Hex code for white */
    text-decoration: none;
}

/* ==========================================
   AUTO-ADJUST & RESPONSIVE ENGINE (MOBILE & DESKTOP)
   ========================================== */

/* --- 1. FLUID TYPOGRAPHY & SPACING --- */
:root {
    /* Fluid padding and margins based on viewport width */
    --fluid-padding: clamp(1.25rem, 3vw, 5rem); /* Scales between 20px and 80px */
    --fluid-header-text: clamp(2rem, 5vw, 3.2rem); /* Dynamic hero font size */
    --fluid-section-title: clamp(1.75rem, 4vw, 2.5rem);
}

/* Apply fluid spacing to sections */
.web-section {
    padding: var(--fluid-padding) 5%;
}

/* --- 2. THEMED HEADERS & TEXT RESIZING --- */
.themed-header-text {
    font-size: var(--fluid-header-text);
    line-height: 1.15;
}

.section-title {
    font-size: var(--fluid-section-title);
}

/* --- 3. FLEXIBLE CONTAINERS & GRID AUTO-FIT --- */
.site-wrapper {
    width: 100%;
    max-width: 1440px; /* Prevents stretching on ultra-wide screens */
    margin: 0 auto;
    padding: 0 15px; /* Side safety gutter */
}

/* Dynamic Grid Systems that scale gracefully down to 280px wide devices */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(15px, 2.5vw, 30px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: clamp(15px, 2vw, 25px);
}

/* --- 4. MOBILE HAMBURGER BUTTON STYLING --- */
.mobile-nav-toggle {
    display: none; /* Hidden on desktop */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* --- 5. BREAKPOINT ADAPTATION --- */

/* --- TABLETS & LANDSCAPE MOBILE (max-width: 968px) --- */
@media (max-width: 968px) {
    header {
        padding: 15px 4%;
    }

    header nav {
        display: none; /* Hide standard desktop navigation */
    }

    .mobile-nav-toggle {
        display: block; /* Show menu icon */
    }

    /* Stack Split-Grids to Single Column */
    .hero-split-grid, 
    .contact-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Reverse order of column assets on mobile for better flow if needed */
    .hero-split-grid {
        display: flex;
        flex-direction: column-reverse;
    }
}

/* --- PORTRAIT MOBILE PHONES (max-width: 576px) --- */
@media (max-width: 576px) {
    /* Tighten visual hierarchy for compact mobile viewports */
    header .logo .brand-text {
        font-size: 1.3rem;
    }
    
    header .logo img.mini-logo-img {
        height: 40px;
        width: 40px;
    }

    .animated-logo-container {
        width: 48px;
        height: 48px;
    }

    .corporate-card {
        padding: 22px 18px; /* Make cards less padded on mobile to maximize space */
    }

    .name-inputs {
        grid-template-columns: 1fr; /* Stack First & Last Name fields vertically */
        gap: 10px;
    }

    .location-selector-bar {
        flex-direction: column; /* Stack tabs on small screens */
    }

    .loc-tab-btn {
        padding: 10px;
    }

    .corporate-popup {
        width: calc(100% - 30px); /* Fill screen width with clean safety margins */
        right: 15px;
        left: 15px;
    }
}
/* ==========================================================================
   KMBA AUTO-ADJUSTING RESPONSIVE ENGINE (MOBILE & DESKTOP COEXISTENCE)
   ========================================================================== */

/* --- 1. Global Fluid Typography Scaling --- */
:root {
    --fs-h1: clamp(1.8rem, 4.5vw + 0.5rem, 3rem);       /* Dynamic main headers */
    --fs-h2: clamp(1.5rem, 3.5vw + 0.5rem, 2.2rem);     /* Dynamic section titles */
    --fs-h3: clamp(1.15rem, 2vw + 0.6rem, 1.45rem);     /* Cards & Sub-headings */
    --fs-body: clamp(0.92rem, 0.4vw + 0.8rem, 1.05rem);  /* Easy-read body copy */
    --fs-meta: clamp(0.75rem, 0.2vw + 0.6rem, 0.85rem);  /* Small labels & Badges */
}

/* Apply fluid defaults safely */
body {
    font-size: var(--fs-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Prevents any accidental horizontal mobile scrolling */
}

/* --- 2. Adaptive Desktop Header & Brand Zone --- */
.main-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-text {
    font-size: clamp(0.95rem, 1.5vw + 0.5rem, 1.15rem);
    font-weight: 700;
}

/* --- 3. Auto-Scaling Layout Framework --- */
.main-layout-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem) 1.5rem;
}

.web-section {
    padding: clamp(2rem, 6vw, 5rem) 0;
}

/* Hero Centered Elements */
.themed-header-text {
    font-size: var(--fs-h1);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: var(--fs-h3);
    line-height: 1.4;
    color: #4A5568;
    margin-bottom: 2.5rem;
}

/* Intelligent Asymmetric Grid (Desktops) */
.hero-split-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.corporate-card {
    background: #ffffff;
    border-radius: 12px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

/* Competency Grid (Desktops) */
.grid-competency-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
}

.grid-competency-matrix h3 {
    font-size: var(--fs-h3);
}

/* Badge Arrays */
.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.badge-accent, .badge, .tag {
    font-size: var(--fs-meta);
}

/* --- 4. Mobile Adaptability Override Core --- */

/* Medium Devices (Tablets/Laptops - under 992px) */
@media (max-width: 992px) {
    .hero-split-grid {
        grid-template-columns: 1fr; /* Drop side-by-side; stack content cards vertically */
    }
    
    .grid-competency-matrix {
        grid-template-columns: repeat(2, 1fr); /* Transition to comfortable 2-column cards */
    }
    
    .engineering-blueprint-card {
        min-height: 250px;
    }
}

/* Mobile Devices (Phones - under 768px) */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important; /* Safely hides header link arrays */
    }
    
    .mobile-nav-toggle {
        display: block !important; /* Exposes Hamburger icon */
    }

    .grid-competency-matrix {
        grid-template-columns: 1fr; /* Drop directly into a clean single-column cascade */
    }

    /* Full-screen Slide Drawer Styling */
    .mobile-menu-overlay {
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        height: calc(100vh - 65px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
        z-index: 999;
        display: none;
        overflow-y: auto;
        padding: 2rem 1.5rem;
        transition: all 0.3s ease-in-out;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .mobile-nav-links a {
        text-decoration: none;
        color: #1A202C;
        font-size: 1.15rem;
        font-weight: 600;
        padding: 0.5rem 0;
        border-bottom: 1px solid #EDF2F7;
    }

    .mobile-menu-divider {
        height: 1px;
        background: #E2E8F0;
        margin: 0.5rem 0;
    }

    .mobile-group-lbl {
        font-size: var(--fs-meta);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #718096;
        font-weight: 700;
        margin-top: 0.5rem;
    }

    .sub-m-link {
        padding-left: 1rem !important;
        font-size: 1rem !important;
        color: #4A5568 !important;
        border-bottom: none !important;
    }
}
/* --- Mobile Dropdown Menu Styles --- */
.mobile-dropdown-btn {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1A202C;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #EDF2F7;
}

.mobile-dropdown-btn .mobile-arrow {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

/* Hidden by default, expands when active */
.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    display: flex;
    flex-direction: column;
}

.mobile-dropdown-wrapper.active .mobile-dropdown-content {
    max-height: 500px; /* Large enough to fit the children content */
    transition: max-height 0.3s ease-in-out;
}

/* Rotate arrow when open */
.mobile-dropdown-wrapper.active .mobile-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-content .sub-m-link {
    padding-left: 1.25rem !important;
    font-size: 1rem !important;
    color: #4A5568 !important;
    border-bottom: none !important;
}

/* ==========================================================================
   PREMIUM CENTERED EXPLORE SERVICES BUTTON (KMBA THEME)
   ========================================================================== */

.center-cta-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2.5rem auto 3.5rem auto; /* Creates balanced spacing above & below the button */
    width: 100%;
    z-index: 5;
}

/* Base Premium Button Styling */
.premium-explore-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, #0d5c4b 0%, #0c3e66 100%); /* Elegant Teal-Blue Gradient matched to KMBA logo */
    color: #ffffff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.08em;
    padding: 1.1rem 2.4rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(12, 62, 102, 0.25), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.3s ease, 
                border-color 0.3s ease;
}

/* Hover & Active States */
.premium-explore-btn:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: #22c55e; /* Vibrant Green accent boundary line */
    box-shadow: 0 15px 30px rgba(34, 197, 94, 0.2), 
                0 0 15px rgba(13, 92, 75, 0.15);
}

.premium-explore-btn:active {
    transform: translateY(-1px) scale(0.99);
}

/* Interactive Label */
.btn-label-text {
    position: relative;
    z-index: 3;
}

/* Sliding Right Arrow Icon box */
.btn-arrow-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    z-index: 3;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.arrow-moving {
    font-size: 0.9rem;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.premium-explore-btn:hover .btn-arrow-box {
    background-color: #22c55e; /* Turns vibrant green on hover */
    transform: rotate(-45deg); /* Professional high-tech tilt */
}

.premium-explore-btn:hover .arrow-moving {
    transform: translateX(2px);
}

/* Continuous Light Shimmer Animation */
.btn-shimmer-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    z-index: 2;
    animation: luxuryShimmer 4s infinite linear;
}

@keyframes luxuryShimmer {
    0% { left: -150%; }
    40% { left: 150%; }
    100% { left: 150%; }
}

/* Ambient Pulse Glow Behind Button */
.btn-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    border-radius: 50px;
    background: transparent;
    border: 2px solid rgba(34, 197, 94, 0.4);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    animation: globalPulse 2.5s infinite ease-out;
}

@keyframes globalPulse {
    0% {
        width: 90%;
        height: 90%;
        opacity: 0.8;
    }
    100% {
        width: 112%;
        height: 140%;
        opacity: 0;
    }
}

/* ==========================================================================
   MOBILE VIEWPORT AUTOMATIC ADAPTABILITY
   ========================================================================== */
@media (max-width: 768px) {
    .center-cta-wrapper {
        margin: 2rem auto 2.5rem auto;
    }

    .premium-explore-btn {
        font-size: 0.88rem;
        padding: 0.95rem 1.75rem;
        width: 85%; /* Responsive fluid width fits small viewports perfectly */
        justify-content: center;
        gap: 1rem;
    }

    .btn-arrow-box {
        width: 26px;
        height: 26px;
    }

    .btn-pulse-ring {
        animation: none; /* Disables continuous mobile pulses to conserve device battery */
    }
}