/* Mobile and Responsive Styles */
@media screen and (max-width: 768px) {
    /* Center all content on mobile */
    .container {
        text-align: center;
        padding: 0 1.5rem;
    }

    .section-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Center images and other content */
    img {
        margin: 0 auto;
    }
    /* Navbar styles */
    .navbar {
        padding: 0;
        background: var(--bg-secondary);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-container {
        padding: 0.8rem 1rem;
        gap: 0.5rem;
        align-items: center;
        justify-content: space-between;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        position: relative;
        z-index: 999;
    }
    
    .theme-toggle {
        position: relative;
        z-index: 999;
        background: var(--bg-secondary);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 2px solid var(--brand-primary);
    }

    .theme-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: transparent;
        border: none;
        color: var(--text-primary);
        font-size: 1.2rem;
        cursor: pointer;
        margin-right: 0.3rem;
    }

    .nav-brand {
        flex: 1;
    }

    .nav-brand img {
        width: 40px !important;
        height: 40px !important;
    }

    .nav-brand .brand-text {
        font-size: 1.2rem;
    }

    @media screen and (max-width: 768px) {
        .nav-menu {
            display: none;
            position: fixed;
            top: 80px; /* Height of the navbar */
            left: 0;
            width: 100%;
            height: calc(100vh - 80px);
            background: var(--bg-secondary);
            padding: 2rem 1rem;
            transition: all 0.3s ease-in-out;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            gap: 1.5rem;
            overflow-y: auto;
            z-index: 996;
            text-align: center;
        }

        .nav-menu.active {
            display: flex;
            right: 0;
        }

        .nav-link {
            padding: 0.8rem;
            border-radius: 8px;
            transition: background-color 0.3s ease;
        }

        .nav-link:hover {
            background: rgba(255, 255, 255, 0.1);
        }
    }
    
    .menu-close-btn {
        position: fixed;
        top: 1.2rem;
        right: 1.2rem;
        background: transparent;
        border: none;
        color: var(--text-primary);
        font-size: 1.8rem;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
        display: none;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu.active .menu-close-btn {
        display: flex;
    }

    .nav-menu.active {
        padding-top: 4rem;
    }

    /* Add overlay when menu is open */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 997;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-actions {
        gap: 0.5rem;
        z-index: 999;
    }

    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        margin-left: 0.5rem;
    }

    .mobile-menu-btn {
        z-index: 999;
    }

    .mobile-menu-btn span {
        width: 100%;
        height: 3px;
        background: #00ff00;
        transition: all 0.3s ease-in-out;
        border-radius: 2px;
        box-shadow: 0 0 8px #00ff00, 0 0 12px #00ff00, 0 0 16px #00ff00;
        position: relative;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background: #00ff00;
        box-shadow: 0 0 8px #00ff00, 0 0 12px #00ff00, 0 0 16px #00ff00;
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background: #00ff00;
        box-shadow: 0 0 8px #00ff00, 0 0 12px #00ff00, 0 0 16px #00ff00;
    }

    body.menu-open {
        overflow: hidden;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.8rem 0;
        width: 100%;
        text-align: left;
    }

    /* Hero section responsive styles */
    .hero-section {
        padding: 0;
        height: 100vh;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        width: 90%;
        padding: 1rem;
        max-width: 100%;
        margin: 0;
        transform: scale(1.4);
        transform-origin: center center;
    }

    .hero-title {
        font-size: 1.8rem;
        text-align: center;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        text-align: center;
        padding: 0;
        margin-bottom: 1.5rem;
    }

    .hero-badge {
        transform: scale(0.9);
    }

    .hero-buttons {
        transform: scale(0.9);
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        align-items: stretch;
    }

    .hero-primary-btn,
    .hero-secondary-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        width: 100%;
        text-align: center;
    }

    /* Buttons */
    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Fix for overlapping content when menu is open */
    .nav-menu {
        padding-top: 5rem;
    }

    .nav-brand a {
        z-index: 999;
    }
}

/* Tablet Styles */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .hero-section {
        padding: 3rem 2rem;
    }

    .hero-content {
        width: 90%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        padding: 0.5rem;
    }
}

/* Ensure mobile menu button is hidden on desktop */
@media screen and (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
}
