/* Animation Styles */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Slide In Animation */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

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

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* Scale Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.5s ease-out;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Button Animations */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

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

.spinner {
    animation: spin 1s linear infinite;
}

/* Typing Animation */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typing {
    overflow: hidden;
    border-right: 2px solid;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: currentColor;
    }
}

/* Hero Background Animation */
.hero-section {
    position: relative;
    overflow: hidden;
}

/* Floating Gaming Elements */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(16, 124, 16, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(15, 90, 15, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(58, 58, 58, 0.05) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(1deg);
    }
}

/* Floating Gaming Icons */
.floating-gaming-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.gaming-icon {
    position: absolute;
    opacity: 0.1;
    font-size: 2rem;
    color: #107C10;
    animation: float 6s ease-in-out infinite;
}

.gaming-icon:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.gaming-icon:nth-child(2) {
    top: 25%;
    right: 15%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.gaming-icon:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.gaming-icon:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
    animation-duration: 6s;
}

.gaming-icon:nth-child(5) {
    top: 50%;
    left: 5%;
    animation-delay: 4s;
    animation-duration: 8s;
}

.gaming-icon:nth-child(6) {
    top: 60%;
    right: 5%;
    animation-delay: 5s;
    animation-duration: 7s;
}

.gaming-icon:nth-child(7) {
    top: 35%;
    left: 50%;
    animation-delay: 6s;
    animation-duration: 8s;
}

.gaming-icon:nth-child(8) {
    top: 75%;
    left: 60%;
    animation-delay: 7s;
    animation-duration: 6s;
}

.gaming-icon:nth-child(9) {
    top: 45%;
    right: 25%;
    animation-delay: 8s;
    animation-duration: 9s;
}

.gaming-icon:nth-child(10) {
    top: 85%;
    right: 35%;
    animation-delay: 9s;
    animation-duration: 7s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-15px) rotate(2deg);
        opacity: 0.18;
    }
}

/* Animated Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #107C10, #0F5A0F);
    border-radius: 50%;
    animation: particleFloat 12s linear infinite;
}

.particle:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.particle:nth-child(2) {
    top: 20%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    top: 60%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 14s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 70%;
    animation-delay: 6s;
    animation-duration: 16s;
}

.particle:nth-child(5) {
    top: 40%;
    left: 60%;
    animation-delay: 8s;
    animation-duration: 13s;
}

.particle:nth-child(6) {
    top: 70%;
    left: 40%;
    animation-delay: 10s;
    animation-duration: 17s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(10px) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(10vh) translateX(-10px) scale(1);
    }
    100% {
        transform: translateY(0) translateX(0) scale(0);
        opacity: 0;
    }
}

/* Geometric Grid Pattern */
.geometric-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(16, 124, 16, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 124, 16, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite;
    z-index: 1;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Glowing Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 1;
}

.glow-orb:nth-child(1) {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(16, 124, 16, 0.2) 0%, transparent 70%);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.glow-orb:nth-child(2) {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(15, 90, 15, 0.15) 0%, transparent 70%);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.glow-orb:nth-child(3) {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(58, 58, 58, 0.1) 0%, transparent 70%);
    bottom: 20%;
    left: 30%;
    animation-delay: 1s;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Digital Rain Effect */
.digital-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.rain-column {
    position: absolute;
    top: -100%;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #107C10, transparent);
    animation: rainFall 3s linear infinite;
}

.rain-column:nth-child(1) { left: 5%; animation-delay: 0s; }
.rain-column:nth-child(2) { left: 15%; animation-delay: 0.5s; }
.rain-column:nth-child(3) { left: 25%; animation-delay: 1s; }
.rain-column:nth-child(4) { left: 35%; animation-delay: 1.5s; }
.rain-column:nth-child(5) { left: 45%; animation-delay: 2s; }
.rain-column:nth-child(6) { left: 55%; animation-delay: 2.5s; }
.rain-column:nth-child(7) { left: 65%; animation-delay: 0.3s; }
.rain-column:nth-child(8) { left: 75%; animation-delay: 0.8s; }
.rain-column:nth-child(9) { left: 85%; animation-delay: 1.3s; }
.rain-column:nth-child(10) { left: 95%; animation-delay: 1.8s; }

@keyframes rainFall {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gaming-icon {
        font-size: 1.5rem;
    }
    
    .glow-orb {
        filter: blur(20px);
    }
    
    .glow-orb:nth-child(1) {
        width: 100px;
        height: 100px;
    }
    
    .glow-orb:nth-child(2) {
        width: 80px;
        height: 80px;
    }
    
    .glow-orb:nth-child(3) {
        width: 90px;
        height: 90px;
    }
    
    .geometric-grid {
        background-size: 30px 30px;
    }
}
