/* ===================================
   TECHVIONIX SOLUTIONS - Design System
   =================================== */

/* CSS Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - Blue Theme */
    --primary: #0066CC;
    --primary-dark: #003366;
    --primary-light: #4D9FEC;
    --primary-lighter: #E6F2FF;
    --navy: #001F3F;
    --accent: #00A3FF;

    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --black: #000000;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-hero: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(0, 102, 204, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-smooth: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Lenis Smooth Scroll */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--space-4);
    color: var(--gray-600);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-lg {
    max-width: 1600px;
}

.container-sm {
    max-width: 960px;
}

/* Section Styles */
section {
    padding: var(--space-20) 0;
}

.section-dark {
    background: var(--gradient-hero);
    color: var(--white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark p {
    color: var(--white);
}

.section-dark p {
    color: rgba(255, 255, 255, 0.8);
}

.section-alt {
    background-color: var(--gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-header .subtitle {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: var(--space-4);
}

.section-header h2 {
    margin-bottom: var(--space-4);
}

.section-header .description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--gray-500);
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: all var(--transition-smooth);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-md);
}

.header .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.header .logo img {
    /* Ensure no filters hide the logo */
    filter: none !important;
    transition: filter var(--transition-base);
    height: 120px !important;
    max-height: none !important;
    width: auto !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(2.2);
    /* Maximize size for visibility */
    transform-origin: left center;
}

.header.scrolled .logo img {
    filter: none;
}

.header.scrolled .nav-link {
    color: var(--gray-700);
}

.header .nav-link:hover {
    color: var(--white);
}

.header.scrolled .nav-link:hover {
    color: var(--gray-800);
}

/* contact-page scoped overrides */
.contact-page .header.scrolled {
    background: transparent;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.contact-page .header.scrolled .logo img {
    /* filter: brightness(0) invert(1); removed to fix visibility */
    filter: none !important;
}

.contact-page .header.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.contact-page .header.scrolled .nav-link:hover {
    color: var(--white);
}

.contact-page .mega-menu,
.contact-page .header.scrolled .mega-menu,
.contact-page .nav-dropdown-menu,
.contact-page .header.scrolled .nav-dropdown-menu {
    background: rgba(10, 10, 15, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.contact-page .mega-menu-item,
.contact-page .header.scrolled .mega-menu-item,
.contact-page .nav-dropdown-item,
.contact-page .header.scrolled .nav-dropdown-item {
    color: rgba(255, 255, 255, 0.6) !important;
}

.contact-page .mega-menu-item:hover,
.contact-page .header.scrolled .mega-menu-item:hover,
.contact-page .nav-dropdown-item:hover,
.contact-page .header.scrolled .nav-dropdown-item:hover {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.1);
}

.contact-page .mega-menu-column h4 {
    color: rgba(255, 255, 255, 0.4);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.search-toggle {
    background: transparent;
    border: none;
    color: var(--primary);
    padding: var(--space-2);
    cursor: pointer;
    transition: var(--transition-base);
}

.header.scrolled .search-toggle {
    color: var(--primary);
}

.search-toggle:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.search-toggle svg {
    width: 24px;
    height: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo img {
    height: 55px;
    width: auto;
    mix-blend-mode: multiply;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

.logo-text {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary);
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex-direction: row;
    white-space: nowrap;
}

.nav-link {
    position: relative;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-700);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: calc(100% - var(--space-8));
}

.header.scrolled .nav-link::after {
    background: var(--gray-400);
}

/* Dropdown & Mega Menu */
.mega-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    padding: var(--space-12) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 9999;
}

.header.scrolled .mega-menu {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

/* Center mega menu relative to viewport but keep it anchored to header */
.header .nav-menu {
    position: static;
}

.mega-menu-trigger:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-12);
}

.mega-menu-column h4 {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    margin-bottom: var(--space-6);
}

.mega-menu-item {
    display: block;
    font-size: var(--text-base);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    padding: var(--space-2) 0;
    transition: all var(--transition-fast);
}

.header.scrolled .mega-menu-item {
    color: var(--gray-600);
}

.mega-menu-item:hover {
    color: var(--white);
    transform: translateX(5px);
}

.header.scrolled .mega-menu-item:hover {
    color: var(--gray-900);
    transform: translateX(5px);
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-dropdown-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.header.scrolled .nav-dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.header.scrolled .nav-dropdown-item {
    color: var(--gray-600);
}

.nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.header.scrolled .nav-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--gray-900);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.header.scrolled .mobile-menu-toggle span {
    background: var(--gray-800);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-toggle.active span {
    background: var(--gray-800) !important;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.cta-section {
    padding: var(--space-6) 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

/* ===================================
   HERO SECTION (VEGA STYLE)
   =================================== */
.hero.vega-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url('../images/banners/hero-banner.jpg') center/cover no-repeat;
    padding-top: 0;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 31, 63, 0.4) 0%, rgba(0, 31, 63, 0.2) 100%);
    /* Lighter overlay to let image show through */
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.vega-hero .hero-content {
    max-width: 900px;
    margin-top: auto;
    margin-bottom: auto;
    padding: var(--space-12) 0;
}

.vega-hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    /* Lighter weight as per screenshot */
    line-height: 1.1;
    margin-bottom: var(--space-8);
    color: var(--white);
}

.vega-hero .hero-description {
    font-size: var(--text-xl);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-10);
    max-width: 700px;
}

.vega-hero .hero-buttons {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

.vega-hero .hero-stats {
    display: flex;
    gap: var(--space-12);
    margin-bottom: var(--space-8);
    position: relative;
    z-index: 5;
}

.vega-hero .hero-stat {
    text-align: left;
}

.vega-hero .hero-stat-value {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-1);
}

.vega-hero .hero-stat-label {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vega-hero .btn-primary {
    background: #0047AB;
    /* Deep cobalt blue - logo theme */
    color: var(--white);
    padding: var(--space-4) var(--space-10);
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 71, 171, 0.4);
}

.vega-hero .btn-primary:hover {
    background: #002D72;
    transform: translateY(-2px);
}

.vega-hero .btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: var(--space-4) var(--space-10);
    border-radius: var(--radius-full);
    font-weight: 600;
}

.vega-hero .btn-outline:hover {
    background: var(--white);
    color: #0047AB;
}

/* Partners Scroll */
.hero-partners {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: var(--space-6) 0;
    position: relative;
    z-index: 10;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.hero-partners::before,
.hero-partners::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-partners::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
}

.hero-partners::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.1), transparent);
}

.partners-track {
    display: flex;
    align-items: center;
    gap: var(--space-20);
    animation: scroll 40s linear infinite;
    width: max-content;
}

.partner-logo {
    height: 40px;
    width: auto;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.partner-logo svg {
    height: 100%;
    width: auto;
}

.partner-logo:hover {
    color: rgba(255, 255, 255, 1);
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Base Hero (Fallback/Legacy) */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
    padding-top: 160px;
}

/* ===================================
   CARDS
   =================================== */
.card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background: var(--white);
    color: var(--navy);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    border: 1px solid rgba(0, 31, 63, 0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
    background: var(--white);
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-lighter);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 2;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.card-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--navy);
    position: relative;
    z-index: 2;
}

.card-text {
    color: var(--gray-600);
    font-size: var(--text-base);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 2;
}

/* Services Grid & Background Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
}

.service-card,
.industry-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    min-height: 350px;
    transition: all var(--transition-smooth);
}

.service-card-image,
.industry-card-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.service-card:hover .service-card-image,
.industry-card:hover .industry-card-image {
    transform: scale(1.1);
}

.service-card::after,
.industry-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 31, 63, 0.2), rgba(0, 31, 63, 0.85));
    z-index: 1;
}

.service-card .card-content,
.industry-card .card-content {
    position: relative;
    z-index: 2;
}

.service-card .card-title,
.industry-card .card-title {
    color: var(--white);
    margin-top: auto;
}

.service-card .card-text,
.industry-card .card-text {
    color: rgba(255, 255, 255, 0.9);
}

/* ===================================
   INDUSTRIES SECTION
   =================================== */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

.industry-card {
    position: relative;
    padding: var(--space-8);
    background: var(--white);
    border: 1px solid rgba(0, 31, 63, 0.1);
    border-radius: var(--radius-xl);
    text-align: left;
    transition: all var(--transition-smooth);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    box-shadow: var(--shadow-sm);
}

.industry-card-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 1;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.industry-card:hover .industry-card-image {
    transform: scale(1.15);
}

.industry-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 31, 63, 0.2), rgba(0, 31, 63, 0.8));
    z-index: 1;
}

.industry-card-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.industry-icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 31, 63, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 31, 63, 0.1);
    border-radius: var(--radius-lg);
    transition: all var(--transition-smooth);
}

.industry-card:hover .industry-icon {
    background: rgba(0, 31, 63, 0.08);
}

.industry-icon svg {
    width: 28px;
    height: 28px;
    color: var(--navy);
    transition: color var(--transition-smooth);
}

.industry-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--white) !important;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-smooth);
}

.industry-card:hover .industry-title {
    transform: scale(1.05);
}

/* ===================================
   CLIENTS SECTION
   =================================== */
.clients-wrapper {
    overflow: hidden;
    padding: var(--space-8) 0;
}

.clients-track {
    display: flex;
    gap: var(--space-12);
    animation: scroll 30s linear infinite;
}

.clients-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.client-logo {
    flex-shrink: 0;
    width: 150px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition-base);
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ===================================
   CERTIFICATIONS
   =================================== */
.certifications {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-8);
}

.certification-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    /* Reduced gap */
    padding: var(--space-4);
    /* Reduced padding */
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.certification-badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.certification-icon {
    width: 60px;
    /* Reduced from 80px */
    height: 60px;
    /* Reduced from 80px */
    display: flex;
    align-items: center;
    justify-content: center;
}

.certification-icon img {
    max-width: 100%;
    max-height: 100%;
}

.certification-text {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-700);
    text-align: center;
}

/* ===================================
   LOCATIONS
   =================================== */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.location-card {
    display: flex;
    gap: var(--space-6);
    padding: var(--space-8);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.location-flag {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.location-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-info h4 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.location-info p {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-bottom: var(--space-1);
}

.location-info a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--primary);
    margin-top: var(--space-2);
}

/* ===================================
   TESTIMONIALS
   =================================== */
.testimonials-wrapper {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: var(--space-6);
    animation: testimonialScroll 40s linear infinite;
}

@keyframes testimonialScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    flex-shrink: 0;
    width: 400px;
    padding: var(--space-8);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    display: flex;
    gap: var(--space-1);
    margin-bottom: var(--space-4);
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    fill: #FBBF24;
}

.testimonial-text {
    font-size: var(--text-base);
    color: var(--gray-600);
    margin-bottom: var(--space-6);
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gray-200);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 600;
    color: var(--gray-800);
}

.testimonial-role {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    position: relative;
    padding: var(--space-12) 0;
    background: var(--gradient-hero);
    overflow: hidden;
}

.cta-section::before {
    display: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: var(--space-6);
}

.cta-content p {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-8);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: #000000;
    color: var(--white);
    padding: var(--space-6) 0 0;
}

.footer-logo img {
    height: 55px;
    width: auto;
    display: block;
    filter: grayscale(1) brightness(5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-8);
}

.footer-mobile-links-grid {
    display: contents;
}

.footer-brand {
    max-width: 320px;
}

.footer-mobile-links-grid .footer-column,
.footer-grid>.footer-column:last-child {
    justify-self: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.footer-logo img {
    height: 150px !important;
    /* Increased to 150px */
    max-height: none !important;
    width: auto !important;
    transform: scale(1.8);
    /* Scale up to overcome internal SVG whitespace */
    transform-origin: left center;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--white);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-3);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
    letter-spacing: 0.1px;
    line-height: 1.5;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: var(--space-2) 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: var(--space-4);
}

.footer-copyright {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    width: 100%;
    margin: 0;
    padding-bottom: var(--space-2);
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal a {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal a:hover {
    color: var(--white);
}

/* ===================================
   PAGE HEADER (for inner pages)
   =================================== */
.page-header {
    position: relative;
    padding: 120px 0 80px;
    background: var(--gradient-hero);
    overflow: hidden;
}

.page-header::before {
    display: none;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.breadcrumb a {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb .current {
    color: var(--white);
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--white);
    margin-bottom: var(--space-4);
}

.page-header p {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
}

/* ===================================
   ANIMATIONS
   =================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-up"] {
    transform: translateY(40px);
}

[data-animate="fade-down"] {
    transform: translateY(-40px);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate="zoom-in"] {
    transform: scale(0.9);
}

[data-animate="zoom-out"] {
    transform: scale(1.1);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

.stagger-6 {
    transition-delay: 0.6s;
}

/* ===================================
   INFRASTRUCTURE Grid
   =================================== */
.infrastructure-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    align-items: center;
}

@media (min-width: 1024px) {
    .infrastructure-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.infrastructure-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
}

/* ===================================
   DETAIL GRID (Side-by-Side Sections)
   =================================== */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}

@media (min-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-16);
    }
}

.detail-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    display: block;
    object-fit: cover;
}

/* ===================================
   SCROLL PROGRESS
   =================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.1);
}

.scroll-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.1s linear;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: var(--space-16) 0;
    }


    /* nav-menu mobile styles are defined in the IMPROVED FOOTER MOBILE section below */

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: var(--space-4);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
    }

    .nav-dropdown.active .nav-dropdown-menu {
        max-height: 500px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: var(--text-4xl);
    }

    .hero-stats {
        gap: var(--space-8);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }

    .location-card {
        flex-direction: column;
        text-align: center;
    }

    .location-flag {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }

    h1 {
        font-size: var(--text-3xl);
    }

    h2 {
        font-size: var(--text-2xl);
    }

    h3 {
        font-size: var(--text-xl);
    }

    .services-grid,
    .industries-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        width: 300px;
    }
}

/* ===================================
   UTILITIES
   =================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mb-12 {
    margin-bottom: var(--space-12);
}

.mt-0 {
    margin-top: 0;
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-8 {
    margin-top: var(--space-8);
}

.py-16 {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

.py-20 {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: var(--space-4);
}

.gap-6 {
    gap: var(--space-6);
}

.gap-8 {
    gap: var(--space-8);
}

.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.hidden {
    display: none;
}

.block {
    display: block;
}

/* ===================================
   FLOATING CONTACT BUTTONS
   =================================== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    z-index: 999;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-base);
    text-decoration: none;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.floating-btn svg {
    width: 26px;
    height: 26px;
}

.floating-btn-whatsapp {
    background: #25D366;
    color: white;
}

.floating-btn-call {
    background: var(--primary);
    color: white;
}

.mobile-menu-close {
    display: none;
}

/* ===================================
   BACK TO TOP BUTTON
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 998;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ===================================
   HERO IMAGE
   =================================== */
.hero-image {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 600px;
    z-index: 1;
    opacity: 0.9;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* ===================================
   IMPROVED FOOTER MOBILE
   =================================== */
@media (max-width: 768px) {

    /* Fix Header and Hamburger Menu */
    .header-inner {
        padding: 0 var(--space-4);
        display: flex;
        justify-content: flex-start;
        align-items: center;
        height: 70px;
    }

    .logo {
        flex-shrink: 0;
        margin-right: auto;
        padding-left: 0;
    }

    .logo img {
        height: 80px !important;
        transform: scale(2.2);
        transform-origin: left center;
        margin-left: 0;
        max-height: none !important;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: var(--space-4);
        margin-left: 0;
    }

    .header-actions .btn {
        display: none !important;
    }

    .search-toggle {
        display: inline-flex;
        margin-right: var(--space-2);
    }

    .mobile-menu-toggle {
        margin-left: 0;
    }

    /* Fix HERO Section - Make text visible */
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: var(--space-12);
    }

    .hero-content {
        position: relative;
        z-index: 10;
    }

    .hero h1 {
        font-size: var(--text-3xl);
        line-height: 1.2;
    }

    .hero-description {
        font-size: var(--text-base);
    }

    .hero-badge {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-3);
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--space-3);
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4);
    }

    .hero-stat {
        text-align: center;
    }

    .hero-stat-value {
        font-size: var(--text-2xl);
    }

    .hero-image {
        display: none !important;
    }

    .hero-visual {
        display: none !important;
    }

    /* Fix Nav Menu */
    /* Remove ALL containing block properties from header ancestors.
       backdrop-filter, transform, and filter on any ancestor causes
       position:fixed to be relative to that ancestor instead of viewport */
    .header,
    .header.scrolled {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
        filter: none !important;
        contain: none !important;
        will-change: auto !important;
    }

    .header .logo img {
        transform: scale(3.2) translate(-5%, 0) !important;
        transform-origin: left center !important;
        height: 75px !important;
        width: auto !important;
    }

    .contact-page .header.scrolled {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: #FFFFFF !important;
        padding: 80px 20px 40px !important;
        display: flex !important;
        flex-direction: column !important;
        z-index: 2000 !important;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s !important;
        align-items: center !important;
        text-align: center !important;
        overflow-y: auto !important;
        box-shadow: none !important;
        transform: translateY(-100%) !important;
        /* Start from top */
        visibility: hidden !important;
        gap: var(--space-4) !important;
    }

    .mobile-menu-close {
        display: block !important;
        position: absolute !important;
        top: 24px !important;
        right: 24px !important;
        background: none !important;
        border: none !important;
        color: var(--gray-800) !important;
        cursor: pointer !important;
        padding: 5px !important;
        z-index: 2002 !important;
    }

    .mobile-menu-close:hover {
        color: var(--primary) !important;
    }

    .nav-menu.active {
        transform: translateY(0) !important;
        visibility: visible !important;
    }

    .nav-link {
        width: 100%;
        /* Full width for centering */
        padding: var(--space-2) 0;
        font-size: 1.5rem;
        font-weight: 700;
        /* Unified with dropdown toggles */
        color: var(--gray-800);
        border-bottom: none;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
        text-align: center;
        /* Center links */
    }

    .nav-menu.active .nav-link {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered animation for menu links */
    .nav-menu.active .nav-link:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active .nav-link:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-menu.active .nav-link:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-menu.active .nav-link:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-menu.active .nav-link:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-menu.active .nav-link:nth-child(6) {
        transition-delay: 0.6s;
    }

    .nav-dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-dropdown-toggle {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--gray-800);
        margin: var(--space-2) 0;
        width: 100%;
        justify-content: center;
        display: flex;
        align-items: center;
        gap: var(--space-2);
    }

    .nav-dropdown-toggle svg {
        width: 20px;
        height: 20px;
        transition: transform 0.3s ease;
        transform: rotate(180deg);
        /* Default: UP */
    }

    .nav-dropdown.active .nav-dropdown-toggle svg {
        transform: rotate(0deg);
        /* Open: DOWN */
    }

    /* Mega Menu Content in Mobile Menu */
    .nav-menu .mega-menu {
        position: static !important;
        width: 100% !important;
        background: #ffffff !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        display: none;
        /* Hidden by default, shown when active */
    }

    .nav-dropdown.active .mega-menu {
        display: block !important;
    }

    .nav-menu .mega-menu-content {
        display: flex !important;
        flex-direction: column !important;
        padding: var(--space-2) 0 !important;
        gap: var(--space-2) !important;
    }

    .nav-menu .mega-menu-column {
        text-align: center !important;
    }

    .nav-menu .mega-menu-column h4 {
        color: var(--primary) !important;
        font-size: 1.1rem !important;
        margin-bottom: var(--space-1) !important;
        font-weight: 700 !important;
        text-align: center !important;
    }

    .nav-menu .mega-menu-item {
        color: var(--gray-800) !important;
        font-size: 1rem !important;
        padding: var(--space-1) 0 !important;
        text-align: center !important;
        display: block !important;
    }

    .mega-menu {
        position: static;
        width: 100%;
        background: #ffffff;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        display: none;
        transition: opacity 0.4s ease;
        border: none;
        box-shadow: none;
    }

    .nav-dropdown.active .mega-menu {
        opacity: 1;
        visibility: visible;
        padding: var(--space-4) 0;
        display: block !important;
    }

    .nav-dropdown-close {
        display: flex;
        justify-content: flex-end;
        padding: 10px 20px 0;
        cursor: pointer;
        color: var(--gray-800);
        margin-bottom: -15px;
        /* Pulls content slightly up */
    }

    .nav-dropdown-close:hover {
        color: var(--primary);
    }

    .mega-menu-content {
        display: flex;
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
    }

    .mega-menu-column h4 {
        font-size: 1.1rem;
        color: var(--primary);
        margin: var(--space-2) 0 var(--space-1);
        text-align: center;
        padding-left: 0;
        font-weight: 700;
    }

    .mega-menu-item {
        color: var(--gray-800);
        padding: var(--space-1) 0;
        font-size: 15px;
        /* Matched to footer links */
        border-bottom: none;
        text-align: center;
        display: block;
    }

    .mega-menu-item:hover {
        color: var(--primary) !important;
        background: transparent;
    }

    .nav-dropdown-toggle:hover,
    .nav-dropdown-toggle:active {
        color: var(--primary) !important;
    }

    /* Contact Page Global Fix */
    section.py-20 {
        padding: 40px 0 !important;
    }

    .contact-grid {
        margin-top: 0 !important;
    }
}

@media (max-width: 768px) {
    .floating-btn {
        width: 48px;
        height: 48px;
    }

    .floating-btn svg {
        width: 22px;
        height: 22px;
    }

    .back-to-top {
        bottom: 145px;
        right: 15px;
        width: 42px;
        height: 42px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }

    .location-card {
        flex-direction: column;
        text-align: center;
    }

    .location-flag {
        margin: 0 auto;
    }

    .section-header {
        margin-bottom: var(--space-10);
    }

    .certifications {
        flex-direction: column;
        gap: var(--space-4);
    }

    .certification-badge {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    /* Remove footer bottom padding for mobile */
    .footer {
        padding-bottom: 0 !important;
    }

    .footer-bottom {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .footer-copyright {
        padding-bottom: var(--space-2) !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: var(--text-2xl);
    }

    .hero-description {
        font-size: var(--text-sm);
    }

    .hero-stat-value {
        font-size: var(--text-xl);
    }

    .hero-stat-label {
        font-size: var(--text-xs);
    }

    .container {
        padding: 0 var(--space-3);
    }

    .services-grid,
    .industries-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: var(--space-6);
    }

    .testimonial-card {
        width: 280px;
        padding: var(--space-5);
    }
}

/* Partner Logo Images */
.partner-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* ===================================
   WHATSAPP CHAT WIDGET
   =================================== */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-base);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.whatsapp-popup {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition-base);
    overflow: hidden;
}

.whatsapp-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.whatsapp-popup-header {
    background: linear-gradient(135deg, #075E54, #128C7E);
    color: white;
    padding: var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-popup-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.whatsapp-popup-title strong {
    font-size: var(--text-base);
}

.whatsapp-popup-title span {
    font-size: var(--text-xs);
    opacity: 0.9;
}

.whatsapp-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition-fast);
}

.whatsapp-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.whatsapp-popup-body {
    padding: var(--space-4);
    background: #E5DDD5;
}

.whatsapp-message {
    background: white;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border-top-left-radius: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.whatsapp-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.wave-emoji {
    font-size: 24px;
    display: block;
    margin-bottom: var(--space-2);
}

.whatsapp-message strong {
    font-size: var(--text-base);
    color: var(--gray-900);
    display: block;
    margin-bottom: var(--space-2);
}

.whatsapp-message p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

.whatsapp-popup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: calc(100% - 32px);
    margin: var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: #25D366;
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
}

.whatsapp-popup-btn:hover {
    background: #20BD5A;
    color: white;
    transform: translateY(-2px);
}

.whatsapp-popup-btn svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-btn {
        width: 54px;
        height: 54px;
    }

    .whatsapp-btn svg {
        width: 28px;
        height: 28px;
    }

    .whatsapp-popup {
        width: 290px;
        right: -10px;
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    border: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ===================================
   SEARCH OVERLAY
   =================================== */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: none;
    /* Changed from flex to none */
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active {
    display: flex;
    /* Added display flex when active */
    opacity: 1;
    visibility: visible;
}

.search-close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.search-close:hover {
    transform: rotate(90deg);
    color: var(--accent);
}

.search-close svg {
    width: 40px;
    height: 40px;
}

.search-container {
    width: 100%;
    max-width: 800px;
    padding: 0 var(--space-6);
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

.search-box {
    position: relative;
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: var(--text-4xl);
    font-weight: 700;
    padding: var(--space-4) 0;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: var(--accent);
}

.search-results {
    margin-top: var(--space-12);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-6);
    max-height: 60vh;
    overflow-y: auto;
}

.search-result-item {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
    text-decoration: none;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.search-result-title {
    color: var(--white);
    font-weight: 600;
    display: block;
    margin-bottom: var(--space-2);
}

.search-result-category {
    font-size: var(--text-xs);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .search-input {
        font-size: var(--text-2xl);
    }

    .search-close {
        top: 20px;
        right: 20px;
    }
}

/* ===================================
   ENRICHED SERVICE SECTIONS
   =================================== */
.section-padding {
    padding: var(--space-24) 0;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: var(--space-16);
    margin-bottom: var(--space-24);
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-content h2 {
    margin-bottom: var(--space-6);
    font-size: var(--text-4xl);
}

.feature-content p {
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
    color: var(--gray-600);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: var(--space-8);
    margin-bottom: var(--space-4);
    font-size: var(--text-base);
    color: var(--gray-700);
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.feature-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-placeholder {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/9;
    border-radius: var(--radius-2xl);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: hidden;
}

.blue-gradient {
    background: var(--gradient-primary);
}

.dark-gradient {
    background: var(--gradient-hero);
}

.visual-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
}

@media (max-width: 991px) {

    .feature-row,
    .feature-row.reverse {
        flex-direction: column !important;
        gap: var(--space-10);
        margin-bottom: var(--space-16);
        text-align: center;
    }

    .feature-list li {
        text-align: left;
    }

    .visual-placeholder {
        max-width: 100%;
    }
}

/* ===================================
   NEW AESTHETICS - PATTERN & CREDENTIALS
   =================================== */

/* Plus Pattern Header Overlay */
.page-header.pattern-bg {
    position: relative;
    overflow: hidden;
    padding: 120px 0 60px;
}

.page-header.pattern-bg .container {
    position: relative;
    z-index: 2;
}

/* Also apply to .hero on index page */
.hero.pattern-bg {
    position: relative;
    overflow: hidden;
}

.hero.pattern-bg>* {
    position: relative;
    z-index: 2;
}

/* Ensure content on patterned background is legible */
.page-header.pattern-bg .breadcrumb,
.page-header.pattern-bg .breadcrumb a,
.page-header.pattern-bg .breadcrumb span,
.page-header.pattern-bg h1,
.page-header.pattern-bg p {
    color: var(--white) !important;
}

.page-header.pattern-bg .breadcrumb a:hover {
    color: var(--primary-light) !important;
}

/* Credentials Section */
.credentials-section {
    padding: var(--space-20) 0;
    background-color: var(--gray-50);
    text-align: center;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-10);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.credential-card {
    background: var(--white);
    padding: var(--space-6);
    /* Reduced from space-10 */
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-100);
}

.credential-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.credential-logo {
    height: 50px;
    /* Reduced from 60px */
    width: auto;
    margin-bottom: var(--space-4);
    /* Reduced from space-6 */
    object-fit: contain;
}

/* Specifically zoom the ISO logo without affecting box sizes */
.credential-card img[alt*="ISO"] {
    height: 70px;
    /* Reduced from 90px */
}

.credential-card h4 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--space-2);
}

.credential-card p {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin: 0;
}

/* Hero Section adjustments to match pattern aesthetic if needed */
.vega-hero.pattern-bg {
    background-image: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .credentials-grid {
        grid-template-columns: 1fr;
        padding: 0 var(--space-6);
    }
}

/* Search Suggestions */
.search-suggestions {
    margin-top: var(--space-8);
    padding: 0 var(--space-6);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-suggestions h5 {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    margin-bottom: var(--space-4);
    text-align: left;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: flex-start;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ===================================
   HEADER TRANSPARENT STATE - Nav Link Colors
   =================================== */
.header:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.header:not(.scrolled) .nav-link:hover {
    color: var(--white);
}

.header:not(.scrolled) .search-toggle {
    color: rgba(255, 255, 255, 0.9);
}

.header:not(.scrolled) .search-toggle:hover {
    color: var(--white);
}

.header:not(.scrolled) .btn-primary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.header:not(.scrolled) .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Fix mega-menu-trigger also acting as nav-dropdown */
.mega-menu-trigger {
    position: relative;
}

.mega-menu-trigger:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===================================
   GLOBAL CTA SECTION
   =================================== */
.global-cta {
    padding: var(--space-24) 0;
    background: linear-gradient(135deg, #001F3F 0%, #0047AB 100%);
    color: var(--white);
    text-align: center;
}

.global-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.global-cta h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--white);
    margin-bottom: var(--space-6);
    line-height: 1.2;
}

.global-cta p {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-10);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.global-cta .btn {
    padding: var(--space-4) var(--space-10);
    font-size: var(--text-base);
}

@media (max-width: 768px) {
    .global-cta {
        padding: var(--space-16) var(--space-6);
    }

    .global-cta h2 {
        font-size: var(--text-3xl);
    }
}

/* ===================================
   PREMIUM CONTACT FORM STYLES
   =================================== */

.premium-contact-section {
    position: relative;
    padding: 120px 0 80px 0;
    background: linear-gradient(135deg, #050505 0%, #121212 50%, #050505 100%);
    color: var(--white);
    overflow: hidden;
}

/* Background Effects */
.premium-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.gradient-mesh {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
    filter: blur(80px);
    animation: meshFlow 20s ease-in-out infinite alternate;
}

@keyframes meshFlow {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.2) translate(2%, 2%);
    }

    100% {
        transform: scale(1) translate(-1%, -1%);
    }
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: orbMove 25s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    top: 10%;
    left: 5%;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.02);
    bottom: 10%;
    right: 5%;
    animation-delay: -5s;
}

@keyframes orbMove {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, 50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Content Container */
.premium-contact-container {
    position: relative;
    z-index: 10;
}

.premium-header {
    text-align: center;
    margin-bottom: var(--space-20);
}

.badge-wrapper {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.premium-hero-section {
    padding: var(--space-24) 0 var(--space-12);
    background: #000000 !important;
    position: relative;
    overflow: hidden;
}

.premium-hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--space-16);
}

.premium-tagline {
    display: inline-block;
    padding: var(--space-2) var(--space-5);
    background: rgba(129, 140, 248, 0.15);
    color: #818cf8;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-6);
    border: 1px solid rgba(129, 140, 248, 0.3);
}

.premium-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--white);
}

.premium-title span {
    background: linear-gradient(to right, #818cf8, #c084fc, #fb7185);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: textShine 5s linear infinite;
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}

.premium-subtitle {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.6);
    max-width: 800px;
    margin: 0 auto;
}

/* Stats Grid */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-20);
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: var(--space-6);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(147, 51, 234, 0.1));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-3);
    color: #a5b4fc;
}

.stat-value {
    font-size: var(--text-2xl);
    font-weight: 700;
    display: block;
    color: var(--white);
}

.stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
}

/* Layout Grid */
.premium-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-12);
}

.premium-form-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    padding: var(--space-10);
    border-radius: var(--radius-3xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-form-card h3 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-2);
    color: var(--white);
}

.premium-form-card p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-8);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

.input-wrapper {
    position: relative;
    margin-bottom: var(--space-6);
}

.input-wrapper svg {
    position: absolute;
    left: var(--space-4);
    top: 18px;
    color: rgba(255, 255, 255, 0.4);
    width: 20px;
    height: 20px;
    z-index: 1;
}

.premium-input {
    width: 100%;
    padding: var(--space-4) var(--space-4) var(--space-4) var(--space-12);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    color: var(--white);
    font-family: inherit;
    font-size: var(--text-base);
}

.premium-input:focus {
    outline: none;
    border-color: #818cf8;
}

.premium-textarea {
    min-height: 160px;
    resize: none;
}

.submit-btn-premium {
    width: 100%;
    padding: var(--space-5);
    background: linear-gradient(to right, #4f46e5, #9333ea);
    color: var(--white);
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    font-size: var(--text-base);
    transition: all var(--transition-smooth);
}

.submit-btn-premium svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
}

/* Sidebar */
.info-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.info-sidebar h3 {
    color: var(--white);
}

.method-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: var(--space-6);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: var(--space-5);
    text-decoration: none;
    color: var(--white);
    transition: all var(--transition-smooth);
}

.method-card:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

.method-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon svg {
    width: 24px;
    height: 24px;
}

.icon-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.icon-green {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.icon-purple {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
}

.method-details h4 {
    margin-bottom: 2px;
    font-size: var(--text-lg);
    color: var(--white);
}

.method-details .desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.method-details .val {
    font-size: var(--text-base);
    font-weight: 500;
}

.response-guarantee {
    padding: var(--space-6);
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.1), rgba(192, 132, 252, 0.1));
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(129, 140, 248, 0.3);
}

.response-guarantee h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
    color: var(--white);
}

.response-guarantee p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Success Message */
.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    color: #4ade80;
}

.success-icon-wrapper svg {
    width: 40px;
    height: 40px;
}

@keyframes animate-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: animate-spin 1s linear infinite;
}

@media (max-width: 991px) {
    .premium-layout {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .premium-contact-section {
        padding: var(--space-20) 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: 1fr;
    }

    .premium-form-card {
        padding: var(--space-6);
    }
}

/* Infrastructure Section Layout */
.infrastructure-grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-12);
}

.infrastructure-content {
    flex: 1;
}

.infrastructure-image {
    flex: 0 0 450px;
    position: relative;
}

.infrastructure-image img {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    width: 100%;
    height: 350px;
    object-fit: cover;
}

@media (max-width: 991px) {
    .infrastructure-grid {
        flex-direction: column;
        /* Image is first in HTML, so column works */
        gap: var(--space-8);
    }

    .infrastructure-image {
        flex: 0 0 auto;
        width: 100%;
    }

    .infrastructure-image img {
        height: 300px;
    }
}

/* Fix body bounce whitespace when scrolled */
html {
    overscroll-behavior-y: none;
    background-color: var(--primarybg, #001f3f);
}

body {
    background-color: var(--white, #ffffff);
}

/* Tighter bound for support images for layout balance */
.detail-grid {
    align-items: center;
}

@media (min-width: 768px) {
    .detail-section-constrained .detail-image {
        max-height: 550px;
    }
}

/* ===================================
   COOKIE CONSENT BANNER
   =================================== */
.cookie-banner {
    position: fixed;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    z-index: 10000;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 102, 204, 0.1);
    display: none;
    animation: gmFadeSlideInPopup 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes gmFadeSlideInPopup {
    from {
        transform: translate(-50%, 40px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes gmFadeSlideOut {
    from {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    to {
        transform: translate(-50%, 40px);
        opacity: 0;
    }
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-6);
    margin: 0 auto;
}

.cookie-actions .btn {
    min-width: 140px;
    justify-content: center;
}

.cookie-text h4 {
    color: var(--white);
    margin-bottom: var(--space-2);
    font-size: var(--text-lg);
}

.cookie-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    margin-bottom: 0;
}

.cookie-text a {
    color: var(--primary-light);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: var(--space-4);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: var(--space-4);
        width: calc(100% - 32px);
        padding: var(--space-6);
        border-radius: var(--radius-xl);
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-actions .btn {
        flex: 1;
    }
}

/* ===================================
   FOOTER MOBILE LOCK (Side-by-Side)
   =================================== */
@media (max-width: 768px) {

    /* 1. Center Brand Elements */
    .footer-brand {
        text-align: center !important;
        max-width: 100% !important;
        margin-bottom: var(--space-2) !important;
        /* Reduced padding after socials */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .footer-logo {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        text-align: center !important;
        height: 120px !important;
        /* Fixed height to tightly bound the scaled logo */
        overflow: visible !important;
    }

    .footer-logo img {
        margin: 0 auto !important;
        display: block !important;
        height: 100px !important;
        width: auto !important;
        transform: scale(3.2) !important;
        transform-origin: center !important;
        max-width: none !important;
    }

    .footer-social {
        justify-content: center !important;
        width: 100% !important;
        display: flex !important;
        gap: var(--space-8) !important;
        margin-top: var(--space-6) !important;
        /* Added gap before social links */
    }

    /* 2. Side-by-Side Columns (What we do & Industries) */
    .footer-mobile-links-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        /* Center columns as a group */
        gap: var(--space-12) !important;
        /* Increased gap for visual balance */
        width: 100% !important;
        margin: 0 0 !important;
        /* Reduced margin */
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding-top: var(--space-4) !important;
        /* Reduced padding */
    }

    .footer-mobile-links-grid .footer-column {
        flex: 0 1 auto !important;
        /* Don't force equal flex */
        min-width: 0 !important;
        text-align: left !important;
    }

    .footer-mobile-links-grid .footer-column h4 {
        font-size: 15px !important;
        color: var(--white) !important;
        margin-bottom: var(--space-4) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
    }

    .footer-mobile-links-grid .footer-links {
        padding-left: 0 !important;
        list-style: none !important;
        display: block !important;
        /* Always show links */
    }

    .footer-mobile-links-grid .footer-links a {
        font-size: 15px !important;
        /* Enlarged */
        padding: var(--space-1) 0 !important;
        display: block !important;
        line-height: 1.4 !important;
    }

    /* 3. Horizontal Quick Links (4+2 Grid) */
    .footer-grid>.footer-column:last-child {
        width: 100% !important;
        text-align: center !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding-top: var(--space-6) !important;
    }

    .footer-grid>.footer-column:last-child h4 {
        font-size: var(--text-sm) !important;
        margin-bottom: var(--space-4) !important;
        text-transform: uppercase !important;
    }

    .footer-grid>.footer-column:last-child .footer-links {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 0 !important;
        padding-left: 0 !important;
    }

    .footer-grid>.footer-column:last-child .footer-links li {
        flex: 0 0 25% !important;
        /* 4 per line */
        margin-bottom: var(--space-4) !important;
    }

    .footer-grid>.footer-column:last-child .footer-links li:nth-child(n+5) {
        flex: 0 0 auto !important;
        /* Don't force 50% width */
        margin: 0 var(--space-4) !important;
        /* Add space between centered pair */
    }

    .footer-grid>.footer-column:last-child .footer-links a {
        font-size: 14px !important;
        /* Enlarged */
        white-space: nowrap !important;
    }
}