@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    html {
        scroll-behavior: smooth;
    }
    body {
        font-family: 'Inter', system-ui, -apple-system, sans-serif;
        background-color: #020617;
        color: #f8fafc;
        overflow-x: hidden;
    }
    ::selection {
        background-color: rgba(99, 102, 241, 0.4);
        color: #fff;
    }
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #0f172a;
    }
    ::-webkit-scrollbar-thumb {
        background: #4338ca;
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #6366f1;
    }
}

@layer components {
    .gradient-text {
        @apply bg-clip-text text-transparent bg-gradient-to-r from-indigo-400 via-fuchsia-400 to-indigo-300;
    }
    .glass-card {
        @apply bg-white/5 backdrop-blur-xl border border-white/10 rounded-2xl;
    }
    .section-padding {
        @apply px-4 sm:px-6 lg:px-8 py-20 lg:py-32;
    }
    .container-custom {
        @apply max-w-7xl mx-auto;
    }
    .btn-primary {
        @apply inline-flex items-center justify-center px-6 py-4 text-sm font-semibold
               rounded-xl bg-gradient-to-r from-indigo-600 to-fuchsia-600
               hover:from-indigo-500 hover:to-fuchsia-500
               text-white transition-all duration-300
               shadow-lg shadow-indigo-600/25 hover:shadow-xl hover:shadow-indigo-500/30
               hover:-translate-y-0.5 active:translate-y-0
               whitespace-nowrap;
    }
    .btn-secondary {
        @apply inline-flex items-center justify-center px-6 py-4 text-sm font-semibold
               rounded-xl border border-white/20 bg-white/5 backdrop-blur-sm
               hover:bg-white/10 hover:border-white/30
               text-white transition-all duration-300
               hover:-translate-y-0.5 active:translate-y-0
               whitespace-nowrap;
    }
}

@layer utilities {
    .bg-grid {
        background-image:
            linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
        background-size: 60px 60px;
    }
    .bg-dots {
        background-image: radial-gradient(rgba(99, 102, 241, 0.15) 1px, transparent 1px);
        background-size: 24px 24px;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}
.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out forwards;
}
