/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f0f0f0;
}

header {
    /* display: flex;
  flex-direction: row;
  padding: 20px;
  background-color: #fff;
  color: #112; */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    color: #112;
    position: relative; /* Ensure the header is the reference point for absolute positioning */
    z-index: 1000; /* Ensure the header is above other content */
}

.header-content {
    display: flex;
    justify-content: center;
    flex: 1;
    align-items: center;
    width: 100%;
    max-width: 800px;
}

/* .dropdown:hover .dropdown-content {
    display: block;
} */

/* Logo styling */
header img {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    height: 60px;
    margin: 0 auto;

    position: relative; /* Ensure the logo is centered within the flex container */
}

header h1 {
    margin: 0;
    font-size: 1.8em;
    text-align: center;
    flex-grow: 1;
}

#company-name-tit {
    font-size: 3em;
    line-height: 1.2;
}

#company-subtitle {
    font-size: 0.5em;
    display: block;
    color: #777;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    flex-direction: column;
    max-width: calc(100vw - 20px);
    align-items: flex-start;
}

.dropdown-content a,
.dropdown-language-select .language-switcher-menu {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    background-color: #333; /* Use the same background as dropdown */
    border: none; /* Remove default border of select */
    outline: none; /* Remove outline */
    cursor: pointer;
    margin: 0; /* Remove margin for consistency */
    text-align: left; /* Align text like links */
}

.dropdown-content a:hover,
.dropdown-language-select:hover {
    background-color: #ddd; /* Hover effect */
    color: #333; /* Text color on hover */
}
/* Links inside the dropdown */
/* .dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #333;
} */

.language-switcher-menu {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between "Language:" text and the flags */
}

.language-switcher-menu span {
    font-size: 24px; /* Ensure flags are visible */
}

.language-switcher-menu :first-child {
    margin-right: 8px; /* Space between label and flags */
}

.language-switcher-menu span[role="button"]:hover .flag-icons span:hover {
    text-decoration: underline; /* Optional: adds a hover effect */
}

.flags-menu {
    display: flex;
    align-items: center;
}
.flag-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns layout */
    justify-items: center; /* Center items in each column */
    gap: 15px; /* Space between flags */
    padding: 10px; /* Add padding to the container */
}

.flag-icons span {
    cursor: pointer;
    font-size: 36px; /* Adjust the size of the emoji */
}

/* Ensure the section backgrounds extend fully across the page */
section {
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    left: 50%;
    right: 50%;
    position: relative;
    padding: 100px 20px 20px;
    box-sizing: border-box;
}

.section-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
    font-size: 1.5em;
    opacity: 1;
    transform: translateY(20px);
    transition:
        opacity 1s ease-out,
        transform 1s ease-out;
}

.section-title {
    font-size: 2em;
    color: #333;
    margin-bottom: 30px;
}

/* Alternating background colors for sections */
section:nth-child(even) {
    /* background-color: #a00; */
    background: linear-gradient(
        to left top,
        /* Direction of the gradient */ #bbb,
        /* Color 3 */ #057140aa 20%,
        #bbb 45%
    );
    /* Additional styling for demonstration */
    min-height: 200px; /* Adjust height as needed */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(10, 100, 100, 0.2);
}

section:nth-child(odd) {
    /* background-color: #5b8180ff; */
    background: linear-gradient(
        to top right,
        /* Direction of the gradient */ #5b8180ff,
        /* #5ba180ff 70%, */ #057140aa 20%,
        /* Color 3 */ #5b8180ff 45%
    );
    /* Additional styling for demonstration */
    min-height: 200px; /* Adjust height as needed */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(10, 100, 100, 0.2);
}

/* When the section becomes visible, add the fade-in animation */
.section-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Styles for services and service boxes */
.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.service-box {
    background-color: #5b8180ff;
    color: white;
    padding: 20px;
    margin: 10px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    opacity: 1;
    transform: translateX(100px);
    transition:
        opacity 1s ease-out,
        transform 1s ease-out;
}

.service-icon {
    filter: invert(15%) sepia(7%) saturate(28%) hue-rotate(314deg)
        brightness(93%) contrast(85%);
    stroke: #333;
    transition: filter 0.3s ease;
    width: 3em;
}

.svg-vivid {
    stroke: #0a74da; /* Bright blue */
    stroke-width: 2.5; /* Increased width */
}

/* .service-icon:hover {
    filter: invert(27%) sepia(94%) saturate(1966%) hue-rotate(210deg)
        brightness(97%) contrast(95%);
} */

/* Animation for sliding in from the left */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation for sliding in from the right */
@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.service-box.visible-left {
    animation: slideInFromLeft 1s ease-out forwards;
    animation-delay: 0.2s;
}

.service-box.visible-right {
    animation: slideInFromRight 1s ease-out forwards;
    animation-delay: 0.4s;
}

/* Responsive behavior for services */
@media (min-width: 992px) {
    .services {
        justify-content: space-between;
    }

    .service-box {
        width: 40%;
    }

    header h1 {
        font-size: 2em;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .services {
        flex-direction: column;
        align-items: center;
    }

    .service-box {
        width: 80%;
    }

    header h1 {
        font-size: 1.8em;
    }
}

footer {
    background-color: #112;
    color: white;
    text-align: center;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 50px;
}

footer p {
    margin: 0;
}

a {
    color: #0a74da;
}

.modal-content {
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-overflow-scrolling: touch; /* For iOS smooth scrolling */
    overflow-y: auto; /* Enable scrolling */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    position: relative;
    border-radius: 8px; /* Rounded corners */
    -webkit-transform: translate3d(0, 0, 0); /* Forces hardware acceleration */
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Mobile-specific adjustments */
@media screen and (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 15px;
    }

    .close-modal {
        padding: 15px; /* Larger touch target */
    }
}

/* Make sure the modal is visible when active */
.modal.show {
    display: block !important;
}

/* Cookie Consent Modal Styles */
#cookie-consent-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    bottom: 0; /* Align the modal at the bottom of the screen */
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 0 auto; /* Center the content within the modal */
    padding: 20px;
    border: 1px solid #888;
    width: 100%; /* Full width of the screen */
    max-width: 600px; /* Limit max width */
    border-radius: 8px;
    text-align: left; /* Align text to the left */
    position: relative; /* Position relative for absolutely positioned child elements */
}

.modal-content h2,
.modal-content h3 {
    margin: 0 0 10px; /* Margin for headers */
}

.modal-content button {
    margin: 5px;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #5b8180;
    color: white;
}

.modal-content button:hover {
    background-color: #777; /* Hover effect for buttons */
}
