/* ==========================================================================
   TLS GLOBAL HOLDING - PREMIUM CORPORATE STYLE SHEET
   Premium DNA for TLS Global Holding | Bespoke Navy-Royal Brand Identity
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN SYSTEM VARIABLES & CUSTOM TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --primary-navy: #1E2645;
    --primary-navy-rgb: 30, 38, 69;
    --accent-blue: #283C8F;
    --accent-blue-rgb: 40, 60, 143;
    --accent-blue-light: #4A69E2;
    --accent-blue-light-rgb: 74, 105, 226;
    --neutral-dark: #0F172A;
    --neutral-light: #F8FAFC;
    --platinum: #E2E8F0;
    
    /* Typography Colors */
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --text-light: #FFFFFF;
    --text-platinum: #94A3B8;

    /* Spacing & Heights */
    --header-height: 120px;
    --header-scrolled-height: 90px;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.25s ease;
}

/* --------------------------------------------------------------------------
   2. BASE RESETS & SCROLLBAR
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-index: border-box;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--neutral-light);
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-navy);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-quick);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    font-family: inherit;
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--neutral-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-navy);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Common Layout Utilities */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.d-flex { display: flex; }
.justify-content-between { justify-content-between: space-between; justify-content: space-between; }
.align-items-center { align-items: center; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-4 { margin-left: 16px; }

/* Grid Helpers */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
}

.col-lg-6, .col-lg-5, .col-lg-7, .col-lg-4, .col-md-3, .col-md-6, .col-6, .col-12 {
    position: relative;
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
}

/* Margin and Padding Utilities */
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-10 { padding-top: 40px; padding-bottom: 40px; }
.h-100 { height: 100%; }
.w-100 { width: 100%; }
.z-index-10 { z-index: 10; }

@media (min-width: 992px) {
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
}

@media (min-width: 768px) and (max-width: 991px) {
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
}

@media (max-width: 767px) {
    .col-6 { flex: 0 0 50%; max-width: 50%; }
    .col-12 { flex: 0 0 100%; max-width: 100%; }
}

/* --------------------------------------------------------------------------
   3. DUAL FLOATING GLASSMORPHIC HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(30, 38, 69, 0.05);
    box-shadow: 0 4px 20px rgba(30, 38, 69, 0.02);
    transition: var(--transition-smooth);
}

/* Scrolled Header Style Adjustments */
.main-header.scrolled {
    background: #FFFFFF;
    box-shadow: 0 10px 30px rgba(30, 38, 69, 0.06);
}

.main-header.scrolled .top-bar {
    height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    border-bottom: none;
}

.main-header.scrolled .main-nav {
    height: var(--header-scrolled-height);
}

/* 1st Tier: Top Utility Bar */
.top-bar {
    height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--primary-navy);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.contact-info .info-item {
    margin-right: 24px;
    display: flex;
    align-items: center;
}

.contact-info .icon {
    width: 14px;
    height: 14px;
    fill: var(--accent-blue-light);
    margin-right: 6px;
}

.contact-info a:hover {
    color: var(--accent-blue-light);
}

.utility-links .util-link {
    margin-right: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 11px;
}

.utility-links .util-link:hover {
    color: var(--accent-blue-light);
}

/* Language Switcher */
.lang-selector {
    display: flex;
    align-items: center;
}

.lang-btn {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition-quick);
}

.lang-btn.active, .lang-btn:hover {
    color: #FFFFFF;
}

.lang-selector .divider {
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.2);
}

/* 2nd Tier: Main Navigation Bar */
.main-nav {
    height: 80px;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

/* Logo styling */
.logo-link {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 48px;
    object-fit: contain;
    margin-right: 12px;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.05em;
    color: var(--primary-navy);
}

.accent-text {
    color: var(--accent-blue-light);
}

/* Nav Menu */
.nav-menu {
    list-style: none;
}

.nav-item-link {
    color: var(--primary-navy);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    margin: 0 4px;
    border-radius: 4px;
    letter-spacing: 0.02em;
    position: relative;
}

.nav-item-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue-light);
    transition: var(--transition-quick);
}

.nav-item-link:hover {
    color: var(--accent-blue-light);
}

.nav-item-link:hover::after {
    width: calc(100% - 32px);
}

/* Hamburger mobile menu button */
.mobile-menu-toggle {
    display: none;
    width: 30px;
    height: 30px;
    position: relative;
}

.hamburger, .hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--primary-navy);
    transition: var(--transition-quick);
}

.hamburger {
    top: 14px;
    left: 3px;
}

.hamburger::before { top: -8px; left: 0; }
.hamburger::after { top: 8px; left: 0; }

.mobile-menu-toggle.open .hamburger {
    background-color: transparent;
}
.mobile-menu-toggle.open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}
.mobile-menu-toggle.open .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--primary-navy);
    z-index: 998;
    padding-top: 140px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.25);
    transition: var(--transition-smooth);
}

.mobile-drawer.open {
    right: 0;
}

.drawer-menu {
    list-style: none;
    padding: 0 40px;
}

.drawer-menu li {
    margin-bottom: 24px;
}

.drawer-menu a {
    color: var(--text-light);
    font-size: 18px;
    font-weight: 600;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-menu a:hover {
    color: var(--accent-blue-light);
    border-bottom-color: var(--accent-blue-light);
}

@media (max-width: 991px) {
    .nav-menu { display: none; }
    .mobile-menu-toggle { display: block; }
    .logo-text { font-size: 18px; }
    .header-logo { height: 38px; }
}

/* --------------------------------------------------------------------------
   4. HERO SECTION & VISUAL WAVE MASK
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 800px;
    background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 50%, #F1F5F9 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Scroll-driven Floating lines container */
.svg-lines-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-bg-line {
    position: absolute;
    top: 0;
    height: 100%;
}

.hero-bg-line.line-1 { left: 0; width: 40%; }
.hero-bg-line.line-2 { right: 0; width: 40%; }

.scroll-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;
    transition: var(--transition-quick);
}

/* Hero elements */
.hero-tagline {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--accent-blue-light);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 52px;
    line-height: 1.15;
    color: var(--primary-navy);
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-btn-group {
    display: flex;
}

/* General button system */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: var(--transition-quick);
    text-align: center;
}

.btn-outline {
    border: 2px solid var(--accent-blue-light);
    color: var(--primary-navy);
}

.btn-outline:hover {
    background: var(--accent-blue-light);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-filled {
    background: var(--accent-blue);
    color: var(--text-light);
    border: 2px solid var(--accent-blue);
}

.btn-filled:hover {
    background: #374dbd;
    border-color: #374dbd;
    transform: translateY(-2px);
}

/* High-impact Visual Mask */
.hero-mask-wrapper {
    position: relative;
    width: 100%;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

/* Fluid Organic Morphing Wave Shape */
.custom-wave-mask-container {
    position: relative;
    width: 480px;
    height: 480px;
    overflow: hidden;
    /* Morphing organic fluid droplet representation */
    border-radius: 40% 60% 70% 30% / 45% 45% 55% 55%;
    background: var(--primary-navy);
    box-shadow: 0 20px 50px rgba(30, 38, 69, 0.12);
    animation: waveMorph 12s ease-in-out infinite alternate;
    transition: var(--transition-smooth);
}

.custom-wave-mask-image {
    width: 100%;
    height: 100%;
    /* Immersive holding engineering/proptech themed loops */
    background-image: url('assets/hero_corporate.png');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: var(--transition-smooth);
}

.custom-wave-mask-container:hover {
    transform: scale(1.02);
}

.custom-wave-mask-container:hover .custom-wave-mask-image {
    transform: scale(1.12);
}

/* Subtle Accent Blue Glow Border */
.mask-accent-border {
    position: absolute;
    top: -4px;
    left: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    border: 2px solid var(--accent-blue-light);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.7;
    animation: waveMorph 12s ease-in-out infinite alternate;
}

/* Morphing Animation Keyframes */
@keyframes waveMorph {
    0% {
        border-radius: 40% 60% 70% 30% / 45% 45% 55% 55%;
    }
    50% {
        border-radius: 65% 35% 50% 50% / 35% 60% 40% 65%;
    }
    100% {
        border-radius: 45% 55% 30% 70% / 60% 40% 60% 40%;
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-section { height: auto; padding: 160px 0 80px 0; }
    .hero-title { font-size: 38px; }
    .hero-mask-wrapper { height: 400px; margin-top: 40px; }
    .custom-wave-mask-container { width: 340px; height: 340px; }
    .hero-btn-group { flex-direction: column; gap: 16px; }
    .hero-btn-group .ml-4 { margin-left: 0; }
}

/* --------------------------------------------------------------------------
   5. AT A GLANCE (Executive Profile & Statistics)
   -------------------------------------------------------------------------- */
.glance-section {
    background: #F8FAFC;
    padding: 100px 0;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(30, 38, 69, 0.05);
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-blue-light);
    border: 1px solid rgba(74, 105, 226, 0.3);
    border-radius: 20px;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-title {
    font-size: 36px;
    margin-bottom: 24px;
}

.glance-intro {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Glass-morphism Stats Cards */
.stats-grid {
    margin-top: 48px;
}

.stat-card {
    background: #FFFFFF;
    border: 1px solid rgba(30, 38, 69, 0.06);
    border-radius: 8px;
    padding: 40px 24px;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(30, 38, 69, 0.03);
}

.stat-card:hover {
    transform: translateY(-8px);
    background: #FFFFFF;
    border-color: var(--accent-blue-light);
    box-shadow: 0 20px 40px rgba(30, 38, 69, 0.08);
}

.stat-num {
    font-size: 40px;
    font-weight: 800;
    color: var(--accent-blue-light);
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (max-width: 767px) {
    .stat-card { padding: 24px 16px; }
    .stat-num { font-size: 30px; }
    .section-title { font-size: 28px; }
}

/* --------------------------------------------------------------------------
   6. INTERACTIVE GROUP COMPANIES HUB (Tabbed Grid)
   -------------------------------------------------------------------------- */
.companies-section {
    padding: 100px 0;
    background-color: #FFFFFF;
}

.section-desc {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
    margin-top: 12px;
}

/* Centered Tab Headers styling */
.companies-tabs-wrapper {
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(30, 38, 69, 0.08);
}

.nav-tabs-custom {
    list-style: none;
}

.tab-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 16px 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 3px solid transparent;
    transition: var(--transition-quick);
}

.tab-link.active, .tab-link:hover {
    color: var(--primary-navy);
    border-bottom-color: var(--accent-blue);
}

/* Tab panes styling */
.tab-content-container {
    position: relative;
    min-height: 380px;
}

.tab-pane {
    display: none;
    opacity: 0;
}

@keyframes tabFadeSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane.active {
    display: block;
    animation: tabFadeSlide 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-pane-intro {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

/* Company Grid Cards */
.company-card {
    background: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(30, 38, 69, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.company-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(30, 38, 69, 0.1);
    border-color: rgba(30, 38, 69, 0.08);
}

.company-logo-area {
    height: 150px;
    background: #F1F5F9;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(30, 38, 69, 0.03);
}

.comp-img {
    max-width: 75%;
    max-height: 60px;
    object-fit: contain;
}

.comp-img.dark-mode-invert {
    /* Dünya şehir logo is colored, no invert needed */
}

/* Invert logic for dark logos on light background if necessary */
.comp-img.select-invert {
    filter: brightness(0.9);
}

/* Custom Vector-Typography Logos for Tech Brands */
.custom-logo-star { background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-light) 100%); }
.custom-logo-star .comp-logo-vector { color: var(--text-light); font-size: 20px; font-weight: 800; font-family: 'Outfit', sans-serif; letter-spacing: 0.1em; }

.custom-logo-navy { background: linear-gradient(135deg, #283C8F 0%, #3e53bd 100%); }
.custom-logo-navy .comp-logo-vector { color: var(--text-light); font-size: 20px; font-weight: 800; font-family: 'Outfit', sans-serif; letter-spacing: 0.1em; }

.custom-logo-cobalt { background: linear-gradient(135deg, #0F172A 0%, #1e293b 100%); }
.custom-logo-cobalt .comp-logo-vector { color: #E2E8F0; font-size: 20px; font-weight: 800; font-family: 'Outfit', sans-serif; letter-spacing: 0.15em; }

.company-info-area {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.comp-title {
    font-size: 18px;
    margin-bottom: 12px;
}

.comp-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.comp-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-blue);
    align-self: flex-start;
}

.comp-link:hover {
    color: var(--primary-navy);
    transform: translateX(4px);
}

.comp-link-disabled {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-blue);
    background: rgba(40, 60, 143, 0.08);
    padding: 4px 12px;
    border-radius: 12px;
    align-self: flex-start;
}

/* --------------------------------------------------------------------------
   7. DUO VALUE CARDS & SPLIT LAYOUTS
   -------------------------------------------------------------------------- */
.pillars-section {
    background: #F8FAFC;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(30, 38, 69, 0.05);
    border-bottom: 1px solid rgba(30, 38, 69, 0.05);
}

/* Scroll-driven bottom curving path */
.curve-divider-container {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.scroll-curve-line {
    width: 100%;
}

.text-platinum {
    color: var(--text-muted);
}

/* Duo Cards Layout grid */
.duo-card {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 10px 30px rgba(30, 38, 69, 0.05);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(30, 38, 69, 0.08);
    transition: var(--transition-smooth);
}

/* Background image presets */
.img-card-1 { background-image: url('assets/pillar_epcf.png'); }
.img-card-2 { background-image: url('assets/pillar_proptech.png'); }
.img-card-3 { background-image: url('assets/pillar_sustain.png'); }
.img-card-4 { background-image: url('assets/pillar_global.png'); }

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
    transition: var(--transition-smooth);
}

.card-content-overlay {
    position: relative;
    z-index: 2;
    padding: 32px;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition-smooth);
}

.card-title-text {
    font-size: 20px;
    color: var(--primary-navy);
    margin-bottom: 8px;
    font-weight: 700;
}

.card-desc-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 16px;
    max-width: 100%;
}

.btn-card-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-blue);
    display: inline-block;
    transition: var(--transition-quick);
}

/* Card hover animation details */
.duo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(30, 38, 69, 0.12);
}

.duo-card:hover .card-content-overlay {
    background: rgba(255, 255, 255, 0.96);
}

.duo-card:hover .btn-card-link {
    color: var(--accent-blue-light);
    transform: translateX(4px);
}

@media (max-width: 767px) {
    .duo-card { height: 350px; }
    .card-content-overlay { padding: 24px; }
    .card-title-text { font-size: 18px; }
}

/* --------------------------------------------------------------------------
   8. CONTACT FORM & REGIONAL OFFICES MAP
   -------------------------------------------------------------------------- */
.contact-section {
    padding: 100px 0;
    background-color: var(--neutral-light);
}

.contact-text-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.contact-detail-items {
    margin-top: 32px;
}

.contact-item {
    margin-bottom: 24px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    fill: var(--accent-blue);
    margin-right: 16px;
    flex-shrink: 0;
}

.contact-item-title {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--primary-navy);
}

.contact-item-body {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

.contact-item-body a:hover {
    color: var(--accent-blue);
}

/* Contact Form Glass Card styling */
.contact-form-card {
    background: var(--text-light);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(30, 38, 69, 0.06);
    border: 1px solid rgba(30, 38, 69, 0.05);
}

.form-title {
    font-size: 20px;
    margin-bottom: 24px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    color: var(--text-dark);
    font-family: inherit;
    transition: var(--transition-quick);
}

.form-control:focus {
    background-color: var(--text-light);
    border-color: var(--accent-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 60, 143, 0.1);
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

textarea.form-control {
    resize: none;
}

/* Form Response Messages */
.form-response-msg {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}
.form-response-msg.success { color: #16A34A; }
.form-response-msg.error { color: #DC2626; }

@media (max-width: 767px) {
    .contact-form-card { padding: 24px; }
}

/* --------------------------------------------------------------------------
   9. INSTITUTIONAL MULTI-COLUMN FOOTER
   -------------------------------------------------------------------------- */
.main-footer {
    background: #0B0E1B;
    color: var(--text-platinum);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
}

.footer-logo-img {
    height: 40px;
    object-fit: contain;
    margin-right: 12px;
}

.footer-logo-img.dark-mode-invert {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: var(--transition-smooth);
}

.footer-logo-img.dark-mode-invert:hover {
    opacity: 1;
}

.footer-tagline {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-platinum);
}

.footer-title {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-platinum);
    font-size: 13px;
    transition: var(--transition-quick);
}

.footer-links a:hover {
    color: var(--text-light);
    padding-left: 4px;
}

.footer-links .non-link {
    font-size: 13px;
    color: #94A3B8;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 40px 0 20px 0;
}

.copyright-text {
    font-size: 12px;
    color: #94A3B8;
}

.footer-sub-links {
    font-size: 12px;
    color: #94A3B8;
}

.footer-sub-links a {
    color: #94A3B8;
    transition: var(--transition-quick);
}

.footer-sub-links a:hover {
    color: var(--text-light);
}

/* Responsive Alignment */
@media (max-width: 767px) {
    .main-footer { text-align: center; }
    .footer-logo { justify-content: center; }
    .footer-sub-links { margin-top: 12px; }
}

/* --------------------------------------------------------------------------
   10. ENTRANCE EFFECTS & SMOOTH REVEALS
   -------------------------------------------------------------------------- */
.reveal-item, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-item { transform: translateY(30px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }

.reveal-item.visible, .reveal-left.visible, .reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.fade-in-left {
    animation: fadeInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --------------------------------------------------------------------------
   11. EXPANDABLE DESKTOP MEGA-MENU DROPDOWNS
   -------------------------------------------------------------------------- */
.has-megamenu {
    position: static !important; /* Forces dropdown to align with header width */
}

.megamenu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(30, 38, 69, 0.05);
    border-bottom: 3px solid var(--accent-blue-light);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
    padding: 40px 0;
}

.has-megamenu:hover .megamenu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.megamenu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.megamenu-column {
    display: flex;
    flex-direction: column;
}

.megamenu-heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    border-left: 3px solid var(--accent-blue-light);
    padding-left: 10px;
}

.megamenu-links {
    list-style: none;
    padding: 0;
}

.megamenu-links li {
    margin-bottom: 12px;
}

.megamenu-links a {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition-quick);
    display: inline-block;
}

.megamenu-links a:hover {
    color: var(--accent-blue-light);
    transform: translateX(4px);
}

.megamenu-promo {
    background: linear-gradient(135deg, rgba(40, 60, 143, 0.05) 0%, rgba(74, 105, 226, 0.08) 100%);
    border-radius: 8px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(74, 105, 226, 0.1);
}

.promo-badge {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-blue-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.promo-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--primary-navy);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   12. SVG STATISTICS CIRCLES
   -------------------------------------------------------------------------- */
.stat-circle-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: rgba(40, 60, 143, 0.06);
    stroke-width: 4px;
}

.circle-progress {
    fill: none;
    stroke: var(--accent-blue-light);
    stroke-width: 4px;
    stroke-linecap: round;
    stroke-dasharray: 327;
    stroke-dashoffset: 327;
    transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Specific dash offsets for each statistic */
.reveal-item.visible .circle-1 { stroke-dashoffset: 196; } /* 40% filled */
.reveal-item.visible .circle-2 { stroke-dashoffset: 130; } /* 60% filled */
.reveal-item.visible .circle-3 { stroke-dashoffset: 0; }   /* 100% filled */
.reveal-item.visible .circle-4 { stroke-dashoffset: 65; }  /* 80% filled */

.stat-num {
    z-index: 2;
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1;
}

.stat-num.text-epcf {
    font-size: 22px;
    letter-spacing: 0.05em;
    color: var(--accent-blue);
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(30, 38, 69, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(30, 38, 69, 0.08);
    border-color: rgba(74, 105, 226, 0.2);
}

/* --------------------------------------------------------------------------
   13. CHRONOLOGICAL MILESTONES TIMELINE
   -------------------------------------------------------------------------- */
.timeline-section {
    background: linear-gradient(180deg, #0F172A 0%, #1E2645 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.timeline-section .section-title {
    color: var(--text-light) !important;
}

.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
    border-radius: 2px;
    overflow: hidden;
}

.timeline-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--accent-blue-light), var(--accent-blue));
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-blue-light);
    transition: height 0.1s linear;
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 60px;
    z-index: 2;
}

.timeline-item.left {
    left: 0;
    padding-right: 60px;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    padding-left: 60px;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 24px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0F172A;
    border: 4px solid var(--accent-blue-light);
    box-shadow: 0 0 0 4px rgba(74, 105, 226, 0.2);
    z-index: 10;
    transition: var(--transition-quick);
}

.timeline-item.left .timeline-dot {
    right: -10px;
}

.timeline-item.right .timeline-dot {
    left: -10px;
}

.timeline-item.visible .timeline-dot {
    background: var(--text-light);
    box-shadow: 0 0 15px var(--accent-blue-light);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(74, 105, 226, 0.3);
    transform: translateY(-5px);
}

.timeline-year {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-blue-light);
    display: block;
    margin-bottom: 10px;
}

.timeline-item-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 12px;
}

.timeline-item-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-platinum);
}

/* --------------------------------------------------------------------------
   14. ESG SUSTAINABILITY TAB SECTION
   -------------------------------------------------------------------------- */
.esg-section {
    background: var(--neutral-light);
    padding: 100px 0;
}

.esg-tabs-container {
    max-width: 1100px;
    margin: 40px auto 0 auto;
}

.esg-tabs {
    border-bottom: 1px solid rgba(30, 38, 69, 0.1);
    gap: 20px;
}

.esg-tab-link {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 15px 30px;
    position: relative;
    transition: var(--transition-quick);
}

.esg-tab-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-blue);
    transition: var(--transition-quick);
}

.esg-tab-link.active {
    color: var(--accent-blue);
}

.esg-tab-link.active::after {
    width: 100%;
}

.esg-content-panes {
    position: relative;
    margin-top: 40px;
}

.esg-pane {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.esg-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.esg-pane-text-wrapper {
    padding-right: 40px;
}

.esg-pane-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 20px;
}

.esg-pane-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
}

.esg-pane-image {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 15px 40px rgba(30, 38, 69, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.environmental-bg {
    background-image: url('assets/pillar_sustain.png');
}

.social-bg {
    background-image: url('assets/pillar_global.png');
}

.governance-bg {
    background-image: url('assets/pillar_epcf.png');
}

/* --------------------------------------------------------------------------
   15. PREMIUM PRESS / NEWS SNAPPING SLIDER
   -------------------------------------------------------------------------- */
.press-section {
    background: #FFFFFF;
    padding: 100px 0;
}

.press-slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 40px auto 0 auto;
}

.press-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 30px;
    padding-bottom: 30px;
    scrollbar-width: none; /* Hide standard scrollbars */
}

.press-track::-webkit-scrollbar {
    display: none; /* Hide scrollbars for chrome/safari */
}

.press-slide {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    min-width: 320px;
}

.press-card {
    height: 100%;
    background: var(--neutral-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(30, 38, 69, 0.05);
    box-shadow: 0 10px 30px rgba(30, 38, 69, 0.02);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.press-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(30, 38, 69, 0.07);
    border-color: rgba(74, 105, 226, 0.2);
}

.press-card-img {
    height: 220px;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.img-news-1 { background-image: url('assets/hero_corporate.png'); }
.img-news-2 { background-image: url('assets/pillar_global.png'); }
.img-news-3 { background-image: url('assets/pillar_proptech.png'); }

.press-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.press-date {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-blue-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: block;
}

.press-news-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.35;
    margin-bottom: 15px;
}

.press-news-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

.press-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.dot-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(30, 38, 69, 0.15);
    transition: var(--transition-quick);
}

.dot-btn.active {
    background: var(--accent-blue-light);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(74, 105, 226, 0.4);
}

/* --------------------------------------------------------------------------
   16. RESPONSIVE TIMELINE & SLIDER ADAPTATIONS
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .megamenu-dropdown {
        display: none !important; /* Handled via standard mobile drawer menus */
    }
    
    .press-slide {
        flex: 0 0 calc(50% - 15px);
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        text-align: left !important;
        padding-left: 50px !important;
        padding-right: 0 !important;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 10px;
        right: auto;
    }
    
    .esg-pane-text-wrapper {
        padding-right: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .press-slide {
        flex: 0 0 100%;
    }
    
    .esg-tab-link {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .stat-circle-wrapper {
        width: 110px;
        height: 110px;
    }
    
    .stat-num {
        font-size: 28px;
    }
    
    .stat-num.text-epcf {
        font-size: 18px;
    }
}

/* ==========================================================================
   17. RIGHT-TO-LEFT (RTL) ARABIC DIRECTION STYLING OVERRIDES
   ========================================================================== */
html[dir="rtl"] {
    text-align: right;
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* Base resets for logical direction values */
html[dir="rtl"] body {
    direction: rtl;
    unicode-bidi: embed;
}

/* Correct general element text alignments */
html[dir="rtl"] p,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] .section-desc,
html[dir="rtl"] .hero-desc,
html[dir="rtl"] .stat-label,
html[dir="rtl"] .pane-desc,
html[dir="rtl"] .comp-desc,
html[dir="rtl"] .pillar-desc,
html[dir="rtl"] .esg-pane-text,
html[dir="rtl"] .press-slide-desc,
html[dir="rtl"] .footer-tagline,
html[dir="rtl"] .form-label {
    text-align: right !important;
}

/* Flip margins in top bar contact info */
html[dir="rtl"] .contact-info .info-item {
    margin-left: 24px;
    margin-right: 0;
}

html[dir="rtl"] .contact-info .icon {
    margin-left: 6px;
    margin-right: 0;
}

html[dir="rtl"] .utility-links .util-link {
    margin-left: 20px;
    margin-right: 0;
}

/* Nav Item Underline positioning */
html[dir="rtl"] .nav-item-link::after {
    left: auto;
    right: 16px;
}

/* Flip mega menu grids */
html[dir="rtl"] .megamenu-column {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: none;
    padding-left: 30px;
    padding-right: 0;
}

html[dir="rtl"] .megamenu-column:last-child {
    border-left: none;
}

/* Grid offsets & absolute icons */
html[dir="rtl"] .stat-circle-wrapper {
    margin: 0 auto 16px auto;
}

/* Desktop Milestones Timeline Alternating Swaps */
html[dir="rtl"] .timeline-item.left {
    text-align: left !important;
    padding-left: 60px;
    padding-right: 0;
}

html[dir="rtl"] .timeline-item.right {
    text-align: right !important;
    padding-right: 60px;
    padding-left: 0;
}

/* Timeline dot centering in RTL */
html[dir="rtl"] .timeline-item.left .timeline-dot {
    right: -10px;
    left: auto;
}

html[dir="rtl"] .timeline-item.right .timeline-dot {
    left: -10px;
    right: auto;
}

/* Form overrides */
html[dir="rtl"] .form-group input,
html[dir="rtl"] .form-group select,
html[dir="rtl"] .form-group textarea {
    text-align: right;
    padding: 14px 18px; /* Symmetric padding is safe */
}

/* Footer layout elements */
html[dir="rtl"] .footer-column {
    text-align: right !important;
}

html[dir="rtl"] .footer-links,
html[dir="rtl"] .footer-companies {
    padding-right: 0;
}

/* Mobile responsive RTL adaptations (max-width: 991px) */
@media (max-width: 991px) {
    html[dir="rtl"] .timeline-line {
        right: 20px;
        left: auto;
    }
    
    html[dir="rtl"] .timeline-item {
        text-align: right !important;
        padding-right: 50px !important;
        padding-left: 0 !important;
    }
    
    html[dir="rtl"] .timeline-item.left .timeline-dot,
    html[dir="rtl"] .timeline-item.right .timeline-dot {
        right: 10px;
        left: auto;
    }
    
    html[dir="rtl"] .mobile-drawer {
        right: auto;
        left: -280px;
        box-shadow: 5px 0 20px rgba(11, 14, 27, 0.3);
    }
    
    html[dir="rtl"] .mobile-drawer.open {
        transform: translateX(280px);
    }
    
    html[dir="rtl"] .mobile-menu-toggle {
        margin-right: auto;
        margin-left: 0;
    }
}

