/* Global Background Effects */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background: #0a0a0a;
    position: relative;
    min-height: 100vh;
}

/* Gradient overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(120, 80, 200, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(200, 100, 50, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 80%, rgba(100, 50, 150, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Animated gradient orbs */
.page-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}
.page-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.12);
    top: -100px;
    left: -100px;
    animation: orbFloat 20s ease-in-out infinite;
}
.page-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(249, 115, 22, 0.08);
    bottom: -50px;
    right: -50px;
    animation: orbFloat 25s ease-in-out infinite reverse;
}
.page-orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(236, 72, 153, 0.06);
    top: 40%;
    right: 20%;
    animation: orbFloat 18s ease-in-out infinite 5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.1); }
    50% { transform: translate(-30px, 50px) scale(0.95); }
    75% { transform: translate(30px, 30px) scale(1.05); }
}

/* Grid pattern */
.page-grid {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content is above background */
body > *:not(.page-orb):not(.page-grid) {
    position: relative;
    z-index: 1;
}

/* ============================================
   Modal Animations - Slide Up from Bottom
   ============================================ */

/* Modal backdrop fade in */
.modal-backdrop {
    animation: backdropFadeIn 0.3s ease-out;
}

@keyframes backdropFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal content slide up */
.modal-slide-up {
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal close animation */
.modal-slide-down {
    animation: slideDown 0.3s ease-in forwards;
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
}

/* Subtle bounce effect for emphasis */
.modal-bounce {
    animation: modalBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalBounce {
    0% {
        opacity: 0;
        transform: translateY(80px) scale(0.9);
    }
    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   Button & Interactive Effects
   ============================================ */

/* Button hover glow */
.btn-glow {
    transition: all 0.3s ease;
}
.btn-glow:hover {
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.4);
}

/* Card hover effect */
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Pulse effect for important elements */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(245, 166, 35, 0.3); }
    50% { box-shadow: 0 0 20px rgba(245, 166, 35, 0.6); }
}

/* ============================================
   Loading States
   ============================================ */

.skeleton {
    background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   Scrollbar Styling
   ============================================ */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

