/* Hide mobile nav and hamburger by default */
.mobile-nav {
    display: none;
}

.hamburger-btn {
    display: none; /* Hide button by default */
}

/* Show mobile elements at tablet and mobile breakpoints */
@media (max-width: 1024px) {
    #navbar-menu {
        display: none;
    }

    /* Hide the navigation background in mobile */
    #navigation .background-color-div {
        display: none;
    }

    /* Hide the navigation container in mobile */
    #navigation .container {
        display: none;
    }

    .mobile-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        transition: 0.3s;
        z-index: 1000;
    }

    .mobile-nav.active {
        right: 0;
    }

    .mobile-nav ul {
        list-style: none;
        padding: 50px 30px;
        margin: 0;
    }

    .mobile-nav li {
        margin: 15px 0;
    }

    .mobile-nav a {
        text-decoration: none;
        font-size: 1.2rem;
        color: inherit;
    }

    .hamburger-btn {
        display: block; /* Show button only on mobile */
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 2000;
        background: none;
        border: none;
        padding: 10px;
        cursor: pointer;
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
    }

    .hamburger-btn span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px 0;
        background: currentColor;
        transition: 0.3s;
        box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
    }

    .hamburger-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Optional: Adjust font size for iPad specifically */
@media (min-width: 768px) and (max-width: 1024px) {
    .mobile-nav a {
        font-size: 1.4rem; /* Slightly larger text for iPad */
    }
    
    .mobile-nav ul {
        padding: 70px 40px; /* More padding for iPad */
    }
} 