/*------------------- Responsive Design -------------------*/


/* ========== Medium layout: large tablets / small laptops ========== */

@media only screen and (min-width: 1000px) and (max-width: 1200px) {
    .container {
        width: 95%;
        max-width: 970px;
    }
}


/* Keep hero reasonable on this range */

@media (max-width: 1050px) {
    .FirstElement {
        flex-direction: column;
        padding-top: 2.5rem;
        gap: 2.5rem;
    }
    .profile-text {
        padding: 30px 0;
        text-align: center;
    }
}


/* ========== Tablet layout ========== */

@media only screen and (min-width: 768px) and (max-width: 999px) {
    .container {
        width: 92%;
        max-width: 750px;
    }
}


/* ========== Mobile Layout (phones and below) ========== */

@media only screen and (max-width: 767px) {
    .container {
        width: 92%;
        max-width: 640px;
    }
    /* header: show burger, hide full nav */
    .header .menu_icon {
        display: block;
    }
    .header ul {
        display: none;
    }
    .header i {
        color: var(--color-muted);
    }
    /* hero text – full width, scale fonts */
    .profile-text {
        width: 100%;
        max-width: 100%;
        padding: 20px 0;
    }
    .profile-text h1 {
        font-size: 2.2rem;
    }
    .profile-text h5 {
        font-size: 12px;
    }
    .profile-text .social i {
        font-size: 16px;
        margin-right: 8px;
    }
    .FirstElement .profile-text p {
        text-align: justify;
    }
    /* About section stacks */
    .about {
        flex-direction: column;
        flex-basis: 100%;
        margin-bottom: 30px;
    }
    .about-skills {
        width: 100%;
        margin-top: 24px;
    }
    /* Education / internship column stack */
    .education-content .row {
        flex-direction: column;
        height: auto;
        margin-bottom: 40px;
    }
    .education-content .row .education,
    .education-content .row .internship {
        flex-basis: 100%;
        max-width: 100%;
        margin-top: 24px;
    }
    /* Projects: one per row on mobile */
    .project {
        flex-basis: 100%;
        margin-bottom: 24px;
    }
}