/* ----- Reset & base setup ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-dark: #000000;
    --color-light: #ffffff;
    --color-primary: #316BB4;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--color-dark);
}

@media (max-width: 768px) {
}

html, body {
    overflow-x: hidden;
}

/* ----- Header / Nav ----- */
header {
    background-color: var(--color-light);
    border-bottom: 2px solid var(--color-primary);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    overflow: visible; /* lets the logo poke outside the bar */
}

main {
    padding-top: 80px;     /* matches your nav height exactly */
}

nav {
    position: relative;
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    height: 80px;        
    padding: 0 40px; /* was 15px, 40px gives more room for the logo to poke out */
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
}

.logo img {
    height: 190px;
    display: block;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-primary);

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--color-light);
        border-top: 2px solid var(--color-primary);
        padding: 20px 0;
        z-index: 150;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

        /* Hidden state by default */
        pointer-events: none;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    .nav-links.open {
        pointer-events: auto;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    /* Individual item drip */
    .nav-links li {
        text-align: center;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        opacity: 0;
        transform: translateY(-16px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    /* Staggered drip delays — one per nav item */
    .nav-links.open li:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
    .nav-links.open li:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.12s; }
    .nav-links.open li:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.19s; }
    .nav-links.open li:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.26s; }
    .nav-links.open li:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.33s; }

    .nav-links a {
        font-size: 18px;
    }


    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
        position: relative;
        min-height: 420px;
    }

    .hero-image {
        position: absolute;
        inset: 0;
        flex: none;
        width: 100%;
        height: 100%;
        z-index: 0;
        overflow: hidden;
    }

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        border-radius: 0;
        transform: none;
        box-shadow: none;
        opacity: 0.18;
    }

    .hero-text {
        position: relative;
        z-index: 1;
        padding: 40px 0 20px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 16px;
        max-width: 100%;
    }


    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px; /* matches your nav height */
        left: 0;
        right: 0;
        background-color: var(--color-light);
        border-top: 2px solid var(--color-primary);
        padding: 20px 0;
        z-index: 150;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        font-size: 18px;
    }
}

/* ----- Hero Section ----- */
.hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 30px 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 20px;
}

/* ----- Animated background squares ----- */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.square {
    position: absolute;
    background-color: var(--color-primary);
    border-radius: 12px;
    animation: floatSquare 16s ease-in-out infinite;
}

.sq1  { width: 70px;  height: 70px;  top: 10%; left: 2%;  opacity: 0.12; animation-delay: 0s; }
.sq2  { width: 130px; height: 130px; top: 65%; left: 8%;  opacity: 0.08; animation-delay: 2s; }
.sq3  { width: 50px;  height: 50px;  top: 15%; left: 20%; opacity: 0.15; animation-delay: 5s; }
.sq4  { width: 100px; height: 100px; top: 75%; left: 30%; opacity: 0.10; animation-delay: 1s; }
.sq5  { width: 65px;  height: 65px;  top: 5%;  left: 45%; opacity: 0.12; animation-delay: 3s; }
.sq6  { width: 120px; height: 120px; top: 60%; left: 50%; opacity: 0.08; animation-delay: 4s; }
.sq7  { width: 80px;  height: 80px;  top: 20%; left: 62%; opacity: 0.14; animation-delay: 2.5s; }
.sq8  { width: 95px;  height: 95px;  top: 70%; left: 72%; opacity: 0.10; animation-delay: 0.5s; }
.sq9  { width: 60px;  height: 60px;  top: 10%; left: 85%; opacity: 0.13; animation-delay: 3.5s; }
.sq10 { width: 110px; height: 110px; top: 55%; left: 92%; opacity: 0.09; animation-delay: 1.5s; }

@keyframes floatSquare {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-25px) rotate(12deg); }
}

.hero-text h1 {
    font-size: 42px;
    color: var(--color-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.btn-primary,
.phone-link {
    background-color: var(--color-primary);
    color: var(--color-light);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.btn-primary:hover,
.phone-link:hover {
    background-color: #244f87;
}

.hero-image {
    flex: 0 0 45%;
    align-self: stretch;
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
    transform: rotate(3deg) scale(1.04);
    box-shadow:
        -8px 0 30px rgba(0, 0, 0, 0.18),
        0 12px 40px rgba(49, 107, 180, 0.25);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: rotate(2deg) scale(1.05);
}

/* Stack vertically on smaller screens */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .hero-image {
        flex: none;
        width: 100%;
        max-width: 320px;
    }

    .hero-text p {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }
}

/* ----- Why Choose Us ----- */
.why-us {
    background-color: #f5f7fa;
    padding: 70px 40px;
}

.why-us-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.why-us-header h2 {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--color-dark);
}

.why-us-header p {
    font-size: 16px;
    color: #555;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-us-card {
    background-color: var(--color-light);
    border-radius: 8px;
    padding: 30px 22px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.why-us-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 18px;
    color: var(--color-primary);
}

.why-us-icon svg {
    width: 100%;
    height: 100%;
}

.why-us-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--color-dark);
}

.why-us-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .why-us-grid {
        grid-template-columns: 1fr;
    }
}

/* ----- CTA Banner ----- */
.cta-banner {
    position: relative;
    overflow: hidden;          /* added */
    background-color: #fff;
    color: #000;
    text-align: center;
    padding: 60px 40px;
}

.cta-content {
    position: relative;        /* added */
    z-index: 1;                 /* added */
    max-width: 650px;
    margin: 0 auto;
}

/* ----- Falling water droplets ----- */
.droplets {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.drop {
    position: absolute;
    top: -40px;
    width: 3px;
    height: 26px;
    background: linear-gradient(
        to bottom,
        rgba(49, 107, 180, 0) 0%,
        rgba(49, 107, 180, 0.85) 55%,
        rgba(255, 255, 255, 0.7) 100%
    );
    border-radius: 0 0 50% 50% / 0 0 70% 70%;
    animation: dropFall linear infinite;
}

@keyframes dropFall {
    0%   { transform: translateY(0); opacity: 0; }
    10%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translateY(450px); opacity: 0; }
}

.d1  { left: 4%;  animation-duration: 2.2s; animation-delay: 0s; }
.d2  { left: 13%; animation-duration: 3s;   animation-delay: 1s;   height: 20px; }
.d3  { left: 21%; animation-duration: 2.6s; animation-delay: 2s; }
.d4  { left: 31%; animation-duration: 3.4s; animation-delay: 0.5s; height: 34px; }
.d5  { left: 43%; animation-duration: 2.4s; animation-delay: 1.8s; }
.d6  { left: 54%; animation-duration: 3.1s; animation-delay: 0.8s; height: 22px; }
.d7  { left: 64%; animation-duration: 2.8s; animation-delay: 2.4s; }
.d8  { left: 74%; animation-duration: 3.6s; animation-delay: 1.2s; height: 30px; }
.d9  { left: 85%; animation-duration: 2.5s; animation-delay: 0.2s; }
.d10 { left: 93%; animation-duration: 3.2s; animation-delay: 1.6s; height: 25px; }

@media (prefers-reduced-motion: reduce) {
    .drop {
        animation: none;
        opacity: 0;
    }
}

.cta-content h2 {
    font-size: 30px;
    margin-bottom: 14px;
}

.cta-content p {
    font-size: 16px;
    color: #cfcfcf;
    margin-bottom: 30px;
}

/* ----- About: Story ----- */
.about-story {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 70px 0 50px;
}

/* ----- About: Values ----- */

.about-story-inner {
    position: relative;
    z-index: 1;
    max-width: 1000px;   /* was 800px */
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.about-story p {
    font-size: 18px;          /* was 17px */
    color: #444;
    line-height: 1.9;          /* was 1.7 — more breathing room between lines */
    letter-spacing: 0.3px;     /* new — slightly opens up the text */
    margin-bottom: 22px;       /* was 18px — more gap between the two paragraphs */
}

/* ----- About Story: background squares ----- */
.story-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.asq1  { width: 50px; height: 50px; top: 10%; left: 3%;  opacity: 0.10; animation-delay: 0s; }
.asq2  { width: 80px; height: 80px; top: 60%; left: 10%; opacity: 0.08; animation-delay: 2s; }
.asq3  { width: 40px; height: 40px; top: 15%; left: 22%; opacity: 0.15; animation-delay: 4s; }
.asq4  { width: 65px; height: 65px; top: 70%; left: 33%; opacity: 0.10; animation-delay: 1s; }
.asq5  { width: 45px; height: 45px; top: 8%;  left: 47%; opacity: 0.12; animation-delay: 3s; }
.asq6  { width: 75px; height: 75px; top: 55%; left: 56%; opacity: 0.08; animation-delay: 1.5s; }
.asq7  { width: 55px; height: 55px; top: 20%; left: 67%; opacity: 0.14; animation-delay: 2.5s; }
.asq8  { width: 60px; height: 60px; top: 68%; left: 78%; opacity: 0.10; animation-delay: 0.5s; }
.asq9  { width: 38px; height: 38px; top: 10%; left: 89%; opacity: 0.13; animation-delay: 3.5s; }
.asq10 { width: 70px; height: 70px; top: 50%; left: 94%; opacity: 0.09; animation-delay: 1.2s; }

.about-values {
    background-color: #f5f7fa;
    padding: 60px 40px;
}

.about-values-header {
    text-align: center;
    margin-bottom: 40px;
}

.about-values-header h2 {
    font-size: 28px;
    color: var(--color-dark);
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.value-card {
    background-color: var(--color-light);
    border-radius: 8px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.value-card h3 {
    color: var(--color-primary);
    font-size: 18px;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* ----- About: Credentials ----- */
.about-credentials {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 40px;
    text-align: center;
}

.about-credentials h2 {
    font-size: 26px;
    margin-bottom: 14px;
    color: var(--color-dark);
}

.about-credentials > p {
    color: #555;
    margin-bottom: 20px;
}

.credentials-list {
    list-style: none;
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    font-weight: 600;
    color: var(--color-primary);
}

@media (max-width: 700px) {
    .about-values-grid {
        grid-template-columns: 1fr;
    }
}

/* ----- Services: Intro ----- */
.services-intro {
    max-width: 700px;
    margin: 0 auto;
    padding: 70px 40px 20px;
    text-align: center;
}

.services-intro h1 {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--color-dark);
}

.services-intro p {
    font-size: 17px;
    color: #444;
    line-height: 1.7;
}

/* ----- Services: Grid ----- */
.services-grid-section {
    position: relative;
    overflow: hidden;
    padding: 50px 40px 70px;
}

.services-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background-color: #f5f7fa;
    border-radius: 8px;
    padding: 30px 24px;
    text-align: center;
}

.service-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 16px;
    color: var(--color-primary);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.service-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* ----- Services Grid: background squares ----- */
.services-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ssq1  { width: 45px; height: 45px; top: 6%;  left: 2%;  opacity: 0.10; animation-delay: 0s; }
.ssq2  { width: 70px; height: 70px; top: 35%; left: 5%;  opacity: 0.08; animation-delay: 1.5s; }
.ssq3  { width: 35px; height: 35px; top: 65%; left: 3%;  opacity: 0.14; animation-delay: 3s; }
.ssq4  { width: 55px; height: 55px; top: 88%; left: 9%;  opacity: 0.10; animation-delay: 2s; }
.ssq5  { width: 90px; height: 90px; top: 15%; left: 14%; opacity: 0.07; animation-delay: 4s; }
.ssq6  { width: 40px; height: 40px; top: 50%; left: 18%; opacity: 0.13; animation-delay: 0.8s; }
.ssq7  { width: 60px; height: 60px; top: 78%; left: 22%; opacity: 0.09; animation-delay: 2.6s; }
.ssq8  { width: 30px; height: 30px; top: 8%;  left: 27%; opacity: 0.15; animation-delay: 1.2s; }
.ssq9  { width: 75px; height: 75px; top: 40%; left: 30%; opacity: 0.08; animation-delay: 3.4s; }
.ssq10 { width: 48px; height: 48px; top: 68%; left: 35%; opacity: 0.11; animation-delay: 0.4s; }
.ssq11 { width: 65px; height: 65px; top: 20%; left: 39%; opacity: 0.09; animation-delay: 2.2s; }
.ssq12 { width: 38px; height: 38px; top: 55%; left: 43%; opacity: 0.13; animation-delay: 4.5s; }
.ssq13 { width: 85px; height: 85px; top: 82%; left: 47%; opacity: 0.07; animation-delay: 1.8s; }
.ssq14 { width: 42px; height: 42px; top: 12%; left: 52%; opacity: 0.12; animation-delay: 3.2s; }
.ssq15 { width: 58px; height: 58px; top: 45%; left: 56%; opacity: 0.10; animation-delay: 0.6s; }
.ssq16 { width: 32px; height: 32px; top: 72%; left: 60%; opacity: 0.14; animation-delay: 2.8s; }
.ssq17 { width: 78px; height: 78px; top: 5%;  left: 64%; opacity: 0.08; animation-delay: 1.4s; }
.ssq18 { width: 46px; height: 46px; top: 60%; left: 68%; opacity: 0.11; animation-delay: 3.8s; }
.ssq19 { width: 36px; height: 36px; top: 30%; left: 72%; opacity: 0.13; animation-delay: 0.2s; }
.ssq20 { width: 68px; height: 68px; top: 85%; left: 76%; opacity: 0.09; animation-delay: 2.4s; }
.ssq21 { width: 50px; height: 50px; top: 18%; left: 80%; opacity: 0.10; animation-delay: 4.2s; }
.ssq22 { width: 40px; height: 40px; top: 48%; left: 84%; opacity: 0.12; animation-delay: 1s; }
.ssq23 { width: 62px; height: 62px; top: 75%; left: 88%; opacity: 0.08; animation-delay: 3.6s; }
.ssq24 { width: 34px; height: 34px; top: 10%; left: 92%; opacity: 0.14; animation-delay: 0.9s; }
.ssq25 { width: 80px; height: 80px; top: 58%; left: 95%; opacity: 0.07; animation-delay: 2s; }
.ssq26 { width: 44px; height: 44px; top: 25%; left: 10%; opacity: 0.11; animation-delay: 3.1s; }
.ssq27 { width: 52px; height: 52px; top: 90%; left: 25%; opacity: 0.09; animation-delay: 1.6s; }
.ssq28 { width: 66px; height: 66px; top: 33%; left: 62%; opacity: 0.10; animation-delay: 2.9s; }
.ssq29 { width: 38px; height: 38px; top: 5%;  left: 42%; opacity: 0.13; animation-delay: 0.3s; }
.ssq30 { width: 56px; height: 56px; top: 95%; left: 58%; opacity: 0.09; animation-delay: 4.8s; }

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

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

/* ----- Projects: Intro ----- */
.projects-intro {
    max-width: 700px;
    margin: 0 auto;
    padding: 70px 40px 20px;
    text-align: center;
}

.projects-intro h1 {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--color-dark);
}

.projects-intro p {
    font-size: 17px;
    color: #444;
    line-height: 1.7;
}

/* ----- Project Detail ----- */
.project-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px 80px;
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

.project-detail h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--color-dark);
}

.project-detail > p {
    font-size: 16px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 30px;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.project-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

@media (max-width: 700px) {
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 450px) {
    .project-gallery {
        grid-template-columns: 1fr;
    }
}

/* ----- Projects listing: background squares ----- */
.projects-grid-section {
    position: relative;
    overflow: hidden;
    padding: 50px 40px 80px;
}

.projects-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.projects-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    display: block;
    background-color: #f5f7fa;
    border-radius: 8px;
    padding: 26px 22px;
    text-decoration: none;
    color: var(--color-dark);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.project-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.project-card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

/* Tablet — 2 columns */
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile — 2 columns, square tiles */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .projects-grid-section {
        overflow: visible;
        padding: 20px 10px 60px;
    }

    .project-card {
        aspect-ratio: 1 / 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 10px 8px;
    }

    .project-card h3 {
        font-size: 12px;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .project-card-link {
        font-size: 11px;
    }
}

.psq1  { width: 50px; height: 50px; top: 5%;  left: 2%;  opacity: 0.10; animation-delay: 0s; }
.psq2  { width: 75px; height: 75px; top: 30%; left: 7%;  opacity: 0.08; animation-delay: 1.2s; }
.psq3  { width: 40px; height: 40px; top: 65%; left: 4%;  opacity: 0.13; animation-delay: 2.8s; }
.psq4  { width: 60px; height: 60px; top: 85%; left: 11%; opacity: 0.09; animation-delay: 0.6s; }
.psq5  { width: 85px; height: 85px; top: 12%; left: 17%; opacity: 0.07; animation-delay: 3.4s; }
.psq6  { width: 45px; height: 45px; top: 48%; left: 22%; opacity: 0.12; animation-delay: 1.8s; }
.psq7  { width: 65px; height: 65px; top: 75%; left: 28%; opacity: 0.09; animation-delay: 4s; }
.psq8  { width: 35px; height: 35px; top: 8%;  left: 35%; opacity: 0.14; animation-delay: 0.4s; }
.psq9  { width: 70px; height: 70px; top: 38%; left: 40%; opacity: 0.08; animation-delay: 2.2s; }
.psq10 { width: 50px; height: 50px; top: 70%; left: 45%; opacity: 0.11; animation-delay: 3.8s; }
.psq11 { width: 80px; height: 80px; top: 18%; left: 50%; opacity: 0.07; animation-delay: 1.4s; }
.psq12 { width: 42px; height: 42px; top: 55%; left: 55%; opacity: 0.12; animation-delay: 0.9s; }
.psq13 { width: 58px; height: 58px; top: 88%; left: 60%; opacity: 0.09; animation-delay: 3.2s; }
.psq14 { width: 38px; height: 38px; top: 10%; left: 66%; opacity: 0.13; animation-delay: 2s; }
.psq15 { width: 72px; height: 72px; top: 42%; left: 71%; opacity: 0.08; animation-delay: 4.4s; }
.psq16 { width: 48px; height: 48px; top: 72%; left: 76%; opacity: 0.11; animation-delay: 0.2s; }
.psq17 { width: 62px; height: 62px; top: 6%;  left: 81%; opacity: 0.09; animation-delay: 3.6s; }
.psq18 { width: 44px; height: 44px; top: 58%; left: 86%; opacity: 0.12; animation-delay: 1.6s; }
.psq19 { width: 55px; height: 55px; top: 28%; left: 91%; opacity: 0.10; animation-delay: 2.6s; }
.psq20 { width: 78px; height: 78px; top: 82%; left: 95%; opacity: 0.07; animation-delay: 4.8s; }
.psq21 { width: 40px; height: 40px; top: 22%; left: 14%; opacity: 0.11; animation-delay: 1s; }
.psq22 { width: 55px; height: 55px; top: 92%; left: 33%; opacity: 0.08; animation-delay: 2.4s; }
.psq23 { width: 68px; height: 68px; top: 35%; left: 62%; opacity: 0.09; animation-delay: 3s; }
.psq24 { width: 36px; height: 36px; top: 3%;  left: 47%; opacity: 0.13; animation-delay: 0.7s; }
.psq25 { width: 82px; height: 82px; top: 60%; left: 88%; opacity: 0.07; animation-delay: 4.2s; }
.psq26 { width: 46px; height: 46px; top: 45%; left: 3%;  opacity: 0.11; animation-delay: 2s; }
.psq27 { width: 60px; height: 60px; top: 95%; left: 20%; opacity: 0.08; animation-delay: 1.5s; }
.psq28 { width: 52px; height: 52px; top: 20%; left: 75%; opacity: 0.10; animation-delay: 3.3s; }
.psq29 { width: 34px; height: 34px; top: 78%; left: 52%; opacity: 0.13; animation-delay: 0.3s; }
.psq30 { width: 66px; height: 66px; top: 50%; left: 97%; opacity: 0.08; animation-delay: 4.6s; }

/* ----- Project detail: background squares ----- */
.project-detail-wrapper {
    position: relative;
    overflow: hidden;
}

.project-detail-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.project-detail {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px 80px;
}

.pdsq1  { width: 55px; height: 55px; top: 2%;  left: 1%;  opacity: 0.10; animation-delay: 0s; }
.pdsq2  { width: 80px; height: 80px; top: 15%; left: 7%;  opacity: 0.08; animation-delay: 1s; }
.pdsq3  { width: 40px; height: 40px; top: 35%; left: 3%;  opacity: 0.13; animation-delay: 2.5s; }
.pdsq4  { width: 65px; height: 65px; top: 55%; left: 9%;  opacity: 0.09; animation-delay: 0.5s; }
.pdsq5  { width: 45px; height: 45px; top: 75%; left: 5%;  opacity: 0.11; animation-delay: 3.2s; }
.pdsq6  { width: 70px; height: 70px; top: 90%; left: 13%; opacity: 0.08; animation-delay: 1.8s; }
.pdsq7  { width: 38px; height: 38px; top: 8%;  left: 20%; opacity: 0.14; animation-delay: 4s; }
.pdsq8  { width: 90px; height: 90px; top: 28%; left: 25%; opacity: 0.06; animation-delay: 0.8s; }
.pdsq9  { width: 50px; height: 50px; top: 50%; left: 19%; opacity: 0.10; animation-delay: 2.8s; }
.pdsq10 { width: 60px; height: 60px; top: 70%; left: 28%; opacity: 0.09; animation-delay: 1.4s; }
.pdsq11 { width: 42px; height: 42px; top: 5%;  left: 35%; opacity: 0.12; animation-delay: 3.6s; }
.pdsq12 { width: 75px; height: 75px; top: 22%; left: 40%; opacity: 0.07; animation-delay: 0.3s; }
.pdsq13 { width: 48px; height: 48px; top: 45%; left: 36%; opacity: 0.11; animation-delay: 2.2s; }
.pdsq14 { width: 58px; height: 58px; top: 65%; left: 43%; opacity: 0.09; animation-delay: 4.4s; }
.pdsq15 { width: 35px; height: 35px; top: 88%; left: 38%; opacity: 0.13; animation-delay: 1.2s; }
.pdsq16 { width: 82px; height: 82px; top: 10%; left: 52%; opacity: 0.07; animation-delay: 3s; }
.pdsq17 { width: 46px; height: 46px; top: 32%; left: 57%; opacity: 0.11; animation-delay: 0.6s; }
.pdsq18 { width: 62px; height: 62px; top: 58%; left: 53%; opacity: 0.09; animation-delay: 4.8s; }
.pdsq19 { width: 40px; height: 40px; top: 80%; left: 60%; opacity: 0.12; animation-delay: 2s; }
.pdsq20 { width: 55px; height: 55px; top: 3%;  left: 67%; opacity: 0.10; animation-delay: 1.6s; }
.pdsq21 { width: 72px; height: 72px; top: 25%; left: 72%; opacity: 0.08; animation-delay: 3.4s; }
.pdsq22 { width: 44px; height: 44px; top: 48%; left: 68%; opacity: 0.12; animation-delay: 0.2s; }
.pdsq23 { width: 68px; height: 68px; top: 72%; left: 75%; opacity: 0.08; animation-delay: 4.2s; }
.pdsq24 { width: 36px; height: 36px; top: 92%; left: 70%; opacity: 0.13; animation-delay: 1.9s; }
.pdsq25 { width: 85px; height: 85px; top: 12%; left: 82%; opacity: 0.07; animation-delay: 3.8s; }
.pdsq26 { width: 50px; height: 50px; top: 38%; left: 87%; opacity: 0.10; animation-delay: 0.9s; }
.pdsq27 { width: 40px; height: 40px; top: 60%; left: 83%; opacity: 0.12; animation-delay: 2.6s; }
.pdsq28 { width: 65px; height: 65px; top: 82%; left: 90%; opacity: 0.08; animation-delay: 4.6s; }
.pdsq29 { width: 38px; height: 38px; top: 6%;  left: 94%; opacity: 0.13; animation-delay: 1.3s; }
.pdsq30 { width: 78px; height: 78px; top: 45%; left: 97%; opacity: 0.07; animation-delay: 3.1s; }

/* ----- Lightbox ----- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 44px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: var(--color-primary);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: var(--color-light);
    font-size: 28px;
    padding: 14px 18px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--color-primary);
}

/* Make gallery images show a pointer so it's clear they're clickable */
.project-gallery img {
    cursor: pointer;
}

/* ----- Contact: Intro ----- */
.contact-intro {
    max-width: 700px;
    margin: 0 auto;
    padding: 70px 40px 20px;
    text-align: center;
}

.contact-intro h1 {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--color-dark);
}

.contact-intro p {
    font-size: 17px;
    color: #444;
    line-height: 1.7;
}

/* ----- Contact: Main layout ----- */
.contact-main {
    display: flex;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 40px 80px;
    align-items: flex-start;
}

.contact-form-wrapper,
.contact-info-wrapper {
    flex: 1;
}

/* ----- Contact: Form ----- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark);
}

.form-group input,
.form-group textarea {
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    color: var(--color-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.contact-form button.btn-primary {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    margin-top: 6px;
}

/* ----- Contact: Info cards + map ----- */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-info-card {
    background-color: #f5f7fa;
    border-radius: 8px;
    padding: 18px 22px;
}

.contact-info-card h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.contact-info-card p,
.contact-info-card a {
    font-size: 16px;
    color: var(--color-dark);
    text-decoration: none;
}

.contact-info-card a:hover {
    color: var(--color-primary);
}

.contact-map {
    border-radius: 8px;
    overflow: hidden;
}

.contact-map iframe {
    display: block;
}

.contact-bg-wrapper {
    position: relative;
    overflow: hidden;
}

.contact-intro,
.contact-main {
    position: relative;
    z-index: 1;
}

.contact-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Row 1 */
.csq1  { top: 5%;  left: 2%;  width: 35px; height: 35px; opacity: 0.13; animation-delay: 0s; }
.csq2  { top: 5%;  left: 12%; width: 55px; height: 55px; opacity: 0.09; animation-delay: 0.5s; }
.csq3  { top: 5%;  left: 22%; width: 42px; height: 42px; opacity: 0.12; animation-delay: 1s; }
.csq4  { top: 5%;  left: 32%; width: 70px; height: 70px; opacity: 0.07; animation-delay: 1.5s; }
.csq5  { top: 5%;  left: 42%; width: 30px; height: 30px; opacity: 0.15; animation-delay: 2s; }
.csq6  { top: 5%;  left: 52%; width: 60px; height: 60px; opacity: 0.08; animation-delay: 2.5s; }
.csq7  { top: 5%;  left: 62%; width: 48px; height: 48px; opacity: 0.11; animation-delay: 3s; }
.csq8  { top: 5%;  left: 72%; width: 80px; height: 80px; opacity: 0.06; animation-delay: 3.5s; }
.csq9  { top: 5%;  left: 82%; width: 38px; height: 38px; opacity: 0.13; animation-delay: 4s; }
.csq10 { top: 5%;  left: 92%; width: 65px; height: 65px; opacity: 0.08; animation-delay: 4.5s; }

/* Row 2 */
.csq11 { top: 25%; left: 7%;  width: 35px; height: 35px; opacity: 0.13; animation-delay: 0.3s; }
.csq12 { top: 25%; left: 17%; width: 55px; height: 55px; opacity: 0.09; animation-delay: 0.8s; }
.csq13 { top: 25%; left: 27%; width: 42px; height: 42px; opacity: 0.12; animation-delay: 1.3s; }
.csq14 { top: 25%; left: 37%; width: 70px; height: 70px; opacity: 0.07; animation-delay: 1.8s; }
.csq15 { top: 25%; left: 47%; width: 30px; height: 30px; opacity: 0.15; animation-delay: 2.3s; }
.csq16 { top: 25%; left: 57%; width: 60px; height: 60px; opacity: 0.08; animation-delay: 2.8s; }
.csq17 { top: 25%; left: 67%; width: 48px; height: 48px; opacity: 0.11; animation-delay: 3.3s; }
.csq18 { top: 25%; left: 77%; width: 80px; height: 80px; opacity: 0.06; animation-delay: 3.8s; }
.csq19 { top: 25%; left: 87%; width: 38px; height: 38px; opacity: 0.13; animation-delay: 4.3s; }
.csq20 { top: 25%; left: 97%; width: 65px; height: 65px; opacity: 0.08; animation-delay: 4.8s; }

/* Row 3 */
.csq21 { top: 45%; left: 2%;  width: 35px; height: 35px; opacity: 0.13; animation-delay: 0.6s; }
.csq22 { top: 45%; left: 12%; width: 55px; height: 55px; opacity: 0.09; animation-delay: 1.1s; }
.csq23 { top: 45%; left: 22%; width: 42px; height: 42px; opacity: 0.12; animation-delay: 1.6s; }
.csq24 { top: 45%; left: 32%; width: 70px; height: 70px; opacity: 0.07; animation-delay: 2.1s; }
.csq25 { top: 45%; left: 42%; width: 30px; height: 30px; opacity: 0.15; animation-delay: 2.6s; }
.csq26 { top: 45%; left: 52%; width: 60px; height: 60px; opacity: 0.08; animation-delay: 3.1s; }
.csq27 { top: 45%; left: 62%; width: 48px; height: 48px; opacity: 0.11; animation-delay: 3.6s; }
.csq28 { top: 45%; left: 72%; width: 80px; height: 80px; opacity: 0.06; animation-delay: 4.1s; }
.csq29 { top: 45%; left: 82%; width: 38px; height: 38px; opacity: 0.13; animation-delay: 4.6s; }
.csq30 { top: 45%; left: 92%; width: 65px; height: 65px; opacity: 0.08; animation-delay: 5.1s; }

/* Row 4 */
.csq31 { top: 65%; left: 7%;  width: 35px; height: 35px; opacity: 0.13; animation-delay: 0.9s; }
.csq32 { top: 65%; left: 17%; width: 55px; height: 55px; opacity: 0.09; animation-delay: 1.4s; }
.csq33 { top: 65%; left: 27%; width: 42px; height: 42px; opacity: 0.12; animation-delay: 1.9s; }
.csq34 { top: 65%; left: 37%; width: 70px; height: 70px; opacity: 0.07; animation-delay: 2.4s; }
.csq35 { top: 65%; left: 47%; width: 30px; height: 30px; opacity: 0.15; animation-delay: 2.9s; }
.csq36 { top: 65%; left: 57%; width: 60px; height: 60px; opacity: 0.08; animation-delay: 3.4s; }
.csq37 { top: 65%; left: 67%; width: 48px; height: 48px; opacity: 0.11; animation-delay: 3.9s; }
.csq38 { top: 65%; left: 77%; width: 80px; height: 80px; opacity: 0.06; animation-delay: 4.4s; }
.csq39 { top: 65%; left: 87%; width: 38px; height: 38px; opacity: 0.13; animation-delay: 4.9s; }
.csq40 { top: 65%; left: 97%; width: 65px; height: 65px; opacity: 0.08; animation-delay: 5.4s; }

/* Row 5 */
.csq41 { top: 85%; left: 2%;  width: 35px; height: 35px; opacity: 0.13; animation-delay: 1.2s; }
.csq42 { top: 85%; left: 12%; width: 55px; height: 55px; opacity: 0.09; animation-delay: 1.7s; }
.csq43 { top: 85%; left: 22%; width: 42px; height: 42px; opacity: 0.12; animation-delay: 2.2s; }
.csq44 { top: 85%; left: 32%; width: 70px; height: 70px; opacity: 0.07; animation-delay: 2.7s; }
.csq45 { top: 85%; left: 42%; width: 30px; height: 30px; opacity: 0.15; animation-delay: 3.2s; }
.csq46 { top: 85%; left: 52%; width: 60px; height: 60px; opacity: 0.08; animation-delay: 3.7s; }
.csq47 { top: 85%; left: 62%; width: 48px; height: 48px; opacity: 0.11; animation-delay: 4.2s; }
.csq48 { top: 85%; left: 72%; width: 80px; height: 80px; opacity: 0.06; animation-delay: 4.7s; }
.csq49 { top: 85%; left: 82%; width: 38px; height: 38px; opacity: 0.13; animation-delay: 5.2s; }
.csq50 { top: 85%; left: 92%; width: 65px; height: 65px; opacity: 0.08; animation-delay: 5.7s; }

@media (max-width: 800px) {
    .contact-main {
        flex-direction: column;
    }
}

/* ----- Contact form error message ----- */
.form-error {
    background-color: #fff0f0;
    border: 1px solid #e0b0b0;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 15px;
    color: #8b0000;
}

.form-error a {
    color: var(--color-primary);
    font-weight: 600;
}

/* ----- Bottom nav bar (mobile only) ----- */
.bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    /* Hide the top nav links on mobile — logo stays visible */
    .nav-links {
        display: none !important;
    }

    /* Show the bottom bar */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--color-light);
        border-top: 2px solid var(--color-primary);
        z-index: 500;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.10);
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px 0;
        text-decoration: none;
        color: #666;
        font-size: 11px;
        font-weight: 600;
        gap: 4px;
        transition: color 0.2s ease;
    }

    .bottom-nav-item svg {
        width: 22px;
        height: 22px;
    }

    .bottom-nav-item:hover,
    .bottom-nav-item.active {
        color: var(--color-primary);
    }

    /* Push page content up so it doesn't hide behind the bar */
    body {
        padding-bottom: 70px;
    }
}

/* ----- Footer ----- */
footer {
    background-color: #244f87;
    color: var(--color-light);
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 40px;
}

.footer-brand {
    flex: 1 1 250px;
    position: relative;   /* added — gives the absolute logo something to anchor to */
    padding-top: 58px;    /* added — reserves space so the slogan doesn't shift */
}

.footer-logo {
    position: absolute;
    top: -100px;            /* added — nudge to taste */
    left: 0;               /* added */
    height: 210px;         /* however big you want now */
}

.footer-slogan {
    color: var(--color-light);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-links,
.footer-contact {
    flex: 1 1 180px;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--color-light);
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
    color: #d8e4f2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-light);
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-bottom {
    background-color: var(--color-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    padding: 18px 0;
    font-size: 14px;
    color: #cfd9e6;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}