/* Project Page Horizontal Scroll Styles */

.project-page {
    margin-top: 80px;
    min-height: 100vh;
    overflow-x: hidden;
}

.horizontal-scroll-container {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    height: calc(100vh - 80px);
    position: relative;
}

/* Hide scrollbar but keep functionality */
.horizontal-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.scroll-item {
    flex: 0 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    position: relative;
}

.scroll-item img {
    height: 80vh;
    width: auto;
    max-width: none;
    object-fit: contain;
    display: block;
    margin: 10vh 1px;
}

/* Text Item Styling */
.scroll-item.text-item {
    min-width: 500px;
    max-width: 650px;
    padding: 0 3rem;
    background: #fff;
}

.project-info {
    max-width: 600px;
}

.project-info h2 {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.project-info .year {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.project-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-color);
}

.project-description p {
    margin-bottom: 1rem;
}

.project-description .credits {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--light-text);
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .horizontal-scroll-container {
        height: calc(100vh - 70px);
    }
    
    .scroll-item img {
        height: 70vh;
        margin: 15vh 1px;
    }
    
    .scroll-item.text-item {
        min-width: 90vw;
        padding: 0 2rem;
    }
    
    .project-info h2 {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    
    .project-info .year {
        font-size: 0.9rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .scroll-item img {
        height: 65vh;
        margin: 17.5vh 1px;
    }
    
    .scroll-item.text-item {
        min-width: 95vw;
        padding: 0 1.5rem;
    }
    
    .project-info h2 {
        font-size: 0.9rem;
    }
    
    .project-info .year {
        font-size: 0.9rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
}

/* Navigation active state */
.nav-link.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Smooth scroll hint indicator */
.horizontal-scroll-container::after {
    content: '→';
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: rgba(0, 0, 0, 0.2);
    animation: scrollHint 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes scrollHint {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(-50%) translateX(0);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-50%) translateX(10px);
    }
}

/* Hide scroll hint after user scrolls */
.horizontal-scroll-container.scrolled::after {
    display: none;
}

/* Touch device optimization */
@media (hover: none) and (pointer: coarse) {
    .scroll-item img {
        margin: 10vh 1px;
    }
    
    .horizontal-scroll-container::after {
        display: none;
    }
}

