/* Mobile Index CSS */

/* Hide desktop-only elements */
#mobileWarning,
.dancingScroll,
#navBar,
#landing,
#miniNav {
    display: none !important;
}

/* Base Mobile Setup */
body {
    background-color: var(--color-bg-white);
    overflow-x: hidden;
}

/* Navigation - could be a simple hamburger or separate page, keeping it simple for now if needed */
/* For this implementation, we focus on the Projects section interactions */

/* Mobile Projects Container */
#projects {
    display: block;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.title {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
}

#projectsMain {
    height: 100%;
    width: 100%;
    position: relative;
}

/* Hide the desktop list of project names */
.projectsNames {
    display: none;
}

/* Mobile Image Carousel Container */
.mainImg {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    flex: none;

    /* Scroll Snap Logic */
    display: flex;
    flex-direction: column;
    /* Vertical scrolling */
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;

    /* Hide Scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.mainImg::-webkit-scrollbar {
    display: none;
    /* Chrome Safari */
}

/* Individual Images / Project Slides */
.mainImg img,
.mainImg video {
    /* Support video if needed */
    height: 100vh;
    width: 100vw;
    object-fit: cover;
    /* Cover full screen */
    scroll-snap-align: start;
    display: block !important;
    /* Force show all images including hidden ones from desktop */
    opacity: 1 !important;
}

.hiddenImg {
    /* Override desktop hiding */
    display: block !important;
}

/* Hide Main Image on Mobile to avoid duplication and sync indices with hiddenImg list */
.mainImg .projectsMainImage {
    display: none !important;
}

/* Overlays for Project Info on Mobile */
.mobile-project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    box-sizing: border-box;
    transform: translateY(100%);
    /* Hidden by default */
    transition: transform 0.3s ease-out;
    z-index: 20;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-project-info.active {
    transform: translateY(0);
}

.mobile-project-info h2 {
    margin-top: 0;
    color: var(--color-text-primary);
    font-family: var(--font-mono);
}

.mobile-project-info p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* Indicator / Interaction Hint */
.mobile-swipe-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    pointer-events: none;
    z-index: 15;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}