@font-face {
    font-family: 'FS Industrie Wide';
    src: url("../fonts/FS-Industrie-Wd-Bold.ttf");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'FS Industrie Wide', sans-serif;
    overflow-x: hidden;
}

/* Main Container */
.main-container {
    height: 100vh;
}

/* Split Screen */
.split-screen {
    display: flex;
    height: 100%;
    width: 100%;
}

.split-section {
    flex: 1;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.split-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.products-section::before {
    background-image: url('../media/img-beton.jpeg');
}

.services-section::before {
    background-image: url('../media/img-fibre.jpeg');
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
    transition: all 0.3s ease;
}

.split-section:hover .section-overlay {
    background: rgba(0, 0, 0, 0.8);
}

.section-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2vh;
    color: white;
}

.section-title {
    font-size: 4vh;
    font-weight: bold;
    transition: color 0.3s ease;
}

.split-section:hover .section-title {
    color: #e53e3e;
}



/* Content Sections */
.content-section {
    margin-top: 5vh;
    display: none;
    padding: 2vh;
    min-height: calc(100vh - 80px);
    overflow-y: auto;
}

.content-section.active {
    display: block;
}

/* Products Section */
.products-content {
    width: 80vw;
    margin: 0 auto;
    padding: 4vh 2vh;
}

.products-title {
    font-size: 3vh;
    font-weight: bold;
    color: #e53e3e;
    margin-bottom: 3vh;
    text-align: center;
}

.product-item {
    display: flex;
    align-items: center;
    margin-bottom: 4vh;
    gap: 3vh;
    padding: 2vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item:nth-child(even) {
    flex-direction: row-reverse;
}

.product-text {
    flex: 1;
}

.product-title {
    font-size: 2vh;
    color: #e53e3e;
    font-weight: bold;
    margin-bottom: 1vh;
}

.product-description {
    color: #666;
    font-size: 1.5vh;
    line-height: 1.8;
}

.product-image {
    flex: 1;
}

.product-image img {
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Services Section */
.service-content {
    margin: 0 auto;
    padding: 2vh 2vw;
}

.services-title {
    font-size: 5vh;
    font-weight: bold;
    color: #e53e3e;
    margin-bottom: 3vh;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2vw;
    height: calc(100% - 150px);
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 30vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-card:nth-child(1) .service-image {
    background-image: url('../media/Furniture.jpg');
}

.service-card:nth-child(2) .service-image {
    background-image: url('../media/Study.jpg');
}

.service-card:nth-child(3) .service-image {
    background-image: url('../media/img-brickrefra.jpg');
}

.service-card:nth-child(4) .service-image {
    background-image: url('../media/Drying.jpg');
}

.service-card:nth-child(5) .service-image {
    background-image: url('../media/img-fibre.jpeg');
}

.service-card:nth-child(6) .service-image {
    background-image: url('../media/img-ropework.jpeg');
}

.service-card:nth-child(7) .service-image {
    background-image: url('../media/img-mechanicalinstallation.jpg');
}

.service-card:nth-child(8) .service-image {
    background-image: url('../media/Formation.jpg');
}

.service-card:nth-child(9) .service-image {
    background-image: url('../media/co2.jpeg');
}

/* Swiper Fixes */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.service-card-title {
    font-size: 2.5vh;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.8vh;
}

.service-description {
    color: #666;
    line-height: 1.4;
    margin-bottom: 1vh;
    font-size: 1.5vh;
    flex-grow: 1;
    transition: opacity 0.35s;

    /* CLAMP TO 3 LINES WITH ELLIPSIS */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.service-details-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 0.7vh 2vh;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    position: absolute;
    left: 50%;
    bottom: 3vh;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    box-shadow: 0 2px 10px rgba(229, 62, 62, 0.14);
    font-size: 1.5vh;
    display: flex;
    align-items: center;
    gap: 0.7em;
}

.service-card:hover .service-description {
    opacity: 0;
}

.service-card:hover .service-details-btn {
    opacity: 1;
    pointer-events: auto;
}

.service-details-btn svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    margin-inline-start: 0.5em;
    transition: transform 0.2s;
}

.service-details-btn:hover svg {
    transform: translateX(4px);
}

/* Back Button */
.back-btn {
    position: fixed;
    top: 18vh;
    inset-inline-start: 1vw;;
    background: black;
    color: white;
    border: none;
    padding: 1vh 2vh;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    display: none;
    font-size: 1.8vh;
}

.back-btn.show {
    display: block;
}

.back-btn:hover {
    background: #c53030;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .split-screen {
        flex-direction: column;
    }

    .section-title {
        font-size: 2.5vh;
    }

    .nav-links {
        display: none;
    }

    .product-item {
        flex-direction: column !important;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .back-btn {
        inset-inline-start: 1vh;
        padding: 0.8vh 1.5vh;
    }
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal {
    background: white;
    width: 70vw;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transform: scale(0.8);
    transition: all 0.3s ease;
    height: 60vh;
    overflow: hidden;
}

.modal-content {
    padding: 2vh;
    overflow-y: auto;
}

.modal-media {
    position: relative;
    background: #f5f5f5;
    height: 100%;
    overflow: hidden;
}

.modal.active {
    transform: scale(1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    transform: rotate(90deg);
}

.modal-title {
    font-size: 2vh;
    color: #1a365d;
    margin-bottom: 1vh;
}

.modal-description {
    color: #4a5568;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .modal {
        grid-template-columns: 1fr;
        width: 95%;
        max-height: 95vh;
    }

    .modal-media {
        height: 300px;
    }
}
