/* Custom geometric shapes and animations */
.geometric-shape {
    position: absolute;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #dcefdc 0%, #b9dbb9 100%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #b9dbb9 0%, #86c086 100%);
    border-radius: 50%;
    bottom: 10%;
    left: 5%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #86c086 0%, #52a352 100%);
    opacity: 0.2;
    top: 30%;
    left: 8%;
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #2d7d2d;
    opacity: 0.15;
    top: 20%;
    right: 10%;
    animation: float 7s ease-in-out infinite;
}

.shape-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #2d7d2d 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.1;
    bottom: 20%;
    right: 15%;
}

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

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

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
    opacity: 0;
}

/* Game card hover effect */
.game-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover {
    transform: translateY(-4px);
}

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

/* Mobile menu transitions */
#mobileMenu {
    transition: all 0.3s ease-in-out;
}

/* Custom selection color */
::selection {
    background-color: #2d7d2d;
    color: white;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .geometric-shape,
    .animate-fade-in-up,
    .animate-bounce {
        animation: none !important;
    }
    
    .game-card {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}
