/* Final spacing adjustments to remove large gaps */

/* Remove extra padding from the main container */
#professionalPortfolio {
    padding-bottom: 0 !important;
}

/* Curriculum section - remove extra spacing */
#curriculum.curriculum-section {
    padding: 60px 20px !important;
    min-height: auto !important;
}

.curriculum-container {
    gap: 0 !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.curriculum-right {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Remove any leftover curriculum-left spacing */
.curriculum-left {
    display: none !important;
}

/* Modern sections - tighter spacing */
.modern-portfolio-sections {
    margin-top: 0 !important;
}

.modern-portfolio-sections .section {
    padding: 60px 20px !important;
    margin: 0 !important;
}

/* Specific sections */
#modern-hero {
    padding-top: 80px !important;
    padding-bottom: 60px !important;
}

#modern-about {
    padding: 60px 20px !important;
}

#modern-experience {
    padding: 60px 20px !important;
}

#modern-skills {
    padding: 60px 20px !important;
}

#modern-projects {
    padding: 60px 20px 80px !important; /* More bottom padding as it's the last section */
}

/* Remove any extra margins between sections */
.section + .section {
    margin-top: 0 !important;
}

/* Container adjustments */
.modern-portfolio-sections .container {
    padding: 40px !important;
}

/* Remove any phantom spacing */
body {
    padding-bottom: 0 !important;
}

html {
    padding-bottom: 0 !important;
}

/* Ensure the last section doesn't have extra space */
#modern-projects:last-child {
    margin-bottom: 0 !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .modern-portfolio-sections .section {
        padding: 40px 15px !important;
    }

    .modern-portfolio-sections .container {
        padding: 30px 20px !important;
    }

    #curriculum.curriculum-section {
        padding: 40px 15px !important;
    }
}

/* Remove any empty space at the bottom of the page */
.main-container::after,
#professionalPortfolio::after {
    display: none !important;
}

/* Ensure video modal doesn't add height when hidden */
.video-modal {
    display: none;
    height: 0;
    overflow: hidden;
}

.video-modal.active {
    display: flex;
    height: 100vh;
}