@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

* {
    font-family: "Space Grotesk", sans-serif;
}

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

@keyframes float-slow {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

@keyframes pulse-neon {
    0%,
    100% {
        box-shadow:
            0 0 20px rgba(6, 182, 212, 0.6),
            0 0 40px rgba(139, 92, 246, 0.4),
            inset 0 0 20px rgba(6, 182, 212, 0.1);
    }
    50% {
        box-shadow:
            0 0 40px rgba(6, 182, 212, 0.8),
            0 0 80px rgba(139, 92, 246, 0.6),
            inset 0 0 30px rgba(6, 182, 212, 0.2);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes scale-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Removed glow-pulse animation for performance */

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite; /* Slowed down for performance */
}

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

.animate-pulse-neon {
    animation: pulse-neon 5s ease-in-out infinite; /* Slowed down for performance */
}

.animate-slide-up {
    animation: slide-up 0.8s ease-out forwards;
}

.animate-rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

.gradient-mesh {
    background:
        radial-gradient(
            at 20% 30%,
            rgba(6, 182, 212, 0.3) 0px,
            transparent 50%
        ),
        radial-gradient(
            at 80% 20%,
            rgba(139, 92, 246, 0.3) 0px,
            transparent 50%
        ),
        radial-gradient(
            at 40% 70%,
            rgba(236, 72, 153, 0.3) 0px,
            transparent 50%
        ),
        radial-gradient(
            at 90% 80%,
            rgba(34, 211, 238, 0.2) 0px,
            transparent 50%
        ),
        radial-gradient(
            at 10% 90%,
            rgba(168, 85, 247, 0.2) 0px,
            transparent 50%
        );
}

.neon-border {
    border: 2px solid transparent;
    background:
        linear-gradient(#0f172a, #0f172a) padding-box,
        linear-gradient(135deg, #06b6d4, #8b5cf6, #ec4899) border-box;
}

.neon-glow {
    box-shadow:
        0 0 20px rgba(6, 182, 212, 0.4),
        0 0 40px rgba(139, 92, 246, 0.3),
        0 10px 60px rgba(0, 0, 0, 0.5);
}

.glass-premium {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-gradient-neon {
    background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glow {
    text-shadow:
        0 0 20px rgba(6, 182, 212, 0.5),
        0 0 40px rgba(139, 92, 246, 0.3);
}

.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.card-3d:hover {
    transform: translateY(-10px) rotateX(5deg);
}

.dot-grid {
    background-image: radial-gradient(
        circle,
        rgba(6, 182, 212, 0.15) 1px,
        transparent 1px
    );
    background-size: 30px 30px;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

.holographic {
    background: linear-gradient(
        135deg,
        rgba(6, 182, 212, 0.1) 0%,
        rgba(139, 92, 246, 0.1) 25%,
        rgba(236, 72, 153, 0.1) 50%,
        rgba(139, 92, 246, 0.1) 75%,
        rgba(6, 182, 212, 0.1) 100%
    );
    background-size: 200% 200%;
    animation: gradient-shift 10s ease infinite; /* Slowed down for performance */
}

.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.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;
}

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

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 30px rgba(6, 182, 212, 0.6),
        0 0 60px rgba(139, 92, 246, 0.4);
}

.stat-counter {
    font-variant-numeric: tabular-nums;
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-gradient,
    .animate-float-slow,
    .animate-pulse-neon,
    .animate-slide-up,
    .animate-rotate-slow {
        animation: none !important;
    }

    .btn-premium::before {
        display: none;
    }

    .card-3d:hover {
        transform: translateY(-5px);
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
