/* Comprehensive fix for all section headers */

/* Basic structure for all section headers */
.section-header h2 {
    font-size: 2rem;
    font-weight: 700 !important;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    text-align: center;
    opacity: 1 !important;
    visibility: visible !important;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

/* Ensure gradient text is visible and properly displayed */
.section-header h2.gradient-text,
.section-header h2.text-reveal.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), #7986cb) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    animation: none !important;
    transform: none !important;
    transition: none !important;
    overflow: visible !important;
}

/* Dark mode adjustments */
[data-theme="dark"] .section-header h2.gradient-text,
[data-theme="dark"] .section-header h2.text-reveal.gradient-text {
    background: linear-gradient(45deg, #536dfe, #90caf9) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

/* Prevent any text reveal animations from breaking the headers */
.section-header h2.text-reveal {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
}

/* Project and Education section specific fixes */
#projects .section-header h2,
#education .section-header h2 {
    opacity: 1 !important;
    visibility: visible !important;
    font-weight: 700 !important;
    z-index: 10;
    position: relative;
}

/* Remove any problematic pseudo-elements */
.section-header h2::before,
.section-header h2::after {
    content: none !important;
}

/* Ensure spans within headers are properly styled */
.section-header h2 span {
    color: transparent;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Add subtle shadow for better visibility */
.section-header h2 {
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.05));
}
