:root {
    --blue: #29abe2;
    --blue-dark: #1a7ab0;
    --blue-light: #e8f6fd;
    --white: #fff;
    --dark: #0d1b2a;
    --gray: #f5f8fb;
    --text: #2c3e50;
    --text-light: #7a8c9e;
    --transition: all 0.4s cubic-bezier(.25, .8, .25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

/* === NAVIGATION — exactly like reference (transparent start, blur, scrolled state) === */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav .logo-light {
    display: block;
}

nav .logo-dark {
    display: none;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(41, 171, 226, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

nav.scrolled .logo-light {
    display: none;
}

nav.scrolled .logo-dark {
    display: block;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-mark {
    width: 42px;
    height: 42px;
    background: var(--blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(41, 171, 226, 0.4);
}

.nav-logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    line-height: 1.2;
}

.nav-logo-text span {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.75;
}

nav.scrolled .nav-logo-text {
    color: var(--dark);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
    position: relative;
}

nav.scrolled .nav-links a {
    color: var(--text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--blue);
}

nav.scrolled .nav-links a:hover {
    color: var(--blue);
}

.nav-cta {
    background: var(--blue);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(41, 171, 226, 0.35);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(41, 171, 226, 0.45);
    background: var(--blue-dark);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 38px;
    height: 38px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(.25, .8, .25, 1);
}

nav.scrolled .hamburger span {
    background: var(--dark);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* === HERO SECTION with stats at right end === */
.page-hero {
    padding-top: 80px;
    min-height: 52vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--dark);
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?w=1920&q=80') center/cover;
    opacity: 0.15;
}

.page-hero-lines {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(41, 171, 226, 0.05) 80px, rgba(41, 171, 226, 0.05) 81px);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    padding: 60px 5%;
    max-width: 700px;
    margin-left: 5%;
}

.breadcrumb {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.breadcrumb a {
    color: var(--blue);
    text-decoration: none;
}

.page-hero-tag {
    display: inline-block;
    background: rgba(41, 171, 226, 0.2);
    border: 1px solid rgba(41, 171, 226, 0.4);
    color: var(--blue);
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: white;
    line-height: 1.15;
    margin-bottom: 20px;
}

.page-hero h1 em {
    font-style: italic;
    color: var(--blue);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.8;
}

/* STATS BLOCK */
.page-hero-stats {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    gap: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    padding: 2.2rem 2.8rem;
    border-radius: 42px;
    border: 1px solid rgba(41, 171, 226, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.ph-stat {
    text-align: center;
}

.ph-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.ph-stat-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--blue);
    font-weight: 400;
    margin-top: 6px;
}

@media (max-width: 1100px) {
    .page-hero-stats {
        padding: 1.6rem 2rem;
        gap: 1.8rem;
    }

    .ph-stat-num {
        font-size: 1.8rem;
    }
}

@media (max-width: 900px) {
    .page-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-hero-stats {
        position: static;
        transform: none;
        margin: 20px 5% 30px;
        width: fit-content;
        backdrop-filter: blur(16px);
    }
}

/* FILTER — sticky, hides past gallery */
.filter-section {
    padding: 28px 5% 0;
    background: white;
    position: sticky;
    top: 80px;
    z-index: 98;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

.filter-section.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-10px);
}

.filter-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.filter-btn {
    padding: 10px 22px;
    border-radius: 50px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    color: var(--text);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

/* === NEW FLEXBOX GALLERY (replaced masonry with flex) === */
.showcase-section {
    padding: 70px 5% 80px;
    background: var(--gray);
}

.showcase-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.showcase-header {
    margin-bottom: 48px;
}

.showcase-header .section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 12px;
    display: block;
}

.showcase-header .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.showcase-header .section-title em {
    font-style: italic;
    color: var(--blue);
}

.showcase-header p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 14px;
    max-width: 580px;
    line-height: 1.8;
}

/* FLEX GALLERY */
.flex-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.gallery-item {
    flex: 1 1 calc(25% - 18px);
    /* 4 columns by default */
    min-width: 240px;
    /* prevents items from getting too small */
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--dark);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    z-index: 5;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.55s cubic-bezier(.25, .8, .25, 1), filter 0.4s ease;
    filter: brightness(0.92);
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.7);
}

.gallery-item .hover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .hover-overlay {
    opacity: 1;
}

.zoom-icon {
    width: 52px;
    height: 52px;
    background: rgba(41, 171, 226, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.35s cubic-bezier(.25, .8, .25, 1);
}

.gallery-item:hover .zoom-icon {
    transform: scale(1);
}

@media (max-width: 1000px) {
    .gallery-item {
        flex: 1 1 calc(33.333% - 18px);
    }

    /* 3 columns */
}

@media (max-width: 700px) {
    .gallery-item {
        flex: 1 1 calc(50% - 18px);
    }

    /* 2 columns */
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 1 1 100%;
    }

    /* 1 column */
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(13, 27, 42, 0.96);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 1100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-height: 85vh;
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}

.lb-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.lb-btn:hover {
    background: var(--blue);
    border-color: var(--blue);
}

.lb-prev {
    left: -70px;
}

.lb-next {
    right: -70px;
}

.lb-close {
    position: fixed;
    top: 24px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    z-index: 9001;
}

.lb-close:hover {
    background: rgba(220, 60, 60, 0.7);
    border-color: transparent;
}

.lb-counter {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    letter-spacing: 2px;
    background: rgba(13, 27, 42, 0.7);
    padding: 8px 20px;
    border-radius: 50px;
}

.sectors-section {
    padding: 100px 5%;
    background: var(--dark);
}

.sectors-inner {
    max-width: 1300px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.section-title em {
    font-style: italic;
    color: var(--blue);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.sector-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 320px;
    cursor: pointer;
    transition: var(--transition);
}

.sector-card:first-child {
    grid-row: span 2;
    height: auto;
    min-height: 664px;
}

.sector-card:hover {
    transform: scale(1.01);
}

.sector-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.sector-card:hover .sector-img {
    transform: scale(1.06);
}

.sector-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 27, 42, 0.85) 0%, rgba(13, 27, 42, 0.1) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
}

.sector-icon {
    font-size: 1.8rem;
    color: var(--blue);
    margin-bottom: 12px;
}

.sector-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 8px;
}

.sector-overlay p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.clients-section {
    padding: 100px 5%;
}

.clients-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.clients-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 56px;
}

.client-card {
    padding: 28px 20px;
    border-radius: 16px;
    background: var(--gray);
    border: 1px solid rgba(41, 171, 226, 0.1);
    transition: var(--transition);
}

.client-card:hover {
    background: var(--blue-light);
    border-color: rgba(41, 171, 226, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(41, 171, 226, 0.12);
}

.client-name {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 6px;

    & .client-num{
    font-family: auto;
    
}
}



.client-location {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

.client-type {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.7rem;
    color: var(--blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* cta like home banner */
.cta-banner {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    padding: 80px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&q=80') center/cover;
    opacity: 0.1;
}

.cta-banner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 16px;
    position: relative;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-bottom: 36px;
    position: relative;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.btn-white {
    background: white;
    color: var(--blue);
    padding: 15px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    position: relative;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

footer {
    background: var(--dark);
    padding: 60px 5% 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    max-width: 1300px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
    line-height: 1.8;
    margin-top: 16px;
}

.footer-col h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-col ul a:hover {
    color: var(--blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 5%;
    display: flex;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact a {
    color: var(--blue);
    text-decoration: none;
}

.footer-contact i {
    color: var(--blue);
    width: 14px;
    flex-shrink: 0;
}

.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-d1 {
    transition-delay: 0.08s;
}

.reveal-d2 {
    transition-delay: 0.16s;
}

.reveal-d3 {
    transition-delay: 0.24s;
}

@media(max-width:1100px) {
    .lb-prev {
        left: -20px;
    }

    .lb-next {
        right: -20px;
    }
}

@media(max-width:900px) {
    .sectors-grid {
        grid-template-columns: 1fr;
    }

    .sector-card:first-child {
        min-height: 300px;
    }

    .clients-logos {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hamburger {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 8px 0;
        gap: 0;
        border-bottom: 2px solid rgba(41, 171, 226, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        padding: 16px 6%;
        display: block;
        color: var(--text) !important;
        font-size: 1rem;
        font-weight: 500;
        transition: all 0.2s ease;
        background: transparent;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--blue) !important;
        background: var(--blue-light);
        border-left: 4px solid var(--blue);
        padding-left: calc(6% - 4px);
    }

    .nav-links a::after {
        display: none;
    }
}