/* Home Page Specific Styles */

/* Enhanced Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="heroPattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23heroPattern)"/></svg>');
    animation: backgroundMove 20s ease-in-out infinite;
}

@keyframes backgroundMove {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(-5px); }
    50% { transform: translateX(10px) translateY(5px); }
    75% { transform: translateX(-5px) translateY(10px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-visual {
    text-align: center;
    position: relative;
}

.hero-visual img {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.3));
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(1deg); }
    66% { transform: translateY(-10px) rotate(-1deg); }
}

/* Enhanced Featured Games Section */
.featured-games {
    padding: 8rem 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.featured-games::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="featuredGamesPattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1.5" fill="%23667eea" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23featuredGamesPattern)"/></svg>');
}

.featured-games .section-visual {
    position: relative;
    z-index: 1;
}

.featured-games .section-visual img {
    animation: sectionFloat 4s ease-in-out infinite;
}

@keyframes sectionFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.games-showcase {
    position: relative;
    z-index: 1;
}

.featured-games .game-card-modern {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-games .game-card-modern:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

/* Enhanced Community Section */
.community-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.community-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="communityPattern" width="40" height="40" patternUnits="userSpaceOnUse"><rect x="19" y="19" width="2" height="2" fill="%23667eea" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23communityPattern)"/></svg>');
}

.community-section .section-visual {
    position: relative;
    z-index: 1;
}

.community-section .section-visual img {
    animation: communityFloat 5s ease-in-out infinite;
}

@keyframes communityFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-6px) rotate(0.5deg); }
    50% { transform: translateY(-12px) rotate(0deg); }
    75% { transform: translateY(-6px) rotate(-0.5deg); }
}

/* Enhanced Disclaimer Section */
.disclaimer-section {
    position: relative;
    overflow: hidden;
}

.disclaimer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="disclaimerPattern" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23disclaimerPattern)"/></svg>');
    animation: disclaimerMove 25s linear infinite;
}

@keyframes disclaimerMove {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-20px) translateY(-10px); }
    50% { transform: translateX(20px) translateY(10px); }
    75% { transform: translateX(-10px) translateY(-20px); }
    100% { transform: translateX(0) translateY(0); }
}

.disclaimer-section .section-visual {
    position: relative;
    z-index: 1;
}

.disclaimer-section .section-visual img {
    animation: disclaimerFloat 4.5s ease-in-out infinite;
}

@keyframes disclaimerFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Floating Elements */
.floating-element {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
    animation: floatingElements 20s linear infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.floating-element:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 10s;
}

@keyframes floatingElements {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(-40px) rotate(180deg); }
    75% { transform: translateY(-20px) rotate(270deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

/* Interactive Cards */
.interactive-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.interactive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/* Scroll Animations */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-up {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease-out;
    }
    
    .fade-in-up.animate {
        opacity: 1;
        transform: translateY(0);
    }
    
    .fade-in-left {
        opacity: 0;
        transform: translateX(-30px);
        transition: all 0.6s ease-out;
    }
    
    .fade-in-left.animate {
        opacity: 1;
        transform: translateX(0);
    }
    
    .fade-in-right {
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.6s ease-out;
    }
    
    .fade-in-right.animate {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Performance Optimizations */
.hero,
.featured-games,
.community-section,
.disclaimer-section {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .hero-visual img {
        max-width: 350px;
    }
    
    .floating-element {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: 6rem 0;
    }
    
    .hero-visual img {
        max-width: 280px;
    }
    
    .featured-games {
        padding: 6rem 0;
    }
    
    @keyframes heroFloat {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-8px); }
    }
    
    @keyframes sectionFloat {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-5px); }
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
        min-height: 70vh;
    }
    
    .hero-visual img {
        max-width: 220px;
    }
    
    .featured-games {
        padding: 4rem 0;
    }
    
    /* Reduce animations on mobile for better performance */
    .hero::before,
    .floating-element {
        animation: none;
    }
}
