/* ============================================
   PREMIUM 3D ANIMATIONS & EFFECTS
   ============================================ */

/* Mouse Trail */
.mouse-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(93, 214, 44, 0.8), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(93, 214, 44, 0.6);
}

/* Enhanced Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Animated Gradient Borders */
@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(93, 214, 44, 0.2);
        box-shadow: 0 0 20px rgba(93, 214, 44, 0.2);
    }
    50% {
        border-color: rgba(93, 214, 44, 0.5);
        box-shadow: 0 0 30px rgba(93, 214, 44, 0.4);
    }
}

.animated-border {
    animation: borderGlow 2s ease-in-out infinite;
}

/* Loading Spinner */
.loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(93, 214, 44, 0.2);
    border-top-color: rgba(93, 214, 44, 1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Text Reveal Animation */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: visible;
}

.reveal-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Title and Subtitle - Always Visible */
.hero-title {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.hero-subtitle {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Glitch Effect */
@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

.glitch-text:hover {
    animation: glitch 0.3s ease infinite;
    color: var(--primary);
    text-shadow: 
        2px 0 rgba(93, 214, 44, 0.8),
        -2px 0 rgba(51, 116, 24, 0.8);
}

/* Rotating Background Pattern */
.rotating-bg {
    position: relative;
    overflow: hidden;
}

.rotating-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(93, 214, 44, 0.03) 2px,
            rgba(93, 214, 44, 0.03) 4px
        );
    animation: rotatePattern 20s linear infinite;
    pointer-events: none;
}

@keyframes rotatePattern {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Magnetic Hover Effect */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 10000;
    transform-origin: left;
    transition: transform 0.1s ease;
}
