/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #007AFF;
    --primary-light: #3395FF;
    --primary-dark: #0051D5;
    --secondary: #FFCC00;
    --success: #22C55E;
    --danger: #EF4444;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Animated Background - Bianco con Animazioni Blu/Azzurre */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #FFFFFF;
}

/* Onde animate blu/azzurre */
.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(0, 122, 255, 0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 80%, rgba(59, 130, 246, 0.10) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(147, 197, 253, 0.08) 0%, transparent 50%);
    animation: wave-flow 25s ease-in-out infinite;
}

/* Luci pulsanti */
.animated-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 122, 255, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.12) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.10) 0%, transparent 35%);
    animation: pulse-light 12s ease-in-out infinite;
    filter: blur(60px);
}

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

@keyframes pulse-light {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.6;
    }
    33% {
        transform: translate(20px, 30px) scale(1.15) rotate(120deg);
        opacity: 0.8;
    }
    66% {
        transform: translate(-20px, -30px) scale(0.95) rotate(240deg);
        opacity: 0.7;
    }
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.4) 0%, rgba(59, 130, 246, 0.2) 50%, transparent 100%);
    opacity: 0.8;
    animation: float-particle 20s infinite ease-in-out;
    box-shadow:
        0 0 40px rgba(0, 122, 255, 0.4),
        0 0 80px rgba(59, 130, 246, 0.2),
        inset 0 0 20px rgba(147, 197, 253, 0.3);
    filter: blur(2px);
}

.particle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.particle:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 22s;
}

.particle:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 60%;
    left: 5%;
    animation-delay: 4s;
    animation-duration: 28s;
}

.particle:nth-child(4) {
    width: 70px;
    height: 70px;
    bottom: 20%;
    right: 10%;
    animation-delay: 1s;
    animation-duration: 24s;
}

.particle:nth-child(5) {
    width: 50px;
    height: 50px;
    top: 40%;
    right: 30%;
    animation-delay: 3s;
    animation-duration: 20s;
}

.particle:nth-child(6) {
    width: 90px;
    height: 90px;
    bottom: 30%;
    left: 20%;
    animation-delay: 5s;
    animation-duration: 26s;
}

.particle:nth-child(7) {
    width: 55px;
    height: 55px;
    top: 70%;
    right: 25%;
    animation-delay: 2.5s;
    animation-duration: 23s;
}

.particle:nth-child(8) {
    width: 75px;
    height: 75px;
    top: 50%;
    left: 40%;
    animation-delay: 4.5s;
    animation-duration: 27s;
}

.particle:nth-child(9) {
    width: 65px;
    height: 65px;
    top: 15%;
    left: 60%;
    animation-delay: 6s;
    animation-duration: 29s;
}

.particle:nth-child(10) {
    width: 85px;
    height: 85px;
    bottom: 10%;
    right: 35%;
    animation-delay: 1.5s;
    animation-duration: 31s;
}

.particle:nth-child(11) {
    width: 55px;
    height: 55px;
    top: 35%;
    left: 15%;
    animation-delay: 3.5s;
    animation-duration: 26s;
}

.particle:nth-child(12) {
    width: 70px;
    height: 70px;
    top: 65%;
    right: 45%;
    animation-delay: 5.5s;
    animation-duration: 24s;
}

.particle:nth-child(13) {
    width: 60px;
    height: 60px;
    top: 25%;
    right: 20%;
    animation-delay: 2.8s;
    animation-duration: 30s;
}

.particle:nth-child(14) {
    width: 95px;
    height: 95px;
    bottom: 25%;
    left: 35%;
    animation-delay: 4.8s;
    animation-duration: 28s;
}

.particle:nth-child(15) {
    width: 50px;
    height: 50px;
    top: 55%;
    left: 70%;
    animation-delay: 6.5s;
    animation-duration: 25s;
}

.particle:nth-child(16) {
    width: 80px;
    height: 80px;
    bottom: 40%;
    right: 15%;
    animation-delay: 3.8s;
    animation-duration: 32s;
}

/* Cerchi luminosi speciali */
.circle-glow {
    filter: blur(40px) !important;
    opacity: 0.6 !important;
    animation: glow-pulse 8s ease-in-out infinite !important;
}

.particle.circle-glow:nth-child(17) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.6) 0%, transparent 70%);
}

.particle.circle-glow:nth-child(18) {
    width: 250px;
    height: 250px;
    top: 60%;
    right: 10%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, transparent 70%);
    animation-delay: 2s !important;
}

.particle.circle-glow:nth-child(19) {
    width: 180px;
    height: 180px;
    bottom: 20%;
    left: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.4) 0%, transparent 70%);
    animation-delay: 4s !important;
}

.particle.circle-glow:nth-child(20) {
    width: 220px;
    height: 220px;
    top: 40%;
    right: 40%;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.5) 0%, transparent 70%);
    animation-delay: 6s !important;
}

@keyframes glow-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translate(150px, -100px) rotate(90deg) scale(1.3);
        opacity: 1;
    }
    50% {
        transform: translate(-80px, 180px) rotate(180deg) scale(0.8);
        opacity: 0.6;
    }
    75% {
        transform: translate(-200px, -50px) rotate(270deg) scale(1.1);
        opacity: 0.9;
    }
}

/* Language Switcher in Footer */
.language-switcher {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px;
}

.lang-btn {
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.lang-btn:hover::before {
    width: 150%;
    height: 150%;
}

.lang-btn:hover {
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

.lang-btn.active::before {
    width: 100%;
    height: 100%;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    background: transparent;
    position: relative;
    overflow: visible;
}

.logo {
    margin: 0 auto 32px;
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 10px 30px rgba(0, 122, 255, 0.3));
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.typing-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--primary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    white-space: nowrap;
    position: relative;
    animation: gradientShift 4s ease infinite;
}

.typing-text::after {
    content: '';
    position: absolute;
    left: 0;
    top: -10%;
    bottom: -10%;
    right: 0;
    background: white;
    animation: typing-mask 3.5s steps(50, end) 0.5s 1 normal both;
}

@keyframes typing-mask {
    from {
        left: 0;
    }
    to {
        left: 100%;
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typing-cursor {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: blink 0.8s step-end infinite;
    font-weight: 300;
    display: inline-block;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn {
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    min-width: 240px;
}

.btn-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.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.6s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 10px 30px -10px var(--primary);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px -10px var(--primary);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.3);
}

.btn-coming-soon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: 2px solid transparent;
    cursor: not-allowed;
    opacity: 0.85;
    box-shadow: 0 10px 30px -10px var(--primary);
}

.btn-coming-soon:hover {
    transform: none;
    box-shadow: 0 10px 30px -10px var(--primary);
}

.btn-coming-soon::before {
    display: none;
}

.hero-stats {
    display: flex;
    gap: 64px;
    justify-content: center;
    margin-top: 80px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat {
    text-align: center;
    position: relative;
}

.stat::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat:hover::after {
    opacity: 1;
}

.stat-number {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    transition: transform 0.3s ease;
}

.stat:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 72px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 48px 36px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 122, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -10px var(--primary);
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 15px 40px -10px var(--primary);
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* Games Section */
.games {
    padding: 100px 0;
    background: transparent;
    position: relative;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.game-card {
    padding: 56px 36px;
    border-radius: var(--radius-2xl);
    text-align: center;
    color: white;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.game-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.game-card:hover::before {
    opacity: 1;
}

.game-card[data-game="pokemon"] {
    background: linear-gradient(135deg, #FFCC00, #FF9900);
}

.game-card[data-game="magic"] {
    background: linear-gradient(135deg, #007AFF, #3395FF);
}

.game-card[data-game="yugioh"] {
    background: linear-gradient(135deg, #991B1B, #DC2626);
}

.game-card[data-game="onepiece"] {
    background: linear-gradient(135deg, #059669, #10B981);
}

.game-card[data-game="digimon"] {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
}

.game-card[data-game="lorcana"] {
    background: linear-gradient(135deg, #7C3AED, #A78BFA);
}

.game-card:hover {
    transform: translateY(-12px) scale(1.03) rotateX(2deg);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

.game-logo {
    width: 200px;
    height: 90px;
    margin: 0 auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.game-card:hover .game-logo {
    transform: scale(1.1);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
}

.game-logo svg,
.game-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game-card p {
    opacity: 0.95;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-top: 12px;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}

.cta h2 {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.cta p {
    font-size: 22px;
    opacity: 0.95;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.cta .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta .btn-primary:hover {
    background: var(--bg-secondary);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid white;
}

.cta .btn-secondary:hover {
    background: white;
    color: var(--primary);
}

/* Footer */
.footer {
    padding: 64px 0 32px;
    background: linear-gradient(180deg, var(--text-primary) 0%, #000000 100%);
    color: white;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    transition: transform 0.3s ease;
}

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

.footer-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateY(-2px);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    text-align: center;
}

.powered-by {
    margin-top: 8px;
    font-size: 13px;
}

.powered-by a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.powered-by a::after {
    content: '→';
    margin-left: 4px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.powered-by a:hover {
    color: white;
}

.powered-by a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Smooth Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 52px;
    }

    .section-title {
        font-size: 42px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 40px;
        line-height: 1.2;
        min-height: 100px;
        flex-wrap: wrap;
    }

    .typing-text {
        max-width: 100%;
        text-align: center;
        white-space: normal;
    }

    @keyframes typing {
        from {
            max-height: 0;
            opacity: 0;
        }
        to {
            max-height: 200px;
            opacity: 1;
        }
    }

    .hero-subtitle {
        font-size: 18px;
        padding: 0 16px;
    }

    .hero-stats {
        gap: 40px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 44px;
    }

    .section-title {
        font-size: 36px;
    }

    .section-subtitle {
        font-size: 18px;
        padding: 0 16px;
    }

    .language-switcher {
        gap: 8px;
        padding: 12px;
    }

    .lang-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .features {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 36px 28px;
    }

    .games {
        padding: 60px 0;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .game-card {
        padding: 48px 32px;
    }

    .game-logo {
        width: 160px;
        height: 60px;
    }

    .cta {
        padding: 60px 0;
    }

    .cta h2 {
        font-size: 36px;
        padding: 0 16px;
    }

    .cta p {
        font-size: 18px;
        padding: 0 16px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        padding: 0 16px;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        min-width: auto;
    }

    .btn-icon {
        width: 20px;
        height: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
        min-height: 120px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 12px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .feature-card {
        padding: 32px 24px;
    }

    .feature-icon {
        width: 64px;
        height: 64px;
    }

    .feature-card h3 {
        font-size: 20px;
    }

    .game-card h3 {
        font-size: 22px;
    }

    .cta h2 {
        font-size: 28px;
    }

    .cta p {
        font-size: 16px;
    }

    .lang-btn {
        padding: 6px 8px;
        font-size: 11px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:active {
        transform: scale(0.98);
    }

    .feature-card:active {
        transform: scale(0.98);
    }

    .game-card:active {
        transform: scale(0.98);
    }

    .lang-btn:active {
        transform: scale(0.95);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .particle {
        animation: none;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Currently using light theme only, but ready for dark mode */
}
