/* ============================================
   IDEA CARNIVAL - HORIZONTAL SCROLLING SECTIONS
   Cards with partial visibility outside viewport
   ============================================ */

:root {
    --gold: #D4AF37;
    --champagne: #F7E7CE;
    --black: #000000;
    --burgundy: #800020;
}

/* ============================================
   SCROLL SECTION CONTAINER
   ============================================ */

.scroll-section {
    padding: 100px 0;
    overflow: hidden;
    position: relative;
}

.scroll-section-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 60px;
}

.scroll-section-title {
    font-family: 'Cinzel', serif;
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.scroll-section-subtitle {
    font-size: 20px;
    line-height: 1.8;
    color: var(--champagne);
    opacity: 0.9;
}

/* ============================================
   HORIZONTAL SCROLL CONTAINER
   ============================================ */

.scroll-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px 40px 40px;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar completely */
.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Padding on first and last items to show partial cards */
.scroll-container::before,
.scroll-container::after {
    content: '';
    flex-shrink: 0;
    width: 40px;
}

/* ============================================
   SCROLL CARDS
   ============================================ */

.scroll-card {
    flex: 0 0 400px;
    scroll-snap-align: start;
    background: rgba(212, 175, 55, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
}

.scroll-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: linear-gradient(90deg, var(--gold) 0%, var(--burgundy) 100%) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.scroll-card:hover::before {
    opacity: 1;
}

.scroll-card:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: transparent;
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

/* Card with image */
.scroll-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.scroll-card-number {
    font-family: 'Cinzel', serif;
    font-size: 80px;
    font-weight: 700;
    color: rgba(212, 175, 55, 0.2);
    line-height: 1;
    margin-bottom: 20px;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

/* Number wrapper for two-digit display */
.scroll-card-number-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.scroll-card-number-digit {
    width: 50px;
    height: auto;
    object-fit: contain;
    opacity: 0.5;
    filter: brightness(0.8);
}

.scroll-card-title {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 15px;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.scroll-card-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--champagne);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.scroll-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.scroll-card-link:hover {
    gap: 12px;
    color: var(--champagne);
}

.scroll-card-link::after {
    content: '\2192';
    font-size: 18px;
    transition: transform 0.3s ease;
}

.scroll-card-link:hover::after {
    transform: translateX(5px);
}

/* ============================================
   VENTURE CARDS (Larger)
   ============================================ */

.scroll-card-venture {
    flex: 0 0 500px;
}

.scroll-card-venture .scroll-card-image {
    height: 300px;
}

.scroll-card-logo {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.scroll-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.scroll-card-tag {
    padding: 6px 15px;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */

.scroll-card-testimonial {
    flex: 0 0 450px;
}

.scroll-card-quote {
    font-size: 18px;
    line-height: 1.8;
    color: var(--champagne);
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    padding-top: 30px;
}

.scroll-card-quote::before {
    content: '\201C';
    font-size: 80px;
    font-family: 'Cinzel', serif;
    color: var(--gold);
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: -10px;
    line-height: 1;
}

.scroll-card-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.scroll-card-author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.scroll-card-author-info h4 {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: var(--gold);
    margin-bottom: 5px;
}

.scroll-card-author-info p {
    font-size: 14px;
    color: var(--champagne);
    opacity: 0.8;
}

/* ============================================
   PORTFOLIO CARDS (Compact)
   ============================================ */

.scroll-card-portfolio {
    flex: 0 0 350px;
}

.scroll-card-portfolio .scroll-card-image {
    height: 220px;
}

/* ============================================
   NAVIGATION ARROWS
   ============================================ */

.scroll-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.scroll-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--gold);
    color: var(--gold);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.scroll-nav-btn:hover {
    background: var(--gold);
    color: var(--black);
    transform: scale(1.1);
}

.scroll-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.scroll-nav-btn:disabled:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    transform: scale(1);
}

/* ============================================
   PROGRESS INDICATOR
   ============================================ */

.scroll-progress {
    max-width: 1400px;
    margin: 30px auto 0;
    padding: 0 40px;
}

.scroll-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.scroll-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--burgundy) 100%);
    width: 0%;
    transition: width 0.1s ease;
}

/* ============================================
   SECTION VARIANTS
   ============================================ */

/* Dark section with pattern background */
.scroll-section-dark {
    background: var(--black);
    position: relative;
}

.scroll-section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://storage.googleapis.com/msgsndr/gQPjPJRdMyD0XfD6UcPl/media/6939727ff6cae916e6d83a97.png');
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.05;
}

/* Light section */
.scroll-section-light {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Section with divider */
.scroll-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background-image: url('https://storage.googleapis.com/msgsndr/gQPjPJRdMyD0XfD6UcPl/media/6939727fb263271a28926933.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .scroll-card {
        flex: 0 0 350px;
    }

    .scroll-card-venture {
        flex: 0 0 450px;
    }

    .scroll-card-testimonial {
        flex: 0 0 400px;
    }
}

@media (max-width: 768px) {
    .scroll-section-header {
        padding: 0 20px 40px;
    }

    .scroll-section-title {
        font-size: 36px;
    }

    .scroll-section-subtitle {
        font-size: 18px;
    }

    .scroll-container {
        padding: 20px 20px 40px;
        margin: 0 -20px;
        gap: 20px;
    }

    .scroll-container::before,
    .scroll-container::after {
        width: 20px;
    }

    .scroll-card {
        flex: 0 0 300px;
        padding: 30px;
    }

    .scroll-card-venture {
        flex: 0 0 350px;
    }

    .scroll-card-testimonial {
        flex: 0 0 320px;
    }

    .scroll-card-portfolio {
        flex: 0 0 280px;
    }

    .scroll-card-title {
        font-size: 24px;
    }

    .scroll-progress {
        padding: 0 20px;
    }

    .scroll-nav {
        padding: 0 20px;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    .scroll-card:hover {
        transform: none;
    }

    .scroll-container {
        scroll-padding: 20px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.scroll-card:nth-child(1) { animation-delay: 0.1s; }
.scroll-card:nth-child(2) { animation-delay: 0.2s; }
.scroll-card:nth-child(3) { animation-delay: 0.3s; }
.scroll-card:nth-child(4) { animation-delay: 0.4s; }
.scroll-card:nth-child(5) { animation-delay: 0.5s; }
.scroll-card:nth-child(6) { animation-delay: 0.6s; }
