/* Mobile Menu Styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: var(--primary-color);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .hero-content {
        max-width: 90%;
    }

    .tools-grid,
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .section-header h2 {
        font-size: 2.4rem;
    }

    .practice-area {
        padding: 2rem;
        margin: 1.5rem;
    }

    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu */
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--card-bg);
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        box-shadow: var(--shadow);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.8rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Hero Section */
    .hero {
        padding: 6rem 1rem 3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .stats {
        flex-direction: column;
        gap: 2rem;
    }

    /* Tools Grid */
    .tools-grid,
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .tool-card,
    .resource-card {
        padding: 1.5rem;
    }

    /* Practice Area */
    .practice-area {
        padding: 1.5rem;
        margin: 1rem;
    }

    .practice-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .recording-controls {
        flex-direction: column;
        align-items: stretch;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .logo img {
        height: 32px;
    }

    .logo span {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    .section-header h2 {
        font-size: 2rem;
        -webkit-background-clip: text;
        background-clip: text;
    }
    
    /* Fix for backdrop-filter compatibility */
    .quick-tips,
    .nav-links {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }

    .tool-card h3,
    .resource-card h3 {
        font-size: 1.5rem;
    }

    .practice-area {
        padding: 1rem;
        margin: 0.5rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .timer {
        width: 100%;
        text-align: center;
    }

    .recording-status {
        text-align: center;
    }
}

/* Tablet Portrait Fixes */
@media (min-width: 768px) and (max-width: 1024px) {
    .tools-grid,
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .hero-content {
        max-width: 95%;
    }

    .stats {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .practice-controls,
    .recording-controls,
    .menu-toggle {
        display: none !important;
    }
}
