/* =========================================================
   MOBILE STYLES — OVDEVLABS.IN
   Targets screens below 768px
   ========================================================= */

@media (max-width: 768px) {

    /* ---------- GLOBAL RESET ---------- */
    body {
        overflow-x: hidden;
    }

    section {
        padding: 3rem 1rem;
    }

    h1 {
        font-size: 2rem;
        text-align: center;
        line-height: 1.2;
    }

    /* ---------- NAVIGATION ---------- */
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--color-bg);
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 2.5rem 2rem;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    /* ---------- GRID → FLEX (IMPORTANT) ---------- */
    .grid-2,
    .grid-3 {
        display: flex !important;
        flex-direction: column;
        gap: 2rem;
    }

    /* ---------- HERO SECTION ---------- */
    .hero {
        padding: 2.5rem 1rem !important;
        overflow-x: hidden;
    }

    .hero .grid-2 {
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-image {
        order: -1;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    /* ---------- AVATAR ---------- */
    .avatar-container {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0.5rem;
    }

    .avatar-container img {
        width: 140px;
        height: 140px;
        object-fit: cover;
        border-radius: 50%;
        filter: drop-shadow(0 10px 25px rgba(56, 189, 248, 0.25));
    }

    .floating-avatar {
        animation: none !important;
        transform: none !important;
    }


    /* ---------- HERO CONTENT ---------- */
    .hero-content {
        max-width: 520px;
        margin: 0 auto;
        padding: 0;
    }

    .hero-eyebrow {
        display: block;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .hero-content .lead {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

    /* ---------- HERO BUTTONS ---------- */
    .hero-btns {
        display: flex;
        gap: 0.75rem;
        justify-content: center;
        width: 100%;
    }

    .hero-btns .btn {
        flex: 1;
        min-height: 44px;
        font-size: 0.85rem;
        padding: 0.8rem;
    }

    /* ---------- STATS SECTION ---------- */
    #stats .grid-3 {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        text-align: center;
    }

    #stats .stat-item h3 {
        font-size: 1.6rem;
    }

    #stats .stat-item p {
        font-size: 0.75rem;
    }

    /* ---------- PROCESS SECTION ---------- */
    #process .grid-3 {
        display: flex !important;
        flex-direction: column;
        gap: 1.5rem;
    }

    #process h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    #process p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* ---------- VERY SMALL SCREENS ---------- */
    @media (max-width: 420px) {

        h1 {
            font-size: 1.6rem;
        }

        #stats .grid-3 {
            grid-template-columns: 1fr;
            gap: 1.25rem;
        }

        .avatar-container img {
            width: 125px;
            height: 125px;
        }


        .hero-btns .btn {
            font-size: 0.8rem;
        }
    }
}