/* ===================================
   Import Component Styles
   =================================== */
@import 'components/hero.css';
@import 'components/features.css';
@import 'components/team.css';
@import 'components/video.css';
@import 'pages/legal.css';

/* ===================================
   Global Styles & Variables
   =================================== */
* {
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Dynamic gradient background */
body {
    background: #0a0a0a;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 20, 255, 0.08) 0px, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 20, 120, 0.08) 0px, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(20, 120, 255, 0.05) 0px, transparent 40%);
    animation: gradientShift 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        transform: rotate(180deg) scale(1);
    }
    75% {
        transform: rotate(270deg) scale(1.1);
    }
}

/* Moving particles background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(120, 20, 255, 0.5);
    border-radius: 50%;
    animation: float-up 15s infinite linear;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(120, 20, 255, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 20, 255, 0.7);
}



/* ===================================
   Navigation Styles
   =================================== */
nav {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ===================================
   Responsive Styles
   =================================== */
@media (max-width: 768px) {
    .glow-text {
        font-size: 3rem;
    }
    
    .feature-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

/* ===================================
   Animation Classes
   =================================== */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Scroll-triggered animations */
section {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 3D depth effect on scroll */
.depth-effect {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Morphing gradient background */
@keyframes morphing {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        background: linear-gradient(45deg, rgba(120, 20, 255, 0.1), rgba(255, 20, 120, 0.1));
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        background: linear-gradient(45deg, rgba(255, 20, 120, 0.1), rgba(20, 120, 255, 0.1));
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        background: linear-gradient(45deg, rgba(20, 120, 255, 0.1), rgba(120, 20, 255, 0.1));
    }
}

.morph-bg {
    position: fixed;
    width: 500px;
    height: 500px;
    filter: blur(100px);
    animation: morphing 10s ease-in-out infinite;
    opacity: 0.3;
    z-index: -2;
}

/* Glitch effect for headings */
@keyframes glitch {
    0%, 100% {
        text-shadow: 
            0.05em 0 0 rgba(255, 0, 0, 0.75),
            -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
            0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    14% {
        text-shadow: 
            0.05em 0 0 rgba(255, 0, 0, 0.75),
            -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
            0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    15% {
        text-shadow: 
            -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
            0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
            -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    49% {
        text-shadow: 
            -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
            0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
            -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    50% {
        text-shadow: 
            0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
            0.05em 0 0 rgba(0, 255, 0, 0.75),
            0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    99% {
        text-shadow: 
            0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
            0.05em 0 0 rgba(0, 255, 0, 0.75),
            0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

h2:hover {
    animation: glitch 0.5s infinite;
}

/* Wave animation for sections */
@keyframes wave {
    0%, 100% {
        transform: translateY(0) rotateX(0);
    }
    25% {
        transform: translateY(-20px) rotateX(2deg);
    }
    75% {
        transform: translateY(10px) rotateX(-2deg);
    }
}

.wave-section {
    animation: wave 6s ease-in-out infinite;
}

/* ===================================
   Utility Classes
   =================================== */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animated gradient border - used across multiple sections */
.gradient-border {
    position: relative;
    background: linear-gradient(#0a0a0a, #0a0a0a) padding-box,
                linear-gradient(135deg, #7814FF, #FF1478, #1478FF) border-box;
    border: 2px solid transparent;
    border-radius: 1rem;
    transition: transform 0.15s ease-out; /* Fast response for 3D effects */
    will-change: transform;
} 