:root {
    --index: calc(1vw + 1vh);
}
.reverse {
    display: flex;
    flex-direction: row-reverse;
}

body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
ul,
ol {
    padding: 0;
    margin: 0;
}

.header {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 80px;
    z-index: 5000;
    transition: background 0.5s ease;
}

.header.scrolled {
    background: #006249;
}

.header-logo {
    display: block;
    height: 40px;
}

.navigation {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    transition: 0.5s;
}

.language-selector {
    display: flex;
    gap: 12px;
}

.nav-element {
    font-size: 16px;
    padding: 4px 8px;
    text-decoration: none;
    color: #fffff1;
    cursor: pointer;
    transition: 0.5s;
}

.nav-element:hover {
    color: #006249;
    background-color: #dde9cd;
}

.nav-btn {
    font-size: 16px;
    padding: 12px 24px;
    font-family: "MontserratAlternates";
    background-color: #dde9cd;
    color: #1b1b1b;
    text-align: center;
    position: relative;
    border: 2px solid #006249;
    transition: 0.5s;
    text-decoration: none;
}

.nav-btn:hover {
    background-color: #006249;
    color: #fffff1;
    border: 2px solid #fffff1;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
    z-index: 6000;

    /* IMPORTANT for Safari */
    -webkit-appearance: none;
    appearance: none;
    position: relative;
}

.selected {
    color: #006249;
    background-color: #dde9cd;
}

.burger-line {
    display: block;
    width: 100%; /* <- explicit width for Safari */
    height: 2px;
    background: #fffff1;
    border-radius: 1px;
    flex: 0 0 2px;
}

@media (max-width: 1080px) {
    .header {
        padding: 20px 20px;
    }

    .navigation {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 250px;
        background: #006249;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 20px;
        transform: translateX(100%); /* off-screen */
    }
    .navigation.open {
        transform: translateX(0);
    }

    .nav-element,
    .nav-btn {
        margin-bottom: 16px;
    }

    /* show burger */
    .burger {
        display: flex;
    }
}

.body {
    background-color: #1b1b1b;
    font-family: "MontserratAlternates";
    color: #fffff1;
    font-size: 24px;
    margin: 0;
}

.main-container {
    display: flex;
    flex-flow: column nowrap;
    background-color: #1b1b1b;
    align-items: center;
}

.hero {
    background-image: url("source/hero_background.jpg");
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-clip: border-box;
    background-size: cover;
    width: 100vw;
    height: calc(100vh + 100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 120px 80px 80px;
    box-sizing: border-box;
    gap: 40px;
}

.hero-connected {
    text-align: right;
    font-size: 24px;
    display: flex;
    flex-direction: column;
    width: 90vw;
    position: relative;
}

.hero-label {
    position: absolute;
    bottom: -32px;
    right: 0;
    font-family: "MontserratAlternates-Italic";
}

.hero-connected-img {
    max-width: 100%;
    opacity: 80%;
}

.hero-minor-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    row-gap: 20px;
}

.hero-minor-container-headliner {
    color: #dde9cd;
    font-family: "MontserratAlternates-Bold";
    font-size: 48px;
    width: 70vw;
}

.hero-minor-container-text {
    color: #fffff1;
    font-size: 18px;
    width: 50%;
    text-align: justify;
    line-height: 1.6;
}

.hero-minor-container-button {
    background-color: #006249;
    border-color: #dde9cd;
    border-width: 4px;
    border-style: solid;
    font-size: 24px;
    color: #fffff1;
    font-family: "MontserratAlternates";
    padding: 16px 32px;
    width: fit-content;
    transition: 0.5s;
    text-decoration: none;
}

.hero-minor-container-button:hover {
    background-color: #dde9cd;
    border-color: #006249;
    color: #006249;
}

@media (max-width: 1080px) {
    .hero {
        padding: 120px 20px 20px;
    }

    .hero-label {
        position: absolute;
        bottom: -22px;
        font-size: 12px;
        right: 0;
        font-family: "MontserratAlternates-Italic";
    }

    .hero-minor-container-headliner {
        margin-top: 40px;
        width: 90vw;
    }

    .hero-minor-container-text {
        width: 90vw;
    }

    .hero-minor-container-button {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-minor-container-headliner {
        font-size: 32px;
        padding: 12px 24px;
    }
}

/* -------------- SERVICES -------------- */
.services {
    background-color: #fffff1;
    font-family: "MontserratAlternates";
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 95%;
    padding-top: 120px;
    margin-top: -100px;
    z-index: 10;
    justify-content: space-around;
    box-shadow: 0px 20px 80px rgba(0, 0, 0, 0.4);
}

.services-up-section {
    display: flex;
    justify-content: space-around;
    margin-bottom: 200px;
}

.services-up-section-text {
    color: black;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 60px;
    margin-right: 64px;
}

.services-up-section-paragraph {
    font-size: 20px;
    line-height: 1.6;
    width: 40vw;
}

.services-header-text-bold {
    font-family: "MontserratAlternates-Bold";
    position: relative;
    font-size: 36px;
    z-index: 0;
}

.services-header-text-bold::before {
    content: "";
    width: 96px;
    height: 96px;
    display: block;
    background-color: #dde9cd;
    position: absolute;
    top: -20px;
    left: -3%;
    transform: rotate(7deg);
    z-index: -1;
}

.services-up-section-image {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    object-fit: cover;
}

.services-up-section-div {
    position: relative;
    width: 40vw;
    height: 33vw;
}

.services-up-section-div::before {
    content: "";
    width: 40vw;
    height: 33vw;
    background-color: #dde9cd;
    position: absolute;
    top: 6%;
    right: 0%;
    rotate: 173deg;
    z-index: 1;
}

.services-down-section {
    display: flex;
    flex-shrink: 1;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    margin-bottom: 10%;
}

.services-down-section-block {
    display: flex;
    flex-direction: column;
    width: 380px;
    margin: 1%;
    position: relative;
    clip-path: inset(-80px 0px 0px 0px);
}

.services-list {
    margin-left: 16px;
}

.services-down-section-block-hover {
    opacity: 0;
    height: 90%;
    width: 90%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    padding: 5%;
    transform: translateY(100%);
    transition: 0.5s;
}
.services-down-section-block:hover .services-down-section-block-hover {
    opacity: 100%;
    transform: translateY(0%);
}

.services-down-section-block:hover .services-down-section-block-image {
    background-size: 200% 150%;
}
.services-arrow {
    background-image: url("source/arrow.png");
    height: 70px;
    width: 70px;
    position: absolute;
    top: -70px;
}
.services-down-sector-block-text {
    background-color: #006249;
    text-align: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.services-down-section-block-image {
    height: 300px;
    background-position: center;
    background-size: 140% 100%;
    transition: background-size 0.5s ease-in-out;
}

.text-rectangle {
    width: 96px;
    height: 96px;
    background-color: #dde9cd;
    position: absolute;
    top: 10%;
    left: -3%;
    rotate: 7deg;
    z-index: 200;
}

@media (max-width: 1080px) {
    .services {
        padding-top: 120px;
        margin-top: -100px;
        z-index: 10;
        justify-content: center;
        box-shadow: 0px 20px 80px rgba(0, 0, 0, 0.4);
        box-sizing: border-box;

        width: 100vw;
        padding: 120px 20px 40px;
    }
    .services-up-section {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        width: 100%;
    }

    .services-up-section-text {
        width: 100%;
        margin-right: 0px;
        align-items: center;
    }

    .services-up-section-paragraph {
        text-align: center;
        width: 100%;
    }

    .services-header-text-bold {
        width: fit-content;
        text-align: center;
    }

    .services-up-section-div {
        width: 60vw;
        height: 50vw;
    }

    .services-up-section-div::before {
        width: 60vw;
        height: 50vw;
    }

    .services-down-section-block {
        width: 100%;
        clip-path: inset(-80px 0px 0px 0px);

        margin: 0px;
    }
    .services-down-section-block-image {
        background-size: cover;
    }

    .services-down-section-block:hover .services-down-section-block-image {
        background-size: cover;
    }

    .services-down-section {
        gap: 80px;
        padding: 20px 10px;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .services-down-section-block-hover {
        font-size: 12px;
    }
}

/* ---------- PROFILING ---------- */
.profiling {
    background-color: #dde9cd;
    color: #1b1b1b;
    text-align: center;
    min-height: 800px;
    width: 85vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    padding: 100px 40px 100px;
    box-sizing: border-box;
}

.profiling-header-text-bold {
    font-family: "MontserratAlternates-Bold";
    position: relative;
    font-size: 36px;
    margin-bottom: 64px;
    z-index: 0;
}

.profiling-header-text-bold::before {
    content: "";
    width: 80px;
    height: 80px;
    display: block;
    background-color: #fffff1;
    position: absolute;
    top: -16px;
    left: -2%;
    transform: rotate(7deg);
    z-index: -1;
}

.profiling-header-text-paragraph {
    width: 75vw;
    text-align: justify;
    margin-bottom: 3%;
}

.profiling-header-text-subheader {
    width: 70vw;
    font-size: 24px;
    font-family: "MontserratAlternates-Bold";
    margin-bottom: 48px;
}

.profiling-row {
    display: flex;
    gap: 40px;
}

.profiling-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 30vw;
}

.profiling-text {
    height: 200px;
}

.profiling-text p {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    font-weight: bold;
}

.profiling-text ul {
    padding-left: 20px;
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
    text-align: left;
}

.profiling-media {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 30vw;
    height: 20vw;
    overflow: hidden;
}

.profiling-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    height: auto;
    margin-bottom: 12px;
    transition: 0.5s;
}

.profiling-image:hover {
    width: 120%;
}

.profiling-button {
    background-color: #006249;
    color: #fffff1;
    text-align: center;
    font-family: "MontserratAlternates";
    font-size: calc(var(--index) * 1);
    border-style: none;
    position: absolute;
    padding: 16px 64px;
    transition: 0.5s;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-decoration: none;
}

.profiling-button:hover {
    background-color: #fffff1;
    color: #006249;
    border: 2px solid #006249;
}

.profiling-content-text {
    color: #dde9cd;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: calc(var(--index) * 1.3);
    font-family: "MontserratAlternates-Bold";
}

@media (max-width: 1080px) {
    .profiling {
        width: 100vw;
        padding: 100px 20px 100px;
    }

    .profiling-header-text-subheader {
        width: 100%;
        font-size: 24px;
        margin-top: 24px;
        margin-bottom: 48px;
    }

    .profiling-row {
        flex-direction: column;
    }

    .profiling-column {
        width: 80vw;
    }

    .profiling-text {
        height: fit-content;
        margin-bottom: 0px;
    }

    .profiling-media {
        width: 80vw;
        height: 54vw;
        box-sizing: border-box;
    }

    .profiling-content-text {
        font-size: calc(var(--index) * 3);
    }

    .profiling-button {
        font-size: calc(var(--index) * 2);
        top: 70%;
    }

    .profiling-button:hover {
        background-color: #fffff1;
        color: #006249;
        border: 2px solid #006249;
    }
}

@media (max-width: 480px) {
    .profiling-content-text {
        font-size: calc(var(--index) * 2);
    }

    .profiling-button {
        font-size: calc(var(--index) * 1.5);
        top: 100%;
        transform: translate(-50%, -110%);
    }
}

/* ----------- INTERBLOCK ----------- */
.interblock {
    width: 100vw;
    padding: 40px 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    box-sizing: border-box;
    text-align: justify;
    color: #dde9cd;
    border-top: 5px solid #dde9cd;
    border-bottom: 5px solid #dde9cd;
}

.interblock-header {
    font-family: "MontserratAlternates-bold";
    font-size: 36px;
    width: 80vw;
    text-align: center;
    margin-bottom: 40px;
}

.interblock-content {
    display: flex;
    justify-content: space-between;
    width: 80vw;
    gap: 20px;
}

.interblock-text {
    /* width: 50vw; */
    /* margin-top: -2%; */
}

.interblock-btn {
    min-width: 220px;
    height: fit-content;
    background-color: #006249;
    border-color: #dde9cd;
    padding: 16px 32px;
    border-width: 4px;
    border-style: solid;
    color: #fffff1;
    font-size: 24px;
    font-family: "MontserratAlternates";
    transition: 0.5s;
    text-decoration: none;
    text-align: center;
}

.interblock-btn:hover {
    background-color: #dde9cd;
    border-color: #006249;
    color: #006249;
}

@media (max-width: 1080px) {
    .interblock-header {
        font-size: 24px;
    }

    .interblock-content {
        flex-direction: column;
        justify-content: center;
        width: 80vw;
        gap: 20px;
    }

    .interblock-text {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .interblock-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
}

/* ----------- ABOUT ----------- */
/* ───── Base (desktop) ───── */
.about-us {
    background-color: #dde9cd;
    color: #1b1b1b;
    box-sizing: border-box;
    width: 85vw;
    margin: 0 auto; /* center on large screens */
    padding: 120px 80px; /* horizontal padding */
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    overflow: hidden; /* hide any overshoot */
    margin-bottom: 80px;
}

.about-text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-right: 20px;
}

.about-text-container .about-text-header {
    font-family: "MontserratAlternates-Bold";
    font-size: 20px;
    margin-bottom: 24px;
}

.about-text-container p {
    font-size: 16px;
    line-height: 1.6;
}

.about-image {
    flex: 1;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 30vw;
    height: 300px;
    border-radius: 12px;
}

/* list items */
.about-list-group {
    display: flex;
    align-items: center;
    margin-bottom: 1em;
}
.about-list-icon {
    width: 60px;
    height: 60px;
    margin-right: 1em;
}

/* reverse the order when .reverse */
.about-content.reverse {
    flex-direction: row-reverse;
}

/* ───── Tablet (≤1080px) ───── */
@media (max-width: 1080px) {
    .about-us {
        width: 100vw;
    }
    .about-content {
        flex-direction: column;
        align-items: center;
        gap: 0px;
    }
    .about-text-container,
    .about-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 600px;
        margin: 0;
    }
    .about-text-container {
        margin-bottom: 24px;
    }
    /* reverse no longer needed on vertical stack */
    .about-content.reverse {
        flex-direction: column;
    }
}

/* ───── Mobile (≤480px) ───── */
@media (max-width: 480px) {
    .about-us {
        width: 100vw;
        padding: 100px 20px;
    }
    .about-text-header {
        font-size: 1.5rem; /* ~24px */
    }
    .about-text-container p,
    .about-list-group p {
        font-size: 0.95rem; /* slightly smaller text */
    }
    .about-image {
        height: 200px; /* reduce image height */
    }
    .about-list-icon {
        width: 48px;
        height: 48px;
        margin-right: 0.75em;
    }

    .about-content {
        width: 100%;
    }
}

/* -------------- CONTACT -------------- */
.contact {
    width: 100vw;
    box-sizing: border-box;
    background-color: #fffff1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 60px 20px 60px;
}
.contact-logo {
    height: 50px;
    display: block;
    margin-bottom: 32px;
}

.contact-header {
    color: #1b1b1b;
    margin-bottom: 32px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    margin-bottom: 5%;
}

.contact-form-input {
    width: 80vw;
    max-width: 600px;
    height: 48px;
    font-family: "MontserratAlternates";
    padding: 0px 24px;
    font-size: 16px;
    line-height: 1;
    border: 1px solid #1b1b1b;

    margin-bottom: 16px;
    background-color: #fffff1;
}

input::placeholder {
    color: #1b1b1b;
}

.contact-form-btn {
    padding: 16px 32px;
    background-color: #006249;
    color: #ffffff;
    align-self: center;
    font-size: 16px;
    border: none;
    font-family: "MontserratAlternates-bold";
    margin-top: 16px;
    transition: 0.5s;
}

.contact-form-btn:hover {
    background-color: #fffff1;
    color: #006249;
    border: 1px solid #006249;
}

.footer {
    width: fit-content;
    color: #1b1b1b;
    display: flex;
    flex-direction: column;
}

.footer-up {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 18px;
}

.footer-down {
    align-self: center;
    font-size: 18px;
}

@media (max-width: 480px) {
    .contact-header {
        font-size: 18px;
    }
}

.modal {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: 70vh;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: #006249;
    border-radius: 8px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.modal.show-modal {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    padding: 20px 40px 20px 20px;
    border: 1px solid #dde9cd;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.25);
}

.close {
    position: absolute;
    top: 8px;
    right: 12px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.close:hover {
    color: #ff1e1e;
}

/* Responsive widths */
@media (max-width: 768px) {
    .modal-content {
        padding: 16px 24px;
    }
}

@media (max-width: 640px) {
    .modal {
        bottom: 60vh;
    }
    .modal-content {
        padding: 12px 16px;
    }
}
