@media (max-width: 850px) {

    .navigation {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;

        text-align: center;

        gap: 50px;

        padding: 60px 0;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .profile-card {
        width: 280px;
    }
}


@media (max-width: 500px) {

    .header-container {
        height: 68px;
    }

    .hero {
        padding-top: 68px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero h2 {
        font-size: 20px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .profile-card {
        width: 100%;
        max-width: 280px;
    }
}
@media (max-width: 850px) {

    .section {
        padding: 80px 0;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-content {
        max-width: 100%;
    }

    .about-lead {
        font-size: 21px;
    }

    .about-content p:not(.about-lead) {
        font-size: 15px;
    }

}
/* =========================
   SKILLS RESPONSIVE
========================= */

@media (max-width: 950px) {

    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    .technical-list {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 600px) {

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .technical-list {
        grid-template-columns: 1fr;
    }

    .skill-card {
        padding: 26px 22px;
    }

    .technical-skills {
        margin-top: 50px;
    }

}
/* =========================
   EXPERIENCE RESPONSIVE
========================= */

@media (max-width: 700px) {

    .timeline {
        padding-right: 25px;
    }

    .timeline::before {
        right: 6px;

        transform: none;
    }


    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;

        right: auto;

        text-align: right;

        padding: 0 25px 45px 0;
    }


    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        right: 0;
        left: auto;
    }


    .timeline-content {
        padding: 22px;
    }


    .timeline-content h3 {
        font-size: 19px;
    }


    .timeline-content p {
        font-size: 13px;
    }

}
/* =========================
   PROJECTS RESPONSIVE
========================= */

@media (max-width: 850px) {

    .projects-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .projects-intro {
        margin-top: -20px;
        margin-bottom: 35px;
    }

    .project-image {
        height: 210px;
    }

    .project-content {
        padding: 23px;
    }

    .project-content h3 {
        font-size: 20px;
    }

}
/* =========================
   EDUCATION RESPONSIVE
========================= */

@media (max-width: 950px) {

    .education-grid {
        grid-template-columns: 1fr 1fr;
    }

    .education-main {
        grid-column: 1 / -1;
    }

}


@media (max-width: 600px) {

    .education-grid {
        grid-template-columns: 1fr;
    }

    .education-main {
        grid-column: auto;
    }

    .education-card {
        min-height: auto;

        padding: 26px 22px;
    }

    .education-number {
        top: 23px;
        left: 22px;
    }

}
/* =========================
   CONTACT RESPONSIVE
========================= */

@media (max-width: 850px) {

    .contact-container {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .contact-lead {
        max-width: 100%;
    }

}


@media (max-width: 600px) {

    .contact-form-wrapper {
        padding: 22px;
    }

    .contact-lead {
        font-size: 20px;
    }

    .contact-item strong {
        font-size: 13px;
    }

}
/* =========================
   MOBILE NAVIGATION
========================= */

@media (max-width: 850px) {

    .header-container {
        position: relative;
    }


    .menu-button {
        display: flex;
    }


    .navigation {
        position: absolute;

        top: calc(100% + 12px);

        right: 0;
        left: 0;

        display: flex;

        flex-direction: column;

        gap: 0;

        padding: 10px;

        border-radius: 16px;

        background: #111722;

        border: 1px solid rgba(255, 255, 255, 0.08);

        box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.35);

        opacity: 0;

        visibility: hidden;

        transform: translateY(-10px);

        transition: 0.3s ease;

        z-index: 1000;
    }


    .navigation.active {
        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }


    .navigation a {
        display: block;

        width: 100%;

        padding: 13px 15px;

        border-radius: 9px;

        color: #aeb6c5;

        font-size: 13px;
    }


    .navigation a:hover {
        background: rgba(108, 99, 255, 0.08);

        color: #ffffff;
    }

}
/* =========================
   BACK TO TOP RESPONSIVE
========================= */

@media (max-width: 600px) {

    .back-to-top {
        left: 15px;
        bottom: 15px;

        width: 42px;
        height: 42px;
    }

}
/* =========================================
   STEP 13 - HERO MOBILE
========================================= */

@media (max-width: 850px) {

    .hero-container {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 50px;
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-badge {
        margin-bottom: 18px;
    }

    .hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-card {
        max-width: 340px;
    }
}

@media (max-width: 600px) {

    .hero-container {
        padding-top: 60px;
        padding-bottom: 60px;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content h2 {
        font-size: 19px;
    }

    .hero-content > p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 25px;
    }

    .hero-stat strong {
        font-size: 21px;
    }

    .hero-stat span {
        font-size: 11px;
    }

    .hero-card {
        padding: 25px;
    }
}