/* Enhanced About Section Styling */

/* Mobile image styling */
.mobile-image {
    animation: fadeInUp 0.6s ease-out;
}

.mobile-image img {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.mobile-image img:hover {
    transform: scale(1.05);
}

/* About content enhancements */
.about-content {
    position: relative;
}

.about-preview {
    animation: fadeInUp 0.6s ease-out;
}

.about-preview .lead {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.about-preview p:last-of-type {
    color: var(--text-secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Toggle button styling */
#aboutToggleBtn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-width: 2px;
    background: transparent;
}

#aboutToggleBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

#aboutToggleBtn i {
    transition: transform 0.3s ease;
}

#aboutToggleBtn:hover i {
    transform: translateY(-1px);
}

/* Full content styling */
.about-full {
    animation: fadeInUp 0.6s ease-out;
}

/* Improved transitions for toggle */
.about-preview, .about-full {
    transition: all 0.3s ease-in-out;
}

/* Capabilities — "What I bring to the table" */
.capabilities-section {
    margin-top: 1.5rem;
}

.capability-card {
    background: var(--secondary-background-color);
    border: 2px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.capability-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.capability-icon {
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: 0.6rem;
}

.capability-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.capability-description {
    font-size: 0.875rem;
    opacity: 0.7;
    line-height: 1.4;
}

/* Dark mode */
.dark .capability-card {
    background: var(--secondary-background-color-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .capability-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color-dark);
}

/* Mobile */
@media (max-width: 576px) {
    .capabilities-section {
        margin-top: 1.25rem;
    }

    .capability-card {
        padding: 1rem;
    }

    .capability-icon {
        font-size: 1.5rem;
    }
}

/* Additional mobile enhancements for About section */
@media (max-width: 767.98px) {
    .about-preview .lead {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    #aboutToggleBtn {
        font-size: 0.9rem;
        padding: 0.4rem 1.2rem;
    }
    
    .mobile-image {
        margin-bottom: 1.5rem !important;
    }
}

@media (max-width: 575.98px) {
    .about-preview .lead {
        font-size: 0.95rem;
    }
    
    .mobile-image img {
        width: 150px !important;
        height: 150px !important;
    }
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode enhancements for About toggle */
.dark .about-preview .lead {
    color: var(--text-color);
}

.dark .about-preview p:last-of-type {
    color: var(--text-secondary-color);
}

.dark #aboutToggleBtn {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.dark #aboutToggleBtn:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}
