/**
 * Mobile Responsiveness Fixes
 * Ensures proper navigation, footer alignment, and layout on mobile devices
 */

/* MOBILE HEADER NAVIGATION FIXES */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-brand {
        flex: 1;
    }
    
    .nav-menu {
        display: flex;
        align-items: center;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-top: 1px solid rgba(0, 230, 255, 0.2);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1000;
    }
    
    .hamburger,
    .hamburger::before,
    .hamburger::after {
        width: 30px;
        height: 3px;
        background: var(--color-neon-blue);
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    .hamburger {
        position: relative;
    }
    
    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
    }
    
    .hamburger::before {
        top: -8px;
    }
    
    .hamburger::after {
        bottom: -8px;
    }
    
    .nav-toggle.active .hamburger {
        background: transparent;
    }
    
    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
    
    .nav-link {
        color: var(--color-white);
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 500;
        padding: 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        text-align: center;
    }
    
    .nav-link:hover {
        background: rgba(0, 230, 255, 0.1);
        color: var(--color-neon-blue);
    }
}

/* MOBILE FOOTER ALIGNMENT FIXES */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        text-align: center !important;
    }
    
    .footer-brand {
        align-items: center !important;
        text-align: center !important;
    }
    
    .footer-links {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        text-align: center !important;
    }
    
    .footer-section {
        align-items: center !important;
        text-align: center !important;
    }
    
    .footer-section h4 {
        text-align: center !important;
    }
    
    .footer-section h4::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .footer-section ul {
        align-items: center !important;
    }
    
    .footer-section li {
        justify-content: center !important;
    }
    
    .footer-section a {
        text-align: center !important;
        justify-self: center !important;
    }
    
    .footer-section a::before {
        display: none !important;
    }
    
    .footer-section a:hover {
        padding-left: 0.8rem !important;
        padding-right: 0.8rem !important;
    }
}

/* ENSURE JOIN THE MOVEMENT IS CENTERED */
.join-movement {
    text-align: center !important;
}

.join-movement h2,
.join-movement h3 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* MOBILE HERO SECTION IMPROVEMENTS */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 1rem 4rem 1rem !important;
        margin-top: 70px !important;
    }
    
    .hero-content {
        padding: 0 1rem !important;
        max-width: 100% !important;
    }
    
    .hero-logo {
        max-width: 200px !important;
        margin-bottom: 2rem !important;
    }
    
    .hero-badge {
        font-size: 0.8rem !important;
        padding: 0.6rem 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero .hero-main-title {
        font-size: clamp(2rem, 8vw, 3rem) !important;
        line-height: 1.1 !important;
        margin-bottom: 2rem !important;
    }
    
    .hero .hero-description {
        font-size: clamp(1rem, 4vw, 1.2rem) !important;
        margin-bottom: 2.5rem !important;
        padding: 0 0.5rem !important;
    }
    
    .hero .cta-button {
        padding: 1.5rem 2rem !important;
        font-size: 1rem !important;
    }
    
    .hero .cta-button span {
        font-size: 1rem !important;
    }
    
    .hero .cta-button small {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 0.5rem 3rem 0.5rem !important;
        margin-top: 60px !important;
    }
    
    .hero-content {
        padding: 0 0.5rem !important;
    }
    
    .hero-logo {
        max-width: 150px !important;
    }
    
    .hero-badge {
        font-size: 0.75rem !important;
        padding: 0.5rem 1.2rem !important;
    }
    
    .hero .hero-main-title {
        font-size: clamp(1.8rem, 9vw, 2.5rem) !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero .hero-description {
        font-size: clamp(0.95rem, 4vw, 1.1rem) !important;
        margin-bottom: 2rem !important;
    }
    
    .hero .cta-button {
        padding: 1.3rem 1.8rem !important;
        font-size: 0.95rem !important;
    }
}

/* ENSURE NAVIGATION IS FUNCTIONAL ON MOBILE */
.nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex !important;
    }
    
    .nav-links {
        display: none !important;
    }
    
    .nav-links.active {
        display: flex !important;
    }
}

/* PREVENT HORIZONTAL SCROLLING */
body {
    overflow-x: hidden !important;
}

.hero,
.container,
.footer {
    max-width: 100% !important;
    overflow: hidden !important;
}