/* ==========================================================================
   Custom Global Styles & Animations for Ghostrick Games
   ========================================================================== */

/* Remove standard scrollbar for sleekness, or customize it */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050505;
}
::-webkit-scrollbar-thumb {
    background: #14b8a6; 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

body {
    /* Ensures background stays consistently dark beneath textures */
    background-color: #050505;
}

/* ==========================================================================
   CSS Noise Overlay (Tactile Indie Feel)
   ========================================================================== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Ambient Glowing Background Orbs
   ========================================================================== */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    animation: float 25s infinite ease-in-out alternate;
    opacity: 0.25;
    pointer-events: none;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(107, 33, 168, 0.45); /* Deep Purple */
    top: -10%;
    left: -15%;
}

.orb-2 {
    width: 700px;
    height: 700px;
    background: rgba(20, 184, 166, 0.35); /* Spectral Teal */
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
    animation-duration: 30s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.3); /* Ethereal Blue */
    top: 40%;
    left: 45%;
    animation-delay: -12s;
    animation-duration: 20s;
}

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

/* ==========================================================================
   Glassmorphism Utilities
   ========================================================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(20, 184, 166, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(20, 184, 166, 0.1);
}

/* ==========================================================================
   Specific Element Animations
   ========================================================================== */
.floating-mockup {
    animation: hoverFloat 8s infinite ease-in-out;
}

@keyframes hoverFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.animate-fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
