/* 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;
}

.skills-section {
    margin-top: 2rem;
}

.skill-card {
    background: var(--secondary-background-color) !important;
    border-left: 3px solid var(--primary-color) !important;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
}

.skill-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left-width: 4px !important;
}

.skill-content {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    min-height: 2.5rem;
}

.skill-content p {
    margin: 0;
    line-height: 1.4;
}

/* Dark mode adjustments */
.dark .skill-card {
    background: var(--secondary-background-color-dark) !important;
    border-left: 3px solid var(--primary-color-dark) !important;
}

.dark .skill-card:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color-dark) !important;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .skills-section {
        margin-top: 1.5rem;
    }
    
    .skill-card {
        padding: 0.75rem !important;
    }
    
    .skill-content {
        font-size: 0.9rem;
        min-height: 2rem;
    }
}

/* Ensure consistent spacing */
.skills-section .row {
    margin: 0;
}

.skills-section .col-12,
.skills-section .col-sm-6,
.skills-section .col-lg-4,
.skills-section .col-xl-3 {
    margin-bottom: 0.75rem;
}

.skills-section .col-12:last-child,
.skills-section .col-sm-6:last-child,
.skills-section .col-lg-4:last-child,
.skills-section .col-xl-3:last-child {
    margin-bottom: 0;
}

/* Extra responsive improvements for very wide screens */
@media (min-width: 1200px) {
    .skill-content {
        font-size: 0.92rem;
        min-height: 2.2rem;
    }
}

/* 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);
}
