/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #111;
    color: white;
}

/* HAMBURGER (ALWAYS VISIBLE) */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

/* Animate to X */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* OVERLAY */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 900;
}

.overlay.open {
    opacity: 1;
    visibility: visible;
}

/* SLIDE MENU */
.nav-menu {
    display: none; /* hidden by default (assignment rule) */
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: #1e293b;
    padding-top: 80px;
    z-index: 1000;
}

/* When open */
.nav-menu.open {
    display: block;
    animation: slideIn 0.35s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.nav-menu ul {
    list-style: none;
    padding: 20px;
}

.nav-menu li {
    margin: 18px 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: #38bdf8;
}

/* CLOSE BUTTON */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

/* CONTENT */
.content {
    padding: 60px;
}
