body {
    font-family: sans-serif;
    margin: 0;
    line-height: 1.6;
    background: #f4f4f4;
    color: #333;
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: auto;
    padding: 0 2rem;
}

header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

header ul {
    display: flex;
    list-style: none;
    padding: 0;
}

header ul li {
    margin-left: 20px;
}

header a {
    color: #fff;
    text-decoration: none;
}

section {
    padding: 4rem 0;
}

section h1 {
    text-align: center;
    margin-bottom: 2rem;
}

#about {
    background: #fff;
}

.btn {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.project-card {
    background: #fff;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

footer {
    text-align: center;
    padding: 2rem 0;
    background: #333;
    color: #fff;
}

.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}


/* Responsive Design */
@media (max-width: 768px) {
    header ul {
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        width: 60%;
        height: 100vh;
        background: #333;
        z-index: 105; /* Below hamburger, above header */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        padding: 0;
        margin: 0;
    }

    nav.nav-active ul {
        right: 0; /* Slide in */
    }

    header ul li {
        margin: 1.5rem 0;
    }

    .hamburger-menu {
        display: flex; /* Show on mobile */
    }

    nav.nav-active .hamburger-menu span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    nav.nav-active .hamburger-menu span:nth-child(2) {
        opacity: 0;
    }
    nav.nav-active .hamburger-menu span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}
