/* Hamburger Menu Styles */
.hamburger-menu {
    width: 30px;
    height: 25px;
    position: relative;
    cursor: pointer;
    display: none; /* Initially hidden, will only show on mobile */
    z-index: 1002;
    margin-left: auto; /* Push to right side */
    flex-shrink: 0;
    transition: none;
}

.hamburger-menu span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #2d3748;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-menu span:nth-child(1) {
    top: 0px;
}

.hamburger-menu span:nth-child(2) {
    top: 10px;
}

.hamburger-menu span:nth-child(3) {
    top: 20px;
}

.hamburger-menu.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger-menu.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Mobile Navigation Styles */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    width: 270px;
    height: 100%;
    background-color: white;
    z-index: 1001;
    padding: 90px 20px 30px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    will-change: right; /* Optimize for animations */
}

.mobile-nav.active {
    right: 0; /* Slide in from right */
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.mobile-nav-overlay.active {
    display: block;
}

.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    color: #2d3748;
    font-weight: 500;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.mobile-menu a:hover, .mobile-menu a.active {
    color: #4a6bff;
}

/* Media query for smaller screens - ONLY show hamburger on mobile */
@media screen and (max-width: 768px) {
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .nav-menu {
        display: none;
    }
    
    header .container,
    header .header-container {
        padding: 0 20px;
        width: 100%;
    }
}

/* Prevent scroll when menu is open */
body.no-scroll {
    overflow: hidden;
    height: 100%;
}

/* Share overlay styles */
.share-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.share-overlay.active {
    display: block;
}

/* Share notification */
.copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
}

.copy-notification.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Extra small screens */
@media screen and (max-width: 375px) {
    .mobile-nav {
        width: 100%; /* Full width on very small screens */
    }
}
