/* About Section Mobile Fixes */

/* Fix experience badge, accent image, and about image responsiveness */
@media (max-width: 768px) {
    /* About section layout */
    .about-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    /* About text takes full width */
    .about-text {
        width: 100%;
        order: 1;
    }
    
    /* About image container */
    .about-image {
        width: 100%;
        order: 2;
        position: relative;
        margin-top: 2rem;
        padding: 0;
    }
    
    /* Primary image responsive */
    .about-image .primary-image {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: cover;
        border-radius: 10px;
    }
    
    /* Accent image - make it smaller and reposition */
    .accent-image {
        position: absolute;
        bottom: -1rem;
        right: -1rem;
        width: 30%;
        max-width: 150px;
        z-index: 10;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    
    .accent-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Experience badge - reposition for mobile */
    .experience-badge {
        position: absolute;
        top: auto;
        bottom: 1rem;
        left: 1rem;
        right: auto;
        padding: 1rem 1.5rem;
        background: var(--secondary-color);
        color: white;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        z-index: 15;
        text-align: center;
        width: auto;
        min-width: 120px;
    }
    
    .experience-badge .years {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .experience-badge .text {
        font-size: 0.625rem;
        letter-spacing: 0.5px;
    }
    
    /* About stats - ensure they're responsive */
    .about-stats {
        flex-direction: column;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .stat {
        width: 100%;
        text-align: center;
        padding: 1.5rem;
        background: var(--bg-light);
        border-radius: 10px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    /* Hide accent image on very small screens */
    .accent-image {
        display: none;
    }
    
    /* Make experience badge even smaller */
    .experience-badge {
        padding: 0.75rem 1rem;
        min-width: 100px;
    }
    
    .experience-badge .years {
        font-size: 1.25rem;
    }
    
    .experience-badge .text {
        font-size: 0.5rem;
    }
    
    /* Reduce primary image height on small screens */
    .about-image .primary-image {
        max-height: 300px;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .about-image .primary-image {
        max-height: 250px;
    }
    
    .accent-image {
        width: 25%;
        max-width: 120px;
    }
}

/* Container overflow fix */
@media (max-width: 768px) {
    /* Prevent horizontal scroll from positioned elements */
    .about-preview {
        overflow: hidden;
    }
    
    .container {
        overflow-x: hidden;
    }
    
    /* Ensure nothing extends beyond viewport */
    .about-content {
        position: relative;
        width: 100%;
        max-width: 100%;
    }
}