:root {
    /* Brand Colors - KeMe Identity */
    --color-primary: #124A5A;
    /* Deep Petrol Blue/Teal */
    --color-primary-dark: #0A2E38;
    --color-secondary: #22B0D0;
    /* Vibrant Cyan/Teal */
    --color-secondary-light: #5CD0EA;
    --color-accent: #ECA400;
    /* Premium Gold */
    --color-bg: #F0F4F8;
    /* Light Blue-Grey */
    --color-surface: #FFFFFF;
    --color-white: #FFFFFF;
    /* Fix missing variable */
    --color-text: #334155;
    /* Slate Gray */
    --color-text-light: #64748B;

    /* Typography */
    --font-main: 'Roboto', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', 'Roboto', sans-serif;
    /* Diplomacy / Official look */

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* UI Elements */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-pill: 9999px;

    /* Shadows & Effects */
    --shadow-sm: 0 1px 3px rgba(18, 74, 90, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(18, 74, 90, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(18, 74, 90, 0.1);
    --shadow-glow: 0 0 20px rgba(34, 176, 208, 0.3);

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: blur(12px);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    /* Revert to light */
    color: var(--color-primary);
    /* Revert to dark text - Changed to primary teal per user request */
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base focus style for WCAG accessibility */
:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 1rem 1.5rem;
    z-index: 9999;
    transition: top 0.3s;
    font-weight: 700;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    /* Revert to primary dark color */
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Force KMy Portal links to be white across pages */
a[href*="kmy.html"] {
    color: #ffffff !important;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
/* Typography Utilities */
.clear-amp {
    font-family: 'Roboto', sans-serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-variant-ligatures: none !important;
    display: inline-block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    position: relative;
    z-index: 10;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-secondary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-pill);
    /* Pill shape for premium feel */
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(18, 74, 90, 0.25);
    filter: brightness(1.05);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, #d97706 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(236, 164, 0, 0.4);
}

.btn-outline {
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-secondary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-more {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.btn-more:hover {
    background: var(--color-primary);
    color: white;
}

/* Layout Sections */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-divider {
    height: 1px;
    background-color: var(--color-primary);
    width: 100%;
    margin: 0;
    padding: 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: 1.5rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
    border-radius: 2px;
}

/* Shrinking Header Styles */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: padding 0.3s ease, background-color 0.3s ease;
}

.main-header.shrink {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

.logo span {
    color: #ef5142;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--color-secondary);
}

.nav-links a.active {
    color: #124A5A;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    margin-left: 1rem;
}

.lang-btn {
    font-size: 1.1rem;
    cursor: pointer;
    background: transparent;
    border: none;
    color: inherit !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0;
}

.lang-btn:hover {
    color: var(--color-secondary) !important;
}

.lang-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    min-width: 140px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    z-index: 1001;
    overflow: visible; /* Allow bridge to show */
    margin-top: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Invisible bridge to prevent dropdown from vanishing on gap hover */
.lang-content::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.lang-content a {
    color: var(--color-text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.lang-content a:hover {
    background-color: #f1f5f9;
    color: var(--color-secondary);
}

.lang-dropdown:hover .lang-content {
    display: block;
}

/* Dropdown Submenu */
.nav-links .menu-item-has-children {
    position: relative;
}

.nav-links .menu-item-has-children > a::after {
    content: ' ▼';
    font-size: 0.65rem;
    margin-left: 0.35rem;
    vertical-align: middle;
    display: inline-block;
    transition: transform 0.2s;
}

.nav-links .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.nav-links .sub-menu {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    background-color: white;
    min-width: 220px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    z-index: 1001;
    margin-top: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    list-style: none;
    padding: 0.5rem 0;
}

/* Invisible bridge to prevent dropdown from vanishing on gap hover */
.nav-links .sub-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-links .sub-menu a {
    color: var(--color-text);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-weight: 500;
    text-align: left;
}

.nav-links .sub-menu a:hover {
    background-color: #f1f5f9;
    color: var(--color-secondary);
}

.nav-links .menu-item-has-children:hover .sub-menu {
    display: block;
}

.nav-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: var(--color-white);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Footer - Improving Contrast */
.main-footer {
    /* Dark footer with high contrast text */
    background-color: #0f172a;
    /* Very dark slate, almost black */
    color: #f8fafc;
    /* Very light cool gray */
    padding: var(--spacing-lg) 0 var(--spacing-md);
    position: relative;
    z-index: 10;
    /* Ensure it stays above any background elements */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-col h4 {
    color: #ffffff;
    /* Pure white for headings */
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-family: var(--font-main);
    /* Match paragraph font */
    font-weight: 700;
    letter-spacing: 0.05em;
    letter-spacing: 0.05em;
    text-transform: none;
    /* User requested no capitalization (uppercase) */
    opacity: 1;
    /* Force opacity 1 */
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-secondary-light);
    /* Brighter teal for hover */
    padding-left: 5px;
    /* Subtle movement */
    transition: all 0.3s ease;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    /* Ensure icons are white */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* 
   =========================================
   Home Page Specific Styles (Refactored)
   =========================================
*/

/* 
   =========================================
   Home Page Specific Styles (Refactored)
   =========================================
*/

.hero {
    /* Background image 'Global Growth' as requested */
    background: url('../images/hero-global-growth.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Soften background with a base color */
    background-color: #f8fafc;
    position: relative;
    padding: 12rem 0 10rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 90vh;
}

/* Light Overlay to match live site mk-video-color-mask style */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #f4f4f4 0%, #dbdbdb 100%);
    opacity: 0.7; /* Adjust for desired brightness */
    z-index: 1;
    pointer-events: none;
}

/* Remove the old globe pulse pseudo-element since we have a full globe image now */
.hero::before {
    display: none;
}

@keyframes pulseGlobe {
    from {
        transform: scale(1);
        opacity: 0.15;
    }

    to {
        transform: scale(1.05);
        opacity: 0.25;
    }
}

.hero-content {
    position: relative;
    z-index: 5; /* Ensure content is above the overlay */
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-family: var(--font-main);
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    font-weight: 300;
    /* Removed text-shadow to be cleaner as requested "remove colors" */
    color: rgba(0, 0, 0, 0.55);
}

.hero h1 .text-gradient {
    /* Removed gradient to satisfy "remove all colors" */
    background: none;
    -webkit-text-fill-color: initial;
    color: inherit;
}

/* Old H1 styles removed in favor of .hero-title */

/* Old Gradient text removed */

.hero p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 600px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.71);
}

/* Service Cards */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: var(--color-bg);
    padding: 1rem;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.card p {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.7;
}

/* CTA Section - Minimalist / Transparent / White Text */
.cta-section {
    background: transparent;
    /* Shows body image */
    text-align: center;
    padding: 6rem 0;
    color: white;
    /* Force white text */
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-section h2 {
    color: var(--color-primary);
    /* Go back to dark */
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: none;
}

.cta-section p {
    color: var(--color-text-light);
    /* Update to dark text for light background */
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

/* Un-nesting the Marquee styles from .cta-section p */
.clients-marquee-section {
    padding: 4rem 0 2rem;
    overflow: hidden;
    background: transparent;
    text-align: center;
}

.clients-marquee-section h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    /* Dark color for light bg */
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.marquee-container {
    display: flex;
    gap: 4rem;
    animation: marqueeScroll 28.6s linear infinite;
    width: max-content;
}

.marquee-container:hover {
    animation-play-state: paused;
}

.client-logo-box {
    width: 150px;
    height: 80px;
    background: transparent;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.client-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1) grayscale(100%);
    opacity: 0.6;
    mix-blend-mode: multiply;
    transition: all 0.4s ease;
}

.client-logo-box:hover img {
    filter: brightness(1) contrast(1) grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Move half way assuming content is doubled */
}

/* 
   =========================================
   Services Page Specific Styles
   =========================================
*/

/* Split Layout (Official Translations) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.split-content {
    padding: 1rem;
}

/* ZigZag Grid (Fields) */
.zigzag-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.zigzag-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    border: 1px solid rgba(18, 74, 90, 0.12);
    scroll-margin-top: 120px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zigzag-row:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(18, 74, 90, 0.2);
}

/* Even rows: Image First (Left), Text Second (Right) */
/* Odd rows (default): Text First (Left), Image Second (Right) */
/* Actually, user asked: 
   Line 1: Field (Text) | Image
   Line 2: Image | Text
   
   If HTML is Text | Image for all rows...
   Then Even rows should reverse order -> Image | Text
*/
.zigzag-row:nth-child(even) .zigzag-content {
    order: 2;
}

.zigzag-row:nth-child(even) .zigzag-image {
    order: 1;
}

.zigzag-content {
    padding: 2rem;
}

.zigzag-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.zigzag-content p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.zigzag-image {
    position: relative;
    height: 400px;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Placeholder styling for demo */
.img-placeholder-box {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    transition: transform 0.5s ease;
}

.zigzag-image:hover .img-placeholder-box {
    transform: scale(1.05);
}

    /* Consolidated into global media query above */

/* 
   =========================================
   Inner Pages Specific Styles (Services, Profile)
   =========================================
*/

.hero-inner {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0f172a 100%);
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: url('../images/globe.png') no-repeat center center;
    background-size: contain;
    opacity: 0.1;
    pointer-events: none;
    transform: rotate(15deg);
}

.hero-inner h1 {
    font-family: var(--font-main);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
    color: white;
    position: relative;
    z-index: 2;
}

.hero-inner p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    color: #cbd5e1;
}

/* Language Grid (Glassmorphism) */
.lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(106px, 1fr));
    gap: 1rem;
    margin-bottom: 4rem;
}

.lang-card {
    height: 80px;
    perspective: 1000px;
    cursor: pointer;
}

.lang-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.lang-inner::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: rgba(18, 74, 90, 0.1);
    transition: opacity 0.3s ease;
}

.lang-card:hover .lang-inner {
    transform: translateY(-5px);
}

.lang-front,
.lang-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.lang-front {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(18, 74, 90, 0.1);
    color: var(--color-primary);
}

.lang-back {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: white;
    transform: rotateY(180deg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.lang-code {
    font-size: 1.5rem;
    font-family: monospace;
    font-weight: 800;
    opacity: 0.9;
}

/* Files Grid */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
}

.file-item {
    background: white;
    padding: 2rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    cursor: default;
}

.file-item:hover {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.file-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
}

.file-ext {
    font-weight: 700;
    color: var(--color-primary);
    font-family: monospace;
    font-size: 1rem;
}

/* 
   =========================================
   Profile Page Specific Styles
   =========================================
*/

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.team-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-img {
    height: 250px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 4rem;
}

.team-info {
    padding: 1.5rem;
    background: white;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.team-role {
    color: var(--color-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
    padding-left: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 34px;
    width: 2px;
    background: rgba(18, 74, 90, 0.1);
}

.timeline-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(34, 176, 208, 0.3);
    z-index: 2;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.payment-icon {
    font-size: 2.5rem;
    text-align: center;
    color: var(--color-text-light);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payment-icon:hover {
    color: var(--color-primary);
    transform: translateY(-5px);
}

.payment-label {
    display: block;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* 
   =========================================
   Client Portal Styles (Login & Dashboard)
   =========================================
*/

/* Login Page Only */
.login-body {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #1e293b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-body::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: url('../images/globe.png') no-repeat center;
    background-size: contain;
    opacity: 0.05;
    pointer-events: none;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 420px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.login-logo {
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 800;
}

.login-card h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.social-btn {
    width: 100%;
    padding: 0.875rem;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--color-text);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.social-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #f1f5f9;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

.sidebar-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: white;
    margin-bottom: 3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-menu {
    list-style: none;
    flex: 1;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-weight: 500;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(4px);
}

.sidebar-menu a.active {
    background: linear-gradient(90deg, var(--color-secondary) 0%, transparent 100%);
    border-left: 3px solid white;
}

.user-profile {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.main-content {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
}

/* Dashboard Components */
.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-lg);
    background: white;
    padding: 4rem 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--color-secondary);
    background: #f0f9ff;
    transform: scale(1.01);
}

.docs-table {
    width: 100%;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.docs-table th {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--color-text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
}

.docs-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    color: var(--color-text);
    vertical-align: middle;
}

.docs-table tr:hover td {
    background: #f8fafc;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-done {
    background: #dcfce7;
    color: #166534;
}

.status-processing {
    background: #e0f2fe;
    color: #075985;
}

.status-pending {
    background: #fef9c3;
    color: #854d0e;
}

/* 
   =========================================
   Modern Form Styles (Global)
   =========================================
*/
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--color-text);
    background: white;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(34, 176, 208, 0.1);
}

.form-text {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

/* Custom File Upload Styling */
.file-upload-box {
    border: 2px dashed #cbd5e1;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    background: #f8fafc;
    margin-bottom: 2rem;
}

.file-upload-box:hover {
    border-color: var(--color-secondary);
    background: #f0f9ff;
}

/* Bank Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Expertise Modal Styles */
.expertise-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.expertise-modal.active {
    display: flex;
}

.expertise-modal-box {
    background: white;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 2rem 2.5rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--color-primary);
    font-size: 1.75rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--color-primary);
}

.modal-body {
    padding: 2rem 2.5rem;
    overflow-y: auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
}

.modal-footer {
    padding: 1.5rem 2.5rem 2rem;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    justify-content: center;
}

.modal-cta {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-cta:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-light);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--color-text);
}

.bank-block {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
}

.bank-block:last-child {
    margin-bottom: 0;
}

.bank-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.bank-logo {
    height: 30px;
    object-fit: contain;
}

.bank-header a {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.bank-header a:hover {
    color: var(--color-secondary);
}

.bank-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    align-items: center;
}

.bank-label {
    color: var(--color-text-light);
    font-weight: 500;
}

.bank-value {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--color-secondary);
    padding: 0.2rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.copy-btn:hover {
    background: rgba(34, 176, 208, 0.1);
}

/* Payment Methods Layout */
.payment-methods {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.payment-methods a {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.payment-methods a:hover {
    transform: translateY(-5px);
}

.payment-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    cursor: pointer;
    min-width: 100px;
}

.payment-icon span:first-child {
    font-size: 2.5rem;
    line-height: 1;
}

.payment-icon img {
    height: 40px;
    object-fit: contain;
}

.payment-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
}

/* About Us Section Layout */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-intro p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Consolidated into global media query above */

/* ==========================================================================
   Responsive Media Queries (Moved to bottom to prevent specificity overrides)
   ========================================================================== */

/* Animations & Responsive */
@media (max-width: 1024px) {
    /* Navigation & Animated Hamburger */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1000;
        position: relative;
    }

    .hamburger-animated .bar {
        width: 100%;
        height: 2px;
        background-color: var(--color-primary);
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    .hamburger-animated.open .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger-animated.open .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-animated.open .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        backdrop-filter: blur(10px);
        gap: 1.5rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    /* Mobile Submenu styles — only apply layout overrides when mobile nav is open */
    .nav-links.active .menu-item-has-children {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-links.active .menu-item-has-children > a::after {
        display: none;
    }

    .nav-links.active .sub-menu {
        position: static;
        display: block;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        margin-top: 0.5rem;
        padding: 0;
        width: 100%;
    }

    .nav-links .sub-menu a {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
        color: var(--color-text-light);
        text-align: center;
    }

    .nav-links .sub-menu a:hover {
        background: transparent;
        color: var(--color-secondary);
    }

    /* Hero & Hero Inner (Home & Profile pages) */
    .hero {
        padding: 7rem 1rem 5rem;
        min-height: 50vh;
        background-position: center center !important;
        background-size: cover !important;
    }

    .hero-inner {
        min-height: 240px !important;
        padding: 4.5rem 1rem 3.5rem !important;
        background-position: center center !important;
        background-size: cover !important;
    }

    .hero h1, 
    .hero-inner h1,
    .hero [role="doc-subtitle"] {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .hero p,
    .hero-inner p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
        padding: 0 0.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem !important;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Grids & Cards */
    .grid-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .card {
        padding: 2rem 1.5rem;
    }

    .split-layout,
    .zigzag-row,
    .footer-grid,
    .about-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }

    .about-grid .glass-panel {
        padding: 1.5rem !important;
    }

    .footer-grid {
        text-align: center;
    }

    .zigzag-row:nth-child(even) .zigzag-content,
    .zigzag-row:nth-child(even) .zigzag-image {
        order: initial;
    }

    .zigzag-image,
    .split-image {
        height: 220px !important;
        order: initial !important;
        margin-bottom: 1.5rem;
    }

    .zigzag-content {
        padding: 1.5rem 1rem;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-grid {
        gap: 2rem;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    /* Modals & Forms */
    .modal-content,
    .login-card {
        width: calc(100% - 2rem);
        padding: 1.5rem;
        margin: 1rem;
    }

    .payment-methods {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }

    .lang-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2.2rem;
    }
    .hero h1 {
        font-size: 1.8rem !important;
    }
}
