/* ===== MOBILE NAVIGATION STYLES ===== */

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(101, 197, 204, 0.1) 0%, rgba(255, 255, 255, 0.2) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(101, 197, 204, 0.2);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-cubic);
    position: relative;
    overflow: hidden;
}

.mobile-menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.mobile-menu-btn:hover::before {
    opacity: 0.1;
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(101, 197, 204, 0.2);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out-cubic);
    transform-origin: center;
}

.hamburger-line:not(:last-child) {
    margin-bottom: 4px;
}

/* Animation when menu is open */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(30, 41, 59, 0.95) 25%,
        rgba(51, 65, 85, 0.95) 50%,
        rgba(71, 85, 105, 0.95) 75%,
        rgba(100, 116, 139, 0.95) 100%
    );
    backdrop-filter: blur(20px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-cubic);
    overflow-y: auto;
}

.mobile-menu-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(101, 197, 204, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(101, 197, 204, 0.08) 0%, transparent 50%);
    animation: mobileGradientShift 20s ease-in-out infinite;
    pointer-events: none;
}

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

.mobile-menu-content {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-10);
    padding: var(--space-4) 0;
    border-bottom: 1px solid rgba(101, 197, 204, 0.2);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.mobile-brand-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(101, 197, 204, 0.3);
    position: relative;
    overflow: hidden;
}

.mobile-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: transparent;
    display: block;
}

.mobile-logo-text {
    display: none;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.mobile-brand-text h3 {
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.mobile-brand-text h4 {
    color: var(--primary-light);
    font-size: 0.9375rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
}

.mobile-close-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-cubic);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.mobile-close-btn svg {
    width: 20px;
    height: 20px;
}

/* Mobile Navigation Links */
.mobile-menu-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    transition: all 0.4s var(--ease-out-cubic);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.6s var(--ease-out-cubic) forwards;
}

.mobile-nav-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-link:nth-child(2) { animation-delay: 0.2s; }
.mobile-nav-link:nth-child(3) { animation-delay: 0.3s; }
.mobile-nav-link:nth-child(4) { animation-delay: 0.4s; }
.mobile-nav-link:nth-child(5) { animation-delay: 0.5s; }
.mobile-nav-link:nth-child(6) { animation-delay: 0.6s; }
.mobile-nav-link:nth-child(7) { animation-delay: 0.7s; }

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    transition: left 0.4s var(--ease-out-cubic);
    z-index: -1;
}

.mobile-nav-link:hover::before {
    left: 0;
}

.mobile-nav-link:hover {
    transform: translateX(8px);
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(101, 197, 204, 0.2);
}

.mobile-nav-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-color: var(--primary-light);
    box-shadow: 0 8px 30px rgba(101, 197, 204, 0.3);
}

.mobile-link-icon {
    font-size: 1.5rem;
    min-width: 30px;
    text-align: center;
}

.mobile-nav-link span {
    flex: 1;
}

.mobile-link-arrow {
    font-size: 1.25rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    transform: translateX(-5px);
}

.mobile-nav-link:hover .mobile-link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    text-align: center;
    padding: var(--space-6) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: fadeInUp 0.6s var(--ease-out-cubic) 0.8s forwards;
}

.mobile-footer-motto {
    color: var(--primary-light);
    font-style: italic;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: var(--space-2);
    letter-spacing: 0.5px;
}

.mobile-footer-year {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 400;
}

/* Animations */
@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mobileGradientShift {
    0%, 100% {
        background: 
            radial-gradient(circle at 20% 20%, rgba(101, 197, 204, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 40% 60%, rgba(101, 197, 204, 0.08) 0%, transparent 50%);
    }
    50% {
        background: 
            radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 20% 80%, rgba(101, 197, 204, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 60% 40%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .brand-text {
        display: none;
    }
    
    .mobile-menu-content {
        padding: var(--space-4);
    }
    
    .mobile-nav-link {
        padding: var(--space-4) var(--space-5);
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 var(--space-4);
    }
    
    .mobile-brand-text h3 {
        font-size: 1rem;
    }
    
    .mobile-brand-text h4 {
        font-size: 0.875rem;
    }
    
    .mobile-nav-link {
        padding: var(--space-4);
        gap: var(--space-3);
    }
    
    .mobile-link-icon {
        font-size: 1.25rem;
        min-width: 25px;
    }
}

/* Ensure mobile menu is on top of everything */
.mobile-menu-overlay {
    z-index: 9998;
}

.navbar {
    z-index: 9999;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}