/* Fix for scroll issues between sections */

/* Reset scroll behavior for smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-snap-type: none; /* Disable snap scrolling if causing issues */
}

body {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Fix main container scroll */
.main-container {
    overflow: visible !important;
}

#professionalPortfolio {
    overflow: visible !important;
}

/* Fix section heights to prevent overlap */
.section {
    min-height: 100vh;
    scroll-snap-align: none; /* Disable snap points */
}

/* Modern sections should not interfere with scroll */
.modern-portfolio-sections {
    overflow: visible !important;
    position: relative;
    z-index: 1;
}

.modern-portfolio-sections .section {
    min-height: auto !important; /* Let content define height */
    height: auto !important;
    padding: 100px 20px;
    scroll-snap-align: none;
}

/* Specific fixes for each modern section */
#modern-hero {
    min-height: auto !important;
    padding: 100px 20px;
}

#modern-about {
    min-height: auto !important;
    padding: 100px 20px;
}

#modern-experience {
    min-height: auto !important;
    padding: 100px 20px;
}

#modern-projects {
    min-height: auto !important;
    padding: 100px 20px 150px;
}

/* Ensure containers don't overflow */
.modern-portfolio-sections .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px;
}

/* Fix navigation to work properly */
.side-nav {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

/* Disable any scroll-snap that might be causing issues */
* {
    scroll-snap-type: none !important;
    scroll-snap-align: none !important;
}

/* Ensure smooth transitions without blocking scroll */
.section.transitioning-in,
.section.transitioning-out {
    pointer-events: none; /* Don't block scroll during transitions */
}

/* Fix z-index stacking */
#home.hero-section {
    z-index: 1;
}

#curriculum.curriculum-section {
    z-index: 1;
}

#projects.section {
    z-index: 1;
}

#info.section {
    z-index: 1;
}

#contact.section {
    z-index: 1;
}

/* Prevent sections from blocking each other */
.section {
    pointer-events: auto;
    position: relative;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .modern-portfolio-sections .section {
        padding: 60px 20px;
    }

    .modern-portfolio-sections .container {
        padding: 40px 20px;
    }
}