html {
    scroll-behavior: smooth;
}

body {
    color: #263238;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

section {
    scroll-margin-top: 96px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: inherit;
    letter-spacing: 0;
    line-height: 1.12;
}

h1,
h2,
.display-4,
.display-5 {
    text-wrap: balance;
}

p,
li {
    text-wrap: pretty;
}

.display-2 {
    font-size: clamp(3rem, 6vw, 5.75rem);
}

.display-4 {
    font-size: clamp(2.35rem, 4vw, 3.65rem);
}

.display-5 {
    font-size: clamp(1.95rem, 3vw, 2.85rem);
}

.lead,
.fs-4 {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem) !important;
    line-height: 1.65;
}

main > section:not(.hero-carousel-section) {
    padding-block: clamp(3.75rem, 7vw, 5.75rem) !important;
    margin-bottom: 0 !important;
}

main > section > .container {
    max-width: 1160px;
}

main > section h2,
main > section .display-5 {
    margin-bottom: clamp(1rem, 2vw, 1.65rem) !important;
}

main > section h2 + p,
main > section .display-5 + p,
main > section .display-4 + p {
    max-width: 780px;
    margin-inline: auto;
}

.services-hero-section,
.hero-section:not(.hero-carousel-section) {
    min-height: clamp(300px, 36vh, 420px) !important;
    display: flex;
    align-items: center;
}

.services-hero-section .container,
.hero-section:not(.hero-carousel-section) .container {
    max-width: 980px;
}

.services-hero-section p,
.hero-section:not(.hero-carousel-section) p {
    max-width: 760px;
}

.btn {
    --bs-btn-padding-x: 1.45rem;
    --bs-btn-padding-y: 0.82rem;
    --bs-btn-font-size: 1rem;
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-weight: 700;
    gap: 0.45rem;
    justify-content: center;
    line-height: 1.2;
    min-height: 48px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-lg {
    --bs-btn-padding-x: clamp(1.55rem, 3vw, 2.35rem);
    --bs-btn-padding-y: 0.95rem;
    --bs-btn-font-size: 1.03rem;
    min-height: 54px;
}

.btn-lg.px-5 {
    padding-inline: clamp(1.55rem, 3vw, 2.35rem) !important;
}

.btn-lg.py-3 {
    padding-block: 0.95rem !important;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.card {
    border-radius: 1rem !important;
}

.card-body {
    padding: clamp(1.15rem, 2.5vw, 1.65rem);
}

/* Glass Effect & Hover for Expertise Cards */
.our-expertise-section .card {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(7px) saturate(140%);
    -webkit-backdrop-filter: blur(7px) saturate(140%);
    border: 1px solid rgba(200, 200, 200, 0.2);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 6px 24px 0 rgba(80, 80, 100, 0.08);
}

.our-expertise-section .card:hover {
    background: rgba(240, 240, 240, 0.7);
    box-shadow: 0 8px 32px 0 rgba(80, 80, 100, 0.16);
    transform: translateY(-4px) scale(1.025);
    cursor: pointer;
}

/* Stagger content fade-in per slide */
.carousel-item .container>* {
    opacity: .5;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(.33, 1, .68, 1), transform 0.8s cubic-bezier(.33, 1, .68, 1);
}

.carousel-item.active .container>* {
    opacity: 1;
    transform: none;
}

.carousel-item.active .container>*:nth-child(1) {
    transition-delay: 0.2s;
}

.carousel-item.active .container>*:nth-child(2) {
    transition-delay: 0.4s;
}

.carousel-item.active .container>*:nth-child(3) {
    transition-delay: 0.6s;
}

/* Hero background image styles */
.hero-carousel-section {
    min-height: clamp(560px, 78vh, 820px);
    width: 100%;
    overflow: hidden;
    background: #111827;
}

.hero-carousel-section .carousel,
.hero-carousel-section .carousel-inner,
.hero-carousel-section .carousel-item {
    min-height: clamp(560px, 78vh, 820px);
}

.hero-carousel-section .carousel-item {
    position: relative;
    isolation: isolate;
}

.hero-bg-img {
    object-fit: cover;
    object-position: center;
    height: 100%;
    width: 100%;
    min-height: clamp(560px, 78vh, 820px);
    min-width: 100%;
    transition: transform 7s cubic-bezier(.19, 1, .22, 1), filter 2s;
    filter: brightness(0.82) contrast(1.06) saturate(1.05);
    z-index: 1;
}

.hero-carousel-section .hero-overlay {
    background:
        linear-gradient(90deg, rgba(3, 7, 18, 0.72), rgba(3, 7, 18, 0.38) 52%, rgba(3, 7, 18, 0.68)),
        linear-gradient(0deg, rgba(3, 7, 18, 0.48), rgba(3, 7, 18, 0.08) 45%, rgba(3, 7, 18, 0.42));
    z-index: 2;
}

.hero-carousel-section .container {
    position: relative;
    z-index: 3;
    min-height: clamp(560px, 78vh, 820px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: clamp(4.5rem, 8vw, 6.5rem);
    padding-bottom: clamp(4.5rem, 8vw, 6.5rem);
}

.hero-carousel-section .hero-content {
    max-width: 980px;
    margin-inline: auto;
}

.hero-bg-img.animated {
    transform: scale(1.045);
    filter: brightness(0.88) contrast(1.08) saturate(1.08);
}

.hero-carousel-section h1 {
    max-width: 11ch;
    margin-inline: auto;
    line-height: 0.95;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.55);
}

.hero-carousel-section p {
    max-width: 680px;
    margin-inline: auto;
}

.hero-carousel-section .btn-lg {
    min-width: 190px;
}

.hero-carousel-section .btn {
    border-radius: 999px;
}

.hero-carousel-section .carousel-control-prev,
.hero-carousel-section .carousel-control-next {
    width: 4.75rem;
}

.hero-carousel-section .carousel-control-prev-icon,
.hero-carousel-section .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background-size: 55%;
    background-color: rgba(255, 205, 57, 0.95);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.25);
}

.hero-carousel-section .carousel-indicators {
    gap: 0.55rem;
    margin-bottom: 2rem;
}

.hero-carousel-section .carousel-indicators [data-bs-target] {
    width: 0.78rem;
    height: 0.78rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.88);
    background-color: transparent;
    opacity: 1;
}

.hero-carousel-section .carousel-indicators .active {
    width: 2.4rem;
    border-radius: 999px;
    background-color: #ffcd39;
    border-color: #ffcd39;
}

/* Glass effect for project cards */
.projects-section .card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px) saturate(150%);
    -webkit-backdrop-filter: blur(6px) saturate(150%);
    border: 1px solid rgba(180, 180, 180, 0.17);
    box-shadow: 0 6px 24px 0 rgba(80, 80, 100, 0.08);
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}

.projects-section .project-card {
    overflow: hidden;
    position: relative;
}

.projects-section .card:hover {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 48px rgba(38, 70, 83, 0.18);
    transform: translateY(-7px);
    cursor: pointer;
}

.projects-section .row.mb-5,
.our-expertise-section h2.mb-5 {
    margin-bottom: clamp(2rem, 4vw, 3rem) !important;
}

.projects-section .card-body {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-card-media {
    background: #111827;
    overflow: hidden;
    position: relative;
}

.project-card-media::after {
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.48));
    content: "";
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: opacity 0.28s ease;
}

.project-card:hover .project-card-media::after {
    opacity: 1;
}

.project-img-hover {
    aspect-ratio: 16 / 11;
    height: auto;
    width: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(.19, 1, .22, 1), filter 0.3s ease;
}

.projects-section .card:hover .project-img-hover {
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.06);
    z-index: 1;
}

.project-view-btn {
    align-items: center;
    background: rgba(255, 205, 57, 0.96);
    border: 0;
    border-radius: 999px;
    bottom: 1rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    color: #111827;
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 800;
    gap: 0.4rem;
    min-height: 40px;
    opacity: 0;
    padding: 0.55rem 0.95rem;
    position: absolute;
    right: 1rem;
    transform: translateY(8px);
    transition: opacity 0.28s ease, transform 0.28s ease, background-color 0.2s ease;
    z-index: 2;
}

.project-card:hover .project-view-btn,
.project-view-btn:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

.project-view-btn:hover {
    background: #fff;
}

.project-type {
    align-self: flex-start;
    background: rgba(255, 205, 57, 0.24);
    border: 1px solid rgba(255, 205, 57, 0.5);
    border-radius: 999px;
    color: #264653;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 0.45rem 0.68rem;
    text-transform: uppercase;
}

.project-title {
    color: #0d6efd;
    font-size: 1.22rem;
    font-weight: 800;
    margin: 0;
}

.project-card .card-text {
    color: #5f6f78;
    margin: 0;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: auto;
}

.project-meta span {
    align-items: center;
    background: rgba(13, 110, 253, 0.08);
    border-radius: 999px;
    color: #264653;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 700;
    gap: 0.35rem;
    line-height: 1;
    padding: 0.5rem 0.7rem;
}

.project-gallery-section {
    position: relative;
}

.project-gallery-section .lead {
    max-width: 790px;
}

.gallery-category-carousel {
    align-items: center;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin-bottom: 1.5rem;
}

.gallery-toolbar {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.65rem;
    overflow-x: auto;
    padding: 0.2rem 0.1rem 0.45rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.gallery-nav {
    align-items: center;
    aspect-ratio: 1;
    background: #ffcd39;
    border: 0;
    border-radius: 999px;
    color: #111827;
    display: inline-flex;
    font-size: 1.1rem;
    justify-content: center;
    min-width: 44px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
    background: #0d6efd;
    color: #fff;
    transform: translateY(-2px);
}

.gallery-filter {
    background: rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.18);
    border-radius: 999px;
    color: #264653;
    font-weight: 800;
    flex: 0 0 auto;
    line-height: 1;
    min-height: 42px;
    padding: 0.7rem 1rem;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gallery-filter:hover,
.gallery-filter:focus-visible,
.gallery-filter.active {
    background: #ffcd39;
    color: #111827;
    transform: translateY(-2px);
}

.gallery-group-heading {
    border-left: 5px solid #ffcd39;
    margin: 0 auto 1.4rem;
    max-width: 790px;
    padding: 0.15rem 0 0.15rem 1rem;
}

.gallery-kicker {
    color: #0d6efd;
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.gallery-group-heading h3 {
    color: #111827;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 900;
    margin: 0 0 0.25rem;
}

.gallery-group-heading p {
    color: #5f6f78;
    margin: 0;
}

.gallery-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-item {
    aspect-ratio: 4 / 3;
    background: #111827;
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 14px 34px rgba(38, 70, 83, 0.13);
    cursor: pointer;
    display: block;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.gallery-item img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(.19, 1, .22, 1), filter 0.3s ease;
    width: 100%;
}

.gallery-item::after {
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.62));
    content: "";
    inset: 0;
    position: absolute;
}

.gallery-caption {
    align-items: center;
    background: rgba(255, 205, 57, 0.96);
    border-radius: 999px;
    bottom: 0.9rem;
    color: #111827;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 800;
    left: 0.9rem;
    line-height: 1;
    max-width: calc(100% - 1.8rem);
    padding: 0.55rem 0.78rem;
    position: absolute;
    z-index: 1;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.06);
}

.gallery-item:focus-visible {
    outline: 3px solid #ffcd39;
    outline-offset: 4px;
}

.project-highlight-section .rounded-4,
.our-story-section .rounded-4,
.contact-map-section .card,
.contact-info-section .card {
    border-radius: 1rem !important;
}

.project-highlight-section img,
.our-story-section img,
.our-services-section img {
    aspect-ratio: 16 / 11;
    max-height: none !important;
    object-fit: cover;
}

.project-highlight-section .site-work-photo {
    aspect-ratio: 4 / 5;
    max-height: 620px !important;
    min-height: 440px;
    object-position: center top;
}

.project-highlight-section .lead,
.about-hero-section .lead,
.our-services-section p {
    max-width: 720px;
}

.our-expertise-section .card {
    min-height: 218px;
}

.service-icon {
    align-items: center;
    background:
        linear-gradient(145deg, rgba(255, 205, 57, 0.2), rgba(255, 255, 255, 0.96)),
        radial-gradient(circle at 70% 18%, rgba(13, 110, 253, 0.12), transparent 36%);
    border: 1px solid rgba(13, 110, 253, 0.12);
    border-radius: 1.15rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 26px rgba(38, 70, 83, 0.08);
    color: #0d6efd;
    display: inline-flex;
    height: 4.4rem;
    justify-content: center;
    margin-inline: auto;
    padding: 0.85rem;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
    width: 4.4rem;
}

.service-icon svg {
    display: block;
    fill: none;
    height: 100%;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3.2;
    width: 100%;
}

.our-expertise-section .card:hover .service-icon {
    background:
        linear-gradient(145deg, #ffcd39, #fff4c2),
        radial-gradient(circle at 70% 18%, rgba(13, 110, 253, 0.16), transparent 36%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 18px 34px rgba(38, 70, 83, 0.14);
    color: #111827;
    transform: translateY(-3px);
}

.our-expertise-section .card h5 {
    font-size: 1.05rem;
    line-height: 1.25;
}

.cta-banner-section {
    min-height: clamp(340px, 42vh, 480px);
    display: flex;
    align-items: center;
}

.cta-banner-section h2 {
    font-size: clamp(2.15rem, 4vw, 3.45rem) !important;
}

.cta-banner-section p {
    max-width: 780px;
    margin-inline: auto;
}

.contact-info-section {
    background: #fff;
}

.contact-info-section .card {
    min-height: 248px;
}

.contact-map-section .card {
    overflow: hidden;
}

.whatsapp-cta-card {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 250, 0.94)),
        radial-gradient(circle at top right, rgba(37, 211, 102, 0.16), transparent 36%);
}

.whatsapp-kicker {
    align-items: center;
    color: #128c4a;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 900;
    gap: 0.45rem;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.whatsapp-kicker i {
    color: #25D366;
    font-size: 1.1rem;
}

.whatsapp-tip-list {
    display: grid;
    gap: 0.8rem;
    list-style: none;
    margin: 0 0 1.35rem;
    padding: 0;
}

.whatsapp-tip-list li {
    align-items: flex-start;
    background: rgba(13, 110, 253, 0.06);
    border: 1px solid rgba(13, 110, 253, 0.1);
    border-radius: 0.9rem;
    color: #4e5f68;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: auto 1fr;
    line-height: 1.45;
    padding: 0.8rem 0.9rem;
}

.whatsapp-tip-list i {
    align-items: center;
    background: rgba(255, 205, 57, 0.35);
    border-radius: 999px;
    color: #111827;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.download-profile-section .bi {
    color: #0d6efd;
}

footer {
    line-height: 1.55;
}

.navbar {
    min-height: 92px;
}

.navbar-brand {
    gap: 0.7rem;
    white-space: normal;
}

.navbar-brand .text-warning {
    font-size: clamp(1.25rem, 2vw, 1.9rem) !important;
}

.nav-link {
    line-height: 1.2;
}

/* Card text styles */
.card-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    main > section:not(.hero-carousel-section) {
        padding-block: 3.35rem !important;
    }

    .hero-carousel-section,
    .hero-carousel-section .carousel,
    .hero-carousel-section .carousel-inner,
    .hero-carousel-section .carousel-item,
    .hero-carousel-section .container,
    .hero-bg-img {
        min-height: 660px;
    }

    .hero-carousel-section h1 {
        max-width: 12ch;
    }

    .our-expertise-section .card {
        min-height: 198px;
    }

    .contact-info-section .card {
        min-height: 220px;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 0.98rem;
    }

    main > section:not(.hero-carousel-section) {
        padding-block: 2.8rem !important;
    }

    .container {
        padding-inline: 1.1rem;
    }

    .hero-carousel-section,
    .hero-carousel-section .carousel,
    .hero-carousel-section .carousel-inner,
    .hero-carousel-section .carousel-item,
    .hero-carousel-section .container,
    .hero-bg-img {
        min-height: 600px;
    }

    .hero-carousel-section h1 {
        font-size: 2.65rem;
    }

    .hero-carousel-section .carousel-control-prev,
    .hero-carousel-section .carousel-control-next {
        width: 3.5rem;
    }

    .btn,
    .btn-lg {
        min-height: 50px;
        width: 100%;
    }

    .hero-carousel-section .btn,
    .cta-banner-section .btn,
    .download-profile-section .btn {
        width: auto;
    }

    .project-img-hover {
        aspect-ratio: 4 / 3;
    }

    .project-highlight-section .site-work-photo {
        aspect-ratio: 3 / 4;
        max-height: none !important;
        min-height: auto;
    }

    .our-expertise-section .card,
    .contact-info-section .card {
        min-height: auto;
    }

    .gallery-toolbar {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        flex-wrap: nowrap;
    }

    .gallery-filter {
        flex: 0 0 auto;
    }

    .gallery-item {
        aspect-ratio: 4 / 5;
    }
}
