/* Desktop Navbar Styles */

/* Navbar Main Styles */
.logo {
    width: 60px !important; /* Adjust the size as needed */
}

h1 {
    margin: 0;
    padding: 0;
    font-size: 16px; /* Adjust the size as needed */
    font-family: 'Hahmlet', sans-serif;
    letter-spacing: 1.4px;
    /* Add space to the left of the text */
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between; /* Logo left, navigation right */
    align-items: center;
    padding: 10px 20px;
    padding-top: 20px; /* Include the margin area in padding */
    color: rgb(255, 255, 255);
    width: 100%;
    margin-top: 0; /* Remove margin, use padding instead */
    z-index: 1000;
    position: absolute;
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Logo section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 60px !important; /* Adjust the size as needed */
}

.logo-section h1 {
    margin: 0;
    padding: 0;
    font-size: 16px; /* Adjust the size as needed */
    font-family: 'Hahmlet', sans-serif;
    letter-spacing: 1.4px;
}

.navbar-inline {
    display: flex;
    justify-content: center;
}

/* Main navbar styles */
.navbar {
    display: flex;
    justify-content: center; /* Center the navbar content */
    align-items: center;
    padding: 0; /* Remove padding since it's inline */
    background-color: transparent; /* No background needed */
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar li {
    position: relative;
}

.navbar a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    font-family: 'GT-Light', sans-serif;
    font-size: 16px;
    letter-spacing: 1.2px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.3s ease;
}

.dropdown-content a::after {
    display: none !important;
}

.navbar-separator {
    position: relative;
    margin: 0 15px;
}

.navbar-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.3);
    display: block !important;
}

.language-switcher {
    margin-left: 10px;
}

.language-switcher .dropdown-content {
    right: 0;
    left: auto;
}

.navbar a:hover::after,
.navbar li:hover > a::after {
    width: calc(100% - 40px);
}

.navbar a:hover {
    color: white;
}

/* Grey out other navbar items when hovering */
.navbar a {
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar:hover a {
    opacity: 0.3;
}

.navbar:hover a:hover,
.navbar:hover li:hover > a {
    opacity: 1;
}

/* Dropdown menu styles */
.dropdown-content {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.95);
    min-width: 180px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.3);
    z-index: 1000;
    border-radius: 8px;
    backdrop-filter: blur(15px);
    top: 100%;
    left: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Cool Animation properties */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
}

.dropdown-content a {
    color: white;
    padding: 14px 18px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 12px;
    transform: translateX(-10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    text-decoration: none !important;
    transform: translateX(5px);
    color: #ffffff;
}

.navbar li:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    max-height: 500px;
    pointer-events: auto;
}

.navbar li:hover .dropdown-content a {
    transform: translateX(0);
    opacity: 1;
}

.navbar a i {
    font-size: 12px; /* Adjust the size as needed */
}

/* Language switching animations */
body {
    transition: opacity 0.3s ease-in-out;
}

[data-translate] {
    transition: all 0.2s ease-in-out;
}

.language-switcher .dropdown-content a {
    transition: all 0.2s ease-in-out;
}

.language-switcher .dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
}

/* Active language indicator */
.language-switcher .dropdown-content a[data-lang] {
    position: relative;
}

.language-switcher .dropdown-content a.active::after {
    content: "✓";
    position: absolute;
    right: 10px;
    color: #4CAF50;
    font-weight: bold;
}

/* Icon text styles */
.icon-text {
    position: relative;
    top: -27px; /* Move the text up */
    transform: translateX(-50%);
    font-size: 19px; /* Smaller font size */
    letter-spacing: 1px !important;
    font-family: 'GT-Light', sans-serif;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    white-space: nowrap; /* Prevent text from wrapping */
}

.icon-text i {
    margin-right: 8px; /* Move the icon a bit to the left */
}

.description {
    color: white;
    font-size: 20px; /* Adjust the size as needed */
    font-family: 'GT-Light', sans-serif;
    text-align: center;
    margin-top: 20px; /* Adjust the spacing as needed */
    z-index: 2; /* Ensure text is above the overlay */
}

/* Content area */
.content {
    padding: 20px;
}

/* Show mobile menu toggle when screen is smaller than 1132px or when height is greater than width */
@media (max-width: 1131px), (max-aspect-ratio: 1/1) {
    .mobile-menu-toggle {
        display: flex !important;
    }
}

/* Hide mobile menu toggle only on landscape screens wider than 1131px */
@media (min-width: 1132px) and (min-aspect-ratio: 1/1) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Language button styling */
.language-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.language-btn.active {
    background-color: rgba(129, 173, 97, 0.7);
    border-color: rgba(129, 188, 86, 0.9);
}

/* Hide navbar when screen is smaller than 1132px or when height is greater than width */
@media (max-width: 1131px), (max-aspect-ratio: 1/1) {
    .navbar-inline {
        display: none !important;
    }
    
    /* Header responsive styles */
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 20px;
        align-items: center;
    }

    .logo-section {
        margin-bottom: 0;
    }

    .logo {
        width: 45px !important;
    }

    .logo-section h1 {
        font-size: 15px;
        margin-left: 12px;
    }
}

@media (max-width: 480px) {
    /* Smaller header elements for phones */
    .logo {
        width: 60px !important;
    }

    .logo-section h1 {
        font-size: 13px;
        margin-left: 10px;
    }

    header {
        padding: 12px 15px;
    }
}
