main {
    display: flex;
    flex-direction: column;
}
body.services-page {
    height: 100vh;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    margin: 0;
}

body.services-page main {
    flex: 1; 
    display: flex;
    flex-direction: column;
}

.services-tital {
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    margin-top: 40px;
    margin-bottom: 16px;
    letter-spacing: 0.2px;
}
.service-description {
    max-width: 60ch; 
        text-align: justify;
        text-justify: inter-character; 
        letter-spacing: 0.5px; 
        word-spacing: -1.5px; 
        font-size: clamp(16px, 1.2vw + 10px, 20px);    
        line-height: 1.5;
        -webkit-hyphens: none;
        hyphens: none;
        word-break: normal; 
        overflow-wrap: anywhere;
        width: 100%;
        max-width: 100%;
        margin-bottom: 25px;
    }
.services-item {
    margin-bottom: 3rem;
}
.services-detail{
    color: var(--text-primary) !important;
}

.vertical-row {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 32px;
    row-gap: 20px;
}
.services-link {
    text-decoration: none;
    display: block;
}

.services-link:hover {
    text-decoration: none;
}
.services-item {
    transition: transform .3s ease;
}

.services-link:hover .project-item {
    transform: translateY(-4px);
}

.back-nav-container {
    z-index: 1000;
    position: sticky;
}

.services-image {
    height: 600px;  
    overflow: hidden;
}

.services-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-back-services {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: rgba(18, 18, 18, 0.8); 
    color: var(--text-primary);
    border: 1px solid rgba(255, 215, 0, 0.4); 
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.btn-back-services:hover {
    color: var(--accent-yellow) ;
    border-color: var(--accent-yellow) ;
    background-color: #1a1a1a;
    transform: translateX(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}


.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.image-modal.active {
    display: flex;
}

.modal-img {
    max-width: 85%;
    max-height: 85%;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}


.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}


.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 80px;        
    font-weight: bold;
    cursor: pointer;
    padding: 10px 18px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    user-select: none;
}

.modal-nav.prev {
    left: -90px;   
}

.modal-nav.next {
    right: -90px;
}

.modal-nav:hover {
    background: rgba(255,212,0,0.25);
}


@media (max-width: 991px) {
    .services-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .services-content {
        grid-template-columns: 1fr;
    }

    .sticky-info {
        position: relative;
        top: 0;
    }
    .services-layout::after {
        display: none;
    }

    .services-content {
        border-left: none;
        padding-left: 0;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .back-nav-container {
    z-index: 10; 

}
    
}
.services-1 {
    position: relative;
    min-height: calc(100vh - 70px); 
}
.services-1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; 
    width: 100%;

    background-image: 
        url("/static/core/images/DESIGN-P.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; 

    z-index: -1;
    pointer-events: none;
} 

.services-2 {
    position: relative;
    min-height: calc(100vh - 70px); 
}
.services-2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; 
    width: 100%;

    background-image: 
        url("/static/core/images/PRE-CON-P.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; 

    z-index: -1;
    pointer-events: none;
} 

.services-3 {
    position: relative;
    min-height: calc(100vh - 70px); 
    padding-bottom: 60px;
}
.services-3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; 
    width: 100%;

    background-image: 
        url("/static/core/images/CONSTUCTION-P.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; 

    z-index: -1;
    pointer-events: none;
}

.services-4 {
    position: relative;
    min-height: calc(100vh - 70px); 
}
.services-4::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; 
    width: 100%;

    background-image: 
        url("/static/core/images/POST-CON-P.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; 

    z-index: -1;
    pointer-events: none;
} 

.services-5 {
    position: relative;
    min-height: calc(100vh - 70px); 
}
.services-5::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; 
    width: 100%;

    background-image: 
        url("/static/core/images/AFTER-CON-P.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; 

    z-index: -1;
    pointer-events: none;
} 


body.services-page .footer-minimal {
    margin-top: -60px; 
    position: relative;
    z-index: 10; 
    background: transparent !important; 
    border-top: none; 
}

.services-3 {
    padding-bottom: 80px !important; 
}

@media (max-width: 991px) {
    .service-description{
        text-align: left;
        text-justify: none; 
        letter-spacing: normal; 
        word-spacing: normal; 
        line-height: 1.5; 
        -webkit-hyphens: none;
        hyphens: none;
        word-break: normal;
        width: 100%;
        max-width: 100%;
        margin-bottom: 25px;
    }
    .services-1::before {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.25), rgba(0,0,0,.5)),
        url("/static/core/images/DESIGN-P.webp");
    }
    .services-2::before {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.25), rgba(0,0,0,.5)),
        url("/static/core/images/PRE-CON-P.webp");
    }
    .services-3::before {       
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.25), rgba(0,0,0,.5)),
        url("/static/core/images/CONSTUCTION-P.webp");      
    }
    .services-4::before {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.25), rgba(0,0,0,.5)),
        url("/static/core/images/POST-CON-P.webp");
    }
    .services-5::before {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.25), rgba(0,0,0,.5)),
        url("/static/core/images/AFTER-CON-P.webp");
    }

}