@media (max-width: 1200px) {
    .section {
        padding: var(--space-xl) var(--space-md);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 6rem var(--space-md) 3rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn-multiverse,
    .hero-cta .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .scene-controls {
        right: 0.75rem;
        bottom: 1rem;
        gap: 0.5rem;
    }

    .audio-toggle {
        left: 0.75rem;
        bottom: 1rem;
    }

    .back-to-top {
        left: 0.75rem;
        bottom: 4.5rem;
    }

    .scene-btn,
    .audio-toggle,
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .quality-panel {
        right: 4rem;
        bottom: 1rem;
    }

    .detail-hero {
        padding-top: 6rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --space-2xl: 4rem;
        --space-xl: 2.5rem;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .skill-category {
        padding: var(--space-md);
    }

    .glass-panel {
        padding: var(--space-md);
    }

    .scene-controls {
        display: none;
    }
}

/* Disable heavy effects on touch devices */
@media (hover: none) {

    .glass-panel:hover,
    .stat-card:hover,
    .timeline-card:hover,
    .service-card:hover .service-icon {
        transform: none;
    }
}
