/* ==========================================================================
   Local Global Services (LGS) - Premium Style System
   Customized with Brand Colors: Deep Navy Blue & LGS Accent Red
   ========================================================================== */

/* Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Brand Colors (White Theme + LGS Deep Blue & Crimson Red) */
    --primary-blue: #0B356D;        /* LGS Deep Navy Blue */
    --primary-blue-rgb: 11, 53, 109;
    --secondary-blue: #1A4D94;      /* Mid Blue */
    --accent-red: #E31B23;          /* LGS Vivid Red Accent */
    --accent-red-rgb: 227, 27, 35;
    
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-gray-100: #F1F5F9;         /* Slate 100 for borders & panels */
    
    --text-dark: #0F172A;           /* Slate 900 */
    --text-muted: #475569;          /* Slate 600 */
    --text-light: #94A3B8;          /* Slate 400 */
    
    /* Layout Tokens */
    --header-height: 78px;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Shadows & Radii */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(11, 53, 109, 0.04), 0 4px 6px -4px rgba(11, 53, 109, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(11, 53, 109, 0.06), 0 8px 10px -6px rgba(11, 53, 109, 0.06);
    --shadow-glow-blue: 0 0 30px rgba(11, 53, 109, 0.15);
    --shadow-glow-red: 0 0 30px rgba(227, 27, 35, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* resets */
body {
    font-family: 'Inter', sans-serif;
    font-size: 16px !important;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

p, .premium-card-text, .lead, .about-features-list li, .mega-menu-list li a, .dropdown-item, .nav-link {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    color: var(--text-muted);
}

/* ==========================================================================
   Header, Navigation & MEGA DROPDOWN (Excel-mapped)
   ========================================================================== */
.top-bar {
    background-color: var(--bg-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.85rem;
    padding: 6px 0;
    z-index: 1040;
    position: relative;
    color: var(--text-muted);
}

.top-bar a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.top-bar a:hover {
    color: var(--accent-red);
}

/* Language selector */
.lang-selector-wrapper {
    position: relative;
}

.lang-dropdown-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-dropdown-btn:hover {
    color: var(--accent-red);
}

.lang-dropdown-btn::after {
    content: "▼";
    font-size: 0.6rem;
    margin-left: 2px;
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    list-style: none;
    padding: 8px 0;
    margin: 8px 0 0 0;
    min-width: 130px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    z-index: 1050;
}

.lang-selector-wrapper:hover .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-menu li a {
    display: block;
    padding: 8px 16px;
    font-weight: 500;
    color: var(--text-dark) !important;
    font-size: 0.85rem;
}

.lang-dropdown-menu li a:hover {
    background-color: rgba(227, 27, 35, 0.08);
    color: var(--accent-red) !important;
}

/* Main sticky navbar */
.main-nav {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    z-index: 1030;
}

.main-nav.scrolled {
    height: 68px;
    box-shadow: var(--shadow-sm);
}

/* Custom SVG Logo representation style */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-container svg {
    height: 48px;
    width: auto;
    margin-right: 12px;
}

.logo-text-block {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text-top {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
}

.logo-text-top span {
    color: var(--accent-red);
}

.logo-text-bottom {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--primary-blue);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Premium JPEG Brand Logo styling (filters out white background) */
.brand-logo-img {
    height: 52px; /* Set to slightly larger 52px for high legibility */
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply; /* Removes white backgrounds perfectly on light themed containers */
    transition: var(--transition-smooth);
}

.logo-container:hover .brand-logo-img {
    transform: scale(1.04); /* High-tech micro hover response */
}

.nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 15px 12px !important;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-blue) !important;
}

/* ==========================================================================
   MEGA DROPDOWN BOOTSTRAP STYLING
   ========================================================================== */
.mega-menu-parent {
    position: static !important; /* Full width bounding block */
}

/* Standard Dropdown Custom Transitions */
.dropdown-menu {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition-smooth);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 20px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.dropdown-item:hover {
    background-color: rgba(11, 53, 109, 0.05);
    color: var(--primary-blue);
    transform: translateX(4px);
}

/* Mega dropdown menu structure */
.dropdown-mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    padding: 30px;
    background-color: var(--bg-white);
    border-radius: var(--radius-md) !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition-smooth);
    display: block !important;
    position: absolute;
    top: 100%;
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
}

.mega-menu-parent:hover .dropdown-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--primary-blue);
    border-bottom: 2px solid rgba(11, 53, 109, 0.1);
    padding-bottom: 8px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-menu-title i {
    color: var(--accent-red);
}

/* Mega Menu Collapsible Groups */
.mega-menu-group {
    margin-top: 15px;
    position: relative;
    transition: var(--transition-smooth);
}

.mega-menu-subheading {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0 !important;
    margin-bottom: 8px;
    padding-bottom: 3px;
    border-bottom: 1.5px solid var(--accent-red); /* Sleek LGS Red Underline */
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.mega-menu-subheading i.transition-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: var(--accent-red);
}

.mega-menu-subheading a.subheading-link {
    color: inherit !important;
    text-decoration: none !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    font-size: inherit !important;
    transition: var(--transition-smooth);
    display: inline-block;
}

.mega-menu-subheading a.subheading-link:hover,
.mega-menu-group:hover .mega-menu-subheading a.subheading-link,
.mega-menu-group.active .mega-menu-subheading a.subheading-link {
    color: var(--accent-red) !important;
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 
        max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Expand Group List on Hover or Active */
.mega-menu-group:hover .mega-menu-list,
.mega-menu-group.active .mega-menu-list {
    max-height: 350px; /* High enough to expand completely */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    margin-top: 5px;
    margin-bottom: 10px;
}

/* Rotate caret icon on hover or active */
.mega-menu-group:hover .mega-menu-subheading i.transition-icon,
.mega-menu-group.active .mega-menu-subheading i.transition-icon {
    transform: rotate(180deg);
}

/* Soft highlight on hovering subheading or active */
.mega-menu-group:hover .mega-menu-subheading,
.mega-menu-group.active .mega-menu-subheading {
    color: var(--accent-red);
}

.mega-menu-list li a {
    display: block;
    padding: 5px 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted) !important;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.mega-menu-list li a:hover {
    color: var(--accent-red) !important;
    transform: translateX(4px);
}

/* Navigation CTA Buttons */
.btn-primary-brand {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    border: 2px solid var(--primary-blue);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.btn-primary-brand:hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(227, 27, 35, 0.3);
    transform: translateY(-2px);
}

.btn-secondary-brand {
    background-color: var(--accent-red);
    color: var(--bg-white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    border: 2px solid var(--accent-red);
    transition: var(--transition-smooth);
}

.btn-secondary-brand:hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(227, 27, 35, 0.3);
}

.btn-accent-brand {
    background-color: var(--accent-red);
    color: var(--bg-white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    border: 2px solid var(--accent-red);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.btn-accent-brand:hover {
    background-color: transparent;
    color: var(--accent-red);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section Redesign (KaarTech Inspired Overlay Aesthetics)
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 75px 0 70px 0; /* Enhanced padding for centered presentation */
    background-color: var(--bg-white);
    background-image: 
        linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.75) 100%),
        url('../resources/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-tag {
    background-color: rgba(11, 53, 109, 0.06);
    color: var(--primary-blue);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    display: inline-flex;
    margin-bottom: 14px;
    border-left: 3px solid var(--accent-red);
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
}

.typed-text {
    color: var(--primary-blue);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-visual-wrapper {
    position: relative;
    padding: 20px;
}

.hero-visual-bg {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(11, 53, 109, 0.08);
    padding: 16px 20px;
    transition: var(--transition-smooth);
    animation: float 6s ease-in-out infinite;
}

.floating-card-1 {
    top: 15%;
    left: -8%;
    animation-delay: 0s;
    border-left: 4px solid var(--primary-blue);
}

.floating-card-2 {
    bottom: 12%;
    right: -4%;
    animation-delay: 3s;
    border-left: 4px solid var(--accent-red);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ==========================================================================
   Statistics Counters
   ========================================================================== */
.stats-section {
    background-color: var(--bg-light);
    border-top: 1px solid rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    padding: 60px 0;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Premium Block Cards & Section Spacing Differentiators
   ========================================================================== */
#pillars {
    background-color: var(--bg-white);
    padding: 30px 0 !important;
}

#industries {
    background-color: var(--bg-light) !important;
    padding: 30px 0 !important;
    border-top: 1px solid rgba(11, 53, 109, 0.04);
    border-bottom: 1px solid rgba(11, 53, 109, 0.04);
}

.about-section {
    background-color: var(--bg-white) !important;
    padding: 35px 0 !important;
}

.contact-section {
    background-color: var(--bg-light) !important;
    padding: 35px 0 !important;
    border-top: 1px solid rgba(11, 53, 109, 0.04);
    border-bottom: 1px solid rgba(11, 53, 109, 0.04);
}

.section-tagline {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 1.85rem;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: none; /* Keep natural capitalization like "Who We Are" */
    position: relative;
}

/* Accent indicator dot next to tagline */
.section-tagline::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent-red);
    border-radius: 50%;
}

/* Premium LGS Gradient bottom highlight line for taglines */
.section-tagline::before {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-red) 100%);
    border-radius: 50px;
}

.text-center .section-tagline::before {
    left: 50%;
    transform: translateX(-50%);
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
    letter-spacing: 0px;
    position: relative;
    max-width: 800px;
}

.premium-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    height: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: 
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Multi-colored accent border line */
.premium-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-red) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background-color: rgba(11, 53, 109, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    color: var(--primary-blue);
    font-size: 1.6rem;
    transition: var(--transition-smooth);
}

.premium-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    transition: var(--transition-smooth);
}

.premium-card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    min-height: 75px;
}

.premium-card-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

/* Card hover animation targeting LGS colors */
.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow-blue);
    border-color: var(--primary-blue);
}

.premium-card:hover::before {
    transform: scaleX(1);
}

.premium-card:hover .card-icon-wrapper {
    background-color: var(--primary-blue);
    color: var(--bg-white);
}

.premium-card:hover .premium-card-title {
    color: var(--primary-blue);
}

.premium-card:hover .premium-card-link {
    color: var(--accent-red);
}

.premium-card:hover .premium-card-link i {
    transform: translateX(4px);
}

/* Alternating red accent theme cards */
.premium-card.card-red-accent:hover {
    box-shadow: var(--shadow-glow-red);
    border-color: var(--accent-red);
}

.premium-card.card-red-accent:hover .card-icon-wrapper {
    background-color: var(--accent-red);
}

.premium-card.card-red-accent:hover .premium-card-title {
    color: var(--accent-red);
}

/* ==========================================================================
   Dynamic / General Service Template Styles (service.html)
   ========================================================================== */
.service-hero {
    padding: 60px 0 45px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #031D44 100%);
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.service-hero-tag {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border-left: 3px solid var(--accent-red);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: inline-flex;
    margin-bottom: 20px;
}

.service-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--bg-white);
}

.service-hero-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 800px;
}

.service-sidebar {
    background-color: var(--bg-light);
    border: 1px solid var(--bg-gray-100);
    border-radius: var(--radius-md);
    padding: 30px;
}

.sidebar-title {
    font-size: 1.15rem;
    font-weight: 700;
    border-bottom: 2px solid rgba(11, 53, 109, 0.1);
    padding-bottom: 12px;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

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

.sidebar-links-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition-smooth);
}

.sidebar-links-list li a:hover,
.sidebar-links-list li a.active {
    color: var(--accent-red);
    padding-left: 6px;
}

.service-features-grid {
    margin-top: 40px;
}

.feature-item-box {
    background-color: var(--bg-white);
    border: 1px solid var(--bg-gray-100);
    border-radius: var(--radius-sm);
    padding: 24px;
    height: 100%;
    transition: var(--transition-smooth);
}

.feature-item-box:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--accent-red);
    margin-bottom: 16px;
}

/* ==========================================================================
   Tabbed segments custom transitions
   ========================================================================== */
.nav-pills-custom {
    background-color: var(--bg-light);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid rgba(0,0,0,0.04);
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-pills-custom .nav-link {
    border-radius: 50px;
    color: var(--text-muted);
    font-weight: 600;
    padding: 10px 24px !important;
}

.nav-pills-custom .nav-link.active {
    background-color: var(--primary-blue) !important;
    color: var(--bg-white) !important;
}

.tab-pane-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.04);
    padding: 40px;
    margin-top: 30px;
}

/* ==========================================================================
   Contact Form Customizations
   ========================================================================== */
.form-control-brand {
    background-color: var(--bg-white);
    border: 1.5px solid #94a3b8; /* Clear high-contrast Slate 400 border */
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control-brand:focus {
    background-color: var(--bg-white);
    border-color: var(--accent-red); /* Focus highlight in brand red */
    box-shadow: 0 0 0 4px rgba(227, 27, 35, 0.15);
}

/* ==========================================================================
   Footer Section (KaarTech Inspired Professional Footer)
   ========================================================================== */
footer {
    background-color: #03152E;        /* Deep Premium Dark Navy */
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    border-top: 5px solid var(--accent-red);
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition-smooth);
}

footer a:hover {
    color: var(--accent-red);
    padding-left: 4px;
}

.footer-brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--bg-white);
}

.footer-brand span {
    color: var(--accent-red);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--accent-red);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--bg-white) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-btn:hover {
    background-color: var(--accent-red);
    transform: translateY(-3px);
}

/* ==========================================================================
   Interactive Map & Contact Details Card
   ========================================================================== */
.map-visual-placeholder {
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid rgba(11, 53, 109, 0.08);
    box-shadow: var(--shadow-md);
    background: var(--bg-white);
    height: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.map-visual-placeholder:hover {
    box-shadow: var(--shadow-glow-blue);
    border-color: var(--primary-blue);
}

.map-visual-placeholder iframe {
    flex-grow: 1;
    min-height: 320px;
    border: 0;
}

.map-card-info {
    padding: 24px;
    background: var(--bg-white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   RTL SYSTEM OVERRIDES (ARABIC LOCALIZATION)
   ========================================================================== */
[dir="rtl"] {
    font-family: 'Inter', 'Cairo', sans-serif;
}

[dir="rtl"] .lang-dropdown-menu {
    left: auto;
    right: 0;
}

[dir="rtl"] .premium-card::before {
    left: auto;
    right: 0;
    transform-origin: right;
}

[dir="rtl"] .premium-card:hover::before {
    transform-origin: left;
}

[dir="rtl"] .premium-card:hover .premium-card-link i {
    transform: translateX(-4px);
}

[dir="rtl"] .footer-title::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .about-features-list,
[dir="rtl"] .sidebar-links-list {
    padding-right: 0;
}

[dir="rtl"] .logo-container svg {
    margin-right: 0;
    margin-left: 12px;
}

[dir="rtl"] .sidebar-links-list li a:hover,
[dir="rtl"] .sidebar-links-list li a.active {
    padding-left: 0;
    padding-right: 6px;
}

/* ==========================================================================
   ELEVENLABS VOICE AGENT WIDGET CUSTOM OVERRIDES (PREVENTS NAVBAR OVERLAP)
   ========================================================================== */
elevenlabs-convai {
    z-index: 999999 !important; /* Ensure it floats on top of the sticky header navbar (z-index 1030) */
    bottom: 15px !important;    /* Position it slightly lower to keep a comfortable gap */
}

/* ==========================================================================
   Infinite Logo Marquee & Footer Sitemap hovers
   ========================================================================== */
.logo-scroll-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 15px 0;
    width: 100%;
}

.logo-scroll-container::before,
.logo-scroll-container::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 120px;
    z-index: 2;
    top: 0;
}

.logo-scroll-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.logo-scroll-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.logo-scroll-track {
    display: inline-flex;
    align-items: center;
    gap: 100px;
    animation: scrollLogos 30s linear infinite;
    width: max-content;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    height: 35px;
    width: auto;
    object-fit: contain;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.logo-item img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 3));
    }
}

.footer-sitemap-list li a {
    transition: all 0.2s ease;
    display: inline-block;
}
.footer-sitemap-list li a:hover {
    color: var(--accent-red) !important;
    transform: translateX(3px);
}

/* ==========================================================================
   Lead Status Badges
   ========================================================================== */
.badge-converted {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
}
.badge-rejected {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #DC2626 !important;
}
.badge-ongoing {
    background-color: rgba(59, 130, 246, 0.1) !important;
    color: #2563EB !important;
}
.badge-process {
    background-color: rgba(139, 92, 246, 0.1) !important;
    color: #7C3AED !important;
}

/* ==========================================================================
   Testimonials Horizontal Scroll Section
   ========================================================================== */
.testimonial-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 10px;
    display: flex;
    gap: 30px;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important;  /* IE and Edge */
}
.testimonial-scroll-container::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari and Opera */
}
.testimonial-scroll-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}
.testimonial-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-blue);
    border-radius: 10px;
}
.testimonial-track {
    display: flex;
    gap: 30px;
}
.testimonial-card {
    flex: 0 0 400px;
    max-width: 400px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 35px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(11, 53, 109, 0.1);
}
.testimonial-quote {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-style: italic;
    position: relative;
}
.testimonial-quote::before {
    content: '"';
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    color: var(--accent-red);
    opacity: 0.15;
    position: absolute;
    left: -15px;
    top: -20px;
}
.testimonial-client {
    display: flex;
    align-items: center;
    gap: 15px;
}
.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-blue);
}
.testimonial-fallback-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(11, 53, 109, 0.1);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}
.testimonial-info h5 {
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--text-dark);
}
.testimonial-info span {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
}

/* ==========================================================================
   Dynamic Center Pop-Up Modal
   ========================================================================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 29, 68, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.popup-overlay.show {
    display: flex;
    opacity: 1;
}
.popup-container {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    max-width: 600px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(11, 53, 109, 0.1);
}
.popup-overlay.show .popup-container {
    transform: scale(1);
}
.popup-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}
.popup-close-btn:hover {
    background: var(--accent-red);
    color: var(--bg-white);
}
.popup-content {
    display: flex;
    flex-direction: column;
}
.popup-img-only {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}
.popup-text-body {
    padding: 40px;
}
.popup-text-body h3 {
    color: var(--primary-blue);
    font-weight: 800;
    margin-bottom: 15px;
    font-size: 1.6rem;
}
.popup-text-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================================================
   Unified Hero CTA Hover Fixes
   ========================================================================== */
.btn-primary-brand:hover,
.btn-secondary-brand:hover {
    background-color: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
    color: var(--bg-white) !important;
    box-shadow: 0 4px 15px rgba(227, 27, 35, 0.3) !important;
    transform: translateY(-2px) !important;
}

@media (max-width: 576px) {
    .testimonial-card {
        flex: 0 0 300px;
        max-width: 300px;
        padding: 25px;
    }
}

/* ==========================================================================
   Sidebar Quick Inquiry Form Inputs Override
   ========================================================================== */
.service-sidebar .form-control {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.service-sidebar .form-control:focus {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1) !important;
}

.service-sidebar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Autofill styling override for Sidebar Inquiry Form */
.service-sidebar .form-control:-webkit-autofill,
.service-sidebar .form-control:-webkit-autofill:hover, 
.service-sidebar .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #0b356d inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.hover-white:hover {
    color: #ffffff !important;
}
