/* Modern Dynamic Design - Électricité Progin 2025
 * Complete redesign with energy-focused aesthetic
 */

:root {
    --primary-color: #1b365d;      /* Updated to match navbar color */
    --accent-color: #FFC107;       /* Amber/energy */
    --dark-color: #222831;         /* Near black */
    --light-color: #F8F9FA;        /* Off-white */
    --text-color: #333333;         /* Dark text */
    --light-text: #7D8597;         /* Medium gray */
    --success-color: #52B788;      /* Green */
    --border-color: rgba(0,0,0,0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), #2f37aa);  /* Softer gradient end (was #3742fa) */
    --gradient-accent: linear-gradient(135deg, var(--accent-color), #FF7E07);
    --box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Dark mode variables */
    --dark-bg: #2D2D2D;            /* Dark grey (was #121212) */
    --dark-card-bg: #3A3A3A;       /* Lighter dark grey (was #1E1E1E) */
    --dark-text: #E0E0E0;
    --dark-light-text: #ABABAB;
    --dark-border: rgba(255,255,255,0.1);
    --dark-box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    --dark-primary: #00417a;       /* Darker blue for dark mode (was #0055b3) */
    --dark-primary-hover: #003366; /* Even darker blue for hover states (was #004494) */
    --dark-gradient-primary: linear-gradient(135deg, var(--dark-primary), #25297a);
    --dark-accent: #D18700;        /* Darker amber/yellow for dark mode */
    --dark-orange: #D35400;        /* Darker orange for dark mode */
    --dark-gradient-accent: linear-gradient(135deg, var(--dark-accent), var(--dark-orange));
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.7;
    font-weight: 400;
    background-color: var(--light-color);
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.5rem;
}

/* Text alignment removed - now using default left alignment */

/* Keep certain elements centered/left-aligned */
.section-title,
.hero-title,
.hero-title-overlay,
.nav-link,
.btn,
.footer-title,
.cert-title,
.value-title,
.mission-title {
    text-align: inherit;
}

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

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.section {
    padding: 6rem 0;
    position: relative;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    background-color: var(--light-color);
    z-index: 2;
}

.section-bg {
    background-color: var(--light-color);
    box-shadow: none;
}

.section-angled {
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
    margin: 3rem 0;
    padding: 8rem 0;
}

.section-dark {
    background-color: var(--dark-color);
    color: var(--light-color);
}

.section-primary {
    background-color: var(--primary-color);
    color: white;
}

.section-accent {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    display: none;
}

.section-dark .section-title::after,
.section-primary .section-title::after {
    background: var(--light-color);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
}

.section-dark .section-subtitle,
.section-primary .section-subtitle {
    color: rgba(255,255,255,0.8);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    background: #1b365d !important;
    color: white !important;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    display: none !important;
}

.btn:hover::before {
    display: none !important;
}

.btn:hover {
    background: #2d4a73 !important;
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0,0,0,0.15);
    color: white !important;
}

.btn-accent {
    background: #1b365d;
    color: white;
}

.btn-accent::before {
    display: none !important;
}

.btn-accent:hover {
    background: #2d4a73 !important;
    color: white !important;
}

.btn-outline {
    background: transparent;
    color: var(--dark-color);
    border: 2px solid currentColor;
    box-shadow: none;
}

.btn-outline::before {
    display: none;
}

.btn-outline:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0,0,0,0.1);
}

.section-dark .btn-outline,
.section-primary .btn-outline {
    color: white;
}

.arrow-icon {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn:hover .arrow-icon {
    transform: translateX(4px);
}

/* Ensure all buttons in sections have correct colors */
.section .btn, .about-section .btn {
    background: #1b365d !important;
    color: white !important;
}

.section .btn:hover, .about-section .btn:hover {
    background: #2d4a73 !important;
    color: white !important;
}

/* Text utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-primary { color: var(--primary-color); }
.text-accent { color: var(--accent-color); }
.text-white { color: white !important; }
.text-bold { font-weight: 700; }

/* Margin utilities */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* Header & Navigation - Force transparent background and highest z-index */
.header,
.header *,
.navbar,
.navbar *,
.nav-menu,
.nav-menu *,
.nav-item,
.nav-item *,
.nav-link,
.navbar-toggle,
.logo,
.logo * {
    background: none !important;
    background-color: transparent !important;
    z-index: 2147483647 !important;
}

.header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    z-index: 2147483647 !important;
    transition: background-color 0.6s ease, 
                box-shadow 0.6s ease,
                padding 0.6s ease,
                backdrop-filter 0.6s ease;
    padding: 1.5rem 0;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    background: rgba(255, 255, 255, 0.4) !important;
    box-shadow: none !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    isolation: isolate !important;
    contain: layout style paint !important;
}

.header.scrolled {
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    background: rgba(255, 255, 255, 0.4) !important;
    box-shadow: none !important;
    padding: 1rem 0;
}

.navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    padding: 0 1rem;
    background: none !important;
    background-color: transparent !important;
}

.header .container {
    background: none !important;
    background-color: transparent !important;
}

.logo {
    position: relative;
    z-index: 2147483647;
    max-width: 250px;
    display: flex;
    align-items: center;
    margin-right: 2rem;
}

.logo img {
    max-width: 100%;
    height: auto;
    transition: var(--transition);
    display: block;
}

.logo-fallback {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: none; /* Hide by default, will show if img fails */
}

/* When image fails to load, show fallback text */
.logo img:not([src]), .logo img[src=""], .logo img:not([src*=".svg"]) {
    display: none;
}

.logo img:not([src]) ~ .logo-fallback, 
.logo img[src=""] ~ .logo-fallback,
.logo img:not([src*=".svg"]) ~ .logo-fallback {
    display: block;
}

/* Comment out force visibility of fallback */
/* 
.logo-fallback {
    display: block;
}
*/



.company-name {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    margin-left: auto;
    z-index: 2147483647 !important;
}

.nav-item {
    margin-left: 2.5rem;
    position: relative;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
    color: #1b365d;
    text-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(27, 54, 93, 0.3), rgba(27, 54, 93, 0.1));
    border-radius: 50%;
    transition: all 0.5s ease-out;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0;
}

.nav-link:hover {
    color: #1b365d;
    animation: navPulse 0.6s ease-out;
    text-shadow: 0 0 10px rgba(27, 54, 93, 0.5), 0 0 20px rgba(27, 54, 93, 0.3);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 40px;
    height: 40px;
    opacity: 1;
}

@keyframes navPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.nav-link.active {
    color: #1b365d;
}

.navbar-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 2147483647 !important;
    color: #1b365d;
    padding: 6px;
    transition: var(--transition);
}

.navbar-toggle.active {
    background-color: var(--primary-color);
    border-radius: 5px;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    background-color: var(--light-color);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    z-index: 1;
    margin-bottom: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-color: var(--primary-color);
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    width: 90%;
    padding-right: 40px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--light-text);
    max-width: 90%;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

/* About Section */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content {
    padding-right: 2rem;
}

.about-text {
    margin-bottom: 1.5rem;
}

.about-image {
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 1;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    z-index: -1;
    border-radius: 5px;
}

/* Mission Section */
.mission-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .mission-section {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .mission-section {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .mission-section {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
    
    .mission-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .mission-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .mission-number {
        font-size: 3rem;
        top: 5px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .mission-section {
        gap: 0.5rem;
    }
    
    .mission-item {
        padding: 1.2rem 0.8rem;
    }
    
    .mission-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .mission-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .mission-number {
        font-size: 2.5rem;
        top: 3px;
        right: 8px;
    }
}

.mission-item {
    padding: 3rem 2rem;
    border-radius: 5px;
    background-color: white;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
}

.mission-item:hover {
    transform: translateY(-10px);
}

.mission-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -1;
    transition: var(--transition);
}

.mission-item:hover::before {
    width: 100%;
}

.mission-item:hover .mission-title,
.mission-item:hover .mission-text {
    color: white;
}

.mission-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(0,0,0,0.05);
    position: absolute;
    top: 10px;
    right: 20px;
    transition: var(--transition);
}

.mission-item:hover .mission-number {
    color: rgba(255,255,255,0.1);
}

.mission-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    transition: var(--transition);
}

.mission-text {
    transition: var(--transition);
}

/* Project List Page */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 3rem;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1rem;
    color: var(--light-text);
    font-size: 1.1rem;
    line-height: 1.7;
}

.project-row {
    display: grid;
    grid-template-columns: 400px 1fr;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    min-height: 300px;
}

.project-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.project-image-container {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    width: 100%;
    height: 100%;
    display: block;
}

.project-list-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
    display: block;
}

.project-row:hover .project-list-image {
    transform: scale(1.05);
}

.project-category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.project-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--light-text);
}

.project-location i,
.project-date i {
    color: var(--primary-color);
    margin-right: 5px;
}

.project-list-title {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.project-list-title::after {
    display: none;
}

.project-list-description {
    color: var(--light-text);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.project-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.project-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.project-features li i {
    color: var(--success-color);
    margin-right: 10px;
    font-size: 1.1rem;
}

.btn-view-more {
    margin-top: auto;
    align-self: flex-start;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .project-row {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: auto;
    }
    
    .project-image-container {
        width: 100%;
        height: 100%;
        overflow: hidden;
        background: #f0f0f0;
    }
    
    .project-content {
        padding: 1.5rem;
        height: auto;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .project-row {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    
    .project-image-container {
        height: 100%;
    }
    
    .project-content {
        padding: 1.25rem;
    }
}

/* Certification Section */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.cert-item {
    padding: 1rem;
    background-color: white;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.cert-item:hover {
    transform: translateY(-5px);
}

.cert-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 120, 255, 0.1);
    border-radius: 50%;
}

.cert-title {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.cert-desc {
    color: var(--light-text);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Certification Badge */
.cert-badge {
    width: 110px;
    height: auto;
    margin: 1.5rem auto;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    border-radius: 50%;
}

/* References Section */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: center;
}

.reference-item {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    flex-direction: column;
    gap: 0.5rem;
}

.reference-item.single-logo {
    flex-direction: row;
    gap: 0;
}

.reference-item:not(.single-logo) .reference-logo {
    max-width: 150px !important;
    max-height: 80px !important;
}

.reference-item:not(.single-logo) .reference-logo:first-child {
    margin-bottom: 0.25rem;
}

.reference-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.reference-logo {
    max-width: 140px !important;
    max-height: 90px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    opacity: 0.9;
    transition: var(--transition);
}

.reference-item:hover .reference-logo {
    opacity: 1;
    transform: scale(1.05);
}

/* Specific shadow for Cinemotion logo to improve text readability */
.reference-logo[src*="cinemotion"] {
    filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.7)) !important;
}

/* Make Villars logo slightly bigger */
.reference-logo[src*="Villars"] {
    max-width: 170px !important;
    max-height: 110px !important;
}

@media (max-width: 768px) {
    .references-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }
    
    .reference-item {
        padding: 1rem;
        min-height: 90px;
    }
    
    .reference-logo {
        max-width: 110px !important;
        max-height: 70px !important;
    }
    
    .reference-item:not(.single-logo) .reference-logo {
        max-width: 100px !important;
        max-height: 50px !important;
    }
}

@media (max-width: 576px) {
    .references-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 1.2rem;
    }
    
    .reference-item {
        padding: 0.8rem;
        min-height: 80px;
    }
    
    .reference-logo {
        max-width: 90px !important;
        max-height: 60px !important;
    }
}

/* Contact Section */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-title {
    margin-bottom: 1.5rem;
}

.contact-details {
    list-style: none;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    flex-shrink: 0;
}

.map {
    width: 100%;
    height: 400px;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 1rem;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-tagline {
    font-size: 1.2rem;
    line-height: 1.5;
}

.footer-title {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.footer-link-item {
    margin-bottom: 0.8rem;
}

.footer-link {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

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

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.footer-contact-icon {
    margin-right: 0.8rem;
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 1s ease-out;
}

/* Media Queries */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .navbar-toggle {
        display: block;
        position: absolute;
        right: 0;
        z-index: 2147483647 !important;
        isolation: isolate !important;
        transform: translateZ(1000px) !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--primary-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
        margin: 0;
    }
    
    .nav-menu.active {
        right: 0;
        z-index: 2147483647 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        transform: translateZ(999px) !important;
        isolation: isolate !important;
    }
    
    .nav-item {
        margin: 1.5rem 0;
    }
    
    .hero::before {
        width: 50%; /* leave more text space on the left */
        clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
        height: 100%;
    }
    
    .hero-image {
        clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
        width: 50%; /* match diagonal width */
        height: 100%;
        position: absolute;
        top: 0;
        right: 0;
        z-index: 1;
        object-position: center right;
    }
    
    .hero-content {
        position: relative;
        z-index: 2;
        max-width: none;
        width: auto;
        padding-right: 0;
        text-align: left;
        margin-top: 0;
        background-color: transparent;
        margin-right: 0; /* rely on container padding for safe area */
    }
    /* Reserve safe area on the right so text/logo never cross the diagonal */
    .hero .container { padding-right: 56% !important; }
    
    .about-section,
    .contact-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image::before {
        display: none;
    }
}

@media (max-width: 768px) {
    html { font-size: 14px; }
    
    .section {
        padding: 4rem 0;
    }
    
    .mission-section,
    .project-list,
    .cert-grid {
        gap: 1.5rem;
    }
    
    .about-content {
        padding-right: 0;
    }
    
    .hero {
        min-height: 700px;
        height: 100vh;
    }
    
    .hero-content {
        padding-top: 0;
        width: 90%;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.15;
    }
    .hero-subtitle {
        font-size: 1rem;
        max-width: 36ch;
    }
    .hero .container { padding-right: 58% !important; }
    
    .company-name {
        font-size: 0.8rem;
        margin-left: 0.5rem;
        padding-left: 0.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title { font-size: 1.7rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero .container { padding-right: 60% !important; }
    
    .hero-content {
        width: 90%;
    }
    
    .mission-item {
        padding: 1.5rem 1rem;
    }
    
    .cert-item {
        padding: 2rem 1.5rem;
    }
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 1rem; /* Small margin between items */
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    aspect-ratio: 1/1; /* Square aspect ratio */
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 auto !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.gallery-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    transition: var(--transition);
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.gallery-item:hover .gallery-image {
    transform: translate(-50%, -50%) scale(1.05) !important;
    /* filter: blur(1px); */ /* Blur effect removed */
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(20px);
    border-radius: 5px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gallery-overlay-content {
    text-align: center;
    padding: 2rem;
    max-width: 90%;
    animation: slideUpFade 0.5s ease-out 0.1s both;
}

.gallery-overlay h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gallery-overlay p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.gallery-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(27, 54, 93, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-btn:hover {
    background: #2d4a73;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 54, 93, 0.4);
    color: white;
}

.gallery-btn::after {
    content: '→';
    margin-left: 0.5rem;
    transition: var(--transition);
}

.gallery-btn:hover::after {
    transform: translateX(3px);
}

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

/* Responsive Gallery Overlay */
@media (max-width: 768px) {
    .gallery-overlay-content {
        padding: 1.5rem;
    }
    
    .gallery-overlay h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .gallery-overlay p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .gallery-btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .gallery-overlay-content {
        padding: 1rem;
    }
    
    .gallery-overlay h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    
    .gallery-overlay p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .gallery-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.page-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-nav button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    color: var(--text-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-nav button:hover {
    color: var(--primary-color);
    background-color: rgba(0, 120, 255, 0.1);
}

.page-nav button:disabled {
    color: var(--light-text);
    cursor: not-allowed;
    background-color: transparent;
}

/* Media queries for gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

/* Contact Form Styling */
.contact-form {
    background-color: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin-bottom: 3rem;
}

.contact-form h2 {
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.contact-form h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 120, 255, 0.1);
    background-color: white;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: #1b365d;
    color: white;
    border: none;
    padding: 1rem 2rem;
        font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    box-shadow: 0 4px 10px rgba(27, 54, 93, 0.2);
}

.submit-btn:hover {
    background: #2d4a73;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(27, 54, 93, 0.25);
}

/* Responsive form */
@media (max-width: 768px) {
    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .contact-form {
        padding: 1.5rem;
    }
}

/* Address and Map Section */
.address-map-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

.address-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.address-card h2 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.address-card h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.address-card .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.address-card .info-icon {
        font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    flex-shrink: 0;
}

.address-card .info-content p {
    margin-bottom: 0.5rem;
}

.address-card .info-content p:last-child {
    margin-bottom: 0;
}

.map-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
}

.map-card iframe {
    width: 100%;
    height: 100%;
    min-height: 340px;
    border: none;
}

@media (max-width: 992px) {
    .address-map-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .map-card iframe {
        min-height: 400px;
    }
}

/* Recent Projects on Homepage */
.recent-projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.recent-project-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.recent-project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.recent-project-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.project-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.recent-project-item:hover .project-thumb {
    transform: scale(1.05);
}

.recent-project-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.recent-project-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.recent-project-desc {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex: 1;
}

.btn-small {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: transparent;
    color: #1b365d;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-start;
    border: 1px solid #1b365d;
}

.btn-small:hover {
    background: #2d4a73;
    color: white;
}

.mt-4 {
    margin-top: 2.5rem;
}

@media (max-width: 992px) {
    .recent-projects {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .recent-projects {
        grid-template-columns: 1fr;
    }
}

/* About Page - Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 170px;
    margin-left: -2px;
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 210px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-year {
    position: absolute;
    width: 140px;
    height: 40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 40px;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    z-index: 2;
}

.timeline-content {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.timeline-content h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    position: relative;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 50px;
    }
    
    .timeline-item {
        padding-left: 100px;
    }
    
    .timeline-year {
        width: 90px;
        height: 34px;
        font-size: 0.9rem;
        line-height: 34px;
    }
}

/* About Page - Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.value-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    display: inline-block;
    position: relative;
}

.value-icon::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: rgba(27, 54, 93, 0.15);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.value-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.value-desc {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About Page - Team */
.team-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: center;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--light-text);
    font-size: 0.9rem;
    font-weight: 500;
}

.team-description {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.team-description p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.team-description p:last-child {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .team-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .team-stats {
        grid-template-columns: 1fr;
    }
}

/* About Page - Vision */
.vision-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

.vision-content p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.vision-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.vision-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.vision-image-container:hover .vision-image {
    transform: scale(1.05);
}

.vision-image-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

@media (max-width: 992px) {
    .vision-section {
        grid-template-columns: 1fr;
    }
    
    .vision-image-container {
        height: 350px;
        order: -1;
    }
}

.intro-text {
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    font-size: 1.1rem;
}







/* Add media query for mobile logo size */
@media (max-width: 768px) {
    .logo {
        max-width: 120px;
    }
}

/* Jobs Section - Tabbed Layout */
.jobs-section {
    min-height: calc(100vh - 100px);
    padding-top: 100px;
    padding-bottom: 2rem;
}

.job-posting {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.job-title {
    padding: 1.5rem;
    background-color: var(--primary-color);
    color: white;
    margin: 0;
    border-radius: 10px 10px 0 0;
    font-size: 1.8rem;
}

.job-details {
    display: flex;
    flex-wrap: wrap;
    background-color: rgba(0, 104, 221, 0.05);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.job-details p {
    margin: 0 2rem 0 0;
    padding: 0.5rem 0;
}

.job-content {
    padding: 0;
}

/* Tabs Navigation */
.job-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background-color: #f8f9fa;
}

.job-tab {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border: none;
    background: none;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
    font-family: var(--font-primary);
    font-size: 1rem;
}

.job-tab:hover {
    color: var(--primary-color);
}

.job-tab.active {
    color: var(--primary-color);
}

.job-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

/* Tab Content */
.tab-content {
    padding: 1.5rem;
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-content h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.job-list {
    padding-left: 1.5rem;
}

.job-list li {
    margin-bottom: 0.5rem;
}

.apply-now-btn {
    display: block;
    margin-top: 2rem;
    text-align: center;
}



/* Responsive adaptations for jobs page */
@media (max-width: 768px) {
    .job-details {
        flex-direction: column;
    }
    
    .job-details p {
        margin-right: 0;
        padding: 0.25rem 0;
    }
    
    .job-tabs {
        flex-wrap: wrap;
    }
    
    .job-tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Mobile Hero Logo */
.mobile-hero-logo {
    display: none;
}

@media (max-width: 992px) {
    .mobile-hero-logo {
        display: block;
        margin: 0 auto 1.5rem;
        max-width: 180px;
    position: relative;
        z-index: 10;
    }
    
    .mobile-hero-logo img {
        width: 100%;
        height: auto;
        /* Original colors preserved */
    }


}

@media (max-width: 992px) {
    .navbar-toggle {
        display: block;
    position: absolute;
        right: 0;
        z-index: 1002;
    }
    
    .nav-menu {
        position: fixed;
    top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--primary-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 9999;
        margin: 0;
    }
    
    .nav-menu.active {
        right: 0;
        background-color: white !important;
    }
    
    .nav-item {
        margin: 1.5rem 0;
    }
    
    .hero::before {
        width: 60%;
        clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
        height: 100%;
    }
    
    .hero-image {
        clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
        width: 55%;
        height: 100%;
        position: absolute;
        top: 0;
        right: 0;
        z-index: 1;
    }
    
    .hero-content {
        position: relative;
        z-index: 2;
        max-width: 520px;
        width: 90%;
        padding-right: 40px;
        text-align: left;
        margin-top: 0;
        background-color: transparent;
    }
    
    .about-section,
    .contact-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image::before {
        display: none;
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

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

.service-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--light-text);
}

.service-list li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Sectors Grid */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.sector-card {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.sector-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.sector-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.sector-card h3 {
    color: white;
    margin-bottom: 1rem;
}

.sector-card p {
    color: rgba(255,255,255,0.8);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    color: var(--text-color);
    text-align: center;
    padding: 4rem 0;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}



@media (max-width: 768px) {
    .services-grid,
    .sectors-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card,
    .sector-card {
        padding: 1.5rem;
    }
}

/* CRITICAL: Force header blur effect and fixed position - This rule must be last to override everything */
body .header,
html body .header {
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    background: rgba(255, 255, 255, 0.4) !important;
    background-image: none !important;
}

body .header *:not(.nav-menu.active),
body .navbar,
body .navbar *:not(.nav-menu.active),
body .header .container,
body .header .container *:not(.nav-menu.active) {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* CRITICAL: Force header to stay completely fixed and immovable */
body .header,
html body .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* Dark mode blur override */
body.dark-mode .header,
html body.dark-mode .header {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    background: rgba(0, 0, 0, 0.2) !important;
    background-image: none !important;
}

body.dark-mode .header *:not(.nav-menu.active),
body.dark-mode .navbar,
body.dark-mode .navbar *:not(.nav-menu.active),
body.dark-mode .header .container,
body.dark-mode .header .container *:not(.nav-menu.active) {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Dark mode fixed position override */
body.dark-mode .header,
html body.dark-mode .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* CRITICAL: Force logo to show original colors - Remove all filters */
.logo img,
body .logo img,
html body .logo img,
.dark-mode .logo img,
body.dark-mode .logo img,
html body.dark-mode .logo img,
.mobile-hero-logo img,
body .mobile-hero-logo img,
html body .mobile-hero-logo img,
.dark-mode .mobile-hero-logo img,
body.dark-mode .mobile-hero-logo img,
html body.dark-mode .mobile-hero-logo img {
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    -ms-filter: none !important;
    -o-filter: none !important;
}

/* CRITICAL: Force navbar text to be dark blue - Override all other styles */
.nav-link,
body .nav-link,
html body .nav-link,
.navbar .nav-link,
.header .nav-link,
.nav-menu .nav-link,
.dark-mode .nav-link,
body.dark-mode .nav-link,
html body.dark-mode .nav-link {
    color: #1b365d !important;
}

.nav-link:hover,
body .nav-link:hover,
html body .nav-link:hover,
.navbar .nav-link:hover,
.header .nav-link:hover,
.nav-menu .nav-link:hover,
.dark-mode .nav-link:hover,
body.dark-mode .nav-link:hover,
html body.dark-mode .nav-link:hover {
    color: #1b365d !important;
}

.nav-link.active,
body .nav-link.active,
html body .nav-link.active,
.navbar .nav-link.active,
.header .nav-link.active,
.nav-menu .nav-link.active,
.dark-mode .nav-link.active,
body.dark-mode .nav-link.active,
html body.dark-mode .nav-link.active {
    color: #1b365d !important;
}

.navbar-toggle,
body .navbar-toggle,
html body .navbar-toggle,
.dark-mode .navbar-toggle,
body.dark-mode .navbar-toggle,
html body.dark-mode .navbar-toggle {
    color: #1b365d !important;
}

/* CRITICAL: Force navbar hover animation styles */
.nav-link::after,
body .nav-link::after,
html body .nav-link::after,
.navbar .nav-link::after,
.header .nav-link::after,
.nav-menu .nav-link::after,
.dark-mode .nav-link::after,
body.dark-mode .nav-link::after,
html body.dark-mode .nav-link::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    background: radial-gradient(circle, rgba(27, 54, 93, 0.3), rgba(27, 54, 93, 0.1)) !important;
    border-radius: 50% !important;
    transition: all 0.5s ease-out !important;
    transform: translate(-50%, -50%) !important;
    z-index: -1 !important;
    opacity: 0 !important;
}

.nav-link,
body .nav-link,
html body .nav-link,
.navbar .nav-link,
.header .nav-link,
.nav-menu .nav-link,
.dark-mode .nav-link,
body.dark-mode .nav-link,
html body.dark-mode .nav-link {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.nav-link:hover,
body .nav-link:hover,
html body .nav-link:hover,
.navbar .nav-link:hover,
.header .nav-link:hover,
.nav-menu .nav-link:hover,
.dark-mode .nav-link:hover,
body.dark-mode .nav-link:hover,
html body.dark-mode .nav-link:hover {
    color: #1b365d !important;
    animation: navPulse 0.6s ease-out !important;
    text-shadow: 0 0 10px rgba(27, 54, 93, 0.5), 0 0 20px rgba(27, 54, 93, 0.3) !important;
}

.nav-link:hover::after,
body .nav-link:hover::after,
html body .nav-link:hover::after,
.navbar .nav-link:hover::after,
.header .nav-link:hover::after,
.nav-menu .nav-link:hover::after,
.dark-mode .nav-link:hover::after,
body.dark-mode .nav-link:hover::after,
html body.dark-mode .nav-link:hover::after,
.nav-link.active::after,
body .nav-link.active::after,
html body .nav-link.active::after {
    width: 40px !important;
    height: 40px !important;
    opacity: 1 !important;
}

/* CRITICAL: Force keyframe animation */
@keyframes navPulse {
    0% { transform: scale(1) !important; }
    50% { transform: scale(1.1) !important; }
    100% { transform: scale(1) !important; }
}

/* CRITICAL: Force white background for mobile nav menu when active */
@media (max-width: 992px) {
    .nav-menu.active,
    body .nav-menu.active,
    html body .nav-menu.active,
    .header .nav-menu.active,
    .navbar .nav-menu.active {
        background-color: white !important;
        background: white !important;
        background-image: none !important;
    }
}

/* ULTRA CRITICAL: Maximum specificity override for nav-menu background */
@media screen and (max-width: 992px) {
    ul.nav-menu.active,
    body ul.nav-menu.active,
    html body ul.nav-menu.active,
    .header ul.nav-menu.active,
    .navbar ul.nav-menu.active {
        background-color: rgba(255, 255, 255, 0.95) !important;
        background: rgba(255, 255, 255, 0.95) !important;
        background-image: none !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
    }
}

/* SUPREME OVERRIDE: Counter the transparent background forcing rules */
@media (max-width: 992px) {
    body .header .nav-menu.active,
    html body .header .nav-menu.active,
    body .navbar .nav-menu.active,
    html body .navbar .nav-menu.active,
    body .header .container .nav-menu.active,
    html body .header .container .nav-menu.active {
        background: rgba(255, 255, 255, 0.95) !important;
        background-color: rgba(255, 255, 255, 0.95) !important;
        background-image: none !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
    }
}

/* FINAL SOLUTION: The most specific nav-menu background override possible */
@media (max-width: 992px) {
    .nav-menu.active[class*="nav-menu"],
    ul.nav-menu.active[class*="nav-menu"],
    body .nav-menu.active[class*="nav-menu"],
    html body .nav-menu.active[class*="nav-menu"] {
        background: white !important;
        background-color: white !important;
        background-image: none !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 80% !important;
        max-width: 400px !important;
        height: 100vh !important;
        z-index: 9999 !important;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1) !important;
    }
}

/* ABSOLUTE LAST RESORT: Direct style override */
@media (max-width: 992px) {
    .nav-menu.active {
        background: white !important;
        background-color: white !important;
    }
    
    .nav-menu.active::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        z-index: -1 !important;
    }
}

/* ULTIMATE SOLUTION: Target ul.nav-menu.active specifically */
@media screen and (max-width: 992px) {
    ul.nav-menu.active,
    ul.nav-menu.active * {
        background: rgba(255, 255, 255, 0.9) !important;
        background-color: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
    }
    
    ul.nav-menu.active {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 80% !important;
        max-width: 400px !important;
        height: 100vh !important;
        background: rgba(255, 255, 255, 0.9) !important;
        background-color: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1) !important;
        z-index: 10000 !important;
    }
}

/* NUCLEAR OPTION: Override everything with maximum specificity */
@media (max-width: 992px) {
    html body .header .navbar ul.nav-menu.active,
    html body .header ul.nav-menu.active,
    html body ul.nav-menu.active,
    body ul.nav-menu.active,
    ul.nav-menu.active {
        background: rgba(255, 255, 255, 0.95) !important;
        background-color: rgba(255, 255, 255, 0.95) !important;
        background-image: none !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2) !important;
        border: 2px solid rgba(255, 255, 255, 0.8) !important;
    }
}

/* EMERGENCY BACKUP: Force background with CSS variables */
@media (max-width: 992px) {
    .nav-menu.active {
        --bg-color: rgba(255, 255, 255, 0.95);
        background: var(--bg-color) !important;
        background-color: var(--bg-color) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
    }
}

/* ULTIMATE MOBILE NAV SOLUTION: Maximum z-index mobile navigation */
@media (max-width: 992px) {
    .nav-menu.active {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 80% !important;
        max-width: 400px !important;
        height: 100vh !important;
        z-index: 2147483647 !important; /* Maximum possible z-index value */
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        box-shadow: -5px 0 25px rgba(0,0,0,0.15) !important;
        transition: right 0.3s ease !important;
        isolation: isolate !important;
        contain: layout style paint !important;
        transform: translateZ(999px) !important;
        will-change: transform !important;
    }
    
    /* Force all nav menu children to inherit max z-index */
    .nav-menu.active *,
    .nav-menu.active .nav-item,
    .nav-menu.active .nav-link {
        z-index: inherit !important;
        position: relative !important;
    }
}

/* CLEAN SOLUTION: Nav-menu active white blurry background */
@media (max-width: 992px) {
    /* Create a backdrop pseudo-element for additional blur support */
    .nav-menu.active::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(30px) !important;
        -webkit-backdrop-filter: blur(30px) !important;
        z-index: -1 !important;
    }

    .nav-menu.active {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(30px) !important;
        -webkit-backdrop-filter: blur(30px) !important;
        -moz-backdrop-filter: blur(30px) !important;
        -o-backdrop-filter: blur(30px) !important;
        -ms-backdrop-filter: blur(30px) !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 80% !important;
        max-width: 400px !important;
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        transition: right 0.5s ease !important;
        box-shadow: -5px 0 20px rgba(0,0,0,0.15) !important;
        z-index: 1000 !important;
        margin: 0 !important;
        border-left: 1px solid rgba(255, 255, 255, 0.8) !important;
        /* Add transform to create stacking context for blur */
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
        will-change: backdrop-filter !important;
    }
    
    /* Ensure the menu container has proper blur support */
    .nav-menu.active {
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
    }
    
    /* Remove any background overrides from nav-menu items */
    .nav-menu.active .nav-item,
    .nav-menu.active .nav-link {
        background: transparent !important;
        background-color: transparent !important;
        position: relative !important;
        z-index: 2 !important;
    }
    
    /* Ensure nav links are visible with better contrast */
    .nav-menu.active .nav-link {
        color: #1b365d !important;
        padding: 1.2rem 0 !important;
        font-size: 1.2rem !important;
        font-weight: 600 !important;
        text-shadow: none !important;
        position: relative !important;
        z-index: 2 !important;
    }

    /* Add hover effect for better interaction */
    .nav-menu.active .nav-link:hover {
        transform: translateX(5px) !important;
        color: #2d4a73 !important;
    }

    /* Additional blur support for webkit browsers */
    @supports (-webkit-backdrop-filter: none) {
        .nav-menu.active {
            -webkit-backdrop-filter: blur(30px) !important;
            backdrop-filter: blur(30px) !important;
        }
    }

    /* Additional blur support for firefox */
    @supports (backdrop-filter: none) {
        .nav-menu.active {
            backdrop-filter: blur(30px) !important;
        }
    }
}

/* Mobile Navigation Menu - Blur Effect */
@media (max-width: 992px) {
    /* Container for the blur effect */
    .navbar {
        position: relative !important;
    }

    .nav-menu {
        display: none !important;
    }

    .nav-menu.active {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 80% !important;
        max-width: 400px !important;
        height: 100vh !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2rem !important;
        background: rgba(255, 255, 255, 0.6) !important;
        -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
        backdrop-filter: blur(40px) saturate(180%) !important;
        z-index: 9999 !important;
        transition: all 0.3s ease-in-out !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1) !important;
    }

    /* Fallback for browsers that don't support backdrop-filter */
    @supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
        .nav-menu.active {
            background: rgba(255, 255, 255, 0.98) !important;
        }
    }

    .nav-menu.active .nav-item {
        opacity: 1 !important;
        transform: translateX(0) !important;
        transition: all 0.3s ease-in-out !important;
        margin: 0.5rem 0 !important;
    }

    .nav-menu.active .nav-link {
        font-size: 1.2rem !important;
        font-weight: 600 !important;
        color: #1b365d !important;
        padding: 1rem 2rem !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        text-align: center !important;
        width: 100% !important;
    }

    .nav-menu.active .nav-link:hover {
        color: #2d4a73 !important;
        transform: scale(1.05) !important;
    }

    /* Overlay for better contrast */
    .nav-menu.active::before {
        content: '' !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(255, 255, 255, 0.2) !important;
        backdrop-filter: blur(40px) !important;
        -webkit-backdrop-filter: blur(40px) !important;
        z-index: -1 !important;
    }
}

/* Mobile Navigation Menu - New Blur Effect */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        padding: 2rem;
        transition: 0.5s;
        z-index: 9999;
    }

    .nav-menu.active {
        display: flex;
        right: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .nav-menu.active.blur-effect {
        background: rgba(255, 255, 255, 0.75);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        border-left: 1px solid rgba(255, 255, 255, 0.3);
    }

    /* Ensure navbar toggle stays above menu */
    .navbar-toggle {
        position: relative;
        z-index: 10000;
    }

    .nav-item {
        margin: 1rem 0;
        opacity: 0;
        transform: translateX(100px);
        transition: 0.5s;
    }

    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.2rem;
        font-weight: 600;
        padding: 0.5rem 1rem;
        display: block;
        text-align: center;
        transition: 0.3s;
    }

    .nav-link:hover {
        transform: translateX(5px);
    }
}

/* Force proper z-index layering */
.header,
.header *,
.navbar,
.navbar * {
    z-index: 1 !important;
}

.nav-menu.active,
.nav-menu.active * {
    z-index: 99999 !important;
}

.navbar-toggle {
    z-index: 100000 !important;
}

/* Ensure proper stacking context */
.header {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Cleanup: Removed redundant mobile nav rules - handled by FINAL MOBILE NAV SOLUTION */

/* Cleanup: Removed redundant mobile nav rules - handled by FINAL MOBILE NAV SOLUTION above */

/* Cleanup: Removed redundant z-index rules - handled by FINAL MOBILE NAV SOLUTION */

/* Cleanup: Removed redundant stacking context rules - handled by FINAL MOBILE NAV SOLUTION */

/* CRITICAL: Logo Visibility Override */
.logo,
body .logo,
html body .logo,
.dark-mode .logo,
body.dark-mode .logo,
html body.dark-mode .logo {
    position: relative !important;
    z-index: 1000 !important; /* High but below active mobile menu */
    isolation: isolate !important;
    mix-blend-mode: normal !important;
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    -ms-filter: none !important;
    -o-filter: none !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
}

.logo img,
body .logo img,
html body .logo img,
.dark-mode .logo img,
body.dark-mode .logo img,
html body.dark-mode .logo img {
    position: relative !important;
    z-index: 1000 !important; /* High but below active mobile menu */
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    -ms-filter: none !important;
    -o-filter: none !important;
    mix-blend-mode: normal !important;
    isolation: isolate !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
}

/* Ensure logo container has proper stacking context */
.header .container {
    position: relative !important;
    z-index: 1000 !important; /* High but below active mobile menu */
    isolation: isolate !important;
}

/* Mobile Logo Adjustments */
@media (max-width: 992px) {
    .logo,
    .logo img,
    .header .container {
        position: relative !important;
        z-index: 1000 !important; /* Lower than active menu */
        isolation: isolate !important;
    }
    
    .nav-menu.active {
        z-index: 2147483647 !important; /* Highest priority when active */
    }
    
    .navbar-toggle {
        z-index: 2147483647 !important; /* Same as menu to stay clickable */
    }
}

/* CRITICAL: Mobile Nav Menu Must Always Be On Top - ABSOLUTE FINAL RULE */
@media (max-width: 992px) {
    /* Force mobile nav menu to be above everything else */
    .nav-menu.active {
        z-index: 2147483647 !important;
        position: fixed !important;
        isolation: isolate !important;
        transform: translateZ(9999px) !important;
        will-change: transform !important;
    }
    
    /* Override for critical header elements but keep them below nav menu */
    .header,
    .navbar,
    .logo,
    .navbar-toggle {
        z-index: 1000 !important;
        position: relative !important;
    }
    
    /* Force navbar toggle to be clickable but below nav menu */
    .navbar-toggle {
        z-index: 2147483646 !important;
        position: relative !important;
    }
    
    /* Ensure nav menu and its children stay on top */
    .nav-menu.active,
    .nav-menu.active *,
    .nav-menu.active .nav-item,
    .nav-menu.active .nav-link {
        z-index: 2147483647 !important;
    }
}

/* Desktop header priority */
@media (min-width: 993px) {
    html body .header,
    html body .header *,
    html body .navbar,
    html body .navbar *,
    html body .logo,
    html body .logo * {
        z-index: 2147483647 !important;
        position: relative !important;
    }

    html body .header {
        position: fixed !important;
        z-index: 2147483647 !important;
        isolation: isolate !important;
        transform: translateZ(999px) !important;
        will-change: transform !important;
    }
}

/* Mobile hero layout fix: keep text/logo left of the blue diagonal and reduce sizes */
@media (max-width: 992px) {
    .hero-content {
        margin-right: 55% !important; /* reserve space for hero-image (55%) */
        max-width: none !important;
        padding-right: 0 !important;
    }
    .mobile-hero-logo {
        align-self: flex-start !important;
        margin-bottom: 0.75rem !important;
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2rem !important; line-height: 1.15 !important; }
    .hero-subtitle { font-size: 1rem !important; max-width: 36ch !important; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.7rem !important; }
    .hero-subtitle { font-size: 0.95rem !important; }
    .mobile-hero-logo { max-width: 150px !important; }
}

@media (max-width: 992px) {
    /* Remove paint containment so nav-menu can paint outside header */
    .header {
        contain: none !important;
        isolation: auto !important;
        overflow: visible !important;
    }
}