/* Scroll Gallery - Vertical Scrollable Project Layout */

.scroll-gallery-page {
    min-height: 100vh;
}

.scroll-gallery-section {
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sticky Filter Tabs */
.sticky-filters {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(to bottom, #f9f9f9 0%, #f9f9f9 80%, transparent 100%);
    padding: 20px 0 30px;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.scroll-gallery-section .page-title {
    font-size: 3.5em;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 20px;
    font-family: 'Cormorant Garamond', serif;
    color: #333;
    font-weight: 600;
    position: relative;
}

.scroll-gallery-section .page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #e87a5d, transparent);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Scroll Gallery Container */
.scroll-gallery {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 0 20px 80px;
}

/* Scroll Gallery Item */
.scroll-gallery-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: scrollItemFadeIn 0.6s ease forwards;
}

.scroll-gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Alternate layout for even items */
.scroll-gallery-item:nth-child(even) {
    direction: rtl;
}

.scroll-gallery-item:nth-child(even) > * {
    direction: ltr;
}

/* Image Section */
.gallery-item-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
}

.gallery-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.scroll-gallery-item:hover .gallery-item-image img {
    transform: scale(1.05);
}

/* Category Badge */
.gallery-item-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Content Section */
.gallery-item-content {
    padding: 40px;
}

.gallery-item-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.2;
}

.gallery-item-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    color: #666;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Tools/Software Tags */
.gallery-item-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tool-tag {
    background: #f5f5f5;
    color: #666;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease;
}

.tool-tag:hover {
    background: #e87a5d;
    color: white;
}

/* View Project Button */
.gallery-item-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #333;
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95em;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.gallery-item-button:hover {
    background: #e87a5d;
    transform: translateX(5px);
}

.gallery-item-button svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.gallery-item-button:hover svg {
    transform: translateX(5px);
}

/* Animation */
@keyframes scrollItemFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-gallery-item:nth-child(1) { animation-delay: 0.1s; }
.scroll-gallery-item:nth-child(2) { animation-delay: 0.2s; }
.scroll-gallery-item:nth-child(3) { animation-delay: 0.3s; }
.scroll-gallery-item:nth-child(4) { animation-delay: 0.4s; }
.scroll-gallery-item:nth-child(5) { animation-delay: 0.5s; }
.scroll-gallery-item:nth-child(6) { animation-delay: 0.6s; }

/* Hidden state for filtering */
.scroll-gallery-item.hidden {
    display: none;
}

/* Quick Navigation Dots (optional - shows on side) */
.quick-nav-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}

.quick-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-nav-dot:hover,
.quick-nav-dot.active {
    background: #e87a5d;
    transform: scale(1.3);
}

.quick-nav-dot.active {
    border-color: #e87a5d;
    background: white;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
    .scroll-gallery-item {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .scroll-gallery-item:nth-child(even) {
        direction: ltr;
    }

    .gallery-item-image {
        height: 300px;
    }

    .gallery-item-content {
        padding: 30px;
    }

    .gallery-item-title {
        font-size: 1.8em;
    }

    .quick-nav-dots {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .scroll-gallery-section {
        padding: 20px 0;
    }

    .scroll-gallery-section .page-title {
        font-size: 2.5em;
        padding-top: 10px;
    }

    .sticky-filters {
        padding: 15px 10px 20px;
        gap: 6px;
    }

    .sticky-filters .tab-btn {
        padding: 10px 18px;
        font-size: 0.85em;
    }

    .scroll-gallery {
        gap: 40px;
        padding: 0 15px 60px;
    }

    .scroll-gallery-item {
        border-radius: 16px;
    }

    .gallery-item-image {
        height: 220px;
    }

    .gallery-item-badge {
        top: 12px;
        left: 12px;
        padding: 6px 12px;
        font-size: 0.7em;
    }

    .gallery-item-content {
        padding: 20px;
    }

    .gallery-item-title {
        font-size: 1.5em;
        margin-bottom: 12px;
    }

    .gallery-item-description {
        font-size: 0.9em;
        margin-bottom: 16px;
    }

    .gallery-item-tools {
        margin-bottom: 16px;
    }

    .tool-tag {
        padding: 5px 10px;
        font-size: 0.75em;
    }

    .gallery-item-button {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .scroll-gallery-section .page-title {
        font-size: 2em;
    }

    .sticky-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .sticky-filters::-webkit-scrollbar {
        display: none;
    }

    .sticky-filters .tab-btn {
        flex-shrink: 0;
    }

    .gallery-item-image {
        height: 180px;
    }

    .gallery-item-title {
        font-size: 1.3em;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .gallery-item-image {
        height: 200px;
    }
}
