/**
 * Scroll Animation Styles
 * Vanilla CSS implementation of container scroll animation
 */

/* Main Container */
.scroll-animation-container {
    min-height: 60rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .scroll-animation-container {
        min-height: 80rem;
        padding: 5rem;
    }
}

/* Inner Wrapper */
.scroll-animation-wrapper {
    padding: 2.5rem 0;
    width: 100%;
    position: relative;
    perspective: 1000px;
}

@media (min-width: 768px) {
    .scroll-animation-wrapper {
        padding: 10rem 0;
    }
}

/* Header Section */
.scroll-header {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
    transition: transform 0.1s linear;
    will-change: transform;
}

.scroll-header h1 {
    font-size: 2.25rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.5rem;
}

@media (prefers-color-scheme: dark) {
    .scroll-header h1 {
        color: #fff;
    }
}

.scroll-header .highlight {
    font-size: 2.25rem;
    font-weight: 700;
    margin-top: 0.25rem;
    line-height: 1;
    display: inline-block;
}

@media (min-width: 768px) {
    .scroll-header .highlight {
        font-size: 6rem;
    }
}

/* Card/Content Container */
.scroll-card {
    max-width: 56rem;
    margin: -2rem auto 0;
    height: 35rem;
    width: 90%;
    border: 4px solid #6C6C6C;
    padding: 0.5rem;
    background-color: #222222;
    border-radius: 30px;
    box-shadow:
        0 0 #0000004d,
        0 9px 20px #0000004a,
        0 37px 37px #00000042,
        0 84px 50px #00000026,
        0 149px 60px #0000000a,
        0 233px 65px #00000003;
    transition: transform 0.1s linear;
    will-change: transform;
    transform-style: preserve-3d;
}

@media (min-width: 768px) {
    .scroll-card {
        height: 42rem;
        padding: 1.5rem;
    }
}

/* Card Inner Content */
.scroll-card-inner {
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: 1rem;
    background-color: #f3f4f6;
    padding: 0;
}

@media (prefers-color-scheme: dark) {
    .scroll-card-inner {
        background-color: #18181b;
    }
}

@media (min-width: 768px) {
    .scroll-card-inner {
        border-radius: 1rem;
        padding: 1rem;
    }
}

/* Image Styling */
.scroll-card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 1rem;
    user-select: none;
    -webkit-user-drag: none;
}

/* Discord Link Styling */
.discord-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.discord-link:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

.discord-link:active {
    transform: scale(0.98);
}

/* Discord Image specific styling */
.discord-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 1rem;
}

/* Demo Section Styling */
.scroll-demo-section {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 50px;
    padding-top: 50px;
}

@media (min-width: 768px) {
    .scroll-demo-section {
        padding-bottom: 80px;
        padding-top: 80px;
    }
}

/* Gradient Text Effect */
.gradient-text-scroll {
    background: linear-gradient(to right, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth transitions */
.scroll-animation-container * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    .scroll-card,
    .scroll-header {
        transition: none;
        transform: none !important;
    }
}
