/* HEADER SECTION */

/* Overall header container */
.header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: url('../assets/images/header/header.png') no-repeat center center;
    background-size: contain;
    z-index: 1000;
    box-sizing: border-box;
    margin: 0 auto;
}

/* Flex container for logo (left), nav buttons (center), and language selector (right) */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 3200px;
    padding: 0 2%;
    box-sizing: border-box;
    margin: 0 auto;
}

/* Logo with tooltip */
.logo-container {
    display: inline-block;
    position: relative;
    max-height: 80%; /* Ensures the logo does not exceed the header background height */
}

.logo-container:hover::after {
    content: "Company Logo";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.9rem;
    border-radius: 5px;
    white-space: nowrap;
    z-index: 10;
}

/* Image styling */
.logo-container img {
    height: auto;
    max-height: calc(95%); /* Dynamic scaling based on header background size */
    width: auto;
    object-fit: contain;
    display: block;
}

/* Navigation buttons with hover and focus effects */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-buttons button {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    padding: 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 80%; /* Ensure buttons do not exceed header height */
}

.header-buttons button:hover, .header-buttons button:focus {
    transform: scale(1.1);
    box-shadow: 0px 4px 6px rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.header-buttons img {
    height: auto;
    max-height: calc(95%); /* Dynamic scaling based on header background size */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Adjust header integration within layout */
.header {
    margin: 0;
    width: 100%;
    padding: 1rem 0;
}

.header-content {
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
    }

    .language-selector {
        margin-top: 1rem;
    }
}
