/**
 * ManagerNest NFT Creator - Enhanced Styles with 3D & Animations
 * Three.js + GSAP + Particles Ready
 */

/* ==========================================
   3D Background & Canvas
   ========================================== */

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* ==========================================
   Cursor Trail Effect
   ========================================== */

.cursor-trail {
    pointer-events: none;
    mix-blend-mode: screen;
    filter: blur(2px);
}

/* ==========================================
   Gradient Orbs (Parallax Background)
   ========================================== */

.hero-gradient-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    top: -200px;
    left: -100px;
    animation: orbit 20s infinite ease-in-out;
}

.hero-gradient-orb-2 {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4), transparent 70%);
    top: auto;
    bottom: -200px;
    left: auto;
    right: -100px;
    animation: orbit 25s infinite ease-in-out reverse;
}

@keyframes orbit {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, -50px) scale(1.1);
    }
}

/* ==========================================
   Enhanced Hero Section
   ========================================== */

.nft-hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    perspective: 1000px;
}

.hero-content {
    will-change: transform;
    transform-style: preserve-3d;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

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

/* ==========================================
   3D Card Tilt Effect
   ========================================== */

.feature-card,
.pricing-card,
.nft-card-mini {
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
    will-change: transform;
}

.feature-card:hover,
.pricing-card:hover,
.nft-card-mini:hover {
    transform: translateZ(20px);
}

/* ==========================================
   Enhanced Button Glow
   ========================================== */

.btn-glow {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0)
    );
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s;
}

.btn-glow:hover::before {
    transform: translateX(100%) rotate(45deg);
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.3s;
}

.btn-glow:hover::after {
    opacity: 1;
}

/* ==========================================
   Glassmorphism Cards
   ========================================== */

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ==========================================
   Floating Animation
   ========================================== */

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

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

/* ==========================================
   Pulse Animation
   ========================================== */

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

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ==========================================
   Shimmer Effect
   ========================================== */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 3s linear infinite;
}

/* ==========================================
   Scroll Reveal Animations
   ========================================== */

[data-scroll-section] {
    will-change: transform, opacity;
}

/* ==========================================
   Loading States
   ========================================== */

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(99, 102, 241, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================
   Responsive Enhancements
   ========================================== */

@media (max-width: 768px) {
    #bg-canvas,
    #particles-js {
        opacity: 0.5;
    }
    
    .hero-gradient-orb {
        width: 300px;
        height: 300px;
    }
    
    .cursor-trail {
        display: none;
    }
}

/* ==========================================
   Performance Optimizations
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
