/* Advanced Animations & Visual Effects */

:root {
    --gold-gradient: linear-gradient(45deg, #ffd700, #ffaa00, #ffd700);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-glow: 0 0 10px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Particle Container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

/* Enhanced Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #2a2a2a 0%, #1a1a1a 100%);
    /* Animated Background */
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    position: relative;
    z-index: 2;
    backdrop-filter: blur(2px);
}

.hero h1 {
    font-size: 3.5em;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 10px 20px rgba(0,0,0,0.5);
    animation: titleFloat 3s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Floating Chips Effect */
.floating-chip {
    position: absolute;
    width: 60px;
    height: 60px;
    background: url('../images/chip.png') no-repeat center center/contain; /* Ensure you have a chip image or use CSS shape */
    opacity: 0.6;
    animation: floatChip 10s linear infinite;
    z-index: 1;
}

/* CSS Chip Fallback if image missing */
.floating-chip.css-chip {
    background: radial-gradient(circle, gold 30%, orange 90%);
    border: 4px dashed white;
    border-radius: 50%;
    box-shadow: 0 0 15px gold;
}

@keyframes floatChip {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-20vh) rotate(360deg); opacity: 0; }
}

/* Glassmorphism Feature Cards */
.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), inset 0 0 0 2px var(--primary-color);
    background: rgba(255, 215, 0, 0.05);
}

.feature-card i {
    transition: transform 0.5s ease;
}

.feature-card:hover i {
    transform: rotateY(360deg) scale(1.2);
    color: #fff !important;
    text-shadow: 0 0 10px #ffd700;
}

/* Enhanced Download Button */
.btn-download {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #ff4500, #ff8c00);
    z-index: 1;
    border: none;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.6);
}

.btn-download::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg);
    transition: all 0.3s;
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    20% { transform: translateX(100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.btn-download:active {
    transform: scale(0.95);
}

/* Mobile App Showcase Tilt Effect (requires JS or simplified CSS) */
.app-showcase {
    perspective: 1000px;
    margin-top: 30px;
}

.phone-mockup {
    width: 280px;
    height: 550px;
    background: #000;
    border-radius: 35px;
    border: 8px solid #333;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    transition: transform 0.5s;
    overflow: hidden;
    /* Add screen image here */
    background-image: url('https://placehold.co/280x550/000000/ffd700?text=Game+Screen'); 
    background-size: cover;
}

.phone-mockup:hover {
    transform: rotateX(10deg) rotateY(-10deg) rotateZ(2deg);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Glow */
footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}
