/* ==========================================================================
   About Section Styles
   ========================================================================== */

#about {
    margin-top: 0;
}

/* Layout Options */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    margin-top: var(--space-md);
}

.about-text {
    padding-right: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.about-text p {
    color: var(--color-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    gap: var(--space-md);
    height: 100%;
    align-content: center;
}

.skill-item {
    background-color: var(--color-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--color-border);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    max-height: 160px;
    width: 100%;
}

.skill-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.skill-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--color-border-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.skill-item h4 {
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    flex-shrink: 0;
}

.skill-item p {
    color: var(--color-secondary);
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.3;
    text-align: center;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Responsive About Styles */

/* Small screens (mobile) - Vertical layout (cards below text) */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        margin-top: var(--space-sm);
    }

    .about-text {
        padding-right: 0;
        text-align: center;
        min-height: auto;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: var(--space-xs);
        max-width: 500px;
        margin: 0 auto;
        height: 200px;
    }
    
    .skill-item {
        min-height: 80px;
        max-height: 80px;
    }
}

/* Medium screens (tablets) - 50-50 layout */
@media (min-width: 769px) and (max-width: 1023px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
        align-items: center;
    }
    
    .about-text {
        padding-right: var(--space-md);
        min-height: 180px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
        gap: var(--space-sm);
        height: 160px;
    }
    
    .skill-item {
        min-height: 140px;
        max-height: 140px;
    }
}

/* Large screens (desktop) - 50-50 layout */
@media (min-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
        align-items: center;
    }
    
    .about-text {
        padding-right: var(--space-xl);
        min-height: 200px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
        gap: var(--space-md);
        height: 160px;
    }
}

/* Extra large screens - Maintain 50-50 layout */
@media (min-width: 1440px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4xl);
        max-width: 1400px;
        margin: var(--space-lg) auto 0;
    }
    
    .about-text {
        min-height: 220px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
        gap: var(--space-lg);
        height: 160px;
    }
}