/* ============================================
   THE 5-PILLAR PROTOCOL - PREMIUM UPGRADE CSS
   Glassmorphism | Scroll Animations | Custom Cursor
   ============================================ */

/* ============================================
   1. CUSTOM CURSOR - High-Tech Biohacking Feel
   ============================================ */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(16, 185, 129, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
    mix-blend-mode: difference;
}

.custom-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: rgba(16, 185, 129, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    border-color: rgba(245, 158, 11, 0.8);
    background: rgba(245, 158, 11, 0.1);
}

.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transition: opacity 0.3s ease;
}

/* Hide custom cursor on touch devices */
@media (pointer: coarse) {
    .custom-cursor,
    .cursor-trail {
        display: none !important;
    }
}

/* ============================================
   2. GLASSMORPHISM EFFECTS - 2026 Design Trend
   ============================================ */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(16, 185, 129, 0.3);
}

.glass-button {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 15px rgba(16, 185, 129, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 30px rgba(16, 185, 129, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ============================================
   3. SCROLL ANIMATIONS - Elements Come Alive
   ============================================ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for children */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.5s; }

/* ============================================
   4. FLOATING & GLOW EFFECTS
   ============================================ */
@keyframes float-enhanced {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-15px) rotate(1deg); 
    }
    50% { 
        transform: translateY(-8px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-20px) rotate(-1deg); 
    }
}

.float-enhanced {
    animation: float-enhanced 6s ease-in-out infinite;
}

.glow-green {
    box-shadow: 
        0 0 20px rgba(16, 185, 129, 0.4),
        0 0 40px rgba(16, 185, 129, 0.2),
        0 0 60px rgba(16, 185, 129, 0.1);
}

.glow-orange {
    box-shadow: 
        0 0 20px rgba(245, 158, 11, 0.4),
        0 0 40px rgba(245, 158, 11, 0.2),
        0 0 60px rgba(245, 158, 11, 0.1);
}

.glow-pulse {
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.7);
    }
}

/* ============================================
   5. PREMIUM BUTTON EFFECTS
   ============================================ */
.btn-premium {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 50px;
    padding: 18px 40px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(16, 185, 129, 0.4),
        0 0 0 0 rgba(16, 185, 129, 0.4);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 8px 30px rgba(16, 185, 129, 0.5),
        0 0 0 10px rgba(16, 185, 129, 0);
    animation: btn-pulse 1s ease-out;
}

@keyframes btn-pulse {
    0% {
        box-shadow: 
            0 8px 30px rgba(16, 185, 129, 0.5),
            0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    100% {
        box-shadow: 
            0 8px 30px rgba(16, 185, 129, 0.5),
            0 0 0 20px rgba(16, 185, 129, 0);
    }
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-shine:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* ============================================
   6. SHIMMER & LOADING EFFECTS
   ============================================ */
.shimmer {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.text-gradient-animate {
    background: linear-gradient(90deg, #10b981, #f59e0b, #10b981);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-gradient 3s ease infinite;
}

@keyframes text-gradient {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* ============================================
   7. CARD HOVER EFFECTS
   ============================================ */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-3d:hover {
    transform: rotateX(5deg) rotateY(5deg) translateZ(20px);
}

.card-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-lift:hover {
    transform: translateY(-12px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================
   8. NAVIGATION ENHANCEMENTS
   ============================================ */
.nav-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-link-underline {
    position: relative;
}

.nav-link-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #34d399);
    transition: width 0.3s ease;
}

.nav-link-underline:hover::after {
    width: 100%;
}

/* ============================================
   9. BADGE & NOTIFICATION STYLES
   ============================================ */
.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #059669;
    backdrop-filter: blur(10px);
}

.badge-urgent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #dc2626;
    backdrop-filter: blur(10px);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

/* ============================================
   10. PROGRESS & METER STYLES
   ============================================ */
.progress-premium {
    height: 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-premium-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399, #10b981);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    animation: progress-shine 2s linear infinite;
    position: relative;
}

.progress-premium-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progress-shimmer 1.5s ease-in-out infinite;
}

@keyframes progress-shine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes progress-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ============================================
   11. PARALLAX BACKGROUND EFFECTS
   ============================================ */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax-orbs {
    position: relative;
    overflow: hidden;
}

.parallax-orbs::before,
.parallax-orbs::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.parallax-orbs::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: orb-float-1 15s ease-in-out infinite;
}

.parallax-orbs::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: orb-float-2 18s ease-in-out infinite;
}

@keyframes orb-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, 30px) scale(1.1); }
    66% { transform: translate(-30px, 50px) scale(0.9); }
}

@keyframes orb-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, -30px) scale(0.95); }
    66% { transform: translate(30px, -50px) scale(1.05); }
}

/* ============================================
   12. TYPING & TEXT EFFECTS
   ============================================ */
.typing-effect {
    overflow: hidden;
    border-right: 3px solid #10b981;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #10b981; }
}

.text-reveal {
    clip-path: inset(0 100% 0 0);
    animation: text-reveal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes text-reveal {
    to { clip-path: inset(0 0 0 0); }
}

/* ============================================
   13. RIPPLE EFFECT
   ============================================ */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================
   14. COUNTING ANIMATION
   ============================================ */
.count-up {
    font-variant-numeric: tabular-nums;
}

/* ============================================
   15. MAGNETIC BUTTON EFFECT
   ============================================ */
.magnetic-btn {
    transition: transform 0.2s ease-out;
}

/* ============================================
   16. SKEW ON SCROLL
   ============================================ */
.skew-scroll {
    transition: transform 0.3s ease-out;
}

/* ============================================
   17. IMAGE HOVER ZOOM
   ============================================ */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* ============================================
   18. BORDER GRADIENT ANIMATION
   ============================================ */
.border-gradient {
    position: relative;
    background: white;
    border-radius: 20px;
    z-index: 1;
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(45deg, #10b981, #f59e0b, #10b981, #34d399);
    background-size: 300% 300%;
    z-index: -1;
    animation: border-gradient-anim 4s ease infinite;
}

@keyframes border-gradient-anim {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================
   19. NOTIFICATION TOAST
   ============================================ */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    border-radius: 16px;
    padding: 20px 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    transform: translateX(150%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content h4 {
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 4px;
}

.toast-content p {
    font-size: 0.85rem;
    color: #64748b;
}

/* ============================================
   20. SCARCITY TIMER
   ============================================ */
.scarcity-timer {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.timer-display {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.timer-unit {
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    min-width: 70px;
}

.timer-value {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    display: block;
    line-height: 1;
}

.timer-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    margin-top: 5px;
}

/* ============================================
   21. SIDEBAR BADGE WIDGET
   ============================================ */
.badge-widget {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    width: 200px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.badge-widget h4 {
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 15px;
    text-align: center;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #f8fafc;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.badge-item.unlocked {
    opacity: 1;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-item.locked {
    filter: grayscale(1);
}

.badge-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.badge-item.locked .badge-icon {
    background: #cbd5e1;
}

.badge-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
}

.badge-progress {
    font-size: 0.75rem;
    color: #64748b;
}

@media (max-width: 1200px) {
    .badge-widget {
        display: none;
    }
}

/* ============================================
   22. LIVE RESULTS TICKER
   ============================================ */
.live-ticker {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    border-radius: 16px;
    padding: 15px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 350px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    animation: ticker-slide-in 0.5s ease;
}

@keyframes ticker-slide-in {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.ticker-pulse {
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    animation: ticker-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes ticker-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

.ticker-content {
    flex: 1;
}

.ticker-content p {
    font-size: 0.9rem;
    color: #0f172a;
    margin: 0;
}

.ticker-content span {
    font-size: 0.8rem;
    color: #64748b;
}

/* ============================================
   23. BIOLOGICAL CLOCK ANIMATION
   ============================================ */
.biological-clock {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.clock-face {
    position: absolute;
    inset: 0;
    border: 8px solid #e2e8f0;
    border-radius: 50%;
}

.clock-face.active {
    border-color: #10b981;
    transition: border-color 0.5s ease;
}

.clock-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 80px;
    background: linear-gradient(to top, #10b981, #34d399);
    transform-origin: bottom center;
    transform: translate(-50%, -100%) rotate(0deg);
    border-radius: 2px;
    transition: transform 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #10b981;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.clock-numbers {
    position: absolute;
    inset: 0;
}

.clock-number {
    position: absolute;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    transform: translate(-50%, -50%);
}

/* ============================================
   24. CONFETTI CELEBRATION
   ============================================ */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 99999;
}

.confetti-piece {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   25. SMOOTH SCROLL BEHAVIOR
   ============================================ */
html {
    scroll-behavior: smooth;
}

/* ============================================
   26. SELECTION COLORS
   ============================================ */
::selection {
    background: rgba(16, 185, 129, 0.3);
    color: #0f172a;
}

::-moz-selection {
    background: rgba(16, 185, 129, 0.3);
    color: #0f172a;
}

/* ============================================
   27. SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #10b981, #059669);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #059669, #047857);
}

/* ============================================
   28. FOCUS STYLES
   ============================================ */
*:focus-visible {
    outline: 3px solid rgba(16, 185, 129, 0.5);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================
   29. SECTION VISIBILITY ANIMATION
   FIXED: Content visible by default
   ============================================ */
section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Optional: Add animate-on-scroll class for scroll animations */
section.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

section.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero section is always visible */
section.hero {
    opacity: 1;
    transform: none;
}

/* ============================================
   30. PRINT STYLES
   ============================================ */
@media print {
    .custom-cursor,
    .cursor-trail,
    .badge-widget,
    .live-ticker,
    .toast-notification,
    #particles,
    .hero-reveal,
    .living-core,
    .vol-light,
    .chat-3d,
    .progress-wrap,
    .float-assets {
        display: none !important;
    }
    
    .scroll-reveal,
    .scroll-reveal-left,
    .scroll-reveal-right,
    .scroll-reveal-scale,
    section {
        opacity: 1 !important;
        transform: none !important;
    }
}
