* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f7fb;
    color: #172033;
}

/* HEADER */

.header {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);

    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    width: min(1100px, 92%);
    min-height: 76px;
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* NAVIGATION */

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 11px 15px;

    color: #374151;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;

    border-radius: 10px;
    transition: 0.25s ease;
}

.nav-links a:hover {
    color: #2563eb;
    background-color: #eff6ff;
}

.nav-links .login-link {
    border: 1px solid #2563eb;
    color: #2563eb;
}

.nav-links .create-account {
    color: white;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.22);
}

.nav-links .create-account:hover {
    color: white;
    background: linear-gradient(135deg, #1d4ed8, #4338ca);
    transform: translateY(-1px);
}

/* MOBILE MENU BUTTON */

.menu-icon {
    width: 44px;
    height: 44px;
    padding: 10px;

    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;

    background-color: #eff6ff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.menu-icon span {
    width: 100%;
    height: 3px;

    display: block;
    background-color: #2563eb;
    border-radius: 10px;

    transition: 0.3s ease;
}

/* Changes hamburger into an X */

.menu-icon.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
}

.menu-icon.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* MOBILE DESIGN */

@media (max-width: 768px) {

    .header-container {
        width: 92%;
        min-height: 68px;
    }

   

    .menu-icon {
        display: flex;
    }

    .nav-links {
        width: 92%;
        padding: 16px;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;

        position: absolute;
        top: calc(100% + 8px);
        left: 4%;

        background-color: white;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
    }

    /* JavaScript adds this class */
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 14px;
        text-align: center;
    }

    .nav-links .create-account {
        margin-top: 3px;
    }
}