/* Global Styles */
body, html {
    margin: 0;
    padding: 0;
}

/* Home Section */
.home-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    background-color: transparent; 
}

.video-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-content {
    z-index: 1;
    position: relative;
}

.text-rotate {
    display: inline-block;
    animation: text-rotate 20s infinite linear;
}

@keyframes text-rotate {
    0%, 16%, 32%, 48%, 64%, 80%, 100% {
        opacity: 1;
        color: rgba(255, 255, 255, 1); /* Dark text */
    }
    8%, 24%, 40%, 56%, 72%, 88% {
        opacity: 0.5;
        color: rgba(255, 255, 255, 0.5); /* Light text */
    }
    0%, 8%, 16%, 24%, 32%, 40%, 48%, 56%, 64%, 72%, 80%, 88%, 100% {
        opacity: 1;
    }
}

#services {
    resize: none;
}

/* Navigation Items */
.nav-items {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-button {
    background: transparent;
    border: none;
    color: white;
    font-size: 15px;
    cursor: pointer;
    padding: 10px 16px; /* Adjust padding for better click area */
    display: flex;
    align-items: center;
    margin-right: 30px;
    margin-top: 0px; /* Decrease top margin */
}

.lang-button:hover {
    background: rgba(255, 255, 255, 0.1); /* Light background on hover */
}

.lang-button .arrow-down {
    margin-left: 5px;
    transition: transform 0.3s;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff; /* Background color for dropdown */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Shadow for dropdown */
    border-radius: 4px; /* Rounded corners for dropdown */
    overflow: hidden; /* Ensure no overflow issues */
    display: none;
    font-size: 12px;
}

.lang-dropdown a {
    display: block;
    padding: 12px 16px;
    color: #333; /* Text color */
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s; /* Smooth transition */
}

.lang-dropdown a:hover {
    background-color: #f0f0f0; /* Light background on hover */
    color: #000; /* Darken text on hover */
}

.lang-switcher:hover .lang-dropdown {
    display: block; 
} 

.lang-button {
    position: relative;
    padding-right: 20px; /* Adjust padding to create space */
}

.lang-button span {
    display: inline-block; /* Ensure text and arrow are aligned */
    vertical-align: middle; /* Align text vertically with arrow */
    margin-right: 10px;
}

.lang-button .arrow-down {
    position: absolute;
    right: 0;
    top: 43%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.lang-button:hover .arrow-down {
    transform: translateY(-50%) rotateX(180deg);
}

/* Scrolled State */
.lang-button.scrolled {
    color: black;
}

.arrow-path.scrolled {
    stroke: black;
}

/* Popup Styling */
.popup {
    display: none; /* Hidden by default */
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
    z-index: 1000; /* Sit on top */
}

.popup-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1001;
}

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

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

/* Image Styling */
.img-fluid {
    max-width: 10%; /* Ensures image is responsive */
    height: auto; /* Maintains aspect ratio */
    width: 10%; /* Ensures image scales with its natural size */
    display: block; /* Ensures proper block display */
    margin-left: auto; /* Centers image */
    margin-right: auto; /* Centers image */
}

/* Media Queries */
@media (max-width: 768px) {
    .img-fluid {
        max-width: 10%; /* Ensures image is responsive */
        height: auto; /* Maintains aspect ratio */
        width: auto; /* Ensures image scales with its natural size */
        display: block; /* Ensures proper block display */
        margin-left: auto; /* Centers image */
        margin-right: auto; /* Centers image */
    }

    .small-space {
        height: 30px;
    }
}
