/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Header Styles */
header {
    background-color: rgba(29, 29, 31, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navigation Base */
nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 1rem 2rem;
    list-style: none;
}

/* Logo Styling */
#logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f5f5f7;
    text-decoration: none;
    transition: color 0.3s ease;
}

#logo a:hover {
    color: #2997ff;
}

/* Navigation Links */
nav ul li a {
    color: #86868b;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #f5f5f7;
}

/* Active Link Styling */
nav ul li a.active {
    color: #2997ff;
    background-color: rgba(41, 151, 255, 0.1);
}

/* Top Navigation Styles */
#top:hover{
    color: #2997ff;

}
#top {
    background-color: rgba(29, 29, 31, 0.8);
    color: #86868b;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul li {
        margin: 0.5rem 0;
    }
}

/* Subtle Animations */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

nav ul li {
    animation: navLinkFade 0.5s ease forwards;
    opacity: 0;
}

nav ul li:nth-child(1) { animation-delay: 0.1s; }
nav ul li:nth-child(2) { animation-delay: 0.2s; }
nav ul li:nth-child(3) { animation-delay: 0.3s; }