:root {
    --primary-mint: #A7F3D0;
    --primary-coral: #FECACA;
    --primary-sky: #BFDBFE;
    --primary-gold: #FDE68A;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(167, 243, 208, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

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

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, var(--primary-mint), transparent);
    border-radius: 50%;
    animation: sparkle 4s infinite ease-in-out;
    animation-delay: var(--delay);
    left: var(--x);
    top: var(--y);
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Glass Morphism Components */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

/* Floating Animation */
.floating {
    animation: floating 6s ease-in-out infinite;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    background: linear-gradient(45deg, var(--primary-mint), var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Remove underline only from the logo link */
.header .logo, 
.header .logo h2, 
.header a .logo h2 {
    text-decoration: none;
    color: inherit;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: var(--primary-mint);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-mint), var(--primary-gold));
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/banner.jpg');
    /* background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><filter id="blur"><feGaussianBlur stdDeviation="3"/></filter></defs><path d="M0,400 Q300,200 600,300 T1200,250 L1200,600 L0,600 Z" fill="rgba(167,243,208,0.1)" filter="url(%23blur)"/><path d="M0,500 Q400,300 800,400 T1200,350 L1200,600 L0,600 Z" fill="rgba(254,202,202,0.1)" filter="url(%23blur)"/></svg>') no-repeat center center; */
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-card {
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
}

.hero-card h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-mint), var(--primary-coral), var(--primary-sky), var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(30deg); }
}

.hero-card p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-btn {
    background: linear-gradient(45deg, var(--primary-mint), var(--primary-coral));
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(167, 243, 208, 0.3);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(167, 243, 208, 0.5);
}

/* Section Titles */
.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--primary-sky), var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Features Section */
.features {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

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

.feature-card {
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Section */
.about {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.about-bg {
    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 1200 600"><circle cx="200" cy="150" r="50" fill="rgba(191,219,254,0.1)"/><circle cx="800" cy="400" r="80" fill="rgba(253,230,138,0.1)"/><circle cx="1000" cy="200" r="60" fill="rgba(167,243,208,0.1)"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.5;
}

.about-content {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.glass-slab {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    max-width: 800px;
    box-shadow: var(--shadow-soft);
}

.glass-slab h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-coral);
}

.glass-slab p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Games Section */
.games {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

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

.game-cube {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(167, 243, 208, 0.1), rgba(254, 202, 202, 0.1));
}

.game-cube:hover {
    transform: rotateY(5deg) rotateX(5deg) translateY(-10px);
    border-color: var(--primary-mint);
    box-shadow: 0 15px 40px rgba(167, 243, 208, 0.4);
}

.game-cube img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.game-cube:hover .game-overlay {
    transform: translateY(0);
}

.game-overlay h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.play-btn {
    background: linear-gradient(45deg, var(--primary-sky), var(--primary-mint));
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    color: #1a1a2e;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(191, 219, 254, 0.5);
}

/* Disclaimer */
.disclaimer {
    padding: 3rem 0;
    position: relative;
    z-index: 10;
}

.disclaimer-content {
    padding: 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.disclaimer-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.footer {
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.glass-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.glass-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-mint);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-card h1 {
        font-size: 2.5rem;
    }
    
    .hero-card p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .nav ul {
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .glass-slab {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-card {
        padding: 2rem;
    }
    
    .hero-card h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Game Page Styles */
.game-page {
    padding-top: 100px;
    min-height: 100vh;
}

.game-container {
    padding: 2rem 0;
}

.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.back-btn {
    background: linear-gradient(45deg, var(--primary-coral), var(--primary-sky));
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    color: #1a1a2e;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(254, 202, 202, 0.5);
}

.game-frame {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    padding: 1rem;
    box-shadow: var(--shadow-soft);
}

.game-frame iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 10px;
}