/**
 * 3D Animated Landing Page Design
 * For the front page (before login/registration)
 */

/* ==================== 3D ANIMATED SITE NAME ==================== */
.site-name-3d {
    font-size: 96px;
    font-weight: 900;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 8px;
    position: relative;
    display: inline-block;
    animation: titleFloat 4s ease-in-out infinite, titleGlow 3s ease-in-out infinite;
    transform-style: preserve-3d;
    text-shadow: 
        0 1px 0 rgba(16, 185, 129, 0.9),
        0 2px 0 rgba(16, 185, 129, 0.8),
        0 3px 0 rgba(16, 185, 129, 0.7),
        0 4px 0 rgba(16, 185, 129, 0.6),
        0 5px 0 rgba(16, 185, 129, 0.5),
        0 10px 20px rgba(0, 0, 0, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0px) rotateX(0deg) scale(1); }
    50% { transform: translateY(-20px) rotateX(5deg) scale(1.05); }
}

@keyframes titleGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.7)) brightness(1);
    }
    50% { 
        filter: drop-shadow(0 0 60px rgba(5, 150, 105, 1)) brightness(1.2);
    }
}

/* ==================== 3D CHARACTER SHOWCASE ==================== */
.character-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin: 60px 0;
    perspective: 1500px;
    flex-wrap: wrap;
}

/* Giant Coin Character */
.giant-coin {
    width: 180px;
    height: 180px;
    position: relative;
    transform-style: preserve-3d;
    animation: giantCoinSpin 4s linear infinite;
}

.giant-coin::before {
    content: '$';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFD93D 0%, #FFA91C 50%, #FFD93D 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 96px;
    font-weight: 900;
    color: #fff;
    box-shadow: 
        0 20px 60px rgba(255, 217, 61, 0.6),
        inset 0 -10px 20px rgba(0, 0, 0, 0.3),
        inset 10px 10px 20px rgba(255, 255, 255, 0.4);
    transform: translateZ(30px);
}

@keyframes giantCoinSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* Trophy Character */
.trophy-3d {
    font-size: 120px;
    animation: trophyBounce 3s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(255, 193, 7, 0.6));
}

@keyframes trophyBounce {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
    25% { transform: translateY(-30px) scale(1.1) rotate(-5deg); }
    50% { transform: translateY(0) scale(1) rotate(0deg); }
    75% { transform: translateY(-15px) scale(1.05) rotate(5deg); }
}

/* Diamond Character */
.diamond-3d {
    width: 150px;
    height: 150px;
    position: relative;
    transform-style: preserve-3d;
    animation: diamondSpin 5s linear infinite;
}

.diamond-3d::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 50%, #89f7fe 100%);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    box-shadow: 
        0 0 60px rgba(102, 166, 255, 0.8),
        inset 0 -15px 30px rgba(0, 0, 0, 0.3),
        inset 15px 0 30px rgba(255, 255, 255, 0.4);
}

@keyframes diamondSpin {
    0% { transform: rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateY(360deg) rotateZ(360deg); }
}

/* Rocket Character */
.rocket-3d {
    font-size: 100px;
    animation: rocketLaunch 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(255, 71, 87, 0.6));
}

@keyframes rocketLaunch {
    0%, 100% { transform: translateY(0) rotate(-15deg) scale(1); }
    50% { transform: translateY(-50px) rotate(15deg) scale(1.15); }
}

/* Star Burst */
.star-burst {
    font-size: 100px;
    animation: starBurst 2s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(255, 217, 61, 1));
}

@keyframes starBurst {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.4) rotate(180deg); opacity: 0.7; }
}

/* ==================== HERO SECTION ==================== */
.landing-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.hero-subtitle-3d {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    margin-bottom: 40px;
    animation: subtitlePulse 3s ease-in-out infinite;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

@keyframes subtitlePulse {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

.hero-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.6;
    animation: descriptionFade 4s ease-in-out infinite;
}

@keyframes descriptionFade {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* ==================== PREMIUM BUTTONS ==================== */
.cta-buttons-3d {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn-premium-3d {
    padding: 20px 50px;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: none;
    border-radius: 60px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 15px 40px rgba(16, 185, 129, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.btn-premium-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.6s ease;
}

.btn-premium-3d:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 
        0 25px 60px rgba(16, 185, 129, 0.7),
        0 10px 25px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.btn-premium-3d:hover::before {
    left: 100%;
}

.btn-premium-3d:active {
    transform: translateY(-4px) scale(1.04);
}

.btn-premium-3d.secondary {
    background: linear-gradient(135deg, #FFD93D 0%, #FFA91C 100%);
    box-shadow: 
        0 15px 40px rgba(255, 217, 61, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.btn-premium-3d.secondary:hover {
    box-shadow: 
        0 25px 60px rgba(255, 217, 61, 0.7),
        0 10px 25px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

/* ==================== FLOATING PARTICLES ==================== */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, transparent 70%);
    border-radius: 50%;
    animation: particleRise 20s linear infinite;
    opacity: 0.7;
}

@keyframes particleRise {
    0% {
        transform: translateY(100vh) translateX(0) scale(0) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 0.7;
    }
    85% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100vh) translateX(150px) scale(1.5) rotate(360deg);
        opacity: 0;
    }
}

/* Random particle positions */
.particle-dot:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 18s; }
.particle-dot:nth-child(2) { left: 15%; animation-delay: 3s; animation-duration: 22s; }
.particle-dot:nth-child(3) { left: 25%; animation-delay: 6s; animation-duration: 16s; }
.particle-dot:nth-child(4) { left: 35%; animation-delay: 2s; animation-duration: 20s; }
.particle-dot:nth-child(5) { left: 45%; animation-delay: 5s; animation-duration: 19s; }
.particle-dot:nth-child(6) { left: 55%; animation-delay: 8s; animation-duration: 21s; }
.particle-dot:nth-child(7) { left: 65%; animation-delay: 4s; animation-duration: 17s; }
.particle-dot:nth-child(8) { left: 75%; animation-delay: 7s; animation-duration: 23s; }
.particle-dot:nth-child(9) { left: 85%; animation-delay: 1s; animation-duration: 18s; }
.particle-dot:nth-child(10) { left: 95%; animation-delay: 9s; animation-duration: 20s; }
.particle-dot:nth-child(11) { left: 10%; animation-delay: 4.5s; animation-duration: 19s; }
.particle-dot:nth-child(12) { left: 30%; animation-delay: 7.5s; animation-duration: 21s; }
.particle-dot:nth-child(13) { left: 50%; animation-delay: 2.5s; animation-duration: 18s; }
.particle-dot:nth-child(14) { left: 70%; animation-delay: 5.5s; animation-duration: 22s; }
.particle-dot:nth-child(15) { left: 90%; animation-delay: 8.5s; animation-duration: 20s; }

/* ==================== FEATURES SECTION 3D ==================== */
.features-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin: 80px 0;
    perspective: 1000px;
}

.feature-card-3d {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 40px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.25);
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.feature-card-3d:hover {
    transform: translateY(-20px) rotateX(10deg) scale(1.05);
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.4);
}

.feature-card-3d:hover::before {
    left: 100%;
}

.feature-icon-3d {
    font-size: 72px;
    margin-bottom: 20px;
    display: block;
    animation: iconBounce 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.1); }
}

.feature-title-3d {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.feature-text-3d {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .site-name-3d {
        font-size: 64px;
        letter-spacing: 5px;
    }
    
    .character-showcase {
        gap: 40px;
    }
    
    .giant-coin {
        width: 140px;
        height: 140px;
    }
    
    .giant-coin::before {
        font-size: 72px;
    }
    
    .trophy-3d,
    .rocket-3d,
    .star-burst {
        font-size: 80px;
    }
}

@media (max-width: 768px) {
    .site-name-3d {
        font-size: 48px;
        letter-spacing: 3px;
    }
    
    .hero-subtitle-3d {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .character-showcase {
        gap: 30px;
    }
    
    .giant-coin {
        width: 100px;
        height: 100px;
    }
    
    .giant-coin::before {
        font-size: 48px;
    }
    
    .trophy-3d,
    .rocket-3d,
    .star-burst {
        font-size: 60px;
    }
    
    .diamond-3d {
        width: 100px;
        height: 100px;
    }
    
    .btn-premium-3d {
        padding: 16px 35px;
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .cta-buttons-3d {
        gap: 15px;
    }
    
    .features-3d {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature-card-3d {
        padding: 30px;
    }
    
    .feature-icon-3d {
        font-size: 56px;
    }
}

@media (max-width: 480px) {
    .site-name-3d {
        font-size: 36px;
        letter-spacing: 2px;
    }
    
    .landing-hero {
        padding: 60px 20px;
    }
    
    .character-showcase {
        gap: 20px;
    }
    
    .giant-coin {
        width: 80px;
        height: 80px;
    }
    
    .giant-coin::before {
        font-size: 36px;
    }
    
    .trophy-3d,
    .rocket-3d,
    .star-burst {
        font-size: 48px;
    }
}

/* ==================== SCROLL ANIMATIONS ==================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up:nth-child(1) { animation-delay: 0.2s; }
.fade-in-up:nth-child(2) { animation-delay: 0.4s; }
.fade-in-up:nth-child(3) { animation-delay: 0.6s; }
.fade-in-up:nth-child(4) { animation-delay: 0.8s; }
.fade-in-up:nth-child(5) { animation-delay: 1s; }
.fade-in-up:nth-child(6) { animation-delay: 1.2s; }
