body {
    font-family: -apple-system, BlinkMacMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f5f5f7;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top to better simulate a header */
    min-height: 100vh;
    padding-top: 50px; /* Space for the fixed header */
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    height: 44px; /* Standard Apple navigation bar height */
    box-sizing: border-box;
    z-index: 1000;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px; /* Space between items */
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #f5f5f7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    padding: 0 8px; /* Padding inside the link */
    height: 44px; /* Make link fill the height for better click area */
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffffff; /* Slightly brighter on hover */
}

/* Dropdown Menu Styles */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* Position below the nav item */
    left: 50%; /* Center the dropdown */
    transform: translateX(-50%); /* Adjust for centering */
    background: rgba(29, 29, 31, 0.9); /* Darker background for dropdown */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(10px); /* Start slightly below */
}

.nav-item.active .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* Animate to correct position */
}

.dropdown-content a {
    color: #f5f5f7;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #007aff; /* Apple blue highlight */
    color: #ffffff;
}

/* Triangle indicator for active dropdown */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -10px; /* Position above the dropdown */
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent rgba(29, 29, 31, 0.9) transparent;
}
