/* ============================================
   RESPONSIVE — Mobile & Tablet Breakpoints
   ============================================ */

/* ========== TABLET (768px) ========== */
@media (max-width: 768px) {

    /* Navbar */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(250, 250, 249, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-lg);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
    }

    /* Hero */
    .hero-wrapper {
        flex-direction: column-reverse;
        text-align: center;
        gap: var(--space-lg);
        padding-top: var(--space-xl);
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-name {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-tagline {
        text-align: center;
    }

    .hero-nav {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        max-width: 400px;
    }

    .hero-avatar {
        width: 220px;
        height: 220px;
    }

    .hero-glow {
        width: 280px;
        height: 280px;
    }

    .hero-social {
        justify-content: center;
    }

    /* Hero page allow scroll on mobile */
    .hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: var(--space-xl);
    }

    /* About */
    .about-intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-avatar {
        width: 180px;
        height: 220px;
    }

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

    /* Timeline */
    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: row;
        padding-right: 0;
        padding-left: 50px;
        text-align: left;
    }

    .timeline-dot {
        left: 20px;
    }

    /* Skills */
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Contact */
    .contact-layout {
        grid-template-columns: 1fr;
    }

    /* Grids */
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

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

    /* Section spacing */
    .section {
        padding: var(--space-xl) 0;
    }
}

/* ========== MOBILE (480px) ========== */
@media (max-width: 480px) {

    :root {
        --container-padding: 1.2rem;
    }

    /* Hero */
    .hero-nav {
        grid-template-columns: 1fr;
    }

    .hero-avatar {
        width: 180px;
        height: 180px;
    }

    /* About */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    .about-avatar {
        width: 150px;
        height: 180px;
    }

    /* Skills */
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    /* Timeline */
    .timeline::before {
        left: 15px;
    }

    .timeline-dot {
        left: 15px;
        width: 12px;
        height: 12px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 40px;
    }

    .timeline-content {
        padding: var(--space-sm) var(--space-md);
    }

    /* Grid fallbacks */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Contact form */
    .contact-form-wrapper {
        padding: var(--space-md);
    }

    /* Buttons */
    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Cert grid */
    .cert-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    /* Soft skills */
    .soft-skills {
        justify-content: center;
    }

    .soft-skill-chip {
        font-size: var(--fs-xs);
        padding: 0.5rem 1rem;
    }
}

/* ========== LARGE SCREENS (1440px+) ========== */
@media (min-width: 1440px) {
    .hero-avatar {
        width: 380px;
        height: 380px;
    }

    .hero-glow {
        width: 480px;
        height: 480px;
    }
}
