.about {
    padding: 100px 0 50px;
}

.about .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center; /* Change from start to center */
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.section-title {
    grid-column: 1 / -1;
    text-align: right;
}

.about-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: right;
    align-self: center; /* Add this */
}

.about-info {
    grid-column: span 6; /* Take up 6 columns */
    width: 100%;
}

.about-image {
    position: relative;
    width: fit-content;
    height: auto;
    justify-self: center;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    align-self: start;
}

.about-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    z-index: 2;
    position: relative;
}

.image-border {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 3px solid #202f61;
    border-radius: 10px;
    top: 15px;
    right: 15px;
    z-index: 1;
}

/* Remove hover effects */
/* .about-image:hover img {
    transform: none;
}

.about-image:hover .image-border {
    transform: none;
} */

@media (max-width: 850px) {
    .about .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 300px;
        display: flex;
        justify-content: center;
        padding: 0;
        position: relative;
        width: fit-content;
        margin: 2rem auto; /* Add margin for better spacing */
    }

    .image-border {
        left: 15px;
        bottom: 0;
        top: 15px;
        width: 300px;
        height: 300px;
        right: -15px;
        /* Remove transform property */
    }

    .about-image img {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        transition: none; /* Disable transitions */
    }

    /* Remove all hover states for mobile */
    /* .about-image:hover img,
    .about-image:hover .image-border {
        transform: none;
        transition: none;
    } */

    [dir="rtl"] .image-border {
        right: 50%;
        left: auto;
        transform: translateX(50%);
    }

    [dir="rtl"] .about-image img {
        right: 50%;
        left: auto;
        transform: translateX(50%);
    }
}

@media (max-width: 768px) {
    .about {
        padding: 100px 0 50px;
    }

    .about-content {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 3rem;
    }

    .about-info,
    .about-image {
        grid-column: 1 / -1; /* Full width on mobile */
    }
}

@media (max-width: 550px) {
    .achievement-grid {
        grid-template-columns: 1fr;
    }
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.achievement-card {
    background: #202f61;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.5s ease;
    cursor: pointer;
}

.achievement-card:hover {
    background: transparent;
    border: 1px solid #4a90e2;
}

.achievement-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    fill: #4a90e2;
    filter: invert(53%) sepia(75%) saturate(638%) hue-rotate(182deg) brightness(95%) contrast(91%);
}

.achievement-card h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.achievement-card p {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.4;
}

.about-text {
    color: #fff;
    margin: 30px 0;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.highlight {
    color: #4a90e2;
}

.technologies h3 {
    color: #fff;
    margin-bottom: 20px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.tech-item {
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-item .fas {
    color: #4a90e2;
    font-size: 0.9em;
}

.tech-item::before {
    content: none;
}