/* ======================================================
   MOBILE & SMALL SCREENS (<= 768px)
   ====================================================== */
@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }

    body {
        overflow-x: hidden;
        padding-top: 85px;
    }

    .navbar {
        top: 10px;
        padding: 5px 8px;
        max-width: calc(100vw - 20px);
    }

    .nav-links {
        gap: 4px;
    }

    .nav-link {
        height: 40px;
        padding: 0 12px;
        font-size: 13px;
        gap: 6px;
    }

    .hero {
        min-height: auto;
        padding: 20px 0 40px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-avatar {
        order: -1;
        width: min(210px, 58vw);
        margin: 0 auto;
    }

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

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.25;
    }

    .hero-text h2 {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .hero-text p {
        max-width: 100%;
        margin: 0 auto 1.4rem auto;
        font-size: 0.95rem;
    }

    .cta-buttons {
        justify-content: center;
        width: 100%;
        gap: 10px;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        white-space: nowrap;
    }

    .hero .social-icons {
        justify-content: center;
        width: 100%;
    }

    .section {
        padding: 45px 0;
    }

    .section-title {
        text-align: center;
        margin-bottom: 1.8rem;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .section-button {
        margin-top: 2.5rem;
    }

    .about-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .avatar {
        width: min(200px, 55vw);
        margin: 0 auto;
    }

    .skill-grid,
    .work-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .achievement-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .achievement-card {
        padding: 1.5rem;
    }

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

    .contact-info {
        text-align: center;
    }

    .info-item {
        text-align: left;
    }

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

    .social-links a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    footer {
        padding: 2.5rem 0;
    }
}

@media screen and (max-width: 480px) {
    .nav-link span {
        display: none;
    }

    .nav-link {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .cta-buttons .btn {
        width: 100%;
        font-size: 14px;
        padding: 0 16px;
    }
}