/* 
 * Custom Spacing and Typography Improvements
 * Optimized for CV Website
 */



/* Global Typography Improvements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

/* Section Header Improvements */
.section-intro {
    margin-bottom: 4.5rem;
    padding-bottom: 1.5rem;
}

.section-intro h1 {
    font-size: 3.8rem;
    line-height: 1.2;
    margin-bottom: 1.8rem;
    font-weight: 700;
}

.section-intro h5 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.3rem;
    font-weight: 600;
}

.section-intro p.lead {
    font-size: 2.1rem;
    line-height: 1.7;
    margin-bottom: 0;
    margin-top: 1.8rem;
}

/* Timeline Improvements */
.timeline-wrap {
    position: relative;
    margin-top: 3rem;
}

.timeline-block {
    margin-bottom: 4.5rem;
    padding-bottom: 1.5rem;
    position: relative;
}

.timeline-header {
    margin-bottom: 1.8rem;
}

.timeline-header h3 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.timeline-header p {
    font-size: 1.7rem;
    line-height: 1.4;
    margin-bottom: 0;
    font-weight: 500;
}

.timeline-content {
    padding-top: 0.6rem;
}

.timeline-content h4 {
    font-size: 1.9rem;
    line-height: 1.4;
    margin-bottom: 1.2rem;
    font-weight: 600;
    color: #2c2c2c;
}

.timeline-content p {
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Section Spacing Improvements */
section {
    padding-top: 12rem;
    padding-bottom: 10rem;
}

section.grey-section {
    padding-top: 11rem;
    padding-bottom: 9rem;
    background: #FFFFFF !important;
}

/* About Section Improvements */
.about-content h3 {
    font-size: 2.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-content .info-list li {
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.about-content .info-list li strong {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.about-content .info-list li span {
    font-size: 1.6rem;
}

/* Skills Section Improvements - Override original CSS */
.skill-bars {
    list-style: none;
    margin: 2rem 0 1.5rem !important;
    padding: 0;
}

.skill-bars li {
    height: 0.6rem;
    background: #a1a1a1;
    width: 100%;
    margin-bottom: 2.4rem !important;
    padding: 0;
    position: relative;
    display: block !important;
}

.skill-bars li strong {
    position: absolute;
    left: 0;
    top: -2.4rem;
    font-family: "poppins-bold", sans-serif;
    color: #313131;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-size: 1.4rem !important;
    line-height: 2rem;
    margin-bottom: 0;
    display: block;
}

.skill-bars li .progress {
    background: #313131;
    position: relative;
    height: 100%;
    display: block;
}

.skill-bars li .progress span {
    position: absolute;
    right: 0;
    top: -3rem;
    display: block;
    font-family: "poppins-regular", sans-serif;
    color: white;
    font-size: 1rem;
    line-height: 1;
    background: #313131;
    padding: 0.4rem 0.5rem;
    border-radius: 3px;
}

.skill-bars li .progress span::after {
    position: absolute;
    left: 50%;
    bottom: -4px;
    margin-left: -4px;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    border-top: 4px solid #313131;
    content: "";
}

/* Fix About Content Layout */
.about-content {
    margin-top: 3rem;
}

.about-content .col-six {
    padding: 1rem;
}

.about-content .skill-bars {
    margin-top: 1.5rem !important;
}

/* Responsive Typography */
@media only screen and (max-width: 768px) {
    .section-intro h1 {
        font-size: 3.2rem;
        margin-bottom: 1.5rem;
    }
    
    .section-intro h5 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .section-intro p.lead {
        font-size: 1.8rem;
        margin-top: 1.5rem;
    }
    
    /* Fix Skill Bars on Tablet */
    .skill-bars li {
        margin-bottom: 2rem !important;
    }
    
    .skill-bars li strong {
        font-size: 1.3rem !important;
        top: -2rem;
    }
    
    .skill-bars li .progress span {
        font-size: 0.9rem;
        top: -2.5rem;
    }
    
    .timeline-header h3 {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }
    
    .timeline-header p {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }
    
    .timeline-content h4 {
        font-size: 1.7rem;
        margin-bottom: 1rem;
    }
    
    .timeline-content p {
        font-size: 1.5rem;
        line-height: 1.5;
    }
    
    .timeline-block {
        margin-bottom: 3.5rem;
        padding-bottom: 1.2rem;
    }
    
    section {
        padding-top: 9rem;
        padding-bottom: 7rem;
    }
    
    section.grey-section {
        padding-top: 8rem;
        padding-bottom: 6rem;
        background: #FFFFFF !important;
    }
}

@media only screen and (max-width: 600px) {
    .section-intro h1 {
        font-size: 2.8rem;
        margin-bottom: 1.2rem;
    }
    
    .section-intro h5 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .section-intro p.lead {
        font-size: 1.6rem;
        margin-top: 1.2rem;
    }
    
    /* Fix Skill Bars on Mobile */
    .skill-bars li {
        margin-bottom: 1.8rem !important;
    }
    
    .skill-bars li strong {
        font-size: 1.2rem !important;
        top: -1.8rem;
        letter-spacing: 0.05rem;
    }
    
    .skill-bars li .progress span {
        font-size: 0.8rem;
        top: -2.2rem;
        padding: 0.3rem 0.4rem;
    }
    
    .about-content .col-six {
        padding: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .timeline-header h3 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .timeline-header p {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .timeline-content h4 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .timeline-content p {
        font-size: 1.4rem;
        line-height: 1.5;
    }
    
    .timeline-block {
        margin-bottom: 3rem;
        padding-bottom: 1rem;
    }
    
    section {
        padding-top: 7rem;
        padding-bottom: 5rem;
    }
    
    section.grey-section {
        padding-top: 6rem;
        padding-bottom: 4rem;
        background: #FFFFFF !important;
    }
}

@media only screen and (max-width: 400px) {
    .section-intro h1 {
        font-size: 2.4rem;
        margin-bottom: 1rem;
    }
    
    .section-intro h5 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }
    
    .section-intro p.lead {
        font-size: 1.5rem;
        margin-top: 1rem;
    }
    
    /* Fix Skill Bars on Small Mobile */
    .skill-bars {
        margin: 1.5rem 0 1rem !important;
    }
    
    .skill-bars li {
        margin-bottom: 1.5rem !important;
        height: 0.5rem;
    }
    
    .skill-bars li strong {
        font-size: 1.1rem !important;
        top: -1.6rem;
        letter-spacing: 0.02rem;
    }
    
    .skill-bars li .progress span {
        font-size: 0.75rem;
        top: -2rem;
        padding: 0.2rem 0.3rem;
    }
    
    .about-content h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .timeline-header h3 {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
    }
    
    .timeline-header p {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .timeline-content h4 {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }
    
    .timeline-content p {
        font-size: 1.3rem;
        line-height: 1.4;
    }
    
    .timeline-block {
        margin-bottom: 2.5rem;
        padding-bottom: 0.8rem;
    }
    
    section {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
    
    section.grey-section {
        padding-top: 5rem;
        padding-bottom: 3rem;
        background: #FFFFFF !important;
    }
}

/* Enhanced Visual Hierarchy */
.section-intro h1 {
    position: relative;
}

.section-intro h1:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #FF0077;
    border-radius: 2px;
}

/* Better Button Spacing and Alignment */
.button-section {
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center !important;
}

.button-section .button {
    margin: 0 1rem 1.5rem 1rem !important;
    display: inline-block !important;
    vertical-align: top !important;
    width: auto !important;
    min-width: 200px !important;
}

/* Center-align text within col-twelve buttons */
.col-twelve .button,
.col-twelve .button * {
    text-align: center !important;
}

/* Ensure button text is centered within col-twelve sections */
.col-twelve .button {
    text-align: center !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Additional button text alignment for all buttons in col-twelve */
.col-twelve .button span,
.col-twelve .button strong,
.col-twelve .button em {
    text-align: center !important;
    display: inline-block !important;
    width: 100% !important;
}

/* Comprehensive button text centering for col-twelve sections */
.col-twelve .button,
.col-twelve .button:before,
.col-twelve .button:after {
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Ensure button content is centered */
.col-twelve .button {
    display: inline-flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

/* Fix "More About Me" button alignment in intro section */
#intro .col-twelve .button,
#intro .intro-content .button {
    text-align: center !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: row !important;
    margin: 0 auto !important;
}

/* Ensure intro section button text is centered */
#intro .col-twelve .button,
#intro .intro-content .button {
    text-align: center !important;
    width: auto !important;
    padding: 1.5rem 3rem !important;
}

/* Center the button container in intro section */
#intro .col-twelve {
    text-align: center !important;
}

/* Override any conflicting intro button styles */
.intro-content .button {
    text-align: center !important;
    display: inline-block !important;
    margin: 0 auto !important;
}

/* Make profile image bigger */
.intro-info img {
    height: 15rem !important;
    width: 15rem !important;
    border-radius: 50% !important;
    margin: 0.9rem 0 0 0 !important;
    float: left !important;
    object-fit: cover !important;
}

/* Adjust text padding for bigger image */
.intro-info .lead {
    text-align: left !important;
    padding-left: 18rem !important;
    margin-top: 2rem !important;
}

/* Responsive adjustments for bigger image */
@media only screen and (max-width: 768px) {
    .intro-info img {
        height: 12rem !important;
        width: 12rem !important;
    }
    
    .intro-info .lead {
        padding-left: 15rem !important;
    }
}

@media only screen and (max-width: 600px) {
    .intro-info img {
        height: 10rem !important;
        width: 10rem !important;
        float: none !important;
        display: inline-block !important;
        margin: 0 auto 2rem auto !important;
    }
    
    .intro-info .lead {
        padding-left: 0 !important;
        text-align: center !important;
    }
    
    .intro-info {
        text-align: center !important;
    }
}

@media only screen and (max-width: 400px) {
    .intro-info img {
        height: 8rem !important;
        width: 8rem !important;
    }
}

/* Contact Section Improvements */
.contact-info {
    margin-top: 4.5rem;
    padding-top: 3rem;
}

.contact-info h5 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.contact-info p {
    font-size: 1.6rem;
    line-height: 1.5;
}

/* Form Improvements */
.contact-form {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* Footer Improvements */
footer {
    padding-top: 4.5rem;
    padding-bottom: 3rem;
}

/* Improved Text Readability */
body {
    line-height: 1.6;
}

p {
    margin-bottom: 1.5rem;
}

/* Enhanced List Spacing */
ul li {
    margin-bottom: 0.8rem;
}

/* Better Icon Spacing */
.timeline-ico {
    margin-bottom: 1rem;
}

/* Smoother Transitions */
* {
    transition: all 0.3s ease;
}

/* Additional Section-Specific Improvements */
#about {
    padding-top: 10rem;
}

#education {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

#awards {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

#projects {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

#skills {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

#research {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

#leadership {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

#community {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

#contact {
    padding-top: 8rem;
}

/* Better Visual Separation */
.resume-timeline {
    margin-top: 2rem;
}

.resume-timeline + .resume-timeline {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Enhanced Timeline Visual Flow */
.timeline-block:last-child {
    margin-bottom: 2rem;
    border-bottom: none;
}

/* Improved Lead Paragraph Spacing */
.section-intro .lead {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Print Styles */
@media print {
    section {
        padding-top: 2rem;
        padding-bottom: 1rem;
    }
    
    .section-intro h1 {
        font-size: 2rem;
    }
    
    .timeline-block {
        margin-bottom: 2rem;
        page-break-inside: avoid;
    }
} 

/* Custom spacing and formatting improvements */
/* Enhanced section spacing and typography */

/* Section headers styling */
.section-intro h1 {
    font-size: 4.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 2rem !important;
    font-weight: 600 !important;
    position: relative;
    padding-bottom: 1rem !important;
}

.section-intro h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #FF0077, #cc005f);
    border-radius: 2px;
}

.section-intro h5 {
    font-size: 1.8rem !important;
    font-weight: 500 !important;
    margin-bottom: 1.5rem !important;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: #FF0077 !important;
}

.section-intro p.lead {
    font-size: 1.9rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
    color: #333 !important;
}

/* Timeline content improvements */
.timeline-block {
    margin-bottom: 8rem !important;
}

.timeline-header h3 {
    font-size: 2.4rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.timeline-header p {
    font-size: 1.5rem !important;
    color: #333 !important;
    margin-bottom: 1rem !important;
    font-weight: 500 !important;
}

.timeline-content h4 {
    font-size: 1.9rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1rem !important;
    font-weight: 500 !important;
    color: #333 !important;
}

.timeline-content p {
    font-size: 1.6rem !important;
    line-height: 1.7 !important;
    margin-bottom: 1.5rem !important;
    color: #333 !important;
}

/* Section spacing optimization */
section {
    padding: 8rem 0 !important;
}

/* Reduce excessive spacing between sections */
.grey-section {
    padding: 7rem 0 !important;
}

/* About section improvements */
.about-content {
    margin-top: 4rem !important;
    margin-bottom: 4rem !important;
}

.about-content h3 {
    font-size: 2.2rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.about-content p {
    font-size: 1.7rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
    color: #333 !important;
}

.about-content .info-list li {
    margin-bottom: 1.2rem !important;
}

.about-content .info-list li strong {
    font-size: 1.5rem !important;
    color: #333 !important;
}

.about-content .info-list li span {
    font-size: 1.5rem !important;
    color: #333 !important;
}

/* Skills section improvements */
.skill-bars {
    margin-top: 3rem !important;
}

.skill-bars li {
    margin-bottom: 3rem !important;
}

.skill-bars li strong {
    font-size: 1.4rem !important;
    color: #333 !important;
    margin-bottom: 1rem !important;
    display: block !important;
}

.skill-bars li .progress {
    height: 0.6rem !important;
    background: #a1a1a1;
    border-radius: 3px !important;
    position: relative !important;
}

.skill-bars li .progress span {
    position: absolute !important;
    top: -2.5rem !important;
    right: 0 !important;
    font-size: 1.2rem !important;
    color: #666 !important;
    font-weight: 500 !important;
}

.skill-bars li .progress span::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.8rem;
    transform: translateX(-50%);
    border-left: 0.4rem solid transparent;
    border-right: 0.4rem solid transparent;
    border-top: 0.4rem solid #333;
}

/* Button improvements */
.button-section {
    margin-top: 6rem !important;
}

.button-section .button {
    margin: 0 1rem 2rem 0 !important;
    padding: 1.5rem 3rem !important;
    font-size: 1.4rem !important;
}

/* Contact section improvements */
.contact-info {
    margin-top: 4rem !important;
}

.contact-info h5 {
    font-size: 1.6rem !important;
    margin-bottom: 1rem !important;
    color: #333 !important;
}

/* Responsive improvements */
@media only screen and (max-width: 768px) {
    .section-intro h1 {
        font-size: 3.5rem !important;
    }
    
    .section-intro h5 {
        font-size: 1.5rem !important;
    }
    
    .timeline-header h3 {
        font-size: 2rem !important;
    }
    
    .timeline-content h4 {
        font-size: 1.7rem !important;
    }
    
    section {
        padding: 6rem 0 !important;
    }
    
    .timeline-block {
        margin-bottom: 6rem !important;
    }
}

@media only screen and (max-width: 600px) {
    .section-intro h1 {
        font-size: 3rem !important;
    }
    
    .section-intro h5 {
        font-size: 1.4rem !important;
    }
    
    .timeline-header h3 {
        font-size: 1.8rem !important;
    }
    
    section {
        padding: 5rem 0 !important;
    }
    
    .timeline-block {
        margin-bottom: 5rem !important;
    }
}

@media only screen and (max-width: 400px) {
    .section-intro h1 {
        font-size: 2.5rem !important;
    }
    
    .section-intro h5 {
        font-size: 1.3rem !important;
    }
    
    .timeline-header h3 {
        font-size: 1.6rem !important;
    }
    
    .timeline-block {
        margin-bottom: 4rem !important;
    }
}

/* Languages section fix - override problematic CSS with higher specificity */
body #about .skill-bars,
body .about-content .skill-bars,
body section .skill-bars {
    margin-top: 10rem !important;
    margin-bottom: 10rem !important;
    list-style: none !important;
}

body #about .skill-bars li,
body .about-content .skill-bars li,
body section .skill-bars li {
    margin-bottom: 10rem !important;
    padding: 0 !important;
    clear: both !important;
    height: 0.6rem !important;
    background: #a1a1a1 !important;
    width: 100% !important;
    position: relative !important;
    display: block !important;
}

.skill-bars li strong {
    font-size: 1.6rem !important;
    color: #333 !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
    font-weight: 600 !important;
}

.skill-bars li .progress {
    height: 0.8rem !important;
    background: #FFFFFF !important;
    border-radius: 4px !important;
    position: relative !important;
    margin-bottom: 2rem !important;
    overflow: hidden !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1) !important;
}

.skill-bars li .progress span {
    position: absolute !important;
    top: -3rem !important;
    right: 0 !important;
    font-size: 1.3rem !important;
    color: #333 !important;
    font-weight: 600 !important;
    background: #fff !important;
    padding: 0.2rem 0.5rem !important;
    border-radius: 3px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.skill-bars li .progress span::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.5rem;
    transform: translateX(-50%);
    border-left: 0.5rem solid transparent;
    border-right: 0.5rem solid transparent;
    border-top: 0.5rem solid #fff;
}

/* Working skill percentages */
.skill-bars li .percent95 { 
    width: 95% !important; 
    background: linear-gradient(135deg, #FF0077, #cc005f) !important;
    border-radius: 4px !important;
    height: 100% !important;
    transition: width 1.5s ease-in-out !important;
}
.skill-bars li .percent90 { 
    width: 90% !important; 
    background: linear-gradient(135deg, #FF0077, #cc005f) !important;
    border-radius: 4px !important;
    height: 100% !important;
    transition: width 1.5s ease-in-out !important;
}
.skill-bars li .percent85 { 
    width: 85% !important; 
    background: linear-gradient(135deg, #FF0077, #cc005f) !important;
    border-radius: 4px !important;
    height: 100% !important;
    transition: width 1.5s ease-in-out !important;
}
.skill-bars li .percent80 { 
    width: 80% !important; 
    background: linear-gradient(135deg, #FF0077, #cc005f) !important;
    border-radius: 4px !important;
    height: 100% !important;
    transition: width 1.5s ease-in-out !important;
}
.skill-bars li .percent75 { 
    width: 75% !important; 
    background: linear-gradient(135deg, #FF0077, #cc005f) !important;
    border-radius: 4px !important;
    height: 100% !important;
    transition: width 1.5s ease-in-out !important;
}
.skill-bars li .percent70 { 
    width: 70% !important; 
    background: linear-gradient(135deg, #FF0077, #cc005f) !important;
    border-radius: 4px !important;
    height: 100% !important;
    transition: width 1.5s ease-in-out !important;
}
.skill-bars li .percent60 { 
    width: 60% !important; 
    background: linear-gradient(135deg, #FF0077, #cc005f) !important;
    border-radius: 4px !important;
    height: 100% !important;
    transition: width 1.5s ease-in-out !important;
}

/* Responsive fixes for skill bars */
@media only screen and (max-width: 768px) {
    body #about .skill-bars,
    body .about-content .skill-bars,
    body section .skill-bars {
        margin-top: 6rem !important;
    }
    
    body #about .skill-bars li,
    body .about-content .skill-bars li,
    body section .skill-bars li {
        margin-bottom: 7rem !important;
    }
    
    .skill-bars li strong {
        font-size: 1.4rem !important;
        margin-bottom: 1.2rem !important;
    }
    
    .skill-bars li .progress {
        height: 0.7rem !important;
    }
    
    .skill-bars li .progress span {
        font-size: 1.2rem !important;
        top: -2.8rem !important;
    }
}

@media only screen and (max-width: 600px) {
    body #about .skill-bars,
    body .about-content .skill-bars,
    body section .skill-bars {
        margin-top: 4rem !important;
    }
    
    body #about .skill-bars li,
    body .about-content .skill-bars li,
    body section .skill-bars li {
        margin-bottom: 5rem !important;
    }
    
    .skill-bars li strong {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
    }
    
    .skill-bars li .progress {
        height: 0.6rem !important;
    }
    
    .skill-bars li .progress span {
        font-size: 1.1rem !important;
        top: -2.5rem !important;
    }
}

@media only screen and (max-width: 400px) {
    body #about .skill-bars,
    body .about-content .skill-bars,
    body section .skill-bars {
        margin-top: 3rem !important;
    }
    
    body #about .skill-bars li,
    body .about-content .skill-bars li,
    body section .skill-bars li {
        margin-bottom: 4rem !important;
    }
    
    .skill-bars li strong {
        font-size: 1.2rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .skill-bars li .progress {
        height: 0.5rem !important;
    }
    
    .skill-bars li .progress span {
        font-size: 1rem !important;
        top: -2.2rem !important;
    }
}

/* Convert black backgrounds to white */
header .top-bar {
    background: #FFFFFF !important;
    border-bottom: 1px solid #FFFFFF !important;
}

.main-navigation {
    background: #FFFFFF !important;
    border-top: 1px solid #FFFFFF !important;
}

.main-navigation li a {
    color: #333333 !important;
}

.main-navigation li a:hover {
    color: #FF0077 !important;
}

.main-navigation li.current > a {
    color: #FF0077 !important;
}

/* Intro section background adjustments - Updated for Carousel */
#intro {
    background: #151515 !important;
    background-size: cover !important;
}

/* Intro Carousel Styles - Higher Priority */
.intro-carousel {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    z-index: 0 !important;
}

.intro-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    opacity: 0 !important;
    transition: opacity 2s ease-in-out !important;
    z-index: 1 !important;
}

.intro-slide.active {
    opacity: 1 !important;
    z-index: 2 !important;
}

.intro-overlay {
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 3 !important;
}

.intro-content h1 {
    color: #FFFFFF !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.7) !important;
}

.intro-content h5 {
    color: #cc005f !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6) !important;
}

.intro-content .intro-position {
    color: #FFFFFF !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.6) !important;
}

/* Ensure content appears above carousel */
.intro-content {
    position: relative !important;
    z-index: 4 !important;
}

.intro-social {
    z-index: 4 !important;
}

/* Ensure header and logo appear above everything */
header {
    position: relative !important;
    z-index: 10000 !important;
}

header .logo,
header .logo a {
    z-index: 10001 !important;
    position: relative !important;
}

.intro-content .intro-position span::after {
    color: rgba(255, 255, 255, 0.5) !important;
}

.intro-content .intro-position span:first-child::before {
    color: rgba(255, 255, 255, 0.5) !important;
}

.intro-content .button {
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    background: transparent !important;
    backdrop-filter: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

.intro-content .button:hover, .intro-content .button:focus {
    border-color: #FF0077 !important;
    color: #FF0077 !important;
    background: transparent !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

.intro-social li a, .intro-social li a:visited {
    color: #FFFFFF !important;
    text-shadow: none !important;
}

.intro-social li a:hover, .intro-social li a:focus {
    color: #FF0077 !important;
}

/* Convert grey sections to white */
.grey-section {
    background: #FFFFFF !important;
}

.grey-section .section-intro h1,
.grey-section .section-intro h5,
.grey-section .section-intro p,
.grey-section .timeline-header h3,
.grey-section .timeline-header p,
.grey-section .timeline-content h4,
.grey-section .timeline-content p {
    color: #333 !important;
}

/* Services section background text */
#services {
    background: #2a2a2a !important;
}

#services .section-intro h1,
#services .section-intro h5,
#services .section-intro p,
#services .services-list h3,
#services .services-list .desc {
    color: #FFFFFF !important;
}

/* Contact section background text */
#contact {
    background: #2a2a2a !important;
}

#contact .section-intro h1,
#contact .section-intro h5,
#contact .section-intro p,
#contact .contact-info h5,
#contact .contact-info p {
    color: #FFFFFF !important;
}

/* Footer background text */
footer {
    background: #1a1a1a !important;
}

footer .copyright span,
footer .social a {
    color: #FFFFFF !important;
}

footer a:hover {
    color: #FF0077 !important;
}

/* CTA section background text */
#cta {
    background: #2a2a2a !important;
}

#cta .section-intro h1,
#cta .section-intro h5,
#cta .section-intro p,
#cta .cta-content h2,
#cta .cta-content p {
    color: #FFFFFF !important;
}

/* Stats section background text */
#stats {
    background: #1a1a1a !important;
}

#stats .stat-count,
#stats .stat-title {
    color: #FFFFFF !important;
} 

/* Additional comprehensive text visibility fixes - Pure white, no effects */
/* Services section complete text visibility */
html body #services,
html body #services *,
html body #services .services-item,
html body #services .services-list,
html body #services .services-list li {
    color: #FFFFFF !important;
    text-shadow: none !important;
    background: none !important;
    border: none !important;
}

#services .services-list li h3,
#services .services-list li .desc,
#services .services-list li p {
    color: #FFFFFF !important;
}

/* Contact section complete text visibility */
html body #contact,
html body #contact *,
html body #contact .contact-content,
html body #contact .contact-info,
html body #contact .contact-form {
    color: #FFFFFF !important;
    text-shadow: none !important;
    background: none !important;
    border: none !important;
}

#contact .contact-info h5,
#contact .contact-info p,
#contact .contact-form label,
#contact .contact-form input,
#contact .contact-form textarea {
    color: #FFFFFF !important;
}

/* Footer complete text visibility */
html body footer,
html body footer *,
html body footer .footer-content,
html body footer .footer-bottom {
    color: #FFFFFF !important;
    text-shadow: none !important;
    background: none !important;
    border: none !important;
}

footer .footer-main,
footer .footer-bottom,
footer .copyright,
footer .social-links {
    color: #FFFFFF !important;
}

/* CTA section complete text visibility */
html body #cta,
html body #cta *,
html body #cta .cta-content,
html body #cta .cta-text {
    color: #FFFFFF !important;
    text-shadow: none !important;
    background: none !important;
    border: none !important;
}

#cta .cta-content h2,
#cta .cta-content p,
#cta .cta-text h2,
#cta .cta-text p {
    color: #FFFFFF !important;
}

/* Stats section complete text visibility */
html body #stats,
html body #stats *,
html body #stats .stats-wrap,
html body #stats .stat-item {
    color: #FFFFFF !important;
    text-shadow: none !important;
    background: none !important;
    border: none !important;
}

#stats .stats-wrap .stat-count,
#stats .stats-wrap .stat-title,
#stats .stat-item .stat-count,
#stats .stat-item .stat-title {
    color: #FFFFFF !important;
}

/* General dark background text fixes */
.dark-bg,
.dark-bg h1,
.dark-bg h2,
.dark-bg h3,
.dark-bg h4,
.dark-bg h5,
.dark-bg h6,
.dark-bg p,
.dark-bg li,
.dark-bg span,
.dark-bg div {
    color: #FFFFFF !important;
}

/* Ensure all text on dark sections is visible */
section[style*="background: #1a1a1a"],
section[style*="background: #2a2a2a"],
section[style*="background: #333"],
section[style*="background: #000"] {
    color: #FFFFFF !important;
}

section[style*="background: #1a1a1a"] *,
section[style*="background: #2a2a2a"] *,
section[style*="background: #333"] *,
section[style*="background: #000"] * {
    color: #FFFFFF !important;
}

/* Pure white text for dark backgrounds - no shadows */
html body #services h1,
html body #services h2,
html body #services h3,
html body #services h4,
html body #services h5,
html body #services h6,
html body #contact h1,
html body #contact h2,
html body #contact h3,
html body #contact h4,
html body #contact h5,
html body #contact h6,
html body #cta h1,
html body #cta h2,
html body #cta h3,
html body #cta h4,
html body #cta h5,
html body #cta h6,
html body #stats h1,
html body #stats h2,
html body #stats h3,
html body #stats h4,
html body #stats h5,
html body #stats h6,
html body footer h1,
html body footer h2,
html body footer h3,
html body footer h4,
html body footer h5,
html body footer h6 {
    color: #FFFFFF !important;
    text-shadow: none !important;
    background: none !important;
    border: none !important;
}

/* Ensure form elements are visible on dark backgrounds */
#contact .contact-form input,
#contact .contact-form textarea,
#contact .contact-form select {
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    color: #FFFFFF !important;
}

#contact .contact-form input::placeholder,
#contact .contact-form textarea::placeholder {
    color: rgba(255,255,255,0.7) !important;
}

/* Button visibility on dark backgrounds - Pure styling */
html body #services .button,
html body #contact .button,
html body #cta .button,
html body #stats .button,
html body footer .button {
    background: transparent !important;
    border: 2px solid #FFFFFF !important;
    color: #FFFFFF !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

html body #services .button:hover,
html body #contact .button:hover,
html body #cta .button:hover,
html body #stats .button:hover,
html body footer .button:hover {
    background: transparent !important;
    border-color: #FF0077 !important;
    color: #FF0077 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

/* Convert all gray sections to white */
html body .grey-section {
    background: #FFFFFF !important;
}

/* Convert all gray text to consistent dark colors */
html body .grey-section,
html body .grey-section h1,
html body .grey-section h2,
html body .grey-section h3,
html body .grey-section h4,
html body .grey-section h5,
html body .grey-section h6,
html body .grey-section p,
html body .grey-section span,
html body .grey-section strong,
html body .grey-section em,
html body .grey-section div,
html body .grey-section li,
html body .grey-section .section-intro h1,
html body .grey-section .section-intro h5,
html body .grey-section .section-intro p,
html body .grey-section .timeline-header h3,
html body .grey-section .timeline-header p,
html body .grey-section .timeline-content h4,
html body .grey-section .timeline-content p {
    color: #333 !important;
}

/* Leadership and Awards sections - Pure white text on dark backgrounds */
html body #leadership,
html body #awards {
    background: #2a2a2a !important;
}

/* Leadership section - All text pure white */
html body #leadership *,
html body #leadership h1,
html body #leadership h2,
html body #leadership h3,
html body #leadership h4,
html body #leadership h5,
html body #leadership h6,
html body #leadership p,
html body #leadership span,
html body #leadership strong,
html body #leadership em,
html body #leadership div,
html body #leadership li,
html body #leadership .section-intro h1,
html body #leadership .section-intro h5,
html body #leadership .section-intro p,
html body #leadership .timeline-header h3,
html body #leadership .timeline-header p,
html body #leadership .timeline-content h4,
html body #leadership .timeline-content p,
html body #leadership .timeline-block,
html body #leadership .timeline-block *,
html body #leadership .resume-timeline,
html body #leadership .resume-timeline * {
    color: #FFFFFF !important;
    text-shadow: none !important;
    box-shadow: none !important;
    background: none !important;
    border: none !important;
    backdrop-filter: none !important;
}

/* Awards section - All text pure white */
html body #awards *,
html body #awards h1,
html body #awards h2,
html body #awards h3,
html body #awards h4,
html body #awards h5,
html body #awards h6,
html body #awards p,
html body #awards span,
html body #awards strong,
html body #awards em,
html body #awards div,
html body #awards li,
html body #awards .section-intro h1,
html body #awards .section-intro h5,
html body #awards .section-intro p,
html body #awards .timeline-header h3,
html body #awards .timeline-header p,
html body #awards .timeline-content h4,
html body #awards .timeline-content p,
html body #awards .timeline-block,
html body #awards .timeline-block *,
html body #awards .resume-timeline,
html body #awards .resume-timeline * {
    color: #FFFFFF !important;
    text-shadow: none !important;
    box-shadow: none !important;
    background: none !important;
    border: none !important;
    backdrop-filter: none !important;
}

/* Override any resume timeline colors that might be affecting these sections */
html body #leadership .timeline-header p,
html body #awards .timeline-header p {
    color: #FFFFFF !important;
}

/* Remove any gray colors from timeline content */
html body #leadership .timeline-content h4,
html body #awards .timeline-content h4 {
    color: #FFFFFF !important;
}

/* Ensure timeline icons are also white */
html body #leadership .timeline-ico,
html body #awards .timeline-ico,
html body #leadership .timeline-ico i,
html body #awards .timeline-ico i {
    color: #FFFFFF !important;
}

/* Override any default p.lead styles */
html body #leadership p.lead,
html body #awards p.lead {
    color: #FFFFFF !important;
}

/* Make sure all headings are pure white */
html body #leadership .section-intro h1,
html body #leadership .section-intro h5,
html body #awards .section-intro h1,
html body #awards .section-intro h5 {
    color: #FFFFFF !important;
}

/* Remove any placeholder or description text gray colors */
html body #leadership .timeline-header p,
html body #leadership .timeline-content p,
html body #awards .timeline-header p,
html body #awards .timeline-content p {
    color: #FFFFFF !important;
}