/* ============================================================
   networks-scroll.css — 3D Coverflow Carousel
   ============================================================ */

/* ── Section Shell ─────────────────────────────────────────── */
.networks-section {
    position: relative;
    background-color: #ffffff;
    font-family: 'Outfit', sans-serif;
    padding: 4rem 0 5rem;
    overflow: hidden;
}

/* ── Header ────────────────────────────────────────────────── */
.networks-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.networks-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.networks-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    border-radius: 2px;
}

.networks-header p {
    font-size: 1.2rem;
    color: #64748B;
    max-width: 600px;
    margin: 2px auto 0;
    font-weight: 400;
    line-height: 1.6;
}

/* ── Coverflow Outer Wrapper ───────────────────────────────── */
.coverflow-scene-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 3.5rem;
}

/* ── Navigation Buttons ────────────────────────────────────── */
.cf-btn {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 1.75rem));
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow:
        0 4px 16px rgba(99, 102, 241, 0.12),
        0 1px 4px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    color: #6366F1;
    font-size: 1.1rem;
    transition: all 0.22s ease;
    outline: none;
}

.cf-btn:hover {
    background: #ffffff;
    box-shadow:
        0 8px 24px rgba(99, 102, 241, 0.22),
        0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(calc(-50% - 1.75rem)) scale(1.08);
    color: #4F46E5;
}

.cf-btn:active {
    transform: translateY(calc(-50% - 1.75rem)) scale(0.94);
}

.cf-btn-prev { left: 1.5vw; }
.cf-btn-next { right: 1.5vw; }

/* ── 3D Scene Container ────────────────────────────────────── */
.coverflow-scene {
    perspective: 1200px;
    perspective-origin: 50% 40%;
    overflow: visible; /* let section clip horizontally, not scene vertically */
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ── Track — card coordinate frame ────────────────────────── */
.coverflow-track {
    position: relative;
    width: 320px;
    height: 100%;
    transform-style: preserve-3d;
}

/* ── Network Card — base (hidden) state ────────────────────── */
.network-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    min-height: 460px;
    background: #ffffff;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.07);
    box-sizing: border-box;
    transform: translate(-50%, -50%) translateZ(-400px) scale(0.5);
    opacity: 0;
    pointer-events: none;
    transition:
        transform  0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity    0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.55s ease,
        border-color 0.55s ease;
    will-change: transform, opacity;
    overflow: visible;
}

.network-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 24px;
}

.network-card:hover::before { opacity: 1; }

/* ── Position Classes ──────────────────────────────────────── */

.network-card.pos-center {
    transform: translate(-50%, -50%) translateZ(120px) scale(1);
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.12),
        0 8px 32px rgba(99, 102, 241, 0.20),
        0 24px 64px rgba(99, 102, 241, 0.14),
        0 2px 8px rgba(0, 0, 0, 0.10);
}

/* Ambient glow pulse behind active card */
.network-card.pos-center::after {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 32px;
    background: transparent;
    box-shadow: 0 0 60px 12px rgba(99, 102, 241, 0.18);
    z-index: -1;
    pointer-events: none;
    animation: cf-glow-pulse 3s ease-in-out infinite;
}

@keyframes cf-glow-pulse {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1;   }
}

.network-card.pos-left1 {
    transform: translate(-50%, -50%) translateX(-370px) translateZ(-60px) rotateY(42deg) scale(0.82);
    opacity: 0.72;
    pointer-events: auto;
    z-index: 5;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
}

.network-card.pos-left1:hover {
    opacity: 0.88;
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.14);
}

.network-card.pos-right1 {
    transform: translate(-50%, -50%) translateX(370px) translateZ(-60px) rotateY(-42deg) scale(0.82);
    opacity: 0.72;
    pointer-events: auto;
    z-index: 5;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
}

.network-card.pos-right1:hover {
    opacity: 0.88;
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.14);
}

.network-card.pos-left2 {
    transform: translate(-50%, -50%) translateX(-680px) translateZ(-200px) rotateY(55deg) scale(0.65);
    opacity: 0.28;
    pointer-events: none;
    z-index: 2;
    box-shadow: none;
}

.network-card.pos-right2 {
    transform: translate(-50%, -50%) translateX(680px) translateZ(-200px) rotateY(-55deg) scale(0.65);
    opacity: 0.28;
    pointer-events: none;
    z-index: 2;
    box-shadow: none;
}

.network-card.pos-hidden {
    transform: translate(-50%, -50%) translateZ(-400px) scale(0.4);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition-duration: 0.3s;
}

/* ── Dot Indicators ────────────────────────────────────────── */
.cf-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 20;
}

.cf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(99, 102, 241, 0.22);
    transition:
        background 0.3s ease,
        transform  0.3s ease,
        width      0.3s ease;
    flex-shrink: 0;
    outline: none;
}

.cf-dot:hover {
    background: rgba(99, 102, 241, 0.50);
    transform: scale(1.25);
}

.cf-dot.active {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    width: 24px;
    border-radius: 4px;
    transform: none;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.40);
}

/* ── Card Content Styles ───────────────────────────────────── */
.card-content { position: relative; z-index: 1; }

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.network-logo {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 32px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.network-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1E293B;
}

.network-symbol {
    color: #64748B;
    font-size: 1rem;
    font-weight: 500;
}

.rewards-section { margin-bottom: 25px; }

.apy-badge {
    display: inline-block;
    background: linear-gradient(90deg, #6366F1, #8B5CF6);
    color: white;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.rewards-description {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.network-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding-top: 25px;
    margin-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.metric { text-align: center; }

.metric-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #6366F1;
    margin-bottom: 5px;
}

.text-premium   { color: #8B5CF6; }
.text-very-high { color: #10B981; }
.text-high      { color: #3B82F6; }
.text-medium    { color: #F59E0B; }

.metric-label {
    font-size: 0.8rem;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Stats Section ─────────────────────────────────────────── */
.new-stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 6rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
}

.new-stat-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.new-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.new-stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 24px;
    color: white;
}

.new-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 10px;
}

.new-stat-label {
    color: #64748B;
    font-size: 1rem;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .coverflow-scene {
        height: 580px;
        perspective: 900px;
    }
    .network-card.pos-left1 {
        transform: translate(-50%, -50%) translateX(-300px) translateZ(-60px) rotateY(42deg) scale(0.78);
    }
    .network-card.pos-right1 {
        transform: translate(-50%, -50%) translateX(300px) translateZ(-60px) rotateY(-42deg) scale(0.78);
    }
    .network-card.pos-left2 {
        transform: translate(-50%, -50%) translateX(-560px) translateZ(-200px) rotateY(55deg) scale(0.58);
        opacity: 0.15;
    }
    .network-card.pos-right2 {
        transform: translate(-50%, -50%) translateX(560px) translateZ(-200px) rotateY(-55deg) scale(0.58);
        opacity: 0.15;
    }
}

@media (max-width: 768px) {
    .networks-header h2 { font-size: 2.5rem; }

    .coverflow-scene {
        height: 560px;
        perspective: 700px;
        perspective-origin: 50% 38%;
    }

    .network-card {
        width: min(300px, 88vw);
        min-height: 440px;
        padding: 22px;
    }

    .coverflow-track { width: min(300px, 88vw); }

    .network-card.pos-center {
        transform: translate(-50%, -50%) translateZ(80px) scale(1);
    }
    .network-card.pos-left1 {
        transform: translate(-50%, -50%) translateX(-240px) translateZ(-80px) rotateY(50deg) scale(0.68);
        opacity: 0.35;
        pointer-events: none;
    }
    .network-card.pos-right1 {
        transform: translate(-50%, -50%) translateX(240px) translateZ(-80px) rotateY(-50deg) scale(0.68);
        opacity: 0.35;
        pointer-events: none;
    }
    .network-card.pos-left2,
    .network-card.pos-right2 {
        opacity: 0;
        pointer-events: none;
    }

    .cf-btn {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 0.95rem;
        transform: translateY(calc(-50% - 1.75rem));
    }
    .cf-btn-prev { left: 0.5rem; }
    .cf-btn-next { right: 0.5rem; }

    .new-stats-section {
        grid-template-columns: repeat(2, 1fr);
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .new-stats-section { grid-template-columns: 1fr; }
    .coverflow-scene { height: 540px; }
}
