@media only screen and (max-width: 600px) {
    #education .card {
        margin-bottom: 1rem;
        border: none;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    #education .card-body {
        padding: 1rem;
        width: 100%;
    }

    #education .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    #education .card-text {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    #education .item-date {
        font-size: 0.8rem;
        color: #666;
        margin-bottom: 0.5rem;
    }

    #education .section-title {
        margin-bottom: 1.5rem;
    }

    #education .row {
        margin: 0 -0.5rem;
    }

    #education .col-md-6 {
        padding: 0 0.5rem;
    }

  
}
@media only screen and (max-width: 600px) {
    body {
        font-size: 14px;
        min-width: 320px;
    }

    #about p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: left;
        margin-bottom: 1.5rem;
    }

    .certification-icons {
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .certification-icon {
        width: 40px;
        height: 40px;
    }

    .card-img-top {
        width: 150px;

    }

    .card-title {
        font-size: 16px;
    }

    .card-text {
        font-size: 12px;
    }

    #hero {
        h1 {
            font-size: 1.7rem;
            font-weight: 700;
            margin-bottom: 1rem;
        }

        p {
            font-size: 1rem;
        }

        .timeline {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 1rem 0;
            margin: 0 auto;
            max-width: 90%;
        }

        .timeline::before {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            width: 2px;
            background: #ccc;
            left: 50%;
            transform: translateX(-50%);
        }

        .timeline-item {
            width: 90%;
            margin-bottom: 0.5rem;
            text-align: left;
            padding: 0.5rem;
            border-radius: 5px;
            background-color: #e0e0e0;
        }

        .timeline-item h5 {
            font-size: 1.4rem;
            margin-bottom: 0.5rem;
        }

        .timeline-item p {
            font-size: 1rem;
            line-height: 1.4;
        }

        .tech-icon {
            width: 60px;
            height: 60px;
            margin-bottom: .5rem;
            filter: invert(1);
        }
    }

  

        .card-title {
            font-weight: 600;
            color: var(--neon);
        }

    }

@media only screen and (max-width: 768px) {
    .timeline {
        padding: 1rem 0;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        width: 100%;
        padding: 1rem;
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .timeline-item:nth-child(odd) {
        left: 0;
        background: rgba(0, 255, 51, 0.1);
    }

    .timeline-item:nth-child(even) {
        left: 0;
        background: rgba(255, 255, 255, 0.1);
    }

    #about {
        padding-top: 0;

        img {
            width: 100%;
            height: 300px;
            object-fit: cover;
            border-radius: 8px;
            margin: 1rem 0;
        }

    }

    .tech-icon {
        width: 32px;
        height: 32px;
        margin-bottom: .5rem;
        filter: invert(1);
    }

    .carousel-item {
        p {
            font-size: 0.7rem;
            line-height: 1.4;
            text-align: left;
            margin-bottom: 1.5rem;
        }

        .p-3 {
            padding: 0.5rem !important;
        }
    }

    li.timeline-item.aos-init.aos-animate {
        margin-bottom: 3rem;
    }
    img.certification-icon {
        width: 20px !important;
        height: 20px !important;
      }
    }