/* Mobile Navigation & Responsive Enhancements */

/* Mobile Menu Button - Hidden by default */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-left: 1rem;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Nav Styles */
@media (max-width: 768px) {
    .glass-nav {
        padding: 1rem 5%;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Hide the links by default on mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Slide out */
        width: 70%;
        height: 100vh;
        background: rgba(15, 22, 16, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    body.light-mode .nav-links {
        background: rgba(255, 255, 255, 0.95);
    }

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

    .nav-links a {
        margin: 1.5rem 0;
        font-size: 1.2rem;
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    /* Stagger animation for links when active */
    .nav-links.active a {
        opacity: 1;
        transform: translateX(0);
    }

    /* Create the 'X' icon when active */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

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

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

    /* Adjust CTA in sidebar if needed, or keep in header */
    /* Currently CTA is in .nav-actions which is visible, so we are good */
}

/* Extra Small Screens */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-small {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .impact-card h3 {
        font-size: 2.5rem;
    }
}

/* Enhanced Mobile Responsiveness */

@media (max-width: 768px) {

    /* Navigation Adjustments */
    .nav-actions {
        gap: 0.8rem;
    }

    .cta-small {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    #lang-btn {
        padding: 0.4rem 0.8rem;
    }

    /* Move 'Join Revolution' to menu on smaller screens if crowded, 
       but for now just resize. Or hide text if needed. */

    /* Hero Section */
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-content {
        padding: 0 5%;
    }

    .hero-content .cta-pulse {
        display: block;
        margin: 1rem auto;
        width: 80%;
        text-align: center;
    }

    /* Reset margin for the second button since we are stacking them */
    .hero-content .cta-pulse[style*="margin-left"] {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Booking Page Mobile */
    .booking-section {
        padding: 100px 5% 30px;
    }

    .booking-container {
        padding: 2rem 1.5rem;
    }

    .booking-container .section-title {
        font-size: 1.8rem;
    }

    /* Team Cards */
    .team-grid {
        gap: 2rem;
    }

    .team-card {
        width: 100%;
        /* Full width cards on mobile */
        max-width: 350px;
    }

    .team-card.text-only {
        min-height: 150px;
    }

    /* Story Section */
    .story-sticky {
        position: relative;
        height: 50vh;
        width: 100%;
        top: 0;
    }

    .story-text-blocks {
        width: 100%;
        padding: 2rem 5%;
    }

    .story-block {
        height: auto;
        opacity: 1;
        margin-bottom: 3rem;
        border-left: 2px solid var(--color-secondary);
        padding-left: 1rem;
    }

    /* Tech Section */
    .tech-interface {
        flex-direction: column;
    }

    .tech-panel {
        margin: 1rem 0;
    }

    .tech-center {
        margin: 2rem 0;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
    }

    .footer-top {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-widget,
    .footer-brand {
        width: 100%;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-actions .cta-small {
        display: none;
        /* Hide 'Join' button on very small screens, keep hamburger and theme/lang */
    }

    /* Ensure the hamburger is visible even if CTA is hidden */
    .mobile-menu-btn {
        margin-left: auto;
    }

    .logo {
        font-size: 1.4rem;
    }

    /* Floating Icons */
    .floating-quick-links {
        right: 15px;
        bottom: 30px;
    }

    .icon-box {
        width: 50px;
        height: 50px;
    }

    .icon-box svg {
        width: 24px;
        height: 24px;
    }
}