:root {
    --primary-color: #6C22A6;
    --primary-light: #9647D2;
    --accent-color: #FF6B6B;
    --accent-light: #FF8E8E;
    --bg-dark: #0F0916;
    --bg-panel: rgba(25, 15, 35, 0.6);
    --text-main: #F4EEFA;
    --text-muted: #B8A5C6;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    bottom: 20%;
    right: -50px;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: #3A0CA3;
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 0 60px;
}

.logo-text {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(108, 34, 166, 0.5);
}

.logo-text .highlight {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Games Showcase */
.games-showcase {
    padding: 40px 0 100px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Game Card (Glassmorphism) */
.game-card {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.game-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(108, 34, 166, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.game-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

/* Overlay and Button */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 9, 22, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.play-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transform: translateY(20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 34, 166, 0.5);
}

.play-btn:hover {
    box-shadow: 0 6px 20px rgba(108, 34, 166, 0.8);
    transform: translateY(0) scale(1.05);
}

.game-card:hover .play-btn {
    transform: translateY(0);
}

/* Card Info */
.game-info {
    padding: 25px;
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.game-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.footer-note {
    margin-top: 10px;
    color: var(--accent-light);
}

/* Responsive */
@media (max-width: 768px) {
    .logo-text { font-size: 3rem; }
    .hero { padding: 60px 0 40px; }
    .games-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}
