@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --neon-violet: #a855f7;
    --neon-glow: rgba(168, 85, 247, 0.4);
    --bg-darker: #050811;
    --accent-pink: #f472b6;
    --accent-emerald: #10b981;
}

body {
    background-color: var(--bg-darker);
    color: #e2e8f0;
    font-family: 'Outfit', sans-serif;
    perspective: 1500px;
    overflow-x: hidden;
}

/* 3D Cyber-Floor Background */
.cyber-grid {
    background-image: 
        linear-gradient(rgba(168, 85, 247, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 200vw;
    height: 150vh;
    z-index: -1;
    transform: translate(-50%, -50%) rotateX(75deg) translateY(20%);
    opacity: 0.2;
    animation: grid-scroll 20s linear infinite;
    transform-origin: center;
}

@keyframes grid-scroll {
    from { background-position: 0 0; }
    to { background-position: 0 60px; }
}

/* 3D Floating Particles */
.floating-particle {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
    animation: float-3d 10s infinite ease-in-out;
}

@keyframes float-3d {
    0%, 100% { transform: translateY(0) rotateX(0) rotateY(0) scale(1); }
    50% { transform: translateY(-40px) rotateX(180deg) rotateY(180deg) scale(1.1); }
}

/* 3D Glitch Effect */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    clip: rect(0, 0, 0, 0);
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    animation: glitch-anim2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(44px, 450px, 56px, 0); }
    20% { clip: rect(12px, 450px, 98px, 0); }
    40% { clip: rect(67px, 450px, 23px, 0); }
    60% { clip: rect(10px, 450px, 45px, 0); }
    80% { clip: rect(92px, 450px, 12px, 0); }
    100% { clip: rect(34px, 450px, 67px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(14px, 450px, 26px, 0); }
    20% { clip: rect(92px, 450px, 18px, 0); }
    40% { clip: rect(17px, 450px, 93px, 0); }
    60% { clip: rect(60px, 450px, 35px, 0); }
    80% { clip: rect(42px, 450px, 22px, 0); }
    100% { clip: rect(84px, 450px, 47px, 0); }
}

/* 3D Profile Card Enhancements */
.profile-card-container {
    transform-style: preserve-3d;
}

.tilt-inner {
    transform: translateZ(60px);
}

/* Mouse Follower Glow */
#mouse-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.glass-v2 {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.neon-border {
    border: 1px solid var(--neon-violet);
    box-shadow: 0 0 25px var(--neon-glow);
}

.neon-text {
    text-shadow: 0 0 15px var(--neon-glow);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #050811; }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-violet); }