html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.main-container {
    width: 100%;
    height: 100vh;
    position: relative;
    background-color: white;
}

/* Header section */
header {
    width: 100%;
    height: 80px;
    background-color: white;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.logo-container {
    width: 200px;
    height: auto;
}

.logo-container img {
    width: 100%;
    height: auto;
}

/* Split content container */
.content-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: calc(100vh - 80px);
    position: relative;
}

/* Telecom section - left side */
.telecom-section {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-image: url('assets/Elements1-14.svg');
    background-position: left bottom 40%;
    background-size: 180%;
}

/* Energy section - right side */
.energy-section {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-image: url('assets/Elements-16.svg');
    background-position: center;
    background-size: cover;
}
.show-energy-section-mobile {
    display: none;
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 20px;
}

.section-header img {
    height: 50px;
    margin-bottom: 10px;
}

.section-header h2 {
    color: #ff3333;
    font-size: 32px;
    font-weight: bold;
}

/* Middle wave decoration */
.wave-decoration {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-40%);
    height: 100%;
    width: 200px;
    z-index: 5;
    display: flex;
    justify-content: center;
}

.wave-decoration img {
    height: 100%;
    object-fit: contain;
}

/* Service items containers and positioning */
.service-item-container {
    width: 100%;
    display: flex;
    position: absolute;
    z-index: 20;
}

/* Telecommunications section rows */
.service-row-1 {
    top: 25%;
    justify-content: space-between;
    padding: 0 24%;
}

.service-row-2 {
    top: 40%;
    justify-content: space-between;
    padding: 0 24%;
}

.service-row-3 {
    top: 55%;
    justify-content: space-between;
    padding: 0 20%;
    width: 100%;
}

/* Energy section rows */
.energy-row-1 {
    top: 25%;
    justify-content: space-between;
    padding: 0 14%;
}

.energy-row-2 {
    top: 40%;
    justify-content: center;
}

.energy-row-3 {
    top: 51%;
    justify-content: space-between;
    padding: 0 14%;
}

.service-item {
    color: #ff3333;
    font-weight: 500;
    font-size: 18px;
}
.service-item:hover {
    cursor: pointer;
    font-weight: bold;
    transform: scale(1.05);
    transition: 0.2s;
}

.service-row-2 .service-item:nth-child(1) {
    margin-top: -10%;
    margin-left: 5%;
}

.energy-row-1 .service-item:nth-child(1) {
    margin-left: 30%;
}
.energy-row-1 .service-item:nth-child(2) {
    margin-top: 5%;
}
.energy-row-2 .service-item:nth-child(1) {
    margin-right: 40%;
}
.energy-row-3 .service-item:nth-child(1) {
    margin-left: 30%;
}


/* Globe and energy images */
.globe-image {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.energy-image {
    position: absolute;
    bottom: -1%;
    width: 100%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Click here buttons with animation */
.click-button {
    position: absolute;
    bottom: 15%;
    right: 45%;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    z-index: 100;
    overflow: visible;
    transition: all 0.3s ease;
}

/* Hover animations for buttons */
.click-button:hover {
    padding-right: 45px;
    transform: translateX(10px);
}

/* Arrow indicator */
.click-button::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-40%);
    width: 20px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 40%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.click-button:hover::after {
    opacity: 1;
}

/* Telecom section button styles */
.telecom-section .click-button {
    background-color: #fff;
    color: #ff3333;
}

.telecom-section .click-button:hover {
    background-color: #ff3333;
    color: #fff;
}

/* Energy section button styles */
.energy-section .click-button {
    background-color: #ff3333;
    color: white;
}

.energy-section .click-button:hover {
    background-color: #fff;
    color: #ff3333;
}

.globe-image img {
    height: 100%;
    object-fit: contain;
}

.energy-image img {
    height: 150%;
    margin-right: 70%;
    object-fit: contain;
}

@media (width < 768px) {
    header {
        display: none;
    }

    .content-container {
        height: 100%;
    }

    .section-header h2 {
        font-size: 26px;
        padding-top: 30px;
    }

    .telecom-section {
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
        background-size: cover;
        background-position: left 15% bottom 50px;
        transition: width 0.5s ease-in-out;
    }
    .telecom-section.hidden {
        width: 0;
        height: 0;
    }

    .energy-section {
        width: 0;
        height: 0;
        transition: width 0.5s ease-in-out;
    }
    .energy-section.active {
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
        background-size: cover;
    }

    .energy-image img {
        height: 100%;
        margin-right: 50%;
        object-fit: cover;
    }

    .show-energy-section-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        right: 0;
        width: 40px;
        height: 100%;
        background-color: white;
        border-left: 1px solid black;
        cursor: pointer;
        z-index: 50;
        transition: left 0.5s ease-in-out, right 0.5s ease-in-out;
        font-weight: bold;
        opacity: 0.8;
    }

    .energy-section.active ~ .show-energy-section-mobile {
        right: auto;
        left: 0;
        border-right: 1px solid black;
        border-left: none;
    }

    .show-energy-section-mobile h2 {
        margin: 0;
        rotate: 90deg;
        color: #ff3333;
        font-size: 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .service-item-container {
        position: relative;
        flex-direction: column;
        text-align: center;
        margin: 0;
        padding: 0;
        top: 0;
    }

    .service-row-1, .energy-row-1 {
        padding-top: 60px;
    }

    .service-item {
        margin-block: 10px;
        margin-inline: 0;
    }

    /* Reset the specific service items that have custom margins */
    .service-row-2 .service-item:nth-child(1),
    .energy-row-1 .service-item:nth-child(1),
    .energy-row-1 .service-item:nth-child(2),
    .energy-row-2 .service-item:nth-child(1),
    .energy-row-3 .service-item:nth-child(1) {
        margin-inline: 0;
        margin-block: 10px;
    }

    .click-button {
        bottom: 15%;
        right: auto;
        left: auto;
    }

    .wave-decoration {
        display: none;
    }
}