/**
 * About section responsive enhancements
 * Ensures proper display on all device sizes
 */

/* Base styles refinement */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    margin-top: 20px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
}

.about-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.detail {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        grid-row: 1;
        justify-content: center;
    }
    
    .about-text {
        grid-row: 2;
    }
    
    .profile-image {
        max-width: 70%;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .detail i {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 768px) {
    .about-details {
        gap: 15px;
        margin-top: 20px;
    }
    
    .detail {
        gap: 8px;
    }
}

@media screen and (max-width: 576px) {
    .profile-image {
        max-width: 85%;
    }
    
    .about-details {
        flex-direction: column;
        gap: 12px;
    }
}

@media screen and (max-width: 480px) {
    .about-content {
        gap: 25px;
    }
    
    .profile-image {
        max-width: 100%;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    .detail i {
        font-size: 1.2rem;
    }
}

/* Landscape orientation adjustments */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .about-image {
        grid-row: auto;
    }
    
    .about-text {
        grid-row: auto;
    }
}
