/* Mobile Navigation Styles */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2), .hamburger span:nth-child(3) {
    top: 9px;
}

.hamburger span:nth-child(4) {
    top: 18px;
}

/* Active state when menu is open */
.hamburger.active span:nth-child(1) {
    top: 9px;
    width: 0%;
    left: 50%;
}

.hamburger.active span:nth-child(2) {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

.hamburger.active span:nth-child(4) {
    top: 9px;
    width: 0%;
    left: 50%;
}

/* Mobile Menu Styling */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

.mobile-menu ul {
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    list-style: none;
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-menu.active li {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger the animation of menu items */
.mobile-menu.active li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active li:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.active li:nth-child(5) { transition-delay: 0.5s; }

.mobile-menu a {
    color: white;
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding: 10px;
    transition: all 0.3s ease;
}

.mobile-menu a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-menu a:hover::before {
    width: 70%;
}

.mobile-menu .social-links {
    margin-top: 40px;
}

.mobile-menu .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    margin: 0 10px;
    font-size: 18px;
    line-height: 40px;
    transition: all 0.3s ease;
}

.mobile-menu .social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    .nav-links {
        display: none !important;
    }
}
