* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    /* default for desktop */
    padding: 6px;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10.5px);
    -webkit-backdrop-filter: blur(10.5px);
}

/* Mobile version */
@media (max-width: 768px) {
    .header {
        justify-content: space-between;
        /* mobile override */
        padding: 1rem 1.5rem;
        /* optional: reduce padding on small screens */
    }
}


.header.scrolled {
    background: rgba(255, 255, 255, 0.651);
    backdrop-filter: blur(12.7px);
-webkit-backdrop-filter: blur(12.7px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background-color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon::after {
    content: '';
    width: 1rem;
    height: 1rem;
    background-color: white;
    border-radius: 50%;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: black;
}

/* Center nav */
.nav {
    display: none;
    align-items: center;
    background-color: transparent;
    /* no background before scroll */
    border-radius: 9999px;
    padding: 0.5rem 1.5rem;
}

.nav a {
    padding: 0.5rem 1rem;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: black;
    /* black text */
    transition: color 0.2s;
}

.nav a:hover {
    color: #034608;
}

/* Buttons right */
.signin-btn {
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    border-radius: 9999px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid black;
    transition: all 0.2s;
}

.signup-btn {
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    border-radius: 9999px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid black;
    transition: all 0.2s;
}

/* Hide nav & buttons + remove margin on mobile */
@media(max-width: 767px) {
    .header {
        padding: 1rem;
        /* Remove extra margin */
    }

    .nav,
    .signin-btn,
    .signup-btn {
        display: none;
    }
}

/* Hamburger Icon */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    background: black;
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -260px;
    width: 250px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.1);
    padding: 4rem 2rem 2rem;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 2000;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu a {
    text-decoration: none;
    color: black;
    font-size: 1rem;
    font-weight: 500;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
}

@media(min-width:768px) {
    .nav {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

    .mobile-menu {
        display: none;
    }
}

