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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h, var(--nav-offset, 90px));
}

section[id],
[id^="section-"],
[data-anchor] {
    scroll-margin-top: var(--header-h, var(--nav-offset, 90px));
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    overflow-x: hidden;
    padding-top: var(--header-h, var(--nav-offset, 80px));
}

body.page {
    background: #0b1c28;
    color: var(--text-on-navy);
}

body.nav-open {
    overflow: hidden;
}

:root {
    --brand-navy: #0a2534;
    --brand-navy-700: #0e3247;
    --brand-navy-600: #13405a;
    --text-on-navy: #e9f1f6;
    --text-on-navy-2: #bfd0e8;
    --link-on-navy: #9ec3ff;
    --link-on-navy-h: #cfe2ff;

    
    --accent: #00bcd4;
    --panel: rgba(255, 255, 255, 0.08);
    --overlay: rgba(0, 0, 0, 0.35);
    --section-pad-y: clamp(48px, 6vw, 96px);
    --section-pad-y-tight: clamp(32px, 4vw, 72px);
    --container-max: 1200px;
    --container-pad-x: clamp(16px, 3vw, 32px);
    --grid-gap: clamp(16px, 2.5vw, 32px);
    --nav-offset: 80px;
}

.container {
    width: min(1120px, 92vw);
    margin-inline: auto;
    padding-inline: 24px;
}

.section {
    padding: 56px 0;
    padding-block: var(--section-pad-y);
}

.lead {
    font-size: 1.15rem;
    opacity: 0.92;
}

.max-720 {
    max-width: 720px;
    margin-inline: auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    color: var(--text-on-navy);
    border-bottom: 1px solid rgba(191, 208, 232, 0.12);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar.is-solid {
    background: linear-gradient(180deg, var(--brand-navy-700) 0%, var(--brand-navy) 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

body.has-sticky .navbar {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.navbar.is-stuck {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Contact Us Button */
.contact-nav-btn {
    background: var(--accent);
    color: #ffffff !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

.contact-nav-btn:hover {
    filter: brightness(0.92);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 33, 102, 0.35);
}

.shiny-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important; /* Blue */
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}

.shiny-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* Certificate Navigation Button */
.certificate-nav-btn {
    background: linear-gradient(135deg, #059669, #047857);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.certificate-nav-btn:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

@media (min-width: 769px) {
    .nav-toggle {
        display: none !important;
    }

    .nav-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 1.2rem !important;
        width: auto;
        padding: 0;
        background: transparent;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .nav-container {
        min-height: 72px;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
        z-index: 1200;
    }

    body.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    body.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .nav-menu {
        display: flex !important;
        position: fixed;
        inset: 0;
        background: #0d1b2a;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 6rem 1.5rem 2rem;
        gap: 1.5rem;
        z-index: 1100;
        transform: translateY(-100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
    }

    body.nav-open .nav-menu {
        transform: translateY(0);
    }

    /* Nav backdrop on mobile - ensure z-index is lower than Back-to-Top button (99999) */
    .nav-backdrop {
        z-index: 9998; /* Lower than Back-to-Top button's 99999 */
    }

    .nav-menu > li {
        width: 100%;
        text-align: center;
    }

    .nav-menu > li > a,
    .nav-menu > li > button {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        padding: 0.75rem 0;
    }

    .nav-menu a {
        pointer-events: auto;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
    }

    .dropdown-menu li + li {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .dropdown-menu a {
        padding: 0.5rem 0;
    }
}

/* Nav backdrop - default: no pointer events */
.nav-backdrop {
    pointer-events: none;
    z-index: 9998; /* Lower than Back-to-Top button's 99999 */
}

/* Nav backdrop - enable pointer events when menu is open */
body.nav-open .nav-backdrop {
    pointer-events: auto;
}

/* Lumico Logo */
.lumico-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    gap: 0.75rem;
}

.lumico-logo:hover {
    transform: scale(1.05);
}

.logo-image {
    height: auto;
    transition: all 0.3s ease;
    background: transparent;
    border-radius: 4px;
}

.logo-image:not([src]) {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    min-height: 45px;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image:not([src])::before {
    content: 'Lumico Engineering';
    color: #64748b;
    font-size: 1rem;
    font-weight: 600;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-on-navy);
    line-height: 1.1;
    white-space: nowrap;
}

.logo-fallback {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-on-navy);
    display: flex;
    align-items: center;
    height: 45px;
}

/* Navigation Logo */
.nav-logo .logo-image {
    height: 45px;
    max-width: 150px;
    display: block;
    opacity: 1;
    visibility: visible;
}

.nav-logo h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-on-navy);
    background: none;
    -webkit-background-clip: text;
    -webkit-text-fill-color: currentColor;
    background-clip: border-box;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
    list-style: none;
}

.nav-menu > li > a,
.nav-menu > li > button {
    color: var(--text-on-navy);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-menu > li > a:hover,
.nav-menu > li > button:hover {
    opacity: 0.85;
}

.nav-menu a.tab-link.active {
    color: var(--link-on-navy);
    font-weight: 700;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 220px;
    padding: 8px 0;
    background: var(--brand-navy-700);
    border: 1px solid rgba(191, 208, 232, 0.12);
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 14px;
    color: var(--text-on-navy);
    text-decoration: none;
    transition: background 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
    display: none;
    border: 0;
    background: rgba(233, 241, 248, 0.12);
    color: var(--text-on-navy);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    transition: background 0.2s ease;
    position: relative;
    z-index: 1200;
}

.nav-toggle:hover {
    background: rgba(233, 241, 248, 0.24);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease;
}

/* legacy mobile nav removed */

/* legacy nav backdrop styles removed */

/* legacy mobile nav list styles removed */

/* legacy responsive nav block removed */

/* Hero Section */
.hero,
.home-hero,
.page-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(80vh, 100vh, 100vh);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 56px 24px 64px;
    background: url("/clients/lumico_background_wordless.png") center 35% / cover no-repeat fixed;
    color: #ffffff;
}

.hero::before,
.home-hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 60% at 65% 50%, rgba(5, 16, 26, 0.35) 0%, rgba(5, 16, 26, 0.85) 55%, rgba(5, 16, 26, 0.95) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero::after,
.home-hero::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--overlay) 0%, rgba(0, 0, 0, 0.55) 65%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-background {
    display: none;
}

.hero-overlay {
    display: none;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(158, 195, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(158, 195, 255, 0.12) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.18;
    animation: heroGridDrift 18s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 32px;
    align-items: center;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--text-on-navy);
}

.hero-kicker {
    font-size: 1.1rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--link-on-navy);
    font-weight: 600;
}

.hero-left h1 {
    font-size: clamp(36px, 6.2vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-title-line {
    color: var(--text-on-navy);
}

.hero-title-accent {
    color: var(--link-on-navy);
}

.hero-subheading {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
    color: var(--link-on-navy);
    margin: 8px 0 0;
}

.hero-description {
    max-width: 640px;
    font-size: clamp(16px, 1.6vw, 18px);
    line-height: 1.7;
    color: var(--text-on-navy-2);
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-hero-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(21, 37, 64, 0.35);
}

.btn-hero-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 26px 55px rgba(21, 37, 64, 0.45);
    filter: brightness(0.95);
}

.btn-hero-secondary {
    border: 1px solid var(--text-on-navy-2);
    color: var(--text-on-navy);
    background: transparent;
}

.btn-hero-secondary:hover {
    color: var(--link-on-navy);
    background: rgba(21, 37, 64, 0.6);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 26px 50px rgba(31, 42, 57, 0.3);
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-service-card {
    display: flex;
    gap: 1.2rem !important;
    align-items: center;
    padding: 16px;
    min-height: 96px;
    max-width: 520px;
    border-radius: 20px;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 24px 60px rgba(4, 10, 24, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.hero-service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(158, 195, 255, 0.16), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.hero-service-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 32px 70px rgba(0, 219, 255, 0.35);
    border-color: rgba(0, 229, 255, 0.45);
}

.hero-service-card:hover::after {
    opacity: 1;
}

.hero-card-thumb {
    width: 100px !important;
    height: 100px !important;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-thumb img {
    width: 90px !important;
    height: 90px !important;
    object-fit: cover;
    border-radius: 10px;
}

.hero-card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #f8fafc;
}

.hero-card-link {
    font-size: 14px;
    color: rgba(226, 232, 240, 0.75);
}

.hero-service-card:nth-child(1) {
    animation: heroCardFloat 9s ease-in-out infinite;
}

.hero-service-card:nth-child(2) {
    animation: heroCardFloat 9s ease-in-out infinite 1.5s;
}

.hero-service-card:nth-child(3) {
    animation: heroCardFloat 9s ease-in-out infinite 3s;
}

@keyframes heroGridDrift {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-30px, -40px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

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

@media (max-width: 1279px) {
    .hero-service-card {
        min-height: 92px;
    }

    .hero-left h1 {
        font-size: clamp(34px, 5.6vw, 60px);
    }
}

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0;
    }

    .hero-right {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-service-card {
        width: min(320px, 100%);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 88vh;
    }

    .hero-inner {
        padding: 0;
    }

    .hero-left {
        text-align: center;
        align-items: center;
    }

    .hero-right {
        flex-direction: column;
        align-items: center;
    }

    .hero-service-card {
        width: 100%;
        max-width: 340px;
    }
}

/* Engineering Graphics */
.engineering-graphics {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

.circuit-pattern {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10,10 L90,10 L90,30 L70,30 L70,50 L30,50 L30,70 L50,70 L50,90 L10,90 Z" fill="none" stroke="%2306b6d4" stroke-width="0.5" opacity="0.3"/><circle cx="20" cy="20" r="2" fill="%2306b6d4" opacity="0.4"/><circle cx="80" cy="20" r="2" fill="%2306b6d4" opacity="0.4"/><circle cx="20" cy="80" r="2" fill="%2306b6d4" opacity="0.4"/><circle cx="80" cy="80" r="2" fill="%2306b6d4" opacity="0.4"/></svg>') no-repeat center;
    background-size: contain;
    animation: float 6s ease-in-out infinite;
}
.engineering-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.engineering-icons i {
    position: absolute;
    font-size: 2rem;
    color: rgba(6, 182, 212, 0.2);
    animation: engineeringFloat 8s ease-in-out infinite;
}
.engineering-icons i:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.engineering-icons i:nth-child(3) {
    bottom: 30%;
    left: 25%;
    animation-delay: 4s;
}

.engineering-icons i:nth-child(4) {
    top: 40%;
    right: 35%;
    animation-delay: 6s;
}
@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes engineeringFloat {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.2; }
    50% { transform: translateY(-15px) scale(1.1); opacity: 0.4; }
}

.hero-logo {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.1s forwards;
}

/* Hero Logo */
.hero-logo-image {
    height: 120px;
    max-width: 400px;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title-main {
    display: block;
    color: white;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.title-sub {
    display: block;
    background: linear-gradient(135deg, var(--link-on-navy), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--link-on-navy);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-description {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

.btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(21, 37, 64, 0.32);
    filter: brightness(0.95);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #1e293b;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.2s forwards;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1.2rem !important;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.feature-item i {
    font-size: 2rem;
    color: var(--link-on-navy);
    width: 40px;
    text-align: center;
}

.feature-item span {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(158, 195, 255, 0.35), rgba(21, 37, 64, 0.75));
    opacity: 0.12;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

.element-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #64748b;
}

/* About Section */
.about {
    padding: 0;
    background: white;
}

/* About Hero */
.about-hero {
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--brand-navy-600);
    color: var(--text-on-navy);
}

.about-hero-content h2 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-on-navy);
    margin-bottom: 1rem;
}

.about-subtitle {
    font-size: 1.3rem;
    color: var(--link-on-navy);
    font-weight: 600;
    margin: 0;
}

/* About Main Content */
.about-main {
    padding: 4rem 0;
}

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.about-intro h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-intro p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* About Features */
.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-navy-600);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--brand-navy-700));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.feature-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

/* About Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--brand-navy-600);
    color: var(--text-on-navy);
}

.stat-card {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-on-navy-2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Engineering Showcase */
.engineering-showcase {
    margin-top: 4rem;
    text-align: center;
}

.engineering-showcase h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.project-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.project-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-item:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Trust Indicators */
.trust-indicators {
    padding: 4rem 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.company-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem !important;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1.2rem !important;
    padding: 1rem;
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    border-radius: 8px;
    border-left: 4px solid var(--brand-navy-600);
    color: var(--text-on-navy);
}

.detail-item i {
    color: var(--accent);
    font-size: 1.2rem;
    width: 20px;
}

.detail-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-on-navy);
    margin-bottom: 0.25rem;
}

.detail-item p {
    font-size: 0.9rem;
    color: var(--text-on-navy-2);
    margin: 0;
}

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

.stat {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    border-radius: 12px;
    transition: transform 0.3s ease;
    color: var(--text-on-navy);
}

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

.stat h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-on-navy-2);
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--link-on-navy);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.image-placeholder p {
    font-size: 1rem;
    color: #64748b;
    margin-top: 1rem;
    font-weight: 500;
}

/* Services Section */
.services {
    position: relative;
    background: url('ee_images/Electrical_Engineering.jpg') center/cover no-repeat fixed;
    color: var(--text-on-navy);
}

.services::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 27, 42, 0.78) 0%, rgba(10, 22, 34, 0.85) 100%);
    pointer-events: none;
}

.services > * {
    position: relative;
    z-index: 1;
}

/* Services Hero Banner */
.services-hero {
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><filter id="blur"><feGaussianBlur stdDeviation="10"/></filter></defs><rect width="100%" height="100%" fill="rgba(255,255,255,0.1)"/><circle cx="200" cy="200" r="100" fill="rgba(255,255,255,0.05)" filter="url(%23blur)"/><circle cx="800" cy="300" r="150" fill="rgba(255,255,255,0.05)" filter="url(%23blur)"/><circle cx="400" cy="700" r="120" fill="rgba(255,255,255,0.05)" filter="url(%23blur)"/></svg>');
    opacity: 0.3;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-on-navy);
}

.services-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-on-navy);
    margin: 0;
    text-shadow: 0 2px 4px rgba(15, 23, 42, 0.35);
}

/* Services Cards */
.services-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem 0;
    align-items: stretch;
}

.service-card {
    background: rgba(20, 24, 32, 0.75);
    padding: 2.5rem 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-align: center;
    color: var(--text-on-navy);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.12);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f97316, #fb923c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: white;
    position: relative;
    transform: rotate(0deg);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    margin-top: 0;
    line-height: 1.3;
}
.service-card h3,
.service-card h3 a {
  color: #ffffff !important;
}
.service-card p {
    color: var(--text-on-navy-2);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.service-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card ul {
    text-align: left;
    margin: 1rem 0 2rem 0;
    padding-left: 1.4rem;
    list-style-position: outside;
}

.service-card ul li {
    color: #b0bec5;
    font-weight: 400;
    line-height: 1.5;
}

.service-description {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
    max-width: 75ch;
    margin-left: auto;
    margin-right: auto;
}

.service-description li {
    color: var(--text-on-navy-2);
    line-height: 1.75;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-description li:last-child {
    margin-bottom: 0;
}

.service-description li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
}

.service-btn {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: auto;
    align-self: center;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 37, 64, 0.28);
    filter: brightness(0.95);
    color: #ffffff;
}
  
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--accent), var(--brand-navy-700));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), var(--brand-navy-700));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.anchor-offset {
    scroll-margin-top: var(--nav-offset);
}
/* Hero overlay stacking adjustment */
.page-hero {
    position: relative;
    isolation: isolate;
}

.page-hero::before,
.page-hero::after {
    z-index: 0;
}

.page-hero--service {
    background: linear-gradient(180deg, rgba(13, 25, 38, 0.94) 0%, rgba(8, 18, 30, 0.98) 100%);
    color: var(--text-on-navy);
    padding: clamp(72px, 12vw, 140px) 0 clamp(40px, 8vw, 72px);
}

.page-hero--service .page-subtitle {
    max-width: 760px;
    color: rgba(233, 241, 248, 0.82);
}

#engineering-capability {
    position: relative;
    z-index: 1;
}

.capability-grid {
    display: grid;
    gap: clamp(20px, 4vw, 28px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .capability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .capability-grid {
        grid-template-columns: 1fr;
    }
}

.capability-grid .card {
    background: rgba(10, 24, 38, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.capability-grid .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.32);
    border-color: rgba(0, 188, 212, 0.35);
}

.capability-grid .card-body {
    padding: clamp(22px, 4vw, 30px);
}

.capability-grid .card-title {
    margin: 0 0 12px;
    color: var(--text-on-navy);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 10px;
}

.capability-grid .card-text {
    margin: 0;
    color: rgba(233, 241, 248, 0.85);
    line-height: 1.7;
    max-width: 70ch;
}

.capability-grid .card-text ul,
.capability-grid ul.card-text {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.capability-grid .card-text li,
.capability-grid ul.card-text li {
    color: rgba(233, 241, 248, 0.85);
}

/* Safety Policy hero image */
.page-policy .page-hero,
.page-policy .page-hero--service,
.safety-policy .page-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#clients .client-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    color: #0a1a2f;
}

#clients .client-item img {
    max-height: 42px;
    max-width: 72px;
    filter: none;
    opacity: 1;
}

#clients .client-name {
    font-weight: 600;
    color: #0b1b2a;
}

#clients .clients-group + .clients-group {
    margin-top: clamp(10px, 2vw, 14px);
}

@media (max-width: 768px) {
    #clients {
        background-attachment: scroll;
    }

    #clients .client-sector {
        padding: clamp(18px, 6vw, 24px);
    }

    #clients .clients-group {
        justify-content: center;
    }

    #clients .client-item {
        padding: 0.6rem 0.85rem;
        font-size: 0.9rem;
    }
}

/* Page hero + feature layouts */
.page-hero--navy {
    background: linear-gradient(180deg, rgba(9, 24, 38, 0.92) 0%, rgba(6, 16, 28, 0.98) 100%);
    color: var(--text-on-navy);
}

.page-hero--navy .container {
    display: grid;
    gap: clamp(18px, 4vw, 28px);
}

.page-subtitle {
    max-width: 760px;
    color: rgba(233, 241, 248, 0.82);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
}

.page-body {
    padding-block: var(--section-pad-y);
}

.page-body .container,
.page-body.container {
    display: grid;
    gap: clamp(24px, 4vw, 32px);
}

.feature-grid {
    display: grid;
    gap: clamp(20px, 4vw, 28px);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card {
    background: rgba(9, 24, 38, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: clamp(24px, 4vw, 32px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
    display: grid;
    gap: 14px;
}

.feature-card h3 {
    color: var(--text-on-navy);
    font-size: clamp(1.2rem, 2.2vw, 1.4rem);
}

.feature-card p {
    color: rgba(233, 241, 248, 0.82);
    line-height: 1.65;
}

@media (max-width: 768px) {
    .feature-card {
        padding: clamp(20px, 6vw, 28px);
    }
}
/* Back to top button */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: none;
    outline: none;
    cursor: pointer;
    background: #08b6c4;
    color: #0b1b2a;
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
    z-index: 2147483647;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.nav-open .back-to-top {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.back-to-top i {
    pointer-events: none;
    font-size: 1rem;
}

.back-to-top:hover {
    filter: brightness(1.05);
}

.back-to-top:active {
    transform: scale(0.95);
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
    
    .back-to-top:active {
        transform: scale(0.98);
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .back-to-top {
        width: 56px;
        height: 56px;
        right: 16px;
        bottom: 16px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(8, 182, 196, 0.3);
    }

    .back-to-top i {
        font-size: 1.15rem;
    }
}

@media (max-width: 640px) {
    .back-to-top {
        width: 56px;
        height: 56px;
        right: clamp(14px, 4vw, 20px);
        bottom: clamp(14px, 4vw, 20px);
    }

    .back-to-top i {
        font-size: 1.2rem;
    }
}

/* Safe area support for notched devices - with mobile priority */
@supports (bottom: calc(env(safe-area-inset-bottom) + 16px)) {
    .back-to-top {
        bottom: calc(env(safe-area-inset-bottom) + 16px);
    }
    
    @media (max-width: 768px) {
        .back-to-top {
            bottom: calc(env(safe-area-inset-bottom) + 16px);
            right: calc(env(safe-area-inset-right) + 16px);
        }
    }
    
    @media (max-width: 640px) {
        .back-to-top {
            bottom: calc(env(safe-area-inset-bottom) + clamp(14px, 4vw, 20px));
            right: calc(env(safe-area-inset-right) + clamp(14px, 4vw, 20px));
        }
    }
}

/* (mobile nav overrides removed for fresh implementation) */
.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.service-card p {
    color: #64748b;
    line-height: 1.6;
}

/* (mobile nav styles removed) */
/* Detailed Services */
.detailed-services {
    padding: 6rem 0;
    background: white;
    display: none; /* Hidden by default */
}
.detailed-services.active {
    display: block; /* Show when active */
}

/* Certificate Page */
.certificate-page {
    padding: 8rem 0 4rem;
    background: #f8fafc;
    min-height: 100vh;
}
/* Certificate Section (for overlay) */
.certificate-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #f8fafc;
    z-index: 9999;
    overflow-y: auto;
    display: none; /* Hidden by default */
    padding: 0;
}

.certificate-section.active {
    display: block; /* Show when active */
}

.certificate-header {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10000;
}

.back-to-home-btn {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.back-to-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 37, 64, 0.3);
    filter: brightness(0.95);
}

.back-to-home-btn i {
    font-size: 0.9rem;
}

.certificate-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 20px;
}

.certificate-row {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.certificate-row:hover {
    border-color: var(--link-on-navy);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

.certificate-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.certificate-row:hover .certificate-image img {
    transform: scale(1.05);
}

.certificate-content {
    flex: 1;
}

.certificate-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.8rem;
}

.certificate-content p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.detailed-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.detailed-service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.detailed-service-card:hover {
    border-color: var(--link-on-navy);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

.detailed-service-card .service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.detailed-service-card .service-content {
    flex: 1;
}

.detailed-service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.detailed-service-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* Projects Section */
.projects {
    padding: clamp(48px, 7vw, 80px) 0;
    background: #f8fafc;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 28px);
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: clamp(200px, 22vw, 230px);
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: #f8fafc;
}

.project-image img:not([src]) {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img:not([src])::before {
    content: 'Loading...';
    color: #64748b;
    font-size: 1rem;
}

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

.image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-card:hover .image-overlay {
    opacity: 1;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(29, 78, 216, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::before {
    opacity: 1;
}

.project-content {
    padding: clamp(1.4rem, 3vw, 1.75rem);
}

.project-content h3 {
    font-size: clamp(1.25rem, 2.4vw, 1.45rem);
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.project-content p {
    color: #64748b;
    margin-bottom: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Clients Section */
.clients {
    padding: 4rem 0;
    background: white;
}

.clients-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.client-sector {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.sector-header {
    flex-shrink: 0;
    min-width: 180px;
}

.sector-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    text-align: left;
    position: relative;
    padding-bottom: 0.5rem;
}

.sector-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    border-radius: 1px;
}

.clients-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    flex: 1;
}

.client-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: left;
}

.client-item:hover {
    border-color: var(--link-on-navy);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.1);
}

.client-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(5%);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.client-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.client-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.client-item:hover .client-name {
    color: var(--link-on-navy);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: white;
}

.contact-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 24px 16px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

.left-col {
    display: flex;
    flex-direction: column;
}

.left-col .map-card,
.address-card,
.form-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.left-col .map-card {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
}

.map-card iframe {
    width: 100%;
    height: 450px;
    display: block;
    border: 0;
}
.address-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-card {
    padding: 20px;
}

.form-card form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.form-card .form-group {
    grid-column: 1 / -1;
    margin: 0;
}

.form-card .form-group textarea {
    min-height: 160px;
    resize: vertical;
}

.form-card input,
.form-card textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font: inherit;
}

.form-card button.btn {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 12px 20px;
    border-radius: 12px;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 32px;
    }

    .address-card {
        margin-top: 0;
    }
}
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .left-col .map-card {
        margin-bottom: 12px;
    }

    .form-card form {
        grid-template-columns: 1fr;
    }

    .form-card button.btn {
        justify-self: stretch;
    }
}

@media (max-width: 768px) {
    .map-card iframe {
        height: 350px;
    }
}

/* Footer */
.footer {
    background: var(--brand-navy-700);
    color: var(--text-on-navy);
    padding: 3rem 0 1rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

/* Footer Logo */
.footer-logo-image {
    height: 60px;
    max-width: 250px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-on-navy);
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: var(--text-on-navy-2);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--link-on-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--link-on-navy-h);
}

.social-links {
    display: flex;
    gap: 1.2rem !important;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--brand-navy);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}
section,
.section {
    padding-block: var(--section-pad-y);
}

/* Normalize section headers */
.section-header,
.section-title,
.section > header {
    margin-block: 0 clamp(16px, 2.5vw, 28px);
}

/* ---------- Container alignment ---------- */
.container,
.content-container,
.wrapper,
.inner {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad-x);
    width: 100%;
    box-sizing: border-box;
}
/* ---------- Major Clients section ---------- */
#clients,
.clients,
.major-clients {
    padding-block: var(--section-pad-y-tight);
}

.clients .grid,
.major-clients .grid,
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--grid-gap);
    align-items: center;
}
.client-card,
.clients .card,
.major-clients .card,
.client-logo {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: clamp(16px, 2vw, 24px);
    display: grid;
    place-items: center;
}

.client-card img,
.client-logo img,
.clients img {
    max-width: 100%;
    max-height: 64px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
    filter: none;
}

/* Tighten headings + text inside clients section */
.major-clients h2,
.clients h2 {
    margin-bottom: clamp(12px, 2vw, 16px);
}

.major-clients p.lead,
.clients p.lead {
    margin-bottom: clamp(20px, 3vw, 28px);
}

/* ---------- Footer ---------- */
footer.footer,
.site-footer,
.footer {
    padding-block: clamp(32px, 4vw, 56px);
}

.footer .container {
    max-width: var(--container-max);
    padding-inline: var(--container-pad-x);
}

.footer .columns,
.footer .grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--grid-gap);
}

.footer .col,
.footer .column {
    grid-column: span 4;
}

@media (max-width: 1024px) {
    .footer .col,
    .footer .column {
        grid-column: span 6;
    }
}

@media (max-width: 640px) {
    .footer .col,
    .footer .column {
        grid-column: span 12;
    }
}

/* Reduce oversize items within footer blocks */
.footer h4,
.footer h5 {
    margin: 0 0 12px;
}

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

.footer li + li {
    margin-top: 8px;
}

/* ---------- Kill stray pushes ---------- */
.section > *:first-child {
    margin-top: 0 !important;
}

.section > *:last-child {
    margin-bottom: 0 !important;
}

.section,
.clients,
.footer {
    transform: none !important;
}

/* ---------- Safety policy page ---------- */
.policy-hero {
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    color: var(--text-on-navy);
    padding-block: clamp(72px, 12vw, 140px);
}

.policy-hero .container {
    display: grid;
    gap: clamp(16px, 3vw, 28px);
}

.policy-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(233, 241, 248, 0.65);
}

.policy-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.policy-breadcrumb a:hover {
    color: var(--link-on-navy);
}

.policy-hero h1 {
    font-size: clamp(2.8rem, 6vw, 3.75rem);
    font-weight: 800;
    letter-spacing: 0.06em;
}

.policy-kicker {
    font-size: 0.95rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent);
}

.policy-hero-intro {
    max-width: 640px;
    color: rgba(233, 241, 248, 0.85);
    line-height: 1.8;
}

.policy-meta {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(233, 241, 248, 0.55);
}

.policy-intro {
    background: radial-gradient(circle at top, rgba(15, 34, 50, 0.8) 0%, rgba(10, 27, 42, 1) 65%);
    color: rgba(233, 241, 248, 0.85);
}

.policy-copy {
    display: grid;
    gap: clamp(18px, 3vw, 24px);
    text-align: center;
    line-height: 1.8;
}

.policy-diagram {
    background: linear-gradient(180deg, rgba(8, 22, 34, 0.95) 0%, rgba(5, 16, 26, 1) 100%);
    color: rgba(233, 241, 248, 0.9);
}

.policy-diagram h2 {
    text-align: center;
    font-size: clamp(2rem, 4.2vw, 2.6rem);
    margin-bottom: clamp(24px, 4vw, 36px);
}

.policy-diagram-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
        "management center accountability"
        "culture center risk";
    gap: var(--grid-gap);
    align-items: stretch;
}

.policy-center {
    grid-area: center;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    aspect-ratio: 1;
    min-width: 220px;
    max-width: 320px;
    margin: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    padding: clamp(28px, 5vw, 40px);
}

.policy-center::before {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 2px solid rgba(1, 208, 215, 0.6);
    box-shadow: 0 0 35px rgba(1, 208, 215, 0.45);
    opacity: 0.85;
}

.policy-center span {
    text-align: center;
    font-size: clamp(1.25rem, 2.6vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 1.6;
}

.policy-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: clamp(24px, 4vw, 32px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

.policy-card.management { grid-area: management; }
.policy-card.accountability { grid-area: accountability; }
.policy-card.culture { grid-area: culture; }
.policy-card.risk { grid-area: risk; }

.policy-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(1, 208, 215, 0.42), rgba(7, 126, 168, 0.38));
    color: #0feaf5;
    font-size: 1.6rem;
}

.policy-card-body h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-on-navy);
}

.policy-card-body p,
.policy-card-body ul {
    margin: 0;
    color: rgba(233, 241, 248, 0.82);
    line-height: 1.65;
}

.policy-card-body ul {
    display: grid;
    gap: 8px;
    padding-left: 1.1rem;
}

.policy-card-sub {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    gap: 6px;
}

.policy-card-sub h4 {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(233, 241, 248, 0.72);
}

.policy-cta {
    background: linear-gradient(180deg, rgba(5, 16, 26, 1) 0%, rgba(8, 24, 37, 0.92) 100%);
}

.policy-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.policy-cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.policy-cta .btn {
    min-width: 200px;
}

@media (max-width: 1024px) {
    .policy-diagram-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "center center"
            "management accountability"
            "culture risk";
    }

    .policy-center {
        max-width: 260px;
    }
}

@media (max-width: 768px) {
    .policy-hero {
        padding-block: clamp(64px, 18vw, 96px);
        text-align: center;
    }

    .policy-breadcrumb {
        justify-content: center;
    }

    .policy-diagram-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "center"
            "management"
            "accountability"
            "culture"
            "risk";
    }

    .policy-card {
        text-align: left;
    }
}
/* Hero Responsive Styles */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.2rem !important;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .hero-features {
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .feature-item i {
        font-size: 1.5rem;
        width: 30px;
    }
    
    .feature-item span {
        font-size: 1rem;
    }
    
    /* Mobile Dropdown Styles */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8fafc;
        border: none;
        border-radius: 0;
        margin: 10px 0;
        padding: 0;
    }
    
    .dropdown-menu a {
        padding: 12px 30px;
        border-bottom: 1px solid #e2e8f0;
        font-size: 1rem;
    }
    
    .dropdown-toggle i {
        display: none;
    }
    
    /* Mobile Certificate Styles */
    .certificate-row {
    flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .certificate-image {
        width: 100px;
        height: 100px;
    }
    
    .certificate-content h3 {
        font-size: 1.1rem;
    }
    
    .certificate-content p {
        font-size: 0.9rem;
    }
    
    /* Full-page Certificate Mobile Styles */
    .certificate-header {
        padding: 0.8rem 0;
    }
    
    .back-to-home-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-left: 15px;
    }
    
    .certificate-list {
        padding: 2rem 15px;
    }
    
    .certificate-row {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .certificate-image {
        width: 100px;
        height: 100px;
    }
}
/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-top: 1rem;
    }
    
    .hero-logo-image {
        height: 80px;
        max-width: 300px;
    }
    
    .nav-logo .logo-image {
        height: 35px;
        max-width: 120px;
    }
    
    .company-name {
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }

    .hero { padding-top: 80px; }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1.2rem !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .certificate-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .certificate-item {
        padding: 1.5rem;
        gap: 1.2rem !important;
    }
    
    .certificate-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .detailed-services-grid {
        grid-template-columns: 1fr;
    }
    
    .detailed-service-card {
        padding: 1.5rem;
        gap: 1.2rem !important;
    }
    
    .detailed-service-card .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .client-sector {
        flex-direction: column;
        gap: 1.2rem !important;
        padding: 1rem;
    }
    
    .sector-header {
        min-width: auto;
        width: 100%;
        text-align: center;
    }
    
    .sector-title {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .sector-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .clients-group {
        gap: 0.6rem;
        justify-content: center;
    }
    
    .client-item {
        padding: 0.5rem 0.6rem;
    }
    
    .client-item img {
        width: 25px;
        height: 25px;
    }
    
    .client-name {
        font-size: 0.7rem;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Services Mobile Styles */
    .services-hero h1 {
        font-size: 2.5rem;
    }
    
    .services-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 3rem 0;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }
    
    .service-icon {
        margin-bottom: 1.5rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .service-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-description li {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 0.65rem;
    }
    
    /* Trust Indicators Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* About Mobile Styles */
    .about-hero-content h2 {
        font-size: 2.2rem;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
    }
    
    .about-intro h3 {
        font-size: 1.8rem;
    }
    
    .about-intro p {
        font-size: 1rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Engineering Showcase Mobile */
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-item img {
        height: 200px;
    }
    
    .engineering-showcase h3 {
        font-size: 1.6rem;
    }
    
    .solution-card {
        padding: 2rem;
    }
    
    .company-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-logo-image {
        height: 60px;
        max-width: 250px;
    }
    
    .nav-logo .logo-image {
        height: 30px;
        max-width: 100px;
    }
    
    .company-name {
        font-size: 1rem;
    }
    
    .footer-logo-image {
        height: 45px;
        max-width: 200px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .detailed-services .section-header h2 {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }
    
    .detailed-services .section-header p {
        font-size: 1rem;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem !important;
    }
    
    .solution-card {
        padding: 1.5rem;
    }
    
    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* kill the fake fallback that can interfere during load */
.logo-image:not([src]) { 
    background: none !important; 
    min-height: 0 !important; 
    min-width: 0 !important; 
    display: inline-block !important; 
  }
  .logo-image:not([src])::before { content: none !important; }
  
  /* force the nav logo to stay visible */
  .nav-logo .logo-image {
    display: inline-block !important; 
    height: 45px !important;       /* keep your existing sizing */
    max-width: 150px !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: drop-shadow(0 0 1px rgba(0,0,0,.45)); /* outlines light logos on white nav */
  }
  
  /* responsive sizes you already had—keep them but ensure still visible */
  @media (max-width: 768px) {
    .nav-logo .logo-image { height: 35px !important; max-width: 120px !important; }
  }
  @media (max-width: 480px) {
    .nav-logo .logo-image { height: 30px !important; max-width: 100px !important; }
  }

  /* ===== Compact About layout overrides - paste at end of styles.css ===== */

/* tighten section headers globally for better vertical rhythm */
.section-header {
  margin-bottom: 2rem; /* was 4rem */
}
.section-header h2 {
  margin-bottom: 0.75rem; /* smaller gap under title */
}
.section-header p {
  margin-bottom: 0.5rem;
}

/* About area — reduce large paddings */
.about-hero {
  padding: 2rem 0; /* was 4rem 0 */
}
.about-main {
  padding: 2rem 0; /* was 4rem 0 */
}

/* Intro paragraph block */
.about-intro {
  max-width: 720px;      /* slightly narrower */
  margin: 0 auto 1.5rem; /* reduce bottom gap (was 4rem) */
  padding: 0 12px;       /* small horizontal padding for narrow screens */
}
.about-intro h3 {
  margin-bottom: 1rem; /* reduce gap */
  font-size: 1.9rem;   /* keep prominent but slightly smaller */
}
.about-intro p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Feature cards and grid — reduce internal spacing */
.about-features {
  gap: 1rem; /* was 2rem */
  margin-bottom: 1.5rem;
}
.feature-card {
  padding: 1.25rem; /* was 2rem */
  border-radius: 10px;
}
.feature-icon {
  width: 52px;
  height: 52px;
  margin-bottom: .75rem;
}
.feature-content h4 {
  margin-bottom: .35rem;
  font-size: 1.05rem;
}
.feature-content p {
  font-size: 0.95rem;
}

/* Stats block — smaller padding & tighter numbers */
.about-stats {
  gap: 1rem;    /* was 2rem */
  padding: 1.5rem; /* was 3rem */
  border-radius: 12px;
}
.stat-card {
  padding: 0.75rem;
}
.stat-number {
  font-size: 2.2rem; /* was 3rem */
}
.stat-label {
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

/* Company details grid (if present) */
.company-details {
  gap: 0.75rem; /* was 1rem */
  margin-bottom: 1rem;
}
.detail-item {
  padding: 0.75rem;
}

/* Projects / other sections below should slightly tighten spacing too */
.engineering-showcase { margin-top: 2rem; } /* reduce from 4rem */
.projects-grid { gap: 1.25rem; } /* was 2rem */

/* Optional small utility you can add to any section to compact spacing */
.compact-section { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.compact-section .section-header { margin-bottom: 1rem; }

/* ===== Responsive adjustments - keep compact on small screens ===== */
@media (max-width: 992px) {
  .about-hero { padding: 1.6rem 0; }
  .about-main { padding: 1.6rem 0; }
  .about-intro { margin-bottom: 1rem; padding: 0 10px; }
  .about-features { gap: 0.8rem; }
  .feature-card { padding: 1rem; }
  .about-stats { padding: 1rem; }
}

@media (max-width: 480px) {
  .section-header { margin-bottom: 1rem; }
  .about-hero { padding: 1rem 0; }
  .about-main { padding: 1rem 0; }
  .about-intro { max-width: 100%; margin-bottom: 0.75rem; padding: 0 12px; }
  .feature-card { padding: 0.9rem; }
  .about-stats { padding: 0.75rem; gap: 0.6rem; }
  .stat-number { font-size: 2rem; }
}

/* Feature items alignment fix */
.feature-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.2rem !important;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    min-height: 80px;
}

.feature-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image img,
.feature-image img.side-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
}

.feature-icon {
    flex-shrink: 0;
}

.feature-item span {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-align: left;
    line-height: 1.2;
}

/* About Section Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Specific animation delays */
.animate-on-scroll[data-delay="100"] {
    transition-delay: 0.1s;
}

.animate-on-scroll[data-delay="200"] {
    transition-delay: 0.2s;
}

.animate-on-scroll[data-delay="300"] {
    transition-delay: 0.3s;
}

.animate-on-scroll[data-delay="400"] {
    transition-delay: 0.4s;
}
.animate-on-scroll[data-delay="500"] {
    transition-delay: 0.5s;
}

.animate-on-scroll[data-delay="600"] {
    transition-delay: 0.6s;
}

.animate-on-scroll[data-delay="700"] {
    transition-delay: 0.7s;
}
  
/* Services Hero Section */
.services-hero-section {
    padding: 140px 0 4rem;
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    color: var(--text-on-navy);
    text-align: center;
}

.services-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-on-navy);
}

.services-hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-on-navy);
    margin-bottom: 1rem;
}

.services-hero-description {
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-on-navy-2);
    line-height: 1.7;
}

/* Services Detail Page Styles */
.services-detail {
    padding: 4rem 0;
    background: #f8fafc url('clients/lumico_background.png') center center / cover no-repeat fixed;
    min-height: 100vh;
    position: relative;
}

.services-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 250, 252, 0.4);
    z-index: 0;
}

.services-detail .container {
    position: relative;
    z-index: 1;
}

.services-detail-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.services-detail-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-detail-header p {
    font-size: 1.2rem;
    color: #64748b;
    font-weight: 500;
}

.service-detail-section {
    margin-bottom: 6rem;
}

.service-detail-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.service-header-row {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 3rem;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}
.service-detail-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.service-detail-icon i {
    font-size: 2.5rem;
    color: white;
}

.service-header-text {
    flex: 1;
}

.service-detail-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.service-intro {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.service-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
    padding-bottom: 1rem;
    padding-left: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-content h3:first-of-type {
    margin-top: 0;
}

.service-content h3 i {
    color: var(--link-on-navy);
    font-size: 1.5rem;
}

.service-subsection {
    margin-bottom: 3rem;
    padding-left: 1rem;
}

.service-subsection p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-list {
    list-style: disc;
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.service-list li {
    margin-left: 0;
    padding: 0;
    background: transparent;
    border: none;
    display: list-item;
}

.service-list li strong {
    color: #1e293b;
    font-weight: 600;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-feature-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.service-feature-item:hover {
    background: white;
    border-color: var(--link-on-navy);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}
.feature-icon-small {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), rgba(21, 37, 64, 0.85));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-small i {
    font-size: 1.5rem;
    color: white;
}

.feature-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
}

.service-audience {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 5px solid var(--brand-navy-600);
    margin-top: 3rem;
    margin-left: 1rem;
}
.service-audience h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    border: none;
    padding: 0;
}

.service-audience p {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

.services-cta {
    text-align: center;
    padding: 5rem 3rem;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    border-radius: 16px;
    color: white;
    margin-top: 6rem;
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 2rem;
}

.services-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.services-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.services-cta .btn-primary {
    background: white;
    color: var(--link-on-navy);
    border-color: white;
    font-size: 1.1rem;
    padding: 18px 40px;
}

.services-cta .btn-primary:hover {
    background: #f8fafc;
    color: var(--link-on-navy);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Additional Services Section */
.additional-services-section {
    margin: 6rem 0;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-left: 1rem;
    margin-right: 1rem;
}

.additional-services-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.additional-services-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.additional-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.additional-service-item {
    display: flex;
    align-items: center;
    gap: 1.2rem !important;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #1e293b;
}

.additional-service-item:hover {
    background: white;
    border-color: var(--link-on-navy);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.15);
}

.additional-service-item i {
    font-size: 1.5rem;
    color: var(--link-on-navy);
    width: 30px;
    text-align: center;
}

/* Quality Focus Section */
.quality-focus-section {
    margin: 6rem 0;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.95), rgba(224, 242, 254, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border-left: 5px solid var(--brand-navy-600);
    margin-left: 1rem;
    margin-right: 1rem;
}

.quality-focus-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.quality-focus-section p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #475569;
    margin: 0;
    padding-left: 0.5rem;
}

.quality-safety-cta {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.safety-btn {
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.2s ease;
}

.safety-btn:hover {
    background: var(--brand-navy-700);
}

@media (max-width: 768px) {
    .quality-safety-cta {
        margin-top: 16px;
        margin-bottom: 24px;
    }
}

/* Responsive Styles for Services Detail */
@media (max-width: 768px) {
    .services-hero-section {
        padding: 120px 0 3rem;
    }

    .services-hero-content h1 {
        font-size: 2rem;
    }

    .services-hero-subtitle {
        font-size: 1.2rem;
    }

    .services-hero-description {
        font-size: 1rem;
    }

    .services-detail {
        padding: 2rem 0;
    }

    .services-detail-header h1 {
        font-size: 2rem;
    }

    .service-detail-card {
        padding: 2.5rem 1.5rem;
        margin: 0 0.5rem;
    }

    .service-header-row {
        flex-direction: column;
        gap: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .service-detail-card h2 {
        font-size: 2rem;
    }

    .service-content h3 {
        font-size: 1.5rem;
    }

    .service-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-feature-item {
        flex-direction: column;
        text-align: center;
    }

    .service-list {
        padding-left: 2rem;
    }

    .service-list li {
        padding: 0;
    }

    .service-subsection {
        padding-left: 0.5rem;
    }
}

/* Global list formatting overrides */
ul ul {
    margin-left: 20px !important;
    padding-left: 20px !important;
}

ul li {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
    line-height: 1.45 !important;
}

ul ul li {
    margin-top: 3px !important;
    margin-bottom: 3px !important;
}

.nav-toggle {
    display: none;
    border: 0;
    background: rgba(233, 241, 248, 0.12);
    color: var(--text-on-navy);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    transition: background 0.2s ease;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease;
}

.nav-toggle:hover {
    background: rgba(233, 241, 248, 0.24);
}

.nav-panel {
    position: fixed;
    inset: 0 0 0 auto;
    width: 84%;
    max-width: 360px;
    background: var(--brand-navy-700);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1100;
    display: flex;
    flex-direction: column;
}

.nav-panel.open {
    transform: translateX(0);
}

.nav-list {
    list-style: none;
    padding: 32px 28px;
    margin: 0;
    display: grid;
    gap: 16px;
}

.nav-list a {
    color: var(--text-on-navy);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-list .has-sub {
    display: grid;
    gap: 12px;
}

.mobile-services-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mobile-services-link {
    flex: 1;
    color: var(--text-on-navy);
    text-decoration: none;
    font-weight: 600;
    padding: 0;
}

.mobile-services-link:hover {
    color: var(--text-on-navy);
    text-decoration: none;
}

.sub-toggle {
    background: none;
    border: 0;
    color: var(--text-on-navy);
    font: inherit;
    font-weight: 600;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    min-width: 30px;
}

.sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.sub-list[hidden] {
    display: none;
}

.sub-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(233, 241, 248, 0.65);
}

.sub-divider {
    width: 100%;
    height: 1px;
    background: rgba(233, 241, 248, 0.15);
}

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }
}

@media (min-width: 1025px) {
    .nav-panel {
        display: none;
    }
}

/* Hero Section */
.hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(80vh, 100vh, 100vh);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 56px 24px 64px;
    background: url("/clients/lumico_background_wordless.png") center 35% / cover no-repeat fixed;
    color: #ffffff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 60% at 65% 50%, rgba(5, 16, 26, 0.35) 0%, rgba(5, 16, 26, 0.85) 55%, rgba(5, 16, 26, 0.95) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--overlay) 0%, rgba(0, 0, 0, 0.55) 65%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    z-index: 0;
}

.page-hero {
    position: relative;
    isolation: isolate;
    min-height: 52vh;
    padding: 96px 0 48px;
    display: flex;
    align-items: flex-end;
    color: var(--text-on-navy);
    background: url("/clients/lumico_background_wordless.png") center 35% / cover no-repeat fixed;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 18, 30, 0.45) 0%, rgba(3, 18, 30, 0.65) 60%, rgba(3, 18, 30, 0.75) 100%);
    pointer-events: none;
    z-index: 0;
}

.page-hero > .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 820px) {
    .hero {
        background-attachment: scroll;
    }

    .page-hero {
        background-position: center 45%;
        min-height: 44vh;
        padding: 84px 0 36px;
        background-attachment: scroll;
    }
}

.hero-background {
    display: none;
}

.hero-overlay {
    display: none;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(158, 195, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(158, 195, 255, 0.12) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.18;
    animation: heroGridDrift 18s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 32px;
    align-items: center;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--text-on-navy);
}

.hero-kicker {
    font-size: 1.1rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--link-on-navy);
    font-weight: 600;
}

.hero-left h1 {
    font-size: clamp(36px, 6.2vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-title-line {
    color: var(--text-on-navy);
}
.hero-title-accent {
    color: var(--link-on-navy);
}

.hero-subheading {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
    color: var(--link-on-navy);
    margin: 8px 0 0;
}

.hero-description {
    max-width: 640px;
    font-size: clamp(16px, 1.6vw, 18px);
    line-height: 1.7;
    color: var(--text-on-navy-2);
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-hero-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(21, 37, 64, 0.35);
}

.btn-hero-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 26px 55px rgba(21, 37, 64, 0.45);
    filter: brightness(0.95);
}

.btn-hero-secondary {
    border: 1px solid var(--text-on-navy-2);
    color: var(--text-on-navy);
    background: transparent;
}

.btn-hero-secondary:hover {
    color: var(--link-on-navy);
    background: rgba(21, 37, 64, 0.6);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 26px 50px rgba(31, 42, 57, 0.3);
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-service-card {
    display: flex;
    gap: 1.2rem !important;
    align-items: center;
    padding: 16px;
    min-height: 96px;
    max-width: 520px;
    border-radius: 20px;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 24px 60px rgba(4, 10, 24, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.hero-service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(158, 195, 255, 0.16), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.hero-service-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 32px 70px rgba(0, 219, 255, 0.35);
    border-color: rgba(0, 229, 255, 0.45);
}

.hero-service-card:hover::after {
    opacity: 1;
}

.hero-card-thumb {
    width: 100px !important;
    height: 100px !important;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-card-thumb img {
    width: 90px !important;
    height: 90px !important;
    object-fit: cover;
    border-radius: 10px;
}

.hero-card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #f8fafc;
}

.hero-card-link {
    font-size: 14px;
    color: rgba(226, 232, 240, 0.75);
}

.hero-service-card:nth-child(1) {
    animation: heroCardFloat 9s ease-in-out infinite;
}

.hero-service-card:nth-child(2) {
    animation: heroCardFloat 9s ease-in-out infinite 1.5s;
}
.hero-service-card:nth-child(3) {
    animation: heroCardFloat 9s ease-in-out infinite 3s;
}
@keyframes heroGridDrift {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-30px, -40px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes heroCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@media (max-width: 1279px) {
    .hero-service-card {
        min-height: 92px;
    }

    .hero-left h1 {
        font-size: clamp(34px, 5.6vw, 60px);
    }
}

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0;
    }

    .hero-right {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-service-card {
        width: min(320px, 100%);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 88vh;
    }

    .hero-inner {
        padding: 0;
    }

    .hero-left {
        text-align: center;
        align-items: center;
    }

    .hero-right {
        flex-direction: column;
        align-items: center;
    }

    .hero-service-card {
        width: 100%;
        max-width: 340px;
    }
}

/* Engineering Graphics */
.engineering-graphics {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

.circuit-pattern {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10,10 L90,10 L90,30 L70,30 L70,50 L30,50 L30,70 L50,70 L50,90 L10,90 Z" fill="none" stroke="%2306b6d4" stroke-width="0.5" opacity="0.3"/><circle cx="20" cy="20" r="2" fill="%2306b6d4" opacity="0.4"/><circle cx="80" cy="20" r="2" fill="%2306b6d4" opacity="0.4"/><circle cx="20" cy="80" r="2" fill="%2306b6d4" opacity="0.4"/><circle cx="80" cy="80" r="2" fill="%2306b6d4" opacity="0.4"/></svg>') no-repeat center;
    background-size: contain;
    animation: float 6s ease-in-out infinite;
}

.engineering-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.engineering-icons i {
    position: absolute;
    font-size: 2rem;
    color: rgba(6, 182, 212, 0.2);
    animation: engineeringFloat 8s ease-in-out infinite;
}

.engineering-icons i:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}
.engineering-icons i:nth-child(4) {
    top: 40%;
    right: 35%;
    animation-delay: 6s;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes engineeringFloat {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.2; }
    50% { transform: translateY(-15px) scale(1.1); opacity: 0.4; }
}

.hero-logo {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.1s forwards;
}

/* Hero Logo */
.hero-logo-image {
    height: 120px;
    max-width: 400px;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title-main {
    display: block;
    color: white;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.title-sub {
    display: block;
    background: linear-gradient(135deg, var(--link-on-navy), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--link-on-navy);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-description {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

.btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(21, 37, 64, 0.32);
    filter: brightness(0.95);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #1e293b;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.2s forwards;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1.2rem !important;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.feature-item i {
    font-size: 2rem;
    color: var(--link-on-navy);
    width: 40px;
    text-align: center;
}

.feature-item span {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(158, 195, 255, 0.35), rgba(21, 37, 64, 0.75));
    opacity: 0.12;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

.element-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #64748b;
}

/* About Section */
.about {
    padding: 0;
    background: white;
}

/* About Hero */
.about-hero {
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--brand-navy-600);
    color: var(--text-on-navy);
}

.about-hero-content h2 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-on-navy);
    margin-bottom: 1rem;
}

.about-subtitle {
    font-size: 1.3rem;
    color: var(--link-on-navy);
    font-weight: 600;
    margin: 0;
}

/* About Main Content */
.about-main {
    padding: 4rem 0;
}

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.about-intro h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-intro p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* About Features */
.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-navy-600);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--brand-navy-700));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.feature-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

/* About Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--brand-navy-600);
    color: var(--text-on-navy);
}

.stat-card {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-on-navy-2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Engineering Showcase */
.engineering-showcase {
    margin-top: 4rem;
    text-align: center;
}

.engineering-showcase h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.project-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.project-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-item:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Trust Indicators */
.trust-indicators {
    padding: 4rem 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.company-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem !important;
    margin-bottom: 2rem;
}
.detail-item {
    display: flex;
    align-items: center;
    gap: 1.2rem !important;
    padding: 1rem;
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    border-radius: 8px;
    border-left: 4px solid var(--brand-navy-600);
    color: var(--text-on-navy);
}

.detail-item i {
    color: var(--accent);
    font-size: 1.2rem;
    width: 20px;
}

.detail-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-on-navy);
    margin-bottom: 0.25rem;
}

.detail-item p {
    font-size: 0.9rem;
    color: var(--text-on-navy-2);
    margin: 0;
}

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

.stat {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    border-radius: 12px;
    transition: transform 0.3s ease;
    color: var(--text-on-navy);
}

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

.stat h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-on-navy-2);
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--link-on-navy);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.image-placeholder p {
    font-size: 1rem;
    color: #64748b;
    margin-top: 1rem;
    font-weight: 500;
}

/* Services Section */
.services {
    position: relative;
    background: url('ee_images/Electrical_Engineering.jpg') center/cover no-repeat fixed;
    color: var(--text-on-navy);
}

.services::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 27, 42, 0.78) 0%, rgba(10, 22, 34, 0.85) 100%);
    pointer-events: none;
}

.services > * {
    position: relative;
    z-index: 1;
}

/* Services Hero Banner */
.services-hero {
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><filter id="blur"><feGaussianBlur stdDeviation="10"/></filter></defs><rect width="100%" height="100%" fill="rgba(255,255,255,0.1)"/><circle cx="200" cy="200" r="100" fill="rgba(255,255,255,0.05)" filter="url(%23blur)"/><circle cx="800" cy="300" r="150" fill="rgba(255,255,255,0.05)" filter="url(%23blur)"/><circle cx="400" cy="700" r="120" fill="rgba(255,255,255,0.05)" filter="url(%23blur)"/></svg>');
    opacity: 0.3;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-on-navy);
}
.services-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-on-navy);
    margin: 0;
    text-shadow: 0 2px 4px rgba(15, 23, 42, 0.35);
}
/* Services Cards */
.services-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem 0;
    align-items: stretch;
}
.service-card {
    background: rgba(20, 24, 32, 0.75);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-align: center;
    color: var(--text-on-navy);
}
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.12);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f97316, #fb923c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    position: relative;
    transform: rotate(0deg);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-on-navy);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-on-navy-2);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.service-btn {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 37, 64, 0.28);
    filter: brightness(0.95);
    color: #ffffff;
}
  
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--accent), var(--brand-navy-700));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), var(--brand-navy-700));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.service-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Detailed Services */
.detailed-services {
    padding: 6rem 0;
    background: white;
    display: none; /* Hidden by default */
}

.detailed-services.active {
    display: block; /* Show when active */
}
/* Certificate Page */
.certificate-page {
    padding: 8rem 0 4rem;
    background: #f8fafc;
    min-height: 100vh;
}
/* Certificate Section (for overlay) */
.certificate-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #f8fafc;
    z-index: 9999;
    overflow-y: auto;
    display: none; /* Hidden by default */
    padding: 0;
}

.certificate-section.active {
    display: block; /* Show when active */
}

.certificate-header {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10000;
}

.back-to-home-btn {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.back-to-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 37, 64, 0.3);
    filter: brightness(0.95);
}

.back-to-home-btn i {
    font-size: 0.9rem;
}

.certificate-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 20px;
}

.certificate-row {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.certificate-row:hover {
    border-color: var(--link-on-navy);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

.certificate-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.certificate-row:hover .certificate-image img {
    transform: scale(1.05);
}

.certificate-content {
    flex: 1;
}

.certificate-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.8rem;
}

.certificate-content p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.detailed-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.detailed-service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.detailed-service-card:hover {
    border-color: var(--link-on-navy);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

.detailed-service-card .service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.detailed-service-card .service-content {
    flex: 1;
}

.detailed-service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.detailed-service-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* Projects Section */
.projects {
    padding: clamp(48px, 7vw, 80px) 0;
    background: #f8fafc;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 28px);
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: clamp(200px, 22vw, 230px);
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: #f8fafc;
}

.project-image img:not([src]) {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img:not([src])::before {
    content: 'Loading...';
    color: #64748b;
    font-size: 1rem;
}

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

.image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-card:hover .image-overlay {
    opacity: 1;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(29, 78, 216, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::before {
    opacity: 1;
}

.project-content {
    padding: clamp(1.4rem, 3vw, 1.75rem);
}

.project-content h3 {
    font-size: clamp(1.25rem, 2.4vw, 1.45rem);
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.project-content p {
    color: #64748b;
    margin-bottom: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Clients Section */
.clients {
    padding: 4rem 0;
    background: white;
}

.clients-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.client-sector {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.sector-header {
    flex-shrink: 0;
    min-width: 180px;
}

.sector-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    text-align: left;
    position: relative;
    padding-bottom: 0.5rem;
}

.sector-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    border-radius: 1px;
}

.clients-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    flex: 1;
}

.client-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: left;
}

.client-item:hover {
    border-color: var(--link-on-navy);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.1);
}

.client-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(5%);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.client-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.client-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.client-item:hover .client-name {
    color: var(--link-on-navy);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: white;
}

.contact-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 24px 16px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

.left-col {
    display: flex;
    flex-direction: column;
}

.left-col .map-card,
.address-card,
.form-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.left-col .map-card {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
}

.map-card iframe {
    width: 100%;
    height: 450px;
    display: block;
    border: 0;
}

.address-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-card {
    padding: 20px;
}

.form-card form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.form-card .form-group {
    grid-column: 1 / -1;
    margin: 0;
}

.form-card .form-group textarea {
    min-height: 160px;
    resize: vertical;
}

.form-card input,
.form-card textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font: inherit;
}

.form-card button.btn {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 12px 20px;
    border-radius: 12px;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 32px;
    }

    .address-card {
        margin-top: 0;
    }
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .left-col .map-card {
        margin-bottom: 12px;
    }

    .form-card form {
        grid-template-columns: 1fr;
    }

    .form-card button.btn {
        justify-self: stretch;
    }
}

@media (max-width: 768px) {
    .map-card iframe {
        height: 350px;
    }
}

/* Footer */
.footer {
    background: var(--brand-navy-700);
    color: var(--text-on-navy);
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    margin-bottom: 1rem;
}

/* Footer Logo */
.footer-logo-image {
    height: 60px;
    max-width: 250px;
}
.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-on-navy);
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: var(--text-on-navy-2);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}
.footer-section ul li {
    margin-bottom: 0.5rem;
}
.footer-section ul li a {
    color: var(--link-on-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-section ul li a:hover {
    color: var(--link-on-navy-h);
}

.social-links {
    display: flex;
    gap: 1.2rem !important;
}
.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--brand-navy);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

/* Hero Responsive Styles */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.2rem !important;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .hero-features {
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .feature-item i {
        font-size: 1.5rem;
        width: 30px;
    }
    
    .feature-item span {
        font-size: 1rem;
    }
    
    /* Mobile Dropdown Styles */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8fafc;
        border: none;
        border-radius: 0;
        margin: 10px 0;
        padding: 0;
    }
    
    .dropdown-menu a {
        padding: 12px 30px;
        border-bottom: 1px solid #e2e8f0;
        font-size: 1rem;
    }
    
    .dropdown-toggle i {
        display: none;
    }
    
    /* Mobile Certificate Styles */
    .certificate-row {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .certificate-image {
        width: 100px;
        height: 100px;
    }
    
    .certificate-content h3 {
        font-size: 1.1rem;
    }
    
    .certificate-content p {
        font-size: 0.9rem;
    }
    
    /* Full-page Certificate Mobile Styles */
    .certificate-header {
        padding: 0.8rem 0;
    }
    
    .back-to-home-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-left: 15px;
    }
    
    .certificate-list {
        padding: 2rem 15px;
    }
    
    .certificate-row {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .certificate-image {
        width: 100px;
        height: 100px;
    }
}
  

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--brand-navy);
        width: 100%;
        text-align: center;
        align-items: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(21, 37, 64, 0.35);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-top: 1rem;
    }
    
    .hero-logo-image {
        height: 80px;
        max-width: 300px;
    }
    
    .nav-logo .logo-image {
        height: 35px;
        max-width: 120px;
    }
    
    .company-name {
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }

    .hero { padding-top: 80px; }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1.2rem !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .certificate-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .certificate-item {
        padding: 1.5rem;
        gap: 1.2rem !important;
    }
    
    .certificate-icon {
    width: 50px;
    height: 50px;
        font-size: 1.2rem;
    }
    
    .detailed-services-grid {
        grid-template-columns: 1fr;
    }
    
    .detailed-service-card {
        padding: 1.5rem;
        gap: 1.2rem !important;
    }
    
    .detailed-service-card .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .client-sector {
        flex-direction: column;
        gap: 1.2rem !important;
        padding: 1rem;
    }
    
    .sector-header {
        min-width: auto;
        width: 100%;
        text-align: center;
    }
    
    .sector-title {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .sector-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .clients-group {
        gap: 0.6rem;
        justify-content: center;
    }
    
    .client-item {
        padding: 0.5rem 0.6rem;
    }
    
    .client-item img {
        width: 25px;
        height: 25px;
    }
    
    .client-name {
        font-size: 0.7rem;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Services Mobile Styles */
    .services-hero h1 {
        font-size: 2.5rem;
    }
    
    .services-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 3rem 0;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }
    
    .service-icon {
        margin-bottom: 1.5rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .service-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-description li {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 0.65rem;
    }
    
    /* Trust Indicators Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* About Mobile Styles */
    .about-hero-content h2 {
        font-size: 2.2rem;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
    }
    
    .about-intro h3 {
        font-size: 1.8rem;
    }
    
    .about-intro p {
        font-size: 1rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Engineering Showcase Mobile */
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-item img {
        height: 200px;
    }
    
    .engineering-showcase h3 {
        font-size: 1.6rem;
    }
    
    .solution-card {
        padding: 2rem;
    }
    
    .company-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-logo-image {
        height: 60px;
        max-width: 250px;
    }
    
    .nav-logo .logo-image {
        height: 30px;
        max-width: 100px;
    }
    
    .company-name {
        font-size: 1rem;
    }
    
    .footer-logo-image {
        height: 45px;
        max-width: 200px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .detailed-services .section-header h2 {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }
    
    .detailed-services .section-header p {
        font-size: 1rem;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem !important;
    }
    
    .solution-card {
        padding: 1.5rem;
    }
    
    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* kill the fake fallback that can interfere during load */
.logo-image:not([src]) { 
    background: none !important; 
    min-height: 0 !important; 
    min-width: 0 !important; 
    display: inline-block !important; 
  }
  .logo-image:not([src])::before { content: none !important; }
  
  /* force the nav logo to stay visible */
  .nav-logo .logo-image {
    display: inline-block !important; 
    height: 45px !important;       /* keep your existing sizing */
    max-width: 150px !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: drop-shadow(0 0 1px rgba(0,0,0,.45)); /* outlines light logos on white nav */
  }
  
  /* responsive sizes you already had—keep them but ensure still visible */
  @media (max-width: 768px) {
    .nav-logo .logo-image { height: 35px !important; max-width: 120px !important; }
  }
  @media (max-width: 480px) {
    .nav-logo .logo-image { height: 30px !important; max-width: 100px !important; }
  }

  /* ===== Compact About layout overrides - paste at end of styles.css ===== */

/* tighten section headers globally for better vertical rhythm */
.section-header {
  margin-bottom: 2rem; /* was 4rem */
}
.section-header h2 {
  margin-bottom: 0.75rem; /* smaller gap under title */
}
.section-header p {
  margin-bottom: 0.5rem;
}

/* About area — reduce large paddings */
.about-hero {
  padding: 2rem 0; /* was 4rem 0 */
}
.about-main {
  padding: 2rem 0; /* was 4rem 0 */
}

/* Intro paragraph block */
.about-intro {
  max-width: 720px;      /* slightly narrower */
  margin: 0 auto 1.5rem; /* reduce bottom gap (was 4rem) */
  padding: 0 12px;       /* small horizontal padding for narrow screens */
}
.about-intro h3 {
  margin-bottom: 1rem; /* reduce gap */
  font-size: 1.9rem;   /* keep prominent but slightly smaller */
}
.about-intro p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Feature cards and grid — reduce internal spacing */
.about-features {
  gap: 1rem; /* was 2rem */
  margin-bottom: 1.5rem;
}
.feature-card {
  padding: 1.25rem; /* was 2rem */
  border-radius: 10px;
}
.feature-icon {
  width: 52px;
  height: 52px;
  margin-bottom: .75rem;
}
.feature-content h4 {
  margin-bottom: .35rem;
  font-size: 1.05rem;
}
.feature-content p {
  font-size: 0.95rem;
}

/* Stats block — smaller padding & tighter numbers */
.about-stats {
  gap: 1rem;    /* was 2rem */
  padding: 1.5rem; /* was 3rem */
  border-radius: 12px;
}
.stat-card {
  padding: 0.75rem;
}
.stat-number {
  font-size: 2.2rem; /* was 3rem */
}
.stat-label {
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

/* Company details grid (if present) */
.company-details {
  gap: 0.75rem; /* was 1rem */
  margin-bottom: 1rem;
}
.detail-item {
  padding: 0.75rem;
}
/* Projects / other sections below should slightly tighten spacing too */
.engineering-showcase { margin-top: 2rem; } /* reduce from 4rem */
.projects-grid { gap: 1.25rem; } /* was 2rem */

/* Optional small utility you can add to any section to compact spacing */
.compact-section { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.compact-section .section-header { margin-bottom: 1rem; }

/* ===== Responsive adjustments - keep compact on small screens ===== */
@media (max-width: 992px) {
  .about-hero { padding: 1.6rem 0; }
  .about-main { padding: 1.6rem 0; }
  .about-intro { margin-bottom: 1rem; padding: 0 10px; }
  .about-features { gap: 0.8rem; }
  .feature-card { padding: 1rem; }
  .about-stats { padding: 1rem; }
}

@media (max-width: 480px) {
  .section-header { margin-bottom: 1rem; }
  .about-hero { padding: 1rem 0; }
  .about-main { padding: 1rem 0; }
  .about-intro { max-width: 100%; margin-bottom: 0.75rem; padding: 0 12px; }
  .feature-card { padding: 0.9rem; }
  .about-stats { padding: 0.75rem; gap: 0.6rem; }
  .stat-number { font-size: 2rem; }
}

/* Feature items alignment fix */
.feature-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.2rem !important;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    min-height: 80px;
}

.feature-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image img,
.feature-image img.side-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
}

.feature-icon {
    flex-shrink: 0;
}

.feature-item span {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-align: left;
    line-height: 1.2;
}

/* About Section Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Specific animation delays */
.animate-on-scroll[data-delay="100"] {
    transition-delay: 0.1s;
}

.animate-on-scroll[data-delay="200"] {
    transition-delay: 0.2s;
}

.animate-on-scroll[data-delay="300"] {
    transition-delay: 0.3s;
}

.animate-on-scroll[data-delay="400"] {
    transition-delay: 0.4s;
}

.animate-on-scroll[data-delay="500"] {
    transition-delay: 0.5s;
}

.animate-on-scroll[data-delay="600"] {
    transition-delay: 0.6s;
}

.animate-on-scroll[data-delay="700"] {
    transition-delay: 0.7s;
}
/* Services Hero Section */
.services-hero-section {
    padding: 140px 0 4rem;
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    color: var(--text-on-navy);
    text-align: center;
}

.services-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-on-navy);
}

.services-hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-on-navy);
    margin-bottom: 1rem;
}
.services-hero-description {
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-on-navy-2);
    line-height: 1.7;
}
/* Services Detail Page Styles */
.services-detail {
    padding: 4rem 0;
    background: #f8fafc url('clients/lumico_background.png') center center / cover no-repeat fixed;
    min-height: 100vh;
    position: relative;
}
.services-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 250, 252, 0.4);
    z-index: 0;
}

.services-detail .container {
    position: relative;
    z-index: 1;
}

.services-detail-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.services-detail-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-detail-header p {
    font-size: 1.2rem;
    color: #64748b;
    font-weight: 500;
}

.service-detail-section {
    margin-bottom: 6rem;
}

.service-detail-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.service-header-row {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 3rem;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}
.service-detail-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.service-detail-icon i {
    font-size: 2.5rem;
    color: white;
}

.service-header-text {
    flex: 1;
}

.service-detail-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.service-intro {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.service-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
    padding-bottom: 1rem;
    padding-left: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-content h3:first-of-type {
    margin-top: 0;
}

.service-content h3 i {
    color: var(--link-on-navy);
    font-size: 1.5rem;
}

.service-subsection {
    margin-bottom: 3rem;
    padding-left: 1rem;
}

.service-subsection p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-list {
    list-style: disc;
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.service-list li {
    margin-left: 0;
    padding: 0;
    background: transparent;
    border: none;
    display: list-item;
}

.service-list li strong {
    color: #1e293b;
    font-weight: 600;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-feature-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.service-feature-item:hover {
    background: white;
    border-color: var(--link-on-navy);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.feature-icon-small {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), rgba(21, 37, 64, 0.85));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-small i {
    font-size: 1.5rem;
    color: white;
}

.feature-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
}

.service-audience {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 5px solid var(--brand-navy-600);
    margin-top: 3rem;
    margin-left: 1rem;
}

.service-audience h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    border: none;
    padding: 0;
}

.service-audience p {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

.services-cta {
    text-align: center;
    padding: 5rem 3rem;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    border-radius: 16px;
    color: white;
    margin-top: 6rem;
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 2rem;
}

.services-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.services-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.services-cta .btn-primary {
    background: white;
    color: var(--link-on-navy);
    border-color: white;
    font-size: 1.1rem;
    padding: 18px 40px;
}

.services-cta .btn-primary:hover {
    background: #f8fafc;
    color: var(--link-on-navy);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Additional Services Section */
.additional-services-section {
    margin: 6rem 0;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-left: 1rem;
    margin-right: 1rem;
}

.additional-services-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.additional-services-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.additional-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.additional-service-item {
    display: flex;
    align-items: center;
    gap: 1.2rem !important;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #1e293b;
}

.additional-service-item:hover {
    background: white;
    border-color: var(--link-on-navy);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.15);
}

.additional-service-item i {
    font-size: 1.5rem;
    color: var(--link-on-navy);
    width: 30px;
    text-align: center;
}

/* Quality Focus Section */
.quality-focus-section {
    margin: 6rem 0;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.95), rgba(224, 242, 254, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border-left: 5px solid var(--brand-navy-600);
    margin-left: 1rem;
    margin-right: 1rem;
}

.quality-focus-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.quality-focus-section p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #475569;
    margin: 0;
    padding-left: 0.5rem;
}

.quality-safety-cta {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.safety-btn {
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.2s ease;
}

.safety-btn:hover {
    background: var(--brand-navy-700);
}

@media (max-width: 768px) {
    .quality-safety-cta {
        margin-top: 16px;
        margin-bottom: 24px;
    }
}

/* Responsive Styles for Services Detail */
@media (max-width: 768px) {
    .services-hero-section {
        padding: 120px 0 3rem;
    }

    .services-hero-content h1 {
        font-size: 2rem;
    }

    .services-hero-subtitle {
        font-size: 1.2rem;
    }

    .services-hero-description {
        font-size: 1rem;
    }

    .services-detail {
        padding: 2rem 0;
    }

    .services-detail-header h1 {
        font-size: 2rem;
    }

    .service-detail-card {
        padding: 2.5rem 1.5rem;
        margin: 0 0.5rem;
    }

    .service-header-row {
        flex-direction: column;
        gap: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .service-detail-card h2 {
        font-size: 2rem;
    }

    .service-content h3 {
        font-size: 1.5rem;
    }

    .service-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-feature-item {
        flex-direction: column;
        text-align: center;
    }

    .service-list {
        padding-left: 2rem;
    }

    .service-list li {
        padding: 0;
    }

    .service-subsection {
        padding-left: 0.5rem;
    }
}

/* Global list formatting overrides */
ul ul {
    margin-left: 20px !important;
    padding-left: 20px !important;
}

ul li {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
    line-height: 1.45 !important;
}

ul ul li {
    margin-top: 3px !important;
    margin-bottom: 3px !important;
}

.nav-toggle {
    display: none;
    border: 0;
    background: rgba(233, 241, 248, 0.12);
    color: var(--text-on-navy);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    transition: background 0.2s ease;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease;
}

.nav-toggle:hover {
    background: rgba(233, 241, 248, 0.24);
}

.nav-panel {
    position: fixed;
    inset: 0 0 0 auto;
    width: 84%;
    max-width: 360px;
    background: var(--brand-navy-700);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1100;
    display: flex;
    flex-direction: column;
}

.nav-panel.open {
    transform: translateX(0);
}

.nav-list {
    list-style: none;
    padding: 32px 28px;
    margin: 0;
    display: grid;
    gap: 16px;
}

.nav-list a {
    color: var(--text-on-navy);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-list .has-sub {
    display: grid;
    gap: 12px;
}

.mobile-services-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mobile-services-link {
    flex: 1;
    color: var(--text-on-navy);
    text-decoration: none;
    font-weight: 600;
    padding: 0;
}

.mobile-services-link:hover {
    color: var(--text-on-navy);
    text-decoration: none;
}

.sub-toggle {
    background: none;
    border: 0;
    color: var(--text-on-navy);
    font: inherit;
    font-weight: 600;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    min-width: 30px;
}

.sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.sub-list[hidden] {
    display: none;
}

.sub-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(233, 241, 248, 0.65);
}

.sub-divider {
    width: 100%;
    height: 1px;
    background: rgba(233, 241, 248, 0.15);
}

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }
}

@media (min-width: 1025px) {
    .nav-panel {
        display: none;
    }
}

/* Hero Section */
.hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(80vh, 100vh, 100vh);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 56px 24px 64px;
    background: url("/clients/lumico_background_wordless.png") center 35% / cover no-repeat fixed;
    color: #ffffff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 60% at 65% 50%, rgba(5, 16, 26, 0.35) 0%, rgba(5, 16, 26, 0.85) 55%, rgba(5, 16, 26, 0.95) 100%);
    pointer-events: none;
    z-index: 0;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--overlay) 0%, rgba(0, 0, 0, 0.55) 65%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-background {
    display: none;
}

.hero-overlay {
    display: none;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(158, 195, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(158, 195, 255, 0.12) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.18;
    animation: heroGridDrift 18s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 32px;
    align-items: center;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--text-on-navy);
}

.hero-kicker {
    font-size: 1.1rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--link-on-navy);
    font-weight: 600;
}

.hero-left h1 {
    font-size: clamp(36px, 6.2vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-title-line {
    color: var(--text-on-navy);
}

.hero-title-accent {
    color: var(--link-on-navy);
}

.hero-subheading {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
    color: var(--link-on-navy);
    margin: 8px 0 0;
}

.hero-description {
    max-width: 640px;
    font-size: clamp(16px, 1.6vw, 18px);
    line-height: 1.7;
    color: var(--text-on-navy-2);
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-hero-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(21, 37, 64, 0.35);
}

.btn-hero-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 26px 55px rgba(21, 37, 64, 0.45);
    filter: brightness(0.95);
}
.btn-hero-secondary {
    border: 1px solid var(--text-on-navy-2);
    color: var(--text-on-navy);
    background: transparent;
}
.btn-hero-secondary:hover {
    color: var(--link-on-navy);
    background: rgba(21, 37, 64, 0.6);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 26px 50px rgba(31, 42, 57, 0.3);
}
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.hero-service-card {
    display: flex;
    gap: 1.2rem !important;
    align-items: center;
    padding: 16px;
    min-height: 96px;
    max-width: 520px;
    border-radius: 20px;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 24px 60px rgba(4, 10, 24, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.hero-service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(158, 195, 255, 0.16), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.hero-service-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 32px 70px rgba(0, 219, 255, 0.35);
    border-color: rgba(0, 229, 255, 0.45);
}
.hero-service-card:hover::after {
    opacity: 1;
}

.hero-card-thumb {
    width: 100px !important;
    height: 100px !important;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-thumb img {
    width: 90px !important;
    height: 90px !important;
    object-fit: cover;
    border-radius: 10px;
}

.hero-card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #f8fafc;
}

.hero-card-link {
    font-size: 14px;
    color: rgba(226, 232, 240, 0.75);
}

.hero-service-card:nth-child(1) {
    animation: heroCardFloat 9s ease-in-out infinite;
}

.hero-service-card:nth-child(2) {
    animation: heroCardFloat 9s ease-in-out infinite 1.5s;
}

.hero-service-card:nth-child(3) {
    animation: heroCardFloat 9s ease-in-out infinite 3s;
}

@keyframes heroGridDrift {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-30px, -40px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}
@keyframes heroCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@media (max-width: 1279px) {
    .hero-service-card {
        min-height: 92px;
    }

    .hero-left h1 {
        font-size: clamp(34px, 5.6vw, 60px);
    }
}

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0;
    }

    .hero-right {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-service-card {
        width: min(320px, 100%);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 88vh;
    }

    .hero-inner {
        padding: 0;
    }

    .hero-left {
        text-align: center;
        align-items: center;
    }

    .hero-right {
        flex-direction: column;
        align-items: center;
    }

    .hero-service-card {
        width: 100%;
        max-width: 340px;
    }
}

/* Engineering Graphics */
.engineering-graphics {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

.circuit-pattern {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10,10 L90,10 L90,30 L70,30 L70,50 L30,50 L30,70 L50,70 L50,90 L10,90 Z" fill="none" stroke="%2306b6d4" stroke-width="0.5" opacity="0.3"/><circle cx="20" cy="20" r="2" fill="%2306b6d4" opacity="0.4"/><circle cx="80" cy="20" r="2" fill="%2306b6d4" opacity="0.4"/><circle cx="20" cy="80" r="2" fill="%2306b6d4" opacity="0.4"/><circle cx="80" cy="80" r="2" fill="%2306b6d4" opacity="0.4"/></svg>') no-repeat center;
    background-size: contain;
    animation: float 6s ease-in-out infinite;
}

.engineering-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.engineering-icons i {
    position: absolute;
    font-size: 2rem;
    color: rgba(6, 182, 212, 0.2);
    animation: engineeringFloat 8s ease-in-out infinite;
}

.engineering-icons i:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.engineering-icons i:nth-child(4) {
    top: 40%;
    right: 35%;
    animation-delay: 6s;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes engineeringFloat {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.2; }
    50% { transform: translateY(-15px) scale(1.1); opacity: 0.4; }
}

.hero-logo {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.1s forwards;
}

/* Hero Logo */
.hero-logo-image {
    height: 120px;
    max-width: 400px;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title-main {
    display: block;
    color: white;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.title-sub {
    display: block;
    background: linear-gradient(135deg, var(--link-on-navy), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--link-on-navy);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-description {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

.btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(21, 37, 64, 0.32);
    filter: brightness(0.95);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #1e293b;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.2s forwards;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1.2rem !important;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.feature-item i {
    font-size: 2rem;
    color: var(--link-on-navy);
    width: 40px;
    text-align: center;
}

.feature-item span {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(158, 195, 255, 0.35), rgba(21, 37, 64, 0.75));
    opacity: 0.12;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

.element-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #64748b;
}

/* About Section */
.about {
    padding: 0;
    background: white;
}

/* About Hero */
.about-hero {
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--brand-navy-600);
    color: var(--text-on-navy);
}

.about-hero-content h2 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-on-navy);
    margin-bottom: 1rem;
}

.about-subtitle {
    font-size: 1.3rem;
    color: var(--link-on-navy);
    font-weight: 600;
    margin: 0;
}

/* About Main Content */
.about-main {
    padding: 4rem 0;
}

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.about-intro h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-intro p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* About Features */
.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-navy-600);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--brand-navy-700));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.feature-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

/* About Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--brand-navy-600);
    color: var(--text-on-navy);
}

.stat-card {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-on-navy-2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Engineering Showcase */
.engineering-showcase {
    margin-top: 4rem;
    text-align: center;
}

.engineering-showcase h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.project-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.project-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-item:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}
/* Trust Indicators */
.trust-indicators {
    padding: 4rem 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.company-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem !important;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1.2rem !important;
    padding: 1rem;
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    border-radius: 8px;
    border-left: 4px solid var(--brand-navy-600);
    color: var(--text-on-navy);
}

.detail-item i {
    color: var(--accent);
    font-size: 1.2rem;
    width: 20px;
}

.detail-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-on-navy);
    margin-bottom: 0.25rem;
}

.detail-item p {
    font-size: 0.9rem;
    color: var(--text-on-navy-2);
    margin: 0;
}

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

.stat {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    border-radius: 12px;
    transition: transform 0.3s ease;
    color: var(--text-on-navy);
}

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

.stat h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.stat p {
    color: var(--text-on-navy-2);
    font-weight: 500;
}
.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}
.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--link-on-navy);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.image-placeholder p {
    font-size: 1rem;
    color: #64748b;
    margin-top: 1rem;
    font-weight: 500;
}
/* Services Section */
.services {
    position: relative;
    background: url('ee_images/Electrical_Engineering.jpg') center/cover no-repeat fixed;
    color: var(--text-on-navy);
}
.services::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 27, 42, 0.78) 0%, rgba(10, 22, 34, 0.85) 100%);
    pointer-events: none;
}

.services > * {
    position: relative;
    z-index: 1;
}

/* Services Hero Banner */
.services-hero {
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><filter id="blur"><feGaussianBlur stdDeviation="10"/></filter></defs><rect width="100%" height="100%" fill="rgba(255,255,255,0.1)"/><circle cx="200" cy="200" r="100" fill="rgba(255,255,255,0.05)" filter="url(%23blur)"/><circle cx="800" cy="300" r="150" fill="rgba(255,255,255,0.05)" filter="url(%23blur)"/><circle cx="400" cy="700" r="120" fill="rgba(255,255,255,0.05)" filter="url(%23blur)"/></svg>');
    opacity: 0.3;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-on-navy);
}

.services-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-on-navy);
    margin: 0;
    text-shadow: 0 2px 4px rgba(15, 23, 42, 0.35);
}

/* Services Cards */
.services-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem 0;
    align-items: stretch;
}

.service-card {
    background: rgba(20, 24, 32, 0.75);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-align: center;
    color: var(--text-on-navy);
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.12);
}
.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f97316, #fb923c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    position: relative;
    transform: rotate(0deg);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-on-navy);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-on-navy-2);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.service-btn {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 37, 64, 0.28);
    filter: brightness(0.95);
    color: #ffffff;
}
  
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--accent), var(--brand-navy-700));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), var(--brand-navy-700));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.service-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Detailed Services */
.detailed-services {
    padding: 6rem 0;
    background: white;
    display: none; /* Hidden by default */
}

.detailed-services.active {
    display: block; /* Show when active */
}

/* Certificate Page */
.certificate-page {
    padding: 8rem 0 4rem;
    background: #f8fafc;
    min-height: 100vh;
}

/* Certificate Section (for overlay) */
.certificate-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #f8fafc;
    z-index: 9999;
    overflow-y: auto;
    display: none; /* Hidden by default */
    padding: 0;
}

.certificate-section.active {
    display: block; /* Show when active */
}

.certificate-header {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10000;
}

.back-to-home-btn {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.back-to-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 37, 64, 0.3);
    filter: brightness(0.95);
}

.back-to-home-btn i {
    font-size: 0.9rem;
}

.certificate-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 20px;
}

.certificate-row {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.certificate-row:hover {
    border-color: var(--link-on-navy);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

.certificate-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.certificate-row:hover .certificate-image img {
    transform: scale(1.05);
}

.certificate-content {
    flex: 1;
}

.certificate-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.8rem;
}

.certificate-content p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.detailed-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.detailed-service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.detailed-service-card:hover {
    border-color: var(--link-on-navy);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

.detailed-service-card .service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.detailed-service-card .service-content {
    flex: 1;
}

.detailed-service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.detailed-service-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* Projects Section */
.projects {
    padding: clamp(48px, 7vw, 80px) 0;
    background: #f8fafc;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 28px);
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: clamp(200px, 22vw, 230px);
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: #f8fafc;
}

.project-image img:not([src]) {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img:not([src])::before {
    content: 'Loading...';
    color: #64748b;
    font-size: 1rem;
}

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

.image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-card:hover .image-overlay {
    opacity: 1;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(29, 78, 216, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::before {
    opacity: 1;
}

.project-content {
    padding: clamp(1.4rem, 3vw, 1.75rem);
}

.project-content h3 {
    font-size: clamp(1.25rem, 2.4vw, 1.45rem);
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.project-content p {
    color: #64748b;
    margin-bottom: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Clients Section */
.clients {
    padding: 4rem 0;
    background: white;
}

.clients-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.client-sector {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.sector-header {
    flex-shrink: 0;
    min-width: 180px;
}

.sector-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    text-align: left;
    position: relative;
    padding-bottom: 0.5rem;
}

.sector-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    border-radius: 1px;
}

.clients-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    flex: 1;
}

.client-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: left;
}

.client-item:hover {
    border-color: var(--link-on-navy);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.1);
}

.client-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(5%);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.client-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.client-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.client-item:hover .client-name {
    color: var(--link-on-navy);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: white;
}

.contact-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 24px 16px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

.left-col {
    display: flex;
    flex-direction: column;
}

.left-col .map-card,
.address-card,
.form-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.left-col .map-card {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
}

.map-card iframe {
    width: 100%;
    height: 450px;
    display: block;
    border: 0;
}

.address-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-card {
    padding: 20px;
}

.form-card form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.form-card .form-group {
    grid-column: 1 / -1;
    margin: 0;
}

.form-card .form-group textarea {
    min-height: 160px;
    resize: vertical;
}

.form-card input,
.form-card textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font: inherit;
}
.form-card button.btn {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 12px 20px;
    border-radius: 12px;
}
@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 32px;
    }

    .address-card {
        margin-top: 0;
    }
}
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .left-col .map-card {
        margin-bottom: 12px;
    }

    .form-card form {
        grid-template-columns: 1fr;
    }

    .form-card button.btn {
        justify-self: stretch;
    }
}
@media (max-width: 768px) {
    .map-card iframe {
        height: 350px;
    }
}
/* Footer */
.footer {
    background: var(--brand-navy-700);
    color: var(--text-on-navy);
    padding: 3rem 0 1rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

/* Footer Logo */
.footer-logo-image {
    height: 60px;
    max-width: 250px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-on-navy);
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: var(--text-on-navy-2);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--link-on-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--link-on-navy-h);
}

.social-links {
    display: flex;
    gap: 1.2rem !important;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-links a:hover {
    background: var(--brand-navy);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

/* Hero Responsive Styles */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.2rem !important;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .hero-features {
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .feature-item i {
        font-size: 1.5rem;
        width: 30px;
    }
    
    .feature-item span {
        font-size: 1rem;
    }
    
    /* Mobile Dropdown Styles */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8fafc;
        border: none;
        border-radius: 0;
        margin: 10px 0;
        padding: 0;
    }
    
    .dropdown-menu a {
        padding: 12px 30px;
        border-bottom: 1px solid #e2e8f0;
        font-size: 1rem;
    }
    
    .dropdown-toggle i {
        display: none;
    }
    
    /* Mobile Certificate Styles */
    .certificate-row {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .certificate-image {
        width: 100px;
        height: 100px;
    }
    
    .certificate-content h3 {
        font-size: 1.1rem;
    }
    
    .certificate-content p {
        font-size: 0.9rem;
    }
    
    /* Full-page Certificate Mobile Styles */
    .certificate-header {
        padding: 0.8rem 0;
    }
    
    .back-to-home-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-left: 15px;
    }
    
    .certificate-list {
        padding: 2rem 15px;
    }
    
    .certificate-row {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .certificate-image {
        width: 100px;
        height: 100px;
    }
}
  

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
   
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-top: 1rem;
    }
    
    .hero-logo-image {
        height: 80px;
        max-width: 300px;
    }
    
    .nav-logo .logo-image {
        height: 35px;
        max-width: 120px;
    }
    
    .company-name {
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }

    .hero { padding-top: 80px; }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1.2rem !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .certificate-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .certificate-item {
        padding: 1.5rem;
        gap: 1.2rem !important;
    }
    
    .certificate-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .detailed-services-grid {
        grid-template-columns: 1fr;
    }
    
    .detailed-service-card {
        padding: 1.5rem;
        gap: 1.2rem !important;
    }
    
    .detailed-service-card .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .client-sector {
        flex-direction: column;
        gap: 1.2rem !important;
        padding: 1rem;
    }
    
    .sector-header {
        min-width: auto;
        width: 100%;
        text-align: center;
    }
    
    .sector-title {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .sector-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .clients-group {
        gap: 0.6rem;
        justify-content: center;
    }
    
    .client-item {
        padding: 0.5rem 0.6rem;
    }
    
    .client-item img {
        width: 25px;
        height: 25px;
    }
    
    .client-name {
        font-size: 0.7rem;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Services Mobile Styles */
    .services-hero h1 {
        font-size: 2.5rem;
    }
    
    .services-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 3rem 0;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }
    
    .service-icon {
        margin-bottom: 1.5rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .service-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-description li {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 0.65rem;
    }
    
    /* Trust Indicators Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* About Mobile Styles */
    .about-hero-content h2 {
        font-size: 2.2rem;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
    }
    
    .about-intro h3 {
        font-size: 1.8rem;
    }
    
    .about-intro p {
        font-size: 1rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Engineering Showcase Mobile */
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-item img {
        height: 200px;
    }
    
    .engineering-showcase h3 {
        font-size: 1.6rem;
    }
    
    .solution-card {
        padding: 2rem;
    }
    
    .company-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-logo-image {
        height: 60px;
        max-width: 250px;
    }
    
    .nav-logo .logo-image {
        height: 30px;
        max-width: 100px;
    }
    
    .company-name {
        font-size: 1rem;
    }
    
    .footer-logo-image {
        height: 45px;
        max-width: 200px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .detailed-services .section-header h2 {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }
    
    .detailed-services .section-header p {
        font-size: 1rem;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem !important;
    }
    
    .solution-card {
        padding: 1.5rem;
    }
    
    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* kill the fake fallback that can interfere during load */
.logo-image:not([src]) { 
    background: none !important; 
    min-height: 0 !important; 
    min-width: 0 !important; 
    display: inline-block !important; 
  }
  .logo-image:not([src])::before { content: none !important; }
  
  /* force the nav logo to stay visible */
  .nav-logo .logo-image {
    display: inline-block !important; 
    height: 45px !important;       /* keep your existing sizing */
    max-width: 150px !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: drop-shadow(0 0 1px rgba(0,0,0,.45)); /* outlines light logos on white nav */
  }
  
  /* responsive sizes you already had—keep them but ensure still visible */
  @media (max-width: 768px) {
    .nav-logo .logo-image { height: 35px !important; max-width: 120px !important; }
  }
  @media (max-width: 480px) {
    .nav-logo .logo-image { height: 30px !important; max-width: 100px !important; }
  }

  /* ===== Compact About layout overrides - paste at end of styles.css ===== */

/* tighten section headers globally for better vertical rhythm */
.section-header {
  margin-bottom: 2rem; /* was 4rem */
}
.section-header h2 {
  margin-bottom: 0.75rem; /* smaller gap under title */
}
.section-header p {
  margin-bottom: 0.5rem;
}

/* About area — reduce large paddings */
.about-hero {
  padding: 2rem 0; /* was 4rem 0 */
}
.about-main {
  padding: 2rem 0; /* was 4rem 0 */
}

/* Intro paragraph block */
.about-intro {
  max-width: 720px;      /* slightly narrower */
  margin: 0 auto 1.5rem; /* reduce bottom gap (was 4rem) */
  padding: 0 12px;       /* small horizontal padding for narrow screens */
}
.about-intro h3 {
  margin-bottom: 1rem; /* reduce gap */
  font-size: 1.9rem;   /* keep prominent but slightly smaller */
}
.about-intro p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Feature cards and grid — reduce internal spacing */
.about-features {
  gap: 1rem; /* was 2rem */
  margin-bottom: 1.5rem;
}
.feature-card {
  padding: 1.25rem; /* was 2rem */
  border-radius: 10px;
}
.feature-icon {
  width: 52px;
  height: 52px;
  margin-bottom: .75rem;
}
.feature-content h4 {
  margin-bottom: .35rem;
  font-size: 1.05rem;
}
.feature-content p {
  font-size: 0.95rem;
}

/* Stats block — smaller padding & tighter numbers */
.about-stats {
  gap: 1rem;    /* was 2rem */
  padding: 1.5rem; /* was 3rem */
  border-radius: 12px;
}
.stat-card {
  padding: 0.75rem;
}
.stat-number {
  font-size: 2.2rem; /* was 3rem */
}
.stat-label {
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

/* Company details grid (if present) */
.company-details {
  gap: 0.75rem; /* was 1rem */
  margin-bottom: 1rem;
}
.detail-item {
  padding: 0.75rem;
}

/* Projects / other sections below should slightly tighten spacing too */
.engineering-showcase { margin-top: 2rem; } /* reduce from 4rem */
.projects-grid { gap: 1.25rem; } /* was 2rem */

/* Optional small utility you can add to any section to compact spacing */
.compact-section { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.compact-section .section-header { margin-bottom: 1rem; }

/* ===== Responsive adjustments - keep compact on small screens ===== */
@media (max-width: 992px) {
  .about-hero { padding: 1.6rem 0; }
  .about-main { padding: 1.6rem 0; }
  .about-intro { margin-bottom: 1rem; padding: 0 10px; }
  .about-features { gap: 0.8rem; }
  .feature-card { padding: 1rem; }
  .about-stats { padding: 1rem; }
}

@media (max-width: 480px) {
  .section-header { margin-bottom: 1rem; }
  .about-hero { padding: 1rem 0; }
  .about-main { padding: 1rem 0; }
  .about-intro { max-width: 100%; margin-bottom: 0.75rem; padding: 0 12px; }
  .feature-card { padding: 0.9rem; }
  .about-stats { padding: 0.75rem; gap: 0.6rem; }
  .stat-number { font-size: 2rem; }
}

/* Feature items alignment fix */
.feature-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.2rem !important;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    min-height: 80px;
}
.feature-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-image img,
.feature-image img.side-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
}

.feature-icon {
    flex-shrink: 0;
}
.feature-item span {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-align: left;
    line-height: 1.2;
}

/* About Section Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}
/* Specific animation delays */
.animate-on-scroll[data-delay="100"] {
    transition-delay: 0.1s;
}
.animate-on-scroll[data-delay="200"] {
    transition-delay: 0.2s;
}

.animate-on-scroll[data-delay="300"] {
    transition-delay: 0.3s;
}
.animate-on-scroll[data-delay="400"] {
    transition-delay: 0.4s;
}

.animate-on-scroll[data-delay="500"] {
    transition-delay: 0.5s;
}

.animate-on-scroll[data-delay="600"] {
    transition-delay: 0.6s;
}

.animate-on-scroll[data-delay="700"] {
    transition-delay: 0.7s;
}
  
/* Services Hero Section */
.services-hero-section {
    padding: 140px 0 4rem;
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    color: var(--text-on-navy);
    text-align: center;
}

.services-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-on-navy);
}

.services-hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-on-navy);
    margin-bottom: 1rem;
}

.services-hero-description {
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-on-navy-2);
    line-height: 1.7;
}

/* Services Detail Page Styles */
.services-detail {
    padding: 4rem 0;
    background: #f8fafc url('clients/lumico_background.png') center center / cover no-repeat fixed;
    min-height: 100vh;
    position: relative;
}

.services-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 250, 252, 0.4);
    z-index: 0;
}

.services-detail .container {
    position: relative;
    z-index: 1;
}
.services-detail-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}
.services-detail-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-detail-header p {
    font-size: 1.2rem;
    color: #64748b;
    font-weight: 500;
}

.service-detail-section {
    margin-bottom: 6rem;
}

.service-detail-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.service-header-row {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 3rem;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.service-detail-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.service-detail-icon i {
    font-size: 2.5rem;
    color: white;
}

.service-header-text {
    flex: 1;
}

.service-detail-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.service-intro {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.service-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
    padding-bottom: 1rem;
    padding-left: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-content h3:first-of-type {
    margin-top: 0;
}

.service-content h3 i {
    color: var(--link-on-navy);
    font-size: 1.5rem;
}

.service-subsection {
    margin-bottom: 3rem;
    padding-left: 1rem;
}

.service-subsection p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-list {
    list-style: disc;
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.service-list li {
    margin-left: 0;
    padding: 0;
    background: transparent;
    border: none;
    display: list-item;
}

.service-list li strong {
    color: #1e293b;
    font-weight: 600;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-feature-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.service-feature-item:hover {
    background: white;
    border-color: var(--link-on-navy);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.feature-icon-small {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), rgba(21, 37, 64, 0.85));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-small i {
    font-size: 1.5rem;
    color: white;
}

.feature-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
}

.service-audience {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 5px solid var(--brand-navy-600);
    margin-top: 3rem;
    margin-left: 1rem;
}

.service-audience h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    border: none;
    padding: 0;
}

.service-audience p {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

.services-cta {
    text-align: center;
    padding: 5rem 3rem;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    border-radius: 16px;
    color: white;
    margin-top: 6rem;
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 2rem;
}

.services-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.services-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.services-cta .btn-primary {
    background: white;
    color: var(--link-on-navy);
    border-color: white;
    font-size: 1.1rem;
    padding: 18px 40px;
}

.services-cta .btn-primary:hover {
    background: #f8fafc;
    color: var(--link-on-navy);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Additional Services Section */
.additional-services-section {
    margin: 6rem 0;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-left: 1rem;
    margin-right: 1rem;
}

.additional-services-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.additional-services-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.additional-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.additional-service-item {
    display: flex;
    align-items: center;
    gap: 1.2rem !important;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #1e293b;
}

.additional-service-item:hover {
    background: white;
    border-color: var(--link-on-navy);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.15);
}

.additional-service-item i {
    font-size: 1.5rem;
    color: var(--link-on-navy);
    width: 30px;
    text-align: center;
}

/* Quality Focus Section */
.quality-focus-section {
    margin: 6rem 0;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.95), rgba(224, 242, 254, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border-left: 5px solid var(--brand-navy-600);
    margin-left: 1rem;
    margin-right: 1rem;
}

.quality-focus-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.quality-focus-section p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #475569;
    margin: 0;
    padding-left: 0.5rem;
}

.quality-safety-cta {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.safety-btn {
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.2s ease;
}

.safety-btn:hover {
    background: var(--brand-navy-700);
}

@media (max-width: 768px) {
    .quality-safety-cta {
        margin-top: 16px;
        margin-bottom: 24px;
    }
}

/* Responsive Styles for Services Detail */
@media (max-width: 768px) {
    .services-hero-section {
        padding: 120px 0 3rem;
    }

    .services-hero-content h1 {
        font-size: 2rem;
    }

    .services-hero-subtitle {
        font-size: 1.2rem;
    }

    .services-hero-description {
        font-size: 1rem;
    }

    .services-detail {
        padding: 2rem 0;
    }

    .services-detail-header h1 {
        font-size: 2rem;
    }

    .service-detail-card {
        padding: 2.5rem 1.5rem;
        margin: 0 0.5rem;
    }

    .service-header-row {
        flex-direction: column;
        gap: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .service-detail-card h2 {
        font-size: 2rem;
    }

    .service-content h3 {
        font-size: 1.5rem;
    }

    .service-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-feature-item {
        flex-direction: column;
        text-align: center;
    }

    .service-list {
        padding-left: 2rem;
    }

    .service-list li {
        padding: 0;
    }

    .service-subsection {
        padding-left: 0.5rem;
    }
}

/* Global list formatting overrides */
ul ul {
    margin-left: 20px !important;
    padding-left: 20px !important;
}

ul li {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
    line-height: 1.45 !important;
}

ul ul li {
    margin-top: 3px !important;
    margin-bottom: 3px !important;
}

.nav-toggle {
    display: none;
    border: 0;
    background: rgba(233, 241, 248, 0.12);
    color: var(--text-on-navy);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    transition: background 0.2s ease;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease;
}

.nav-toggle:hover {
    background: rgba(233, 241, 248, 0.24);
}

.nav-panel {
    position: fixed;
    inset: 0 0 0 auto;
    width: 84%;
    max-width: 360px;
    background: var(--brand-navy-700);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1100;
    display: flex;
    flex-direction: column;
}

.nav-panel.open {
    transform: translateX(0);
}

.nav-list {
    list-style: none;
    padding: 32px 28px;
    margin: 0;
    display: grid;
    gap: 16px;
}

.nav-list a {
    color: var(--text-on-navy);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-list .has-sub {
    display: grid;
    gap: 12px;
}

.mobile-services-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mobile-services-link {
    flex: 1;
    color: var(--text-on-navy);
    text-decoration: none;
    font-weight: 600;
    padding: 0;
}

.mobile-services-link:hover {
    color: var(--text-on-navy);
    text-decoration: none;
}

.sub-toggle {
    background: none;
    border: 0;
    color: var(--text-on-navy);
    font: inherit;
    font-weight: 600;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    min-width: 30px;
}

.sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.sub-list[hidden] {
    display: none;
}
.sub-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(233, 241, 248, 0.65);
}

.sub-divider {
    width: 100%;
    height: 1px;
    background: rgba(233, 241, 248, 0.15);
}

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }
}

@media (min-width: 1025px) {
    .nav-panel {
        display: none;
    }
}

/* Hero Section */
.hero,
.home-hero,
.page-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(80vh, 100vh, 100vh);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 56px 24px 64px;
    background: url("/clients/lumico_background_wordless.png") center 35% / cover no-repeat fixed;
    color: #ffffff;
}

.hero::before,
.home-hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 60% at 65% 50%, rgba(5, 16, 26, 0.35) 0%, rgba(5, 16, 26, 0.85) 55%, rgba(5, 16, 26, 0.95) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero::after,
.home-hero::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--overlay) 0%, rgba(0, 0, 0, 0.55) 65%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-background {
    display: none;
}

.hero-overlay {
    display: none;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(158, 195, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(158, 195, 255, 0.12) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.18;
    animation: heroGridDrift 18s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 32px;
    align-items: center;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--text-on-navy);
}

.hero-kicker {
    font-size: 1.1rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--link-on-navy);
    font-weight: 600;
}
.hero-left h1 {
    font-size: clamp(36px, 6.2vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hero-title-line {
    color: var(--text-on-navy);
}
.hero-title-accent {
    color: var(--link-on-navy);
}
.hero-subheading {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
    color: var(--link-on-navy);
    margin: 8px 0 0;
}

.hero-description {
    max-width: 640px;
    font-size: clamp(16px, 1.6vw, 18px);
    line-height: 1.7;
    color: var(--text-on-navy-2);
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.btn-hero-primary,
.btn-hero-secondary {
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-hero-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(21, 37, 64, 0.35);
}

.btn-hero-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 26px 55px rgba(21, 37, 64, 0.45);
    filter: brightness(0.95);
}
.btn-hero-secondary {
    border: 1px solid var(--text-on-navy-2);
    color: var(--text-on-navy);
    background: transparent;
}

.btn-hero-secondary:hover {
    color: var(--link-on-navy);
    background: rgba(21, 37, 64, 0.6);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 26px 50px rgba(31, 42, 57, 0.3);
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-service-card {
    display: flex;
    gap: 1.2rem !important;
    align-items: center;
    padding: 16px;
    min-height: 96px;
    max-width: 520px;
    border-radius: 20px;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 24px 60px rgba(4, 10, 24, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.hero-service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(158, 195, 255, 0.16), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.hero-service-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 32px 70px rgba(0, 219, 255, 0.35);
    border-color: rgba(0, 229, 255, 0.45);
}

.hero-service-card:hover::after {
    opacity: 1;
}
.hero-card-thumb {
    width: 100px !important;
    height: 100px !important;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-thumb img {
    width: 90px !important;
    height: 90px !important;
    object-fit: cover;
    border-radius: 10px;
}

.hero-card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #f8fafc;
}

.hero-card-link {
    font-size: 14px;
    color: rgba(226, 232, 240, 0.75);
}

.hero-service-card:nth-child(1) {
    animation: heroCardFloat 9s ease-in-out infinite;
}

.hero-service-card:nth-child(2) {
    animation: heroCardFloat 9s ease-in-out infinite 1.5s;
}

.hero-service-card:nth-child(3) {
    animation: heroCardFloat 9s ease-in-out infinite 3s;
}

@keyframes heroGridDrift {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-30px, -40px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

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

@media (max-width: 1279px) {
    .hero-service-card {
        min-height: 92px;
    }

    .hero-left h1 {
        font-size: clamp(34px, 5.6vw, 60px);
    }
}

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0;
    }

    .hero-right {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-service-card {
        width: min(320px, 100%);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 88vh;
    }

    .hero-inner {
        padding: 0;
    }

    .hero-left {
        text-align: center;
        align-items: center;
    }

    .hero-right {
        flex-direction: column;
        align-items: center;
    }

    .hero-service-card {
        width: 100%;
        max-width: 340px;
    }
}

/* Engineering Graphics */
.engineering-graphics {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

.circuit-pattern {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10,10 L90,10 L90,30 L70,30 L70,50 L30,50 L30,70 L50,70 L50,90 L10,90 Z" fill="none" stroke="%2306b6d4" stroke-width="0.5" opacity="0.3"/><circle cx="20" cy="20" r="2" fill="%2306b6d4" opacity="0.4"/><circle cx="80" cy="20" r="2" fill="%2306b6d4" opacity="0.4"/><circle cx="20" cy="80" r="2" fill="%2306b6d4" opacity="0.4"/><circle cx="80" cy="80" r="2" fill="%2306b6d4" opacity="0.4"/></svg>') no-repeat center;
    background-size: contain;
    animation: float 6s ease-in-out infinite;
}

.engineering-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.engineering-icons i {
    position: absolute;
    font-size: 2rem;
    color: rgba(6, 182, 212, 0.2);
    animation: engineeringFloat 8s ease-in-out infinite;
}

.engineering-icons i:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.engineering-icons i:nth-child(4) {
    top: 40%;
    right: 35%;
    animation-delay: 6s;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes engineeringFloat {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.2; }
    50% { transform: translateY(-15px) scale(1.1); opacity: 0.4; }
}

.hero-logo {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.1s forwards;
}

/* Hero Logo */
.hero-logo-image {
    height: 120px;
    max-width: 400px;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title-main {
    display: block;
    color: white;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.title-sub {
    display: block;
    background: linear-gradient(135deg, var(--link-on-navy), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--link-on-navy);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-description {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

.btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(21, 37, 64, 0.32);
    filter: brightness(0.95);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #1e293b;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.2s forwards;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1.2rem !important;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.feature-item i {
    font-size: 2rem;
    color: var(--link-on-navy);
    width: 40px;
    text-align: center;
}

.feature-item span {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(158, 195, 255, 0.35), rgba(21, 37, 64, 0.75));
    opacity: 0.12;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

.element-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #64748b;
}

/* About Section */
.about {
    padding: 0;
    background: white;
}

/* About Hero */
.about-hero {
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--brand-navy-600);
    color: var(--text-on-navy);
}

.about-hero-content h2 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-on-navy);
    margin-bottom: 1rem;
}

.about-subtitle {
    font-size: 1.3rem;
    color: var(--link-on-navy);
    font-weight: 600;
    margin: 0;
}

/* About Main Content */
.about-main {
    padding: 4rem 0;
}

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.about-intro h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-intro p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* About Features */
.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-navy-600);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--brand-navy-700));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.feature-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

/* About Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--brand-navy-600);
    color: var(--text-on-navy);
}

.stat-card {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-on-navy-2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Engineering Showcase */
.engineering-showcase {
    margin-top: 4rem;
    text-align: center;
}

.engineering-showcase h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.project-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.project-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-item:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Trust Indicators */
.trust-indicators {
    padding: 4rem 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1;
}
.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.company-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem !important;
    margin-bottom: 2rem;
}
.detail-item {
    display: flex;
    align-items: center;
    gap: 1.2rem !important;
    padding: 1rem;
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    border-radius: 8px;
    border-left: 4px solid var(--brand-navy-600);
    color: var(--text-on-navy);
}
.detail-item i {
    color: var(--accent);
    font-size: 1.2rem;
    width: 20px;
}

.detail-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-on-navy);
    margin-bottom: 0.25rem;
}
.detail-item p {
    font-size: 0.9rem;
    color: var(--text-on-navy-2);
    margin: 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.stat {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    border-radius: 12px;
    transition: transform 0.3s ease;
    color: var(--text-on-navy);
}
.stat:hover {
    transform: translateY(-5px);
}
.stat h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-on-navy-2);
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--link-on-navy);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.image-placeholder p {
    font-size: 1rem;
    color: #64748b;
    margin-top: 1rem;
    font-weight: 500;
}

/* Services Section */
.services {
    position: relative;
    background: url('ee_images/Electrical_Engineering.jpg') center/cover no-repeat fixed;
    color: var(--text-on-navy);
}

.services::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 27, 42, 0.78) 0%, rgba(10, 22, 34, 0.85) 100%);
    pointer-events: none;
}

.services > * {
    position: relative;
    z-index: 1;
}
/* Services Hero Banner */
.services-hero {
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><filter id="blur"><feGaussianBlur stdDeviation="10"/></filter></defs><rect width="100%" height="100%" fill="rgba(255,255,255,0.1)"/><circle cx="200" cy="200" r="100" fill="rgba(255,255,255,0.05)" filter="url(%23blur)"/><circle cx="800" cy="300" r="150" fill="rgba(255,255,255,0.05)" filter="url(%23blur)"/><circle cx="400" cy="700" r="120" fill="rgba(255,255,255,0.05)" filter="url(%23blur)"/></svg>');
    opacity: 0.3;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-on-navy);
}

.services-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-on-navy);
    margin: 0;
    text-shadow: 0 2px 4px rgba(15, 23, 42, 0.35);
}

/* Services Cards */
.services-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem 0;
    align-items: stretch;
}

.service-card {
    background: rgba(20, 24, 32, 0.75);
    padding: 2.5rem 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-align: center;
    color: var(--text-on-navy);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.12);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f97316, #fb923c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: white;
    position: relative;
    transform: rotate(0deg);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-on-navy);
    margin-bottom: 1.5rem;
    margin-top: 0;
    line-height: 1.3;
}

.service-card p {
    color: var(--text-on-navy-2);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.service-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-description {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
    max-width: 75ch;
    margin-left: auto;
    margin-right: auto;
}

.service-description li {
    color: var(--text-on-navy-2);
    line-height: 1.75;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-description li:last-child {
    margin-bottom: 0;
}

.service-description li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
}

.service-btn {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: auto;
    align-self: center;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 37, 64, 0.28);
    filter: brightness(0.95);
    color: #ffffff;
}
  
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--accent), var(--brand-navy-700));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), var(--brand-navy-700));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.service-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Detailed Services */
.detailed-services {
    padding: 6rem 0;
    background: white;
    display: none; /* Hidden by default */
}

.detailed-services.active {
    display: block; /* Show when active */
}

/* Certificate Page */
.certificate-page {
    padding: 8rem 0 4rem;
    background: #f8fafc;
    min-height: 100vh;
}

/* Certificate Section (for overlay) */
.certificate-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #f8fafc;
    z-index: 9999;
    overflow-y: auto;
    display: none; /* Hidden by default */
    padding: 0;
}

.certificate-section.active {
    display: block; /* Show when active */
}

.certificate-header {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10000;
}

.back-to-home-btn {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.back-to-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 37, 64, 0.3);
    filter: brightness(0.95);
}

.back-to-home-btn i {
    font-size: 0.9rem;
}

.certificate-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 20px;
}

.certificate-row {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.certificate-row:hover {
    border-color: var(--link-on-navy);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

.certificate-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.certificate-row:hover .certificate-image img {
    transform: scale(1.05);
}

.certificate-content {
    flex: 1;
}

.certificate-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.8rem;
}

.certificate-content p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.detailed-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.detailed-service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.detailed-service-card:hover {
    border-color: var(--link-on-navy);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

.detailed-service-card .service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.detailed-service-card .service-content {
    flex: 1;
}

.detailed-service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.detailed-service-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* Projects Section */
.projects {
    padding: clamp(48px, 7vw, 80px) 0;
    background: #f8fafc;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 28px);
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: clamp(200px, 22vw, 230px);
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: #f8fafc;
}

.project-image img:not([src]) {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img:not([src])::before {
    content: 'Loading...';
    color: #64748b;
    font-size: 1rem;
}

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

.image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-card:hover .image-overlay {
    opacity: 1;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(29, 78, 216, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::before {
    opacity: 1;
}

.project-content {
    padding: clamp(1.4rem, 3vw, 1.75rem);
}

.project-content h3 {
    font-size: clamp(1.25rem, 2.4vw, 1.45rem);
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.project-content p {
    color: #64748b;
    margin-bottom: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Clients Section */
.clients {
    padding: 4rem 0;
    background: white;
}

.clients-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.client-sector {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.sector-header {
    flex-shrink: 0;
    min-width: 180px;
}

.sector-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    text-align: left;
    position: relative;
    padding-bottom: 0.5rem;
}

.sector-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    border-radius: 1px;
}

.clients-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    flex: 1;
}

.client-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: left;
}

.client-item:hover {
    border-color: var(--link-on-navy);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.1);
}

.client-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(5%);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.client-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.client-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}
.client-item:hover .client-name {
    color: var(--link-on-navy);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: white;
}

.contact-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 24px 16px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

.left-col {
    display: flex;
    flex-direction: column;
}
.left-col .map-card,
.address-card,
.form-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.left-col .map-card {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
}
.map-card iframe {
    width: 100%;
    height: 450px;
    display: block;
    border: 0;
}
.address-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-card {
    padding: 20px;
}
.form-card form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.form-card .form-group {
    grid-column: 1 / -1;
    margin: 0;
}

.form-card .form-group textarea {
    min-height: 160px;
    resize: vertical;
}
.form-card input,
.form-card textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font: inherit;
}
.form-card button.btn {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 12px 20px;
    border-radius: 12px;
}
@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 32px;
    }

    .address-card {
        margin-top: 0;
    }
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .left-col .map-card {
        margin-bottom: 12px;
    }

    .form-card form {
        grid-template-columns: 1fr;
    }

    .form-card button.btn {
        justify-self: stretch;
    }
}

@media (max-width: 768px) {
    .map-card iframe {
        height: 350px;
    }
}

/* Footer */
.footer {
    background: var(--brand-navy-700);
    color: var(--text-on-navy);
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    margin-bottom: 1rem;
}

/* Footer Logo */
.footer-logo-image {
    height: 60px;
    max-width: 250px;
}
.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-on-navy);
}
.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: var(--text-on-navy-2);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--link-on-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--link-on-navy-h);
}

.social-links {
    display: flex;
    gap: 1.2rem !important;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--brand-navy);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

/* Hero Responsive Styles */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.2rem !important;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .hero-features {
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .feature-item i {
        font-size: 1.5rem;
        width: 30px;
    }
    
    .feature-item span {
        font-size: 1rem;
    }
    
    /* Mobile Dropdown Styles */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8fafc;
        border: none;
        border-radius: 0;
        margin: 10px 0;
        padding: 0;
    }
    
    .dropdown-menu a {
        padding: 12px 30px;
        border-bottom: 1px solid #e2e8f0;
        font-size: 1rem;
    }
    
    .dropdown-toggle i {
        display: none;
    }
    
    /* Mobile Certificate Styles */
    .certificate-row {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .certificate-image {
        width: 100px;
        height: 100px;
    }
    
    .certificate-content h3 {
        font-size: 1.1rem;
    }
    
    .certificate-content p {
        font-size: 0.9rem;
    }
    
    /* Full-page Certificate Mobile Styles */
    .certificate-header {
        padding: 0.8rem 0;
    }
    
    .back-to-home-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-left: 15px;
    }
    
    .certificate-list {
        padding: 2rem 15px;
    }
    
    .certificate-row {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .certificate-image {
        width: 100px;
        height: 100px;
    }
}
  

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-top: 1rem;
    }
    
    .hero-logo-image {
        height: 80px;
        max-width: 300px;
    }
    
    .nav-logo .logo-image {
        height: 35px;
        max-width: 120px;
    }
    
    .company-name {
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }

    .hero { padding-top: 80px; }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1.2rem !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .certificate-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Safety policy page */
.policy-content {
    background: linear-gradient(180deg, rgba(12, 27, 42, 1) 0%, rgba(10, 22, 34, 0.92) 100%);
    color: var(--text-on-navy-2);
}

.policy-content p + p {
    margin-top: 12px;
}

.policy-meta {
    margin-top: 18px;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(233, 241, 248, 0.55);
}

.safety-goal {
    background: linear-gradient(180deg, rgba(10, 22, 34, 0.92) 0%, rgba(9, 21, 32, 1) 100%);
    color: var(--text-on-navy);
}

.safety-cta-section {
    background: linear-gradient(90deg, rgba(15, 34, 50, 0.92) 0%, rgba(12, 27, 42, 1) 75%);
}

.safety-cta-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.safety-cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.safety-back-link {
    color: var(--text-on-navy-2);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(233, 241, 248, 0.35);
    color: var(--text-on-navy);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.btn-ghost:hover {
    border-color: var(--link-on-navy);
    color: var(--link-on-navy);
}

@media (max-width: 768px) {
    .safety-cta-content {
        flex-direction: column;
        text-align: center;
    }

    .safety-cta-buttons {
        justify-content: center;
    }
}

/* About section */
.about-section {
    position: relative;
    isolation: isolate;
    padding: clamp(48px, 8vw, 96px) 0;
    background: url("/clients/lumico_background_wordless.png") center / cover no-repeat fixed;
    color: var(--text-on-navy);
}

.about-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 16, 26, 0.55) 0%, rgba(5, 16, 26, 0.45) 45%, rgba(5, 16, 26, 0.65) 100%);
    pointer-events: none;
    z-index: 0;
}

.about-container {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(32px, 7vw, 56px);
    justify-items: center;
    text-align: center;
}

.about-heading h2 {
    font-size: clamp(2.5rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.about-subtitle {
    margin-top: 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.36em;
    color: var(--accent);
    font-weight: 600;
}

.about-description {
    margin-top: 18px;
    color: var(--text-on-navy-2);
    line-height: 1.7;
}

.about-card-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 4vw, 24px);
}

.about-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: clamp(20px, 4vw, 28px);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 45px rgba(5, 16, 26, 0.35);
    backdrop-filter: blur(14px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 60px rgba(5, 16, 26, 0.4);
    border-color: rgba(255, 255, 255, 0.28);
}

.about-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15, 183, 201, 0.2), rgba(15, 183, 201, 0.45));
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 1.6rem;
}

.about-card-text h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 6px;
}

.about-card-text p {
    margin: 0;
    color: rgba(233, 241, 248, 0.82);
}

.about-metrics {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 4vw, 24px);
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 180px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: clamp(28px, 5vw, 36px) clamp(22px, 5vw, 28px);
    box-shadow: 0 28px 55px rgba(5, 16, 26, 0.32);
    backdrop-filter: blur(12px);
}

.metric {
    display: block;
    font-size: clamp(2.6rem, 6vw, 3.4rem);
    font-weight: 800;
    color: #00e0ff;
    text-align: center;
    margin-bottom: 0.75rem;
}

.metric-label {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(233, 241, 248, 0.6);
}

@media (max-width: 960px) {
    .about-card-grid,
    .about-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .about-section {
        background-attachment: scroll;
    }

    .about-card-grid,
    .about-metrics {
        grid-template-columns: 1fr;
    }

    .about-card {
        flex-direction: row;
    }
}

/* Section scale refinements */
.clients {
    padding: clamp(40px, 6vw, 64px) 0;
}

.clients-list {
    gap: clamp(18px, 4vw, 28px);
}

.client-sector {
    gap: 0.75rem;
}
.clients-group {
    gap: clamp(0.55rem, 2vw, 0.9rem);
}

.client-item {
    padding: 0.55rem 0.8rem;
    border-radius: 12px;
}

.client-item img {
    width: 26px;
    height: 26px;
}

.client-name {
    font-size: 0.95rem;
}

.footer {
    padding: clamp(48px, 6vw, 72px) 0 clamp(24px, 5vw, 48px);
}

.footer-content {
    gap: clamp(1.4rem, 4vw, 2rem);
}

.footer-logo-image {
    height: 48px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 0.75rem;
}

.footer-section h3 {
    font-size: 1.3rem;
}

.footer-section p,
.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    padding-top: 0.75rem;
    font-size: 0.9rem;
}

/* Our Major Clients section refinements */
#clients {
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(6, 18, 30, 0.78) 0%, rgba(6, 18, 30, 0.86) 100%),
        url('/clients/clients_on_table.jpg') center / cover no-repeat fixed;
    color: #eaf3f8;
}

#clients .section-header h2,
#clients .section-header p {
    color: #eaf3f8;
}

#clients .section-header p {
    opacity: 0.88;
}

#clients .client-sector {
    background: rgba(9, 22, 34, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: clamp(20px, 4vw, 28px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(8px);
}

#clients .clients-group {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.6rem, 2.5vw, 1rem);
    margin-top: clamp(14px, 3vw, 20px);
}

#clients .client-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    color: #0a1a2f;
}

#clients .client-item img {
    max-height: 42px;
    max-width: 72px;
    filter: none;
    opacity: 1;
}

#clients .client-name {
    font-weight: 600;
    color: #0b1b2a;
}

#clients .clients-group + .clients-group {
    margin-top: clamp(10px, 2vw, 14px);
}

@media (max-width: 768px) {
    #clients {
        background-attachment: scroll;
    }

    #clients .client-sector {
        padding: clamp(18px, 6vw, 24px);
    }

    #clients .clients-group {
        justify-content: center;
    }

    #clients .client-item {
        padding: 0.6rem 0.85rem;
        font-size: 0.9rem;
    }
}

/* Major Clients: category title color tweaks */
#clients .section-title,
#clients .section-header,
#clients .section-header h2,
#clients .sector-title,
#clients .client-category-title,
#clients .client-section-title,
#clients h3 {
    color: #fff !important;
}

#clients .title-underline {
    background-color: #fff !important;
}

#clients .client-logo,
#clients .client-badge,
#clients .client-pill {
    filter: none;
    opacity: 1;
}

/* ============================================
   MOBILE VIEW FIXES - ONLY FOR SCREENS ≤ 768px
   ============================================ */
@media (max-width: 768px) {
    /* PART 1: Our Services Section - Mobile - Stack Cards Vertically */
    #services .services-cards,
    .services .services-cards,
    .services-cards {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1.5rem !important;
        padding: 2rem 0 !important;
        overflow-x: hidden !important;
        width: 100% !important;
        grid-template-columns: none !important;
        grid: none !important;
    }

    #services .service-card,
    .services .service-card,
    .service-card {
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 2rem 1.5rem !important;
        margin: 0 !important;
        margin-bottom: 1.5rem !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        float: none !important;
        clear: both !important;
    }

    .service-card:last-child {
        margin-bottom: 0 !important;
    }

    /* Ensure container doesn't cause horizontal overflow */
    #services .container,
    .services .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .service-card-content {
        width: 100%;
        box-sizing: border-box;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .service-card h3 {
        font-size: 1.3rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        word-wrap: break-word;
        text-align: center;
    }

    .service-card p {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: center;
        flex: 1;
    }

    .service-btn {
        width: 100%;
        max-width: 280px;
        margin: 1.5rem auto 0 auto;
        display: block;
        box-sizing: border-box;
        text-align: center;
    }

    /* PART 2: Our Projects Section - Mobile */
    .projects-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem;
        overflow-x: hidden;
        width: 100%;
    }

    .project-card {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 0 1.5rem 0;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }

    .project-card:last-child {
        margin-bottom: 0;
    }

    .project-image {
        width: 100%;
        height: 220px;
        box-sizing: border-box;
        flex-shrink: 0;
    }

    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .project-content {
        padding: 1.5rem;
        box-sizing: border-box;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .project-content h3 {
        font-size: 1.2rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
        word-wrap: break-word;
    }

    .project-content p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        word-wrap: break-word;
    }

    .project-tags {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* PART 3: Mobile Menu / Navbar Fixes - Keep navbar visible */
    .navbar {
        display: block !important;
        visibility: visible !important;
    }

    .nav-toggle {
        display: flex !important;
    }

    .nav-panel {
        /* Full-screen mobile menu overlay, scrollable if needed */
        position: fixed !important;
        inset: 0 0 0 0 !important;
        width: 100% !important;
        max-width: none !important;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 9999 !important;       /* absolutely on top of everything */
        overflow-y: auto;
    }

    .nav-panel.open,
    body.nav-open .nav-panel {
        transform: translateX(0);
    }

    body.nav-open {
        overflow: hidden !important;
    }

    .nav-list {
        padding: 24px 20px;
    }

    .nav-list a {
        padding: 14px 16px;
        font-size: 1rem;
        display: block;
        border-radius: 8px;
        transition: background-color 0.2s ease;
    }

    .nav-list a:hover,
    .nav-list a:focus {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .sub-list {
        padding-left: 1rem;
        margin-top: 8px;
    }

    .sub-list a {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    /* PART 4: General Mobile Layout Fixes */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }

    /* Prevent horizontal overflow and ensure a continuous dark base background on mobile */
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        background-color: var(--brand-navy);
    }

    html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    /* Ensure main containers don't overflow */
    main,
    .container {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* Ensure sections don't overlap, but avoid extra gaps between backgrounds */
    section {
        margin-bottom: 0;
        overflow-x: hidden;
    }

    /* Allow wide elements to wrap if too wide */
    img,
    video,
    iframe,
    table {
        max-width: 100%;
        height: auto;
    }

    /* Improve text readability on mobile */
    .service-card p,
    .project-content p {
        line-height: 1.7;
    }

    /* Fix any grid layouts that might be cramped */
    .detailed-services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    /* Ensure all cards and containers use border-box */
    .service-card,
    .project-card,
    .service-card-content,
    .project-content,
    .project-image {
        box-sizing: border-box;
    }
}

/* ==========================================================
   Global Navigation Overrides (kept last to ensure priority)
   ========================================================== */
body {
    padding-top: var(--header-h, var(--nav-offset, 80px)) !important;
}

.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000 !important;
}

.nav-menu {
    display: flex !important;
    align-items: center;
    gap: 1.2rem !important;
}

body.nav-open nav[aria-label="Breadcrumb"],
body.nav-open .policy-breadcrumb {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Ensure breadcrumb is hidden on safety-policy page when mobile menu is open */
@media (max-width: 768px) {
    body.nav-open #safety-policy .policy-breadcrumb,
    body.nav-open #safety-policy .container > nav[aria-label="Breadcrumb"],
    body.nav-open header.page-hero .policy-breadcrumb {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Make navbar non-sticky on mobile - it should scroll away with the page */
    body {
        padding-top: 0 !important;
    }

    .navbar {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
    }
}

@media (min-width: 769px) {
    .nav-toggle {
        display: none !important;
    }

    .nav-menu {
        flex-direction: row !important;
        justify-content: flex-end;
        position: static !important;
        width: auto !important;
        padding: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        background: transparent !important;
        box-shadow: none !important;
    }
}

@media (max-width: 768px) {
    .nav-container {
        min-height: 72px !important;
        overflow: visible !important;
    }

    .nav-toggle {
        display: inline-flex !important;
        margin-left: auto !important;
        z-index: 1200 !important;
    }

    .nav-toggle span {
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    body.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    body.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 5rem 1.5rem 2rem !important;
        background: #0d1b2a !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 1.25rem !important;
        z-index: 1100 !important;
        transform: translateY(-100%) !important;
        transition: transform 0.25s ease !important;
        overflow-y: auto !important;
    }

    body.nav-open .nav-menu {
        transform: translateY(0) !important;
    }

    .nav-menu > li {
        width: 100% !important;
        text-align: center;
    }

    .nav-menu > li > a,
    .nav-menu > li > button {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        padding: 0.75rem 0;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        width: 100% !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-top: 0 !important;
    }

    .dropdown-menu li + li {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .dropdown-menu a {
        padding: 0.5rem 0;
    }
}

.metric-text-compact {
    font-size: 2rem;      /* smaller than the normal .metric (e.g. 3rem) */
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

.metric-cidb {
    opacity: 0;
    transform: translateY(10px);
}

.about-metrics.visible .metric-cidb {
    animation: cidbFadeIn 1s ease-out forwards;
    animation-delay: 0.4s; /* slightly after the numeric counters */
}

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

/* Hero Service Card Image Size Overrides */
.hero-service-card img,
.service-card-icon img,
.service-card img {
    width: 90px !important;
    height: 90px !important;
    object-fit: cover;
    border-radius: 10px;
}

.hero-service-icon,
.service-card-icon {
    width: 100px !important;
    height: 100px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}