/* Additional mobile responsiveness fixes */

@media (max-width: 768px) {
    /* Fix issues with scrolling to sections */
    html {
        scroll-behavior: smooth !important;
    }
    
    /* All sections should have proper scroll margins */
    section {
        scroll-margin-top: 80px !important;
    }
    
    /* Ensure all sections have proper padding */
    .section-padding {
        padding-top: 100px !important;
        padding-bottom: 70px !important;
    }
    
    /* Fix various elements that might be hidden */
    .projects-page {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    
    /* Ensure project pages have proper spacing */
    .projects-page + .projects-page {
        margin-left: 0 !important;
    }
    
    /* Make sure carousel navigation is visible and clickable */
    .carousel-nav {
        position: relative !important;
        display: flex !important;
        justify-content: space-between !important;
        z-index: 10 !important;
        margin-bottom: 20px !important;
    }
    
    .carousel-button {
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border-radius: 50% !important;
        color: white !important;
        cursor: pointer !important;
        z-index: 5 !important;
    }

    /* Make menu position better on scroll */
    .glass-header {
        transform: translateZ(0);
    }
    
    /* Fix for project card titles */
    .project-title {
        display: flex !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    section {
        scroll-margin-top: 60px !important;
    }
    
    .carousel-button {
        width: 35px !important;
        height: 35px !important;
    }
}
