/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    background: #000;
    color: #fff;
}

/* Scroll video container */
.scroll-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

/* Video wrapper for centering and sizing */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

/* Video element */
#scroll-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text overlay */
.text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

/* Scroll-triggered text items */
.scroll-text-item {
    position: absolute;
    width: 80%;
    max-width: 900px;
    text-align: center;
    opacity: 0;
    transform: scale(0.5);
    transition: none;
}

.scroll-text-item p {
    font-size: 28px;
    line-height: 1.6;
    font-weight: 400;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9),
                 0 2px 10px rgba(0, 0, 0, 0.8);
    margin: 0;
}

/* Finale text - BUT WHY? */
.scroll-text-finale {
    top: 5vh !important;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: center center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 20px;
    min-height: 90vh;
    width: 100%;
    max-width: 1200px;
}

.scroll-text-finale h1 {
    font-size: 140px;
    font-weight: 900;
    letter-spacing: 10px;
    color: #fff;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 1),
                 0 4px 15px rgba(0, 0, 0, 0.9),
                 0 0 80px rgba(135, 206, 250, 0.6);
    -webkit-text-stroke: 3px #87CEEB;
    text-stroke: 3px #87CEEB;
    paint-order: stroke fill;
    margin: 0;
    margin-bottom: 5px;
    text-transform: uppercase;
    filter: drop-shadow(0 0 20px rgba(135, 206, 250, 0.8));
    line-height: 1;
    white-space: nowrap;
}

.finale-image {
    max-width: 400px;
    width: 70%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8),
                0 0 30px rgba(135, 206, 250, 0.4);
    border: 2px solid rgba(135, 206, 250, 0.6);
    opacity: 0.95;
}

/* Contract address section */
.contract-address-container {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 600px;
    width: 90%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(135, 206, 250, 0.6);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8),
                0 0 20px rgba(135, 206, 250, 0.3);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.contract-address-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    outline: none;
    padding: 8px;
    text-align: center;
    user-select: all;
    cursor: pointer;
}

.contract-address-input::selection {
    background: rgba(135, 206, 250, 0.4);
}

.copy-button {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(135, 206, 250, 0.2);
    border: 2px solid rgba(135, 206, 250, 0.6);
    border-radius: 8px;
    color: #87CEEB;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.copy-button:hover {
    background: rgba(135, 206, 250, 0.3);
    border-color: #87CEEB;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(135, 206, 250, 0.5);
}

.copy-button:active {
    transform: scale(0.95);
}

.copy-button.copied {
    background: rgba(135, 206, 250, 0.5);
    border-color: #87CEEB;
}

.copy-button svg {
    pointer-events: none;
}

/* Social media links */
.social-links {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 15px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(135, 206, 250, 0.6);
    border-radius: 50%;
    color: #87CEEB;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(135, 206, 250, 0.3);
    border-color: #87CEEB;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(135, 206, 250, 0.6);
}

.social-link:active {
    transform: scale(0.95);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.pump-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Scroll spacer - controls scroll length */
.scroll-spacer {
    position: relative;
    height: 300vh; /* 3x viewport height for smooth scrubbing */
    z-index: 0;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.scroll-indicator.hidden {
    opacity: 0;
}

.scroll-text {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    margin: 0 auto;
    position: relative;
}

.scroll-arrow span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin: -10px auto;
    animation: scroll-arrow-animate 2s infinite;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));
}

.scroll-arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

.scroll-arrow span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes scroll-arrow-animate {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-10px, -10px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(10px, 10px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scroll-spacer {
        height: 400vh; /* Slower scroll on mobile for better control */
    }

    .scroll-text-item p {
        font-size: 22px;
        width: 90%;
    }

    .scroll-text-finale {
        top: 3vh !important;
        gap: 18px;
        padding: 15px;
    }

    .scroll-text-finale h1 {
        font-size: 90px;
        letter-spacing: 6px;
        -webkit-text-stroke: 2px #87CEEB;
    }

    .finale-image {
        max-width: 320px;
        width: 75%;
    }

    .contract-address-input {
        font-size: 13px;
    }

    .contract-address-container {
        max-width: 480px;
        width: 92%;
    }

    .social-links {
        top: 15px;
        right: 15px;
        gap: 12px;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }

    .pump-logo {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    #scroll-video {
        object-fit: cover; /* Keep cover for consistent background */
    }

    .scroll-text-item p {
        font-size: 18px;
    }

    .scroll-text-finale {
        top: 50% !important;
        left: 50%;
        transform: translate(-50%, -50%) !important;
        gap: 20px;
        padding: 20px;
        min-height: auto;
        justify-content: center;
    }

    .scroll-text-finale h1 {
        font-size: 64px;
        letter-spacing: 3px;
        -webkit-text-stroke: 2px #87CEEB;
        margin-bottom: 0;
    }

    .finale-image {
        max-width: 300px;
        width: 85%;
    }

    .contract-address-input {
        font-size: 12px;
    }

    .contract-address-container {
        max-width: 95%;
        width: 95%;
        padding: 12px 12px;
        gap: 8px;
    }

    .copy-button {
        width: 42px;
        height: 42px;
    }

    .copy-button svg {
        width: 18px;
        height: 18px;
    }

    .social-links {
        top: 12px;
        right: 12px;
        gap: 10px;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .social-link svg {
        width: 16px;
        height: 16px;
    }

    .pump-logo {
        width: 20px;
        height: 20px;
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    .scroll-text-finale {
        gap: 15px;
        padding: 15px;
    }

    .scroll-text-finale h1 {
        font-size: 52px;
        letter-spacing: 2px;
    }

    .finale-image {
        max-width: 260px;
        width: 90%;
    }

    .contract-address-input {
        font-size: 11px;
    }

    .contract-address-container {
        padding: 10px;
    }
}
