@media (max-width: 1280px) {
    .hero { padding: 110px 5% 30px; }
    .hero-title { font-size: 3.8rem; }
    .dashboard { max-width: 460px; gap: 10px; }
    .laptop-card { min-height: 200px; }
    .certs-grid { grid-template-columns: repeat(2, 1fr); }
    .skills-grid.interactive { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 1024px) {
    .hero-inner,
    .about-grid,
    .skills-grid,
    .services-grid,
    .projects-grid,
    .timeline-container,
    .contact-grid,
    .github-section,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero { padding-top: 100px; min-height: auto; }
    .hero-left { text-align: center; align-items: center; }
    .hero-desc { margin: 0 auto; }
    .hero-badge { justify-content: center; }
    .hero-btns { justify-content: center; }
    .hero-socials { justify-content: center; }
    .hero-trust { justify-content: center; }

    .dashboard { max-width: 440px; margin: 0 auto; gap: 10px; }
    .laptop-card { min-height: 180px; }

    .skill-pill { display: none; }

    .navbar { padding: 1.2rem 5%; }
    .navbar.scrolled { padding: 0.85rem 5%; }
    .nav-links { display: none; }
    .nav-links.mobile-open {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background: var(--glass);
        backdrop-filter: blur(24px) saturate(1.4);
        -webkit-backdrop-filter: blur(24px) saturate(1.4);
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        z-index: 998;
        font-size: 1.2rem;
        animation: fadeIn 0.3s ease;
    }
    .nav-cta { display: none; }
    .mobile-menu-btn { display: flex; }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .testimonial-card { min-width: 100%; }
    .form-row { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

    section { padding: 70px 5%; }
    .section-title { font-size: 1.8rem; }
    .hero-title { font-size: 3rem; letter-spacing: -2px; }
    .typewriter-wrapper { font-size: 1.4rem; }

    .skills-grid.interactive { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
    .tech-icon-wrapper { width: 56px; height: 56px; border-radius: 16px; }
    .tech-icon-wrapper svg { width: 28px; height: 28px; }
    .certs-grid { grid-template-columns: repeat(2, 1fr); }
    .about-stats-grid { grid-template-columns: repeat(4, 1fr); }

    .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }

    .live-clock { display: none; }
}

@media (max-width: 768px) {
    .hero { padding: 90px 5% 20px; }
    .hero-title { font-size: 2.5rem; letter-spacing: -1.5px; }
    .typewriter-wrapper { font-size: 1.2rem; }
    .hero-desc { font-size: 0.95rem; line-height: 1.7; }

    .about-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

    .profile-card { padding: 1.5rem; }

    .projects-grid { grid-template-columns: 1fr; gap: 1.5rem; }

    .skills-grid.interactive { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .tech-icon-wrapper { width: 50px; height: 50px; }
    .tech-icon-wrapper svg { width: 25px; height: 25px; }

    .services-grid { grid-template-columns: 1fr; }

    .blog-grid { grid-template-columns: 1fr; gap: 1.5rem; }

    .certs-grid { grid-template-columns: repeat(2, 1fr); }

    .timeline-container { padding-left: 2rem; }

    .contact-grid { grid-template-columns: 1fr; }

    .github-contrib-graph { overflow-x: auto; }
}

@media (max-width: 640px) {
    .hero { padding: 90px 5% 20px; }
    .hero-title { font-size: 2.2rem; letter-spacing: -1.5px; }
    .typewriter-wrapper { font-size: 1.1rem; }
    .hero-desc { font-size: 0.9rem; }
    .hero-btns { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .hero-trust { flex-direction: column; align-items: center; }

    .dashboard { max-width: 100%; gap: 8px; }
    .laptop-card { min-height: 160px; }
    .terminal-body { font-size: 0.5rem; }
    .analytics-num { font-size: 0.85rem; }
    .github-graph { gap: 2px; }
    .graph-cell { width: 10px; height: 10px; }
    .stats-num { font-size: 0.85rem; }
    .coffee-emoji { font-size: 1rem; }

    .about-grid { gap: 2rem; }
    .about-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .about-stat-num { font-size: 1.3rem; }

    .profile-card { padding: 1.5rem; }
    .profile-avatar { width: 120px; height: 120px; }

    .portfolio-filters { flex-wrap: wrap; justify-content: center; }

    .skills-grid.interactive { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .tech-icon-wrapper { width: 48px; height: 48px; border-radius: 14px; }
    .tech-icon-wrapper svg { width: 24px; height: 24px; }
    .skills-grid,
    .services-grid,
    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .certs-grid { grid-template-columns: 1fr; }

    .timeline-container { grid-template-columns: 1fr; gap: 2rem; }

    section { padding: 50px 5%; }
    .section-title { font-size: 1.5rem; margin-bottom: 2rem; }

    .contact-grid { gap: 2rem; }
    .contact-form { padding: 1.5rem; }

    .github-section { grid-template-columns: 1fr; }
    .contrib-grid { overflow-x: auto; }
    .contrib-cell { width: 10px; height: 10px; }

    .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }

    .fab-container { bottom: 4rem; right: 1rem; }
    .fab-main { width: 40px; height: 40px; }
    .fab-item { width: 34px; height: 34px; }

    .hero-socials { gap: 0.6rem; }
    .social-btn { width: 38px; height: 38px; }
    .social-btn svg { width: 16px; height: 16px; }
}

@media (max-width: 380px) {
    .hero-title { font-size: 1.8rem; }
    .typewriter-wrapper { font-size: 1rem; }
    .dashboard { grid-template-columns: 1fr; gap: 8px; max-width: 100%; }
    .laptop-card { min-height: 140px; }
    .editor-body { font-size: 0.5rem; }
    .terminal-card { grid-column: 1; grid-row: auto; }
    .coffee-card { grid-column: 1; grid-row: auto; }
    .github-card { grid-column: 1; grid-row: auto; }
    .stats-card { grid-column: 1; grid-row: auto; }
    .analytics-card { grid-column: 1; grid-row: auto; }
    .browser-card { grid-column: 1; grid-row: auto; }
    .terminal-body { font-size: 0.45rem; }
    .graph-cell { width: 8px; height: 8px; }
    .skills-grid.interactive { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .tech-card { padding: 0.8rem; }
    .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-desc { font-size: 0.85rem; }
    .hero-badge { font-size: 0.75rem; padding: 0.4rem 0.8rem; }
    .btn { padding: 0.6rem 1rem; font-size: 0.9rem; }
    .section-title { font-size: 1.3rem; }
    .profile-card { padding: 1rem; }
    .profile-avatar { width: 100px; height: 100px; }
    .social-btn { width: 34px; height: 34px; }
    .social-btn svg { width: 14px; height: 14px; }
}
