/* --------------------- HEADER --------------------- */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    position: relative;
    background: #fff;
    z-index: 1000;
}

/* Logo */
.logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text img {
    height: 50px;
}

/* Hamburger icon (3 dots/lines) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    top: 50%;   /* vertically middle */
    right: 20px; /* from right */
    transform: translateY(-50%);
    z-index: 1100;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: green;
    border-radius: 2px;
    transition: 0.3s;
}

/* Hamburger animation when active (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);
}

/* --------------------- MOBILE MENU --------------------- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -250px; /* hidden initially on right */
    width: 250px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 12px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    padding-top: 60px;
    transition: right 0.3s ease;
    z-index: 1050;
}

.mobile-menu.open {
    right: 0; /* slide in from right */
}

.mobile-menu a {
    padding: 15px 20px;
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid #eee;
    font-weight: 500;
}

/* Close button (X) inside menu */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #000;
}

/* --------------------- RESPONSIVE --------------------- */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    /* Desktop menu hidden on mobile */
    .navbar.desktop-menu {
        display: none;
    }
}

@media screen and (min-width: 769px) {
    .mobile-menu {
        display: none; /* hide mobile menu on desktop */
    }
}
