/* Version 2 Custom Styles */

/* Energy Gradient Animations */
@keyframes energyFlow {
    0%, 100% {
        background: linear-gradient(90deg, #ff3131 0%, #ff914d 100%);
    }
    50% {
        background: linear-gradient(90deg, #ff914d 0%, #ff3131 100%);
    }
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
    25% { transform: translateY(-20px) rotate(90deg); opacity: 0.7; }
    50% { transform: translateY(-40px) rotate(180deg); opacity: 1; }
    75% { transform: translateY(-20px) rotate(270deg); opacity: 0.7; }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(42, 232, 216, 0.4), 0 0 40px rgba(42, 232, 216, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(42, 232, 216, 0.8), 0 0 80px rgba(42, 232, 216, 0.4);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(42, 232, 216, 0.5);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Energy Particles Background */
.energy-particles {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(42, 232, 216, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(230, 181, 101, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: energyFlow 8s ease-in-out infinite;
}

.energy-particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 90%, rgba(42, 232, 216, 0.2) 0%, transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(230, 181, 101, 0.2) 0%, transparent 30%);
    animation: particleFloat 6s ease-in-out infinite;
}

/* Glow Effects */
.glow-effect {
    animation: glowPulse 3s ease-in-out infinite;
}

.glow-effect:hover {
    box-shadow: 0 0 30px rgba(42, 232, 216, 0.6), 0 0 60px rgba(42, 232, 216, 0.4), 0 0 90px rgba(42, 232, 216, 0.2);
}

/* Text Effects */
.text-glow {
    animation: textGlow 4s ease-in-out infinite;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #ff3131, #ff914d);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2ae8d8, #e6b565);
    border-radius: 6px;
    border: 2px solid #ff3131;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #e6b565, #2ae8d8);
}

/* Mobile Menu */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    background: linear-gradient(135deg, #ff3131, #ff914d);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Button Hover Effects */
.btn-energy:hover {
    background: linear-gradient(135deg, #2ae8d8, #e6b565);
    box-shadow: 0 0 30px rgba(42, 232, 216, 0.5);
    transform: translateY(-2px) scale(1.05);
}

/* Card Hover Effects */
.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Form Focus States */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(42, 232, 216, 0.3);
    border-color: #2ae8d8;
}

/* Loading Animation */
.loading-spinner {
    border: 4px solid rgba(42, 232, 216, 0.3);
    border-top: 4px solid #2ae8d8;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Intersection Observer Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered Animation Delays */
.fade-in-up:nth-child(1) { transition-delay: 0.1s; }
.fade-in-up:nth-child(2) { transition-delay: 0.2s; }
.fade-in-up:nth-child(3) { transition-delay: 0.3s; }
.fade-in-up:nth-child(4) { transition-delay: 0.4s; }

/* Energy Pulse Effect */
@keyframes energyPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(10px)) {
    .backdrop-blur-sm {
        backdrop-filter: blur(4px);
    }

    .backdrop-blur-md {
        backdrop-filter: blur(10px);
    }
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .backdrop-blur-sm {
        background-color: rgba(0, 0, 0, 0.6);
    }

    .backdrop-blur-md {
        background-color: rgba(0, 0, 0, 0.8);
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* Energy Border Animation */
@keyframes energyBorder {
    0% {
        border-image: linear-gradient(90deg, #2ae8d8, #e6b565, #2ae8d8) 1;
    }
    50% {
        border-image: linear-gradient(90deg, #e6b565, #2ae8d8, #e6b565) 1;
    }
    100% {
        border-image: linear-gradient(90deg, #2ae8d8, #e6b565, #2ae8d8) 1;
    }
}

.energy-border {
    border: 2px solid transparent;
    animation: energyBorder 3s ease-in-out infinite;
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .bg-energy-gradient,
    .bg-energy-gradient-vertical {
        background: white !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .bg-black\/30,
    .bg-black\/40,
    .bg-black\/50 {
        background-color: rgba(0, 0, 0, 0.8);
    }

    .text-white\/80,
    .text-white\/90 {
        color: white;
    }
}

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