html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Progress Bar */
#progressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background: cyan;
    width: 0%;
    z-index: 2000;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    transition: 0.3s;
    z-index: 1000;
}

nav.scrolled {
    background: black;
}

.logo {
    color: white;
}

/* Menu */
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    position: relative;
}

/* Hover effect */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: cyan;
    bottom: -5px;
    left: 0;
    transition: 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Active link */
nav ul li a.active {
    border-bottom: 2px solid cyan;
}

/* Sections */
.section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 40px;
    text-align: center;
}

#home { background: #1abc9c; }
#about { background: #3498db; }
#services { background: #9b59b6; }
#contact { background: #e74c3c; }

/* Fade animation */
.fade {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s;
}

.fade.show {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: black;
    color: white;
}

/* Mobile */
.menu-toggle {
    display: none;
    font-size: 25px;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: black;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
    }

    nav ul.show {
        display: flex;
    }
}