:root {
    --primary: #0B4EA2;
    --primary-dark: #06346d;
    --accent: #E31E24;
    --dark: #101828;
    --text: #475467;
    --muted: #667085;
    --light: #F5F7FA;
    --line: #E5EAF0;
    --white: #FFFFFF;
    --shadow: 0 24px 70px rgba(16, 24, 40, 0.12);
    --radius: 8px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 118px;
}

body {
    background: var(--white);
    color: var(--dark);
    font-family: "Poppins", Arial, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

body.menu-open,
body.lightbox-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    margin: 0 auto;
    max-width: 1220px;
    width: min(90%, 1220px);
}

.section {
    padding: 104px 0;
}

#progress-bar {
    background: linear-gradient(90deg, var(--accent), var(--primary));
    height: 4px;
    left: 0;
    position: fixed;
    top: 0;
    width: 0;
    z-index: 2000;
}

.site-header {
    left: 0;
    padding: 16px 0;
    position: fixed;
    top: 0;
    transition: 0.25s ease;
    width: 100%;
    z-index: 1000;
}

.site-header.scrolled,
.site-header.menu-active {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 44px rgba(16, 24, 40, 0.1);
    backdrop-filter: blur(18px);
}

.nav-container {
    align-items: center;
    display: flex;
    gap: 28px;
    justify-content: space-between;
}

.brand img {
    height: 58px;
    object-fit: contain;
    width: auto;
}

.nav-links {
    align-items: center;
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    transition: 0.25s ease;
}

.site-header.scrolled .nav-links a,
.site-header.menu-active .nav-links a {
    color: var(--dark);
}

.nav-links a::after {
    background: var(--accent);
    bottom: -9px;
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.25s ease;
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-cta,
.btn {
    align-items: center;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 48px;
    padding: 13px 25px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.nav-cta,
.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 14px 30px rgba(227, 30, 36, 0.24);
}

.nav-cta:hover,
.btn-primary:hover {
    box-shadow: 0 18px 38px rgba(227, 30, 36, 0.32);
    transform: translateY(-3px);
}

.btn-light {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.34);
    color: var(--white);
}

.btn-light:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-outline {
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    box-shadow: 0 16px 34px rgba(11, 78, 162, 0.14);
    transform: translateY(-3px);
}

.menu-toggle {
    align-items: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--primary);
    cursor: pointer;
    display: none;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.home-hero,
.page-hero {
    background: linear-gradient(135deg, rgba(11, 78, 162, 0.96), rgba(6, 52, 109, 0.94)), url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1800&q=80") center/cover;
    color: var(--white);
    overflow: hidden;
    padding: 160px 0 76px;
    position: relative;
}

.home-hero::after,
.page-hero::after {
    background: radial-gradient(circle at 74% 28%, rgba(255, 255, 255, 0.2), transparent 32%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.hero-grid {
    align-items: center;
    display: grid;
    gap: 56px;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    position: relative;
    z-index: 1;
}

.eyebrow,
.section-heading span,
.project-card span,
.solution-copy span,
.before-after-grid span {
    color: var(--accent);
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
    font-size: clamp(2.65rem, 5vw, 5rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 18px 0 22px;
    max-width: 870px;
}

.hero-copy p,
.page-hero p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.1rem;
    max-width: 760px;
}

.hero-actions,
.center-action {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-features span {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    display: inline-flex;
    gap: 9px;
    padding: 10px 14px;
}

.hero-features i {
    color: #71e0a3;
}

.hero-panel {
    min-height: 520px;
    position: relative;
}

.hero-image-card {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transform: rotate(1.4deg);
}

.hero-image-card img {
    height: 520px;
    object-fit: cover;
    width: 100%;
}

.floating-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--dark);
    display: flex;
    gap: 12px;
    max-width: 245px;
    padding: 17px 18px;
    position: absolute;
}

.floating-card i {
    color: var(--primary);
    font-size: 1.4rem;
}

.floating-card.top {
    right: -18px;
    top: 42px;
}

.floating-card.bottom {
    bottom: 58px;
    left: -28px;
}

.hero-stat-strip {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--dark);
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 52px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hero-stat-strip div,
.stat-box {
    background: var(--white);
    padding: 28px;
    text-align: center;
}

.hero-stat-strip strong,
.stat-box strong {
    color: var(--primary);
    display: block;
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
}

.hero-stat-strip span,
.stat-box span {
    color: var(--muted);
    display: block;
    font-weight: 600;
    margin-top: 8px;
}

.section-heading {
    margin: 0 auto 58px;
    max-width: 760px;
    text-align: center;
}

.section-heading h2 {
    color: var(--primary-dark);
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    margin-top: 12px;
}

.section-heading p {
    color: var(--text);
    margin-top: 15px;
}

.services-section,
.values-section,
.portfolio-section,
.contact-section {
    background: var(--white);
}

.service-grid,
.feature-grid,
.value-grid,
.project-grid,
.team-grid,
.contact-card-grid,
.stats-grid {
    display: grid;
    gap: 24px;
}

.service-grid {
    grid-template-columns: repeat(4, 1fr);
}

.service-card,
.feature-card,
.value-card,
.project-card,
.team-card,
.contact-card,
.mission-card,
.contact-form,
.map-panel,
.before-after-grid article {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 44px rgba(16, 24, 40, 0.06);
    overflow: hidden;
    transition: 0.28s ease;
}

.service-card:hover,
.feature-card:hover,
.value-card:hover,
.project-card:hover,
.team-card:hover,
.contact-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-8px);
}

.service-card img,
.project-card img,
.before-after-grid img {
    aspect-ratio: 1.25 / 1;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.service-body,
.project-card div,
.feature-card,
.value-card,
.team-card,
.contact-card {
    padding: 26px;
}

.service-body i,
.feature-card i,
.value-card i,
.contact-card i,
.mission-card i {
    align-items: center;
    background: rgba(11, 78, 162, 0.1);
    border-radius: 999px;
    color: var(--primary);
    display: inline-flex;
    font-size: 1.25rem;
    height: 48px;
    justify-content: center;
    margin-bottom: 18px;
    width: 48px;
}

h2,
h3 {
    color: var(--primary-dark);
    line-height: 1.25;
}

.service-body h3,
.feature-card h3,
.value-card h3,
.project-card h3,
.team-card h3,
.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.service-body p,
.feature-card p,
.value-card p,
.project-card p,
.split-copy p,
.solution-copy p,
.mission-card p,
.contact-card p,
.business-hours p,
.form-note,
.before-after-grid p {
    color: var(--text);
}

.service-body a {
    color: var(--accent);
    display: inline-block;
    font-weight: 800;
    margin-top: 18px;
}

.clients-section,
.why-section,
.mission-section,
.team-section,
.before-after-section {
    background: var(--light);
    padding: 88px 0;
}

.logo-carousel {
    overflow: hidden;
    position: relative;
}

.logo-carousel::before,
.logo-carousel::after {
    content: "";
    height: 100%;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 90px;
    z-index: 2;
}

.logo-carousel::before {
    background: linear-gradient(90deg, var(--light), transparent);
    left: 0;
}

.logo-carousel::after {
    background: linear-gradient(270deg, var(--light), transparent);
    right: 0;
}

.logo-track {
    animation: scrollLogos 28s linear infinite;
    display: flex;
    gap: 18px;
    width: max-content;
}

.client-logo {
    align-items: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    display: flex;
    font-weight: 800;
    height: 92px;
    justify-content: center;
    min-width: 190px;
    padding: 18px;
}

.client-logo img {
    display: block;
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.client-logo.has-image img {
    display: block;
}

.client-logo.has-image span {
    display: none;
}

@keyframes scrollLogos {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.feature-grid {
    grid-template-columns: repeat(4, 1fr);
}

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

.split-grid,
.mission-grid,
.contact-layout,
.before-after-grid {
    align-items: center;
    display: grid;
    gap: 48px;
    grid-template-columns: repeat(2, 1fr);
}

.split-image,
.solution-image {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.split-image img,
.solution-image img {
    height: 520px;
    object-fit: cover;
    width: 100%;
}

.split-copy h2,
.solution-copy h2,
.mission-card h2 {
    font-size: clamp(2rem, 3vw, 3.1rem);
    font-weight: 900;
    margin: 12px 0 18px;
}

.split-copy p + p {
    margin-top: 14px;
}

.split-copy .btn,
.solution-copy .btn {
    margin-top: 26px;
}

.projects-preview,
.solution-list {
    background: var(--white);
}

.project-grid {
    grid-template-columns: repeat(3, 1fr);
}

.project-card {
    position: relative;
}

.project-card img {
    transition: 0.35s ease;
}

.project-card:hover img {
    filter: saturate(1.1);
    transform: scale(1.04);
}

.project-card .lightbox-btn {
    background: transparent;
    border: 0;
    color: var(--accent);
    cursor: pointer;
    font-weight: 800;
    margin-top: 16px;
}

.center-action {
    justify-content: center;
}

.stats-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 82px 0;
}

.stats-grid {
    grid-template-columns: repeat(4, 1fr);
}

.stat-box {
    border-radius: var(--radius);
}

.cta-section {
    background: var(--white);
    padding: 92px 0;
}

.cta-panel {
    align-items: center;
    background: linear-gradient(135deg, rgba(11, 78, 162, 0.96), rgba(6, 52, 109, 0.96)), url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1600&q=80") center/cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--white);
    display: flex;
    gap: 32px;
    justify-content: space-between;
    padding: 56px;
}

.cta-panel h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 900;
    margin: 10px 0;
}

.cta-panel p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 690px;
}

.page-hero {
    min-height: 470px;
    padding-top: 170px;
}

.about-hero { background-image: linear-gradient(135deg, rgba(11, 78, 162, 0.96), rgba(6, 52, 109, 0.9)), url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1800&q=80"); }
.solutions-hero { background-image: linear-gradient(135deg, rgba(11, 78, 162, 0.96), rgba(6, 52, 109, 0.9)), url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=80"); }
.projects-hero { background-image: linear-gradient(135deg, rgba(11, 78, 162, 0.96), rgba(6, 52, 109, 0.9)), url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80"); }
.contact-hero { background-image: linear-gradient(135deg, rgba(11, 78, 162, 0.96), rgba(6, 52, 109, 0.9)), url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1800&q=80"); }

.mission-card {
    padding: 38px;
}

.value-grid {
    grid-template-columns: repeat(3, 1fr);
}

.team-grid {
    grid-template-columns: repeat(4, 1fr);
}

.team-card {
    min-height: 192px;
    padding-top: 28px;
    text-align: center;
}

.team-card::before {
    align-items: center;
    background: linear-gradient(135deg, rgba(11, 78, 162, 0.12), rgba(227, 30, 36, 0.12));
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--primary);
    content: "\f2bd";
    display: inline-flex;
    font-family: "Font Awesome 6 Free";
    font-size: 2rem;
    font-weight: 900;
    height: 82px;
    justify-content: center;
    margin-bottom: 18px;
    width: 82px;
}

.team-card.featured img {
    border-radius: 999px;
    height: 92px;
    margin: 0 auto 18px;
    object-fit: cover;
    width: 92px;
}

.team-card.featured::before {
    display: none;
}

.team-card span {
    color: var(--accent);
    display: block;
    font-weight: 700;
}

.service-nav {
    background: rgba(255, 255, 255, 0.93);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
    position: sticky;
    top: 86px;
    z-index: 100;
    backdrop-filter: blur(14px);
}

.service-nav-inner {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 14px 0;
    scrollbar-width: thin;
}

.service-nav a,
.filter-btn {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--primary-dark);
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 10px 16px;
    transition: 0.25s ease;
}

.service-nav a:hover,
.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.solution-list {
    padding-top: 78px;
}

.solution-row {
    align-items: center;
    display: grid;
    gap: 56px;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 96px;
}

.solution-row.reverse .solution-image {
    order: 2;
}

.solution-copy ul {
    display: grid;
    gap: 10px;
    list-style: none;
    margin-top: 22px;
}

.solution-copy li {
    color: var(--text);
    padding-left: 28px;
    position: relative;
}

.solution-copy li::before {
    color: var(--accent);
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    left: 0;
    position: absolute;
    top: 0;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 42px;
}

.gallery-item.hidden {
    display: none;
}

.before-after-grid article {
    padding-bottom: 28px;
}

.before-after-grid h3,
.before-after-grid p,
.before-after-grid span {
    margin-left: 26px;
    margin-right: 26px;
}

.before-after-grid span {
    margin-top: 26px;
}

.lightbox {
    align-items: center;
    background: rgba(16, 24, 40, 0.86);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 30px;
    position: fixed;
    z-index: 2500;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    border-radius: var(--radius);
    max-height: 78vh;
    max-width: min(980px, 92vw);
    object-fit: contain;
}

.lightbox-caption {
    background: var(--white);
    border-radius: var(--radius);
    bottom: 28px;
    box-shadow: var(--shadow);
    color: var(--dark);
    left: 50%;
    max-width: min(760px, 90vw);
    padding: 16px 20px;
    position: fixed;
    text-align: center;
    transform: translateX(-50%);
}

.lightbox-close {
    align-items: center;
    background: var(--white);
    border: 0;
    border-radius: 999px;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    height: 48px;
    justify-content: center;
    position: fixed;
    right: 24px;
    top: 24px;
    width: 48px;
}

.contact-card-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 46px;
}

.contact-card a {
    color: var(--primary);
    display: block;
    font-weight: 800;
}

.contact-card strong {
    color: var(--accent);
}

.contact-form,
.map-panel {
    padding: 34px;
}

.contact-form h2 {
    font-size: 2.2rem;
    margin: 8px 0 24px;
}

.form-row {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.form-row label {
    color: var(--primary-dark);
    font-weight: 800;
}

.form-row input,
.form-row select,
.form-row textarea {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--dark);
    outline: none;
    padding: 14px 15px;
    transition: 0.2s ease;
    width: 100%;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(11, 78, 162, 0.1);
}

.form-note {
    font-size: 0.88rem;
    margin-top: 14px;
}

.map-placeholder {
    align-items: center;
    background: linear-gradient(135deg, rgba(11, 78, 162, 0.1), rgba(227, 30, 36, 0.08));
    border: 1px dashed rgba(11, 78, 162, 0.32);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 360px;
    padding: 34px;
    text-align: center;
}

.map-placeholder i {
    color: var(--primary);
    font-size: 3rem;
    margin-bottom: 16px;
}

.business-hours {
    margin-top: 24px;
}

.business-hours .btn {
    margin-top: 20px;
}

.site-footer {
    background: #07172e;
    color: rgba(255, 255, 255, 0.78);
    padding-top: 72px;
}

.footer-grid {
    display: grid;
    gap: 36px;
    grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
}

.footer-logo {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 20px;
    max-height: 74px;
    object-fit: contain;
    padding: 8px;
}

.site-footer h3 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.site-footer a {
    display: block;
    margin-bottom: 10px;
    transition: 0.2s ease;
}

.site-footer a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.social-links a {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    display: flex;
    height: 40px;
    justify-content: center;
    margin: 0;
    width: 40px;
}

.footer-quote {
    color: var(--accent);
    font-weight: 800;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 52px;
    padding: 22px;
    text-align: center;
}

.back-to-top {
    align-items: center;
    background: var(--accent);
    border: 0;
    border-radius: 999px;
    bottom: 24px;
    box-shadow: 0 14px 30px rgba(227, 30, 36, 0.3);
    color: var(--white);
    cursor: pointer;
    display: none;
    height: 48px;
    justify-content: center;
    position: fixed;
    right: 24px;
    width: 48px;
    z-index: 900;
}

.back-to-top.visible {
    display: flex;
}

/* ==========================
   TEAM DEPARTMENT SECTION
========================== */

.department-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:30px;
    margin-top:50px;
}

.director-card{
    grid-column:1/-1;
    max-width:450px;
    margin:0 auto 20px;
    text-align:center;
}

.department-card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:30px;
    box-shadow:0 14px 44px rgba(16,24,40,.06);
    transition:.3s ease;
}

.department-card:hover{
    transform:translateY(-6px);
    box-shadow:var(--shadow);
}

.department-head{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:20px;
}

.department-head h3{
    margin:0;
    color:var(--primary-dark);
    font-size:1.3rem;
}

.profile-placeholder{
    width:70px;
    height:70px;
    border-radius:50%;
    background:linear-gradient(135deg,var(--primary),var(--accent));
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.5rem;
    flex-shrink:0;
}

.director-card .profile-placeholder{
    width:100px;
    height:100px;
    margin:0 auto 15px;
    font-size:2rem;
}

.director-card span{
    color:var(--accent);
    font-weight:700;
}

.director-card h3{
    font-size:2rem;
    margin-top:10px;
}

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

.department-card ul li{
    padding:10px 0;
    border-bottom:1px solid #eee;
    font-weight:500;
}

.department-card ul li:last-child{
    border:none;
}
