/* Extra Small Devices (Portrait Phones, 400px and down) */
@media (max-width: 400px) {
    #intro h1 {
        font-size: 20px;
    }

    #cta {
        padding: 6px 12px;
        font-size: 12px;
    }

    .services {
        flex-direction: column;
        align-items: center;
    }

    .service-left, .service-right {
        width: 100%;
        margin-top: 20px;
    }

    .single-service {
        width: 80%;
    }

    .phone-img {
        margin-top: 10px;
    }

    .phone-img img {
        width: 100%;
        height: auto;
    }

    .single-service i {
        font-size: 18px;
    }

    #bio {
        flex-direction: column;
    }

    #details {
        text-align: left;
    }

    #timeline {
        width: 90%;
        margin: 0;
    }

    #tech-stack, #skills-charts {
        width: 100%;
        margin: 0;
        margin-top: 10px;
    }

    .tech-item {
        font-size: 1em;
    }

    #contact-form {
        padding: 0 5px;
    }

    #chatbot {
        display: none;
    }
}

/* Small Devices (Phones, 600px and down) */
@media (min-width: 401px) and (max-width: 600px) {
    #intro h1 {
        font-size: 24px;
    }

    #cta {
        padding: 8px 16px;
        font-size: 14px;
    }

    .services {
        flex-direction: column;
        align-items: center;
    }

    .service-left, .service-right {
        width: 100%;
        margin-top: 20px;
    }

    .single-service {
        width: 80%;
    }

    .phone-img {
        margin-top: 10px;
    }

    .phone-img img {
        width: 100%;
        height: auto;
    }

    .single-service i {
        font-size: 20px;
    }

    #bio {
        flex-direction: column;
    }

    #details {
        text-align: left;
    }

    #timeline {
        width: 90%;
        margin: 0;
    }

    #tech-stack, #skills-charts {
        width: 100%;
        margin: 0;
        margin-top: 10px;
    }

    .tech-item {
        font-size: 1em;
    }

    #contact-form {
        padding: 0 10px;
    }

    #profile-picture img {
        width: 100%;
        height: auto;
    }

    #chatbot {
        display: none;
    }
}

/* Medium Devices (Tablets, 600px to 768px) */
@media (min-width: 601px) and (max-width: 768px) {
    header {
        text-align: center;
    }

    .services {
        flex-direction: column;
    }

    .service-left, .service-right {
        width: 100%;
        margin-top: 0;
    }

    .phone-img img {
        width: 60%;
        height: auto;
        margin: auto;
        display: block;
    }

    .single-service i {
        font-size: 22px;
    }

    #about {
        text-align: left;
    }

    #bio {
        flex-direction: column;
    }

    #details {
        text-align: left;
    }

    #skills-visualization {
        flex-direction: column;
        align-content: center;
    }

    #timeline {
        width: 94%;
        margin: 0;
    }

    #tech-stack, #skills-charts {
        width: 100%;
        margin: 10px;
    }

    .tech-item {
        font-size: 1.2em;
    }

    #contact-form {
        width: 50%;
        margin: 0 auto;
    }

    form .form-group {
        margin-bottom: 20px;
    }

    #intro h1 {
        font-size: 28px;
    }
}

/* Large Devices (Desktops, 769px and up) */
@media (min-width: 769px) and (max-width: 992px) {
    .services {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .service-left, .service-right {
        margin-top: 20px;
    }

    .phone-img img {
        width: 60%;
        height: auto;
        margin: auto;
        display: block;
    }

    .single-service i {
        font-size: 24px;
    }

    #contact-form {
        width: 50%;
        margin: 0 auto;
    }

    #intro h1 {
        font-size: 36px;
    }
}

@media (min-width: 993px) and (max-width: 1199px) {
    #contact-form {
        width: 40%;
    }

    .phone-img {
        margin-top: 250px;
    }

    .phone-img img {
        height: auto;
        margin: auto;
        display: block;
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) and (max-width: 1440px) {
    .services {
        padding: 40px;
    }

    .service-left, .service-right {
        width: 45%;
    }

    .phone-img {
        margin-top: 250px;
    }

    #contact-form {
        width: 100%;
        max-width: 1000px;
    }

    #intro h1 {
        font-size: 42px;
    }
}

/* Ultra-Wide Screens (1440px and up) */
@media (min-width: 1440px) {
    .services {
        padding: 60px;
    }

    .service-left, .service-right {
        width: 44%;
    }

    #contact-form {
        width: 40%;
    }

    #intro h1 {
        font-size: 48px;
    }
}

/* Very Large Screens (2560px and up) */
@media (min-width: 2560px) {
    .services {
        padding: 80px;
    }

    .service-left, .service-right {
        width: 40%;
    }

    #contact-form {
        width: 50%;
    }

    #intro h1 {
        font-size: 56px;
    }
}