/* Apply Inter font */
body {
    font-family: 'Inter', sans-serif;
}

/* Style for the hero section */
.hero-section {
    position: relative;
    background-color: #111827;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.6s ease;
    z-index: 0;
}

.hero-slideshow.is-fading {
    opacity: 0;
}

/* Simple animation for hero text */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text-animate {
    animation: fadeInUp 1s ease-out 0.5s forwards;
    opacity: 0;
    /* Start as invisible */
}

.fade-in-down {
    animation: fadeInDown 1s ease-out forwards;
}

/* Slanted background for the navigation bar */
.slanted-nav {
    position: relative;
    background-color: #1f2937;
    /* The dark color for the right side (gray-800) */
    overflow: hidden;
    /* To contain the pseudo-element */
}

/* Service Card Styles */
.service-card {
    position: relative;
    height: 22rem;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 35px -15px rgba(15, 23, 42, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 45px -18px rgba(15, 23, 42, 0.45);
}

.service-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.55) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card.no-image {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.service-card.no-image::before {
    display: none;
}

.service-card-gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 25%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem 1.5rem 1.5rem;
    z-index: 2;
    backdrop-filter: blur(2px);
}

.service-card-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    z-index: 4;
}

.client-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 15px 35px -20px rgba(15, 23, 42, 0.65);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    min-height: 6rem;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.client-logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px -22px rgba(15, 23, 42, 0.75);
    z-index: 5;
}

.client-logo-card::after {
    content: attr(data-client);
    position: absolute;
    left: 50%;
    top: calc(100% + 0.65rem);
    transform: translate(-50%, -8px);
    padding: 0.45rem 1rem;
    border-radius: 0.9rem;
    background: rgba(30, 41, 59, 0.92);
    color: #f8fafc;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 18px 35px -22px rgba(15, 23, 42, 0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.client-logo-card:hover::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.client-logo {
    max-height: 5rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(0.15) contrast(1.05);
}

/* Gradient Colors */
.gradient-orange {
    background: linear-gradient(180deg, rgba(255, 193, 125, 0.25) 0%, rgba(251, 146, 60, 0.55) 45%, rgba(180, 83, 9, 0.95) 100%);
}

.gradient-slate {
    background: linear-gradient(180deg, rgba(203, 213, 225, 0.25) 0%, rgba(148, 163, 184, 0.55) 45%, rgba(71, 85, 105, 0.95) 100%);
}

.about-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.about-visual-image {
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 30px 60px -35px rgba(15, 23, 42, 0.4);
}

.about-visual-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-visual-caption {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #1f2937;
}

.verified-star-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* Modal Styles */
.modal-backdrop {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.modal-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: min(1344px, 96vw);
    max-height: min(92vh, 1008px);
    overflow-y: auto;
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 40px 90px -35px rgba(15, 23, 42, 0.6);
    transform: translateY(16px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-backdrop.is-active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: rgba(133, 72, 3, 0.8);
    color: white;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 25px -12px rgba(133, 72, 3, 0.8);
    transition: transform 0.2s ease, background 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(250, 119, 11, 0.349);
    transform: translateY(-2px);
}

/* Geotechnical Modal Styles */
.geotech-modal-content {
    width: min(980px, 96vw);
    max-height: min(90vh, 720px);
}

.geotech-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 40px;
}

.geotech-service-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.geotech-service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/soil site/bg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(5px) brightness(0.45) saturate(0.3);
    transform: scale(1.05);
    transform-origin: center;
    z-index: 0;
    pointer-events: none;
}

.geotech-service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 15, 28, 0.35) 0%, rgba(8, 15, 28, 0.58) 100%);
    z-index: 1;
    pointer-events: none;
}

.geotech-service-card:hover {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.geotech-card-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.geotech-icon-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 18px rgba(255, 255, 255, 0.12);
}

.geotech-icon-circle.blue {
    background: #dbeafe;
}

.geotech-icon-circle.orange {
    background: #fed7aa;
}

.geotech-icon-circle.amber {
    background: #fef3c7;
}

.geotech-icon-circle.green {
    background: #d1fae5;
}

.geotech-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.geotech-card-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
    margin-bottom: 20px;
}

.geotech-read-more {
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    color: #ffffff;
    background: transparent;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s ease, color 0.2s ease;
}

.geotech-read-more:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

@media (max-width: 768px) {
    .geotech-cards-grid {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

/* Geotechnical Detail Modal Styles */
.geotech-detail-modal-content {
    width: min(1344px, 96vw);
    max-height: min(92vh, 1008px);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    position: relative;
}

.geotech-detail-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: rgba(133, 72, 3, 0.8);
    color: white;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 25px -12px rgba(133, 72, 3, 0.8);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 10;
    cursor: pointer;
    border: none;
}

.geotech-detail-close-btn:hover {
    background: rgba(250, 119, 11, 0.349);
    transform: translateY(-2px);
}

.geotech-detail-left {
    width: 50%;
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

.geotech-detail-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.geotech-detail-right {
    width: 50%;
    background: #ffffff;
    padding: 24px 32px;
    overflow-y: auto;
    position: relative;
}

.geotech-detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    margin-top: 0;
}

.geotech-detail-intro {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.geotech-detail-section-label {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #0f172a;
    margin-bottom: 8px;
    margin-top: 16px;
}

.geotech-detail-list {
    list-style: decimal;
    padding-left: 20px;
    color: #374151;
}

.geotech-detail-list li {
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 6px;
}

.geotech-detail-subsection {
    font-weight: 600;
    color: #1f2937;
    margin-top: 12px;
    margin-bottom: 6px;
}

@media (max-width: 1024px) {
    .geotech-detail-modal-content {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
    }
    .geotech-detail-left,
    .geotech-detail-right {
        width: 100%;
    }
    .geotech-detail-left {
        min-height: 300px;
    }
    .geotech-detail-right {
        padding: 24px;
    }
}

.kpi-banner {
    position: relative;
    padding: 2.75rem 1.5rem 3.25rem;
    background-color: #2f2f2f;
    background-image:
        linear-gradient(120deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.12) 25%, transparent 25%, transparent 100%),
        linear-gradient(300deg, rgba(0, 0, 0, 0.25) 0%, transparent 60%);
    background-size: 160px 160px, 220px 220px;
    background-position: 0 0, 40px 0;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    font-family: 'Roboto', sans-serif;
}

.kpi-stat {
    position: relative;
}

.kpi-metric {
    font-size: clamp(3rem, 5.6vw, 3.85rem);
    font-weight: 800;
    color: #ff6a00;
}

.kpi-title {
    margin-top: 0.65rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #ff6a00;
}

.kpi-copy {
    margin-top: 0.6rem;
    font-size: 1rem;
    color: #ff6a00;
    max-width: 18rem;
    margin-left: auto;
    margin-right: auto;
}

.kpi-number-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kpi-number-outline {
    display: none;
}

.kpi-number-fill {
    position: relative;
    font-size: clamp(7rem, 14vw, 12rem);
    font-weight: 800;
    line-height: 0.8;
    color: #ff6a00;
    z-index: 1;
}

.kpi-number-plus {
    position: absolute;
    top: 50%;
    left: calc(100% + 0.4rem);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #ff6a00;
    transform: translateY(-50%);
}

.kpi-center-caption {
    margin-top: 1.35rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: #ff6a00;
}

.about-point {
    position: relative;
    padding-left: 2.75rem;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #1f2937;
}

.about-point::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #f97316;
}

.about-point--nested {
    margin-left: 2rem;
}