/* ========================================
   TABLETS (max-width: 1024px)
======================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-container .section-tag {
        margin: 0 auto;
    }

    .about-container .about-desc {
        text-align: center;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   MOBILE (max-width: 768px)
======================================== */
@media (max-width: 768px) {
    /* Navbar */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-dark);
        border-left: 1px solid var(--glass-border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        padding: 40px 0;
        gap: 24px;
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .btn-nav {
        background: transparent;
        padding: 0;
    }

    .btn-nav::after {
        display: none;
    }

    /* Hero */
    .hero {
        padding: 100px 0 40px;
        min-height: auto;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-desc {
        margin: 0 auto 32px;
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        margin: 0 auto;
        gap: 16px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* Sections */
    .section-title {
        font-size: 2rem;
    }

    .projects-grid,
    .apps-grid,
    .youtube-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .app-card {
        flex-direction: column;
        text-align: center;
    }

    .about-container {
        gap: 30px;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .contact-card {
        padding: 24px 16px;
    }
}

/* ========================================
   SMALL MOBILE (max-width: 480px)
======================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .project-title,
    .app-title,
    .youtube-title {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   DARK MODE OVERRIDE (Optional)
======================================== */
@media (prefers-color-scheme: light) {
    body {
        background: var(--bg-light);
        color: var(--text-dark);
    }

    .navbar {
        background: rgba(248, 250, 252, 0.85);
        border-bottom: 1px solid #e2e8f0;
    }

    .nav-link {
        color: #475569;
    }

    .nav-link:hover {
        color: #0f172a;
    }

    .section-desc {
        color: #64748b;
    }

    .project-card,
    .app-card,
    .youtube-card,
    .contact-card {
        background: rgba(0, 0, 0, 0.03);
        border-color: #e2e8f0;
    }

    .project-desc,
    .app-desc,
    .youtube-desc,
    .about-desc {
        color: #64748b;
    }

    .project-tech span {
        background: rgba(0, 0, 0, 0.05);
        color: #475569;
    }

    .skill-bar {
        background: rgba(0, 0, 0, 0.05);
    }

    .hero-desc {
        color: #64748b;
    }

    .stat-label {
        color: #64748b;
    }

    .footer {
        border-top-color: #e2e8f0;
        color: #64748b;
    }

    .contact-card a {
        color: #64748b;
    }

    .contact-card a:hover {
        color: #0f172a;
    }

    .hero-badge {
        color: #64748b;
        background: rgba(0, 0, 0, 0.03);
        border-color: #e2e8f0;
    }

    .section-tag {
        background: rgba(14, 165, 233, 0.1);
    }

    .btn-secondary {
        background: rgba(0, 0, 0, 0.03);
        border-color: #e2e8f0;
        color: var(--text-dark);
    }

    .btn-secondary:hover {
        background: rgba(0, 0, 0, 0.06);
    }

    .projects,
    .youtube,
    .contact {
        background: rgba(0, 0, 0, 0.02);
    }

    .project-tag {
        background: rgba(79, 70, 229, 0.1);
    }

    .app-icon {
        background: rgba(0, 0, 0, 0.03);
    }

    .nav-menu.active {
        background: var(--bg-light);
    }

    .hamburger span {
        background: var(--text-dark);
    }
}