/* ============================================
   SCROLLYTELLING - CENTERED LAYOUT ONLY
   ============================================ */

:root {
  --primary-blue: #0b2447;
  --primary-dark: #0B2447;
  --action-red: #d71313;
  --action-red-light: #ffebeb;
  --action-red-glow: rgba(215, 19, 19, 0.15);
  --action-red-hover: #b01010;
  --primary-red: #D71313;
  --primary-red-dark: #b01010;
}

/* ===== CLICKABLE SLIDE LINK ===== */
.scrolly-slide-link {
    display: block;
    width: 100%;
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
    position: relative;
    z-index: 5;
}

.scrolly-slide-link:hover {
    text-decoration: none !important;
}

.scrolly-slide-link * {
    text-decoration: none !important;
}

.scrolly-slide-link:hover .scrolly-slide-visual img {
    transform: scale(1.05);
    transition: transform 0.4s ease;
}

.scrolly-slide-link:hover .scrolly-slide-title .highlight-red {
    color: var(--action-red-hover, #b01010);
    transition: color 0.3s ease;
}

/* ===== SLIDE VISUAL - SVG IMAGES ===== */
.scrolly-slide-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 1rem;
    min-height: 200px;
}

.scrolly-svg-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    display: block;
    background: transparent;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 4px 12px rgba(215, 19, 19, 0.10));
}

/* ============================================
   PREAMBLE
   ============================================ */
.scrolly-preamble {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
}

.scrolly-preamble-content {
    max-width: 700px;
}

.scrolly-preamble-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-dark, #0B2447);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.scrolly-preamble-content h2 .highlight-red {
    color: var(--action-red, #D71313);
}

.scrolly-preamble-content p {
    font-size: 1.2rem;
    color: var(--primary-dark, #0B2447);
    line-height: 1.6;
    opacity: 0.8;
}

.security-preamble {
    background: #f8fafc;
}

/* ============================================
   SCROLLYTELLING SECTION
   ============================================ */
.scrolly-section {
    position: relative;
    background: #ffffff;
    min-height: 100vh;
    overflow: hidden;
}

.scrolly-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Pin spacers */
.scrolly-pin-spacer {
    height: 600vh;
    pointer-events: none;
    position: relative;
}

.scrolly-pin-spacer.security-spacer {
    height: 300vh;
}

/* Slides wrapper - fixed while pinned */
.scrolly-slides-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* ============================================
   INDIVIDUAL SLIDE - BASE STYLES
   ============================================ */
.scrolly-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 4rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden; /* Prevent content overflow */
}

.scrolly-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto !important;
}

.scrolly-slide.active .scrolly-slide-link {
    pointer-events: auto !important;
    cursor: pointer;
}

/* ============================================
   SCROLLY SLIDE CONTENT - CENTERED LAYOUT
   ============================================ */
.scrolly-slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1280px;
    width: 100%;
    align-items: center;
    margin: 0 auto;
}

.scrolly-slide-text {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.scrolly-slide-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 1rem;
    min-height: 200px;
    width: 100%;
}

/* ============================================
   SLIDE TEXT STYLES
   ============================================ */
.scrolly-slide-title {
    font-size: clamp(3rem, 5.5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--primary-dark, #0B2447);
    text-align: left;
}

.scrolly-slide-title .highlight-red {
    color: var(--action-red, #D71313);
}

.scrolly-slide-description {
    font-size: clamp(1rem, 1.15vw, 1.15rem);
    line-height: 1.7;
    color: var(--primary-dark, #0B2447);
    max-width: 520px;
    font-weight: 400;
    text-align: left;
    opacity: 0.8;
}

/* ============================================
   SCROLL INDICATOR - PURE CSS
   ============================================ */

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: bounceIndicator 2s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateY(4px);
}

.scroll-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary, #64748b);
}

/* Animated arrow */
.scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.scroll-arrow span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--action-red, #D71313);
    border-radius: 2px;
    transform-origin: center;
    animation: arrowBounce 2s ease-in-out infinite;
}

.scroll-arrow span:nth-child(1) {
    width: 12px;
    transform: rotate(45deg) translateX(4px) translateY(4px);
    animation-delay: 0s;
}

.scroll-arrow span:nth-child(2) {
    width: 24px;
    animation-delay: 0.15s;
}

.scroll-arrow span:nth-child(3) {
    width: 12px;
    transform: rotate(-45deg) translateX(-4px) translateY(4px);
    animation-delay: 0.3s;
}

/* Arrow bounce animation */
@keyframes arrowBounce {
    0%, 100% {
        opacity: 0.4;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(6px) scale(1.1);
    }
}

/* Scroll indicator bounce */
@keyframes bounceIndicator {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .scroll-text {
        font-size: 0.75rem;
    }

    .scroll-arrow span {
        width: 20px;
    }

    .scroll-arrow span:nth-child(1),
    .scroll-arrow span:nth-child(3) {
        width: 10px;
    }

    .scroll-arrow span:nth-child(2) {
        width: 20px;
    }
}

@media (max-width: 480px) {
    .scroll-text {
        font-size: 0.7rem;
    }

    .scroll-arrow span {
        width: 16px;
    }

    .scroll-arrow span:nth-child(1),
    .scroll-arrow span:nth-child(3) {
        width: 8px;
    }

    .scroll-arrow span:nth-child(2) {
        width: 16px;
    }
}

/* ============================================
   REDUCED MOTION PREFERENCE
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .scroll-indicator {
        animation: none;
    }

    .scroll-arrow span {
        animation: none;
    }
}

/* ============================================
   FIXED BUTTON
   ============================================ */
.scrolly-button-fixed {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.scrolly-button-fixed .btn-primary {
    background: var(--action-red, #D71313);
    border-color: var(--action-red, #D71313);
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
}

.scrolly-button-fixed .btn-primary:hover {
    background: var(--action-red-hover, #b01010);
    border-color: var(--action-red-hover, #b01010);
}

/* ============================================
   RESPONSIVE - CENTERED LAYOUT ONLY
   ============================================ */

@media (max-width: 1024px) {
    .scrolly-slide-content {
        gap: 2.5rem;
    }
    .scrolly-slide-title {
        font-size: clamp(2.8rem, 5vw, 3.5rem);
    }
    .scrolly-svg-img {
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .scrolly-slide {
        padding: 1rem;
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
    }
    .scrolly-slide-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .scrolly-slide-description {
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }
    .scrolly-slide-text {
        align-items: center;
    }
    .scrolly-slide-title {
        text-align: center;
    }
    .scrolly-svg-img {
        max-width: 220px;
    }
    .scrolly-slide-visual {
        min-height: 150px;
    }
    .scrolly-preamble-content h2 {
        font-size: 2.5rem;
    }
    .scrolly-button-fixed {
        bottom: 1.5rem;
    }
    .scrolly-button-fixed .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .scrolly-slide {
        padding: 0.5rem;
    }
    .scrolly-slide-title {
        font-size: 2.2rem;
    }
    .scrolly-svg-img {
        max-width: 180px;
    }
    .scrolly-slide-visual {
        min-height: 120px;
    }
    .scrolly-preamble-content h2 {
        font-size: 2rem;
    }
    .scrolly-preamble {
        min-height: 50vh;
        padding: 3rem 1.5rem;
    }
    .scrolly-button-fixed .btn-primary {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   BOUNCE ANIMATION
   ============================================ */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}