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

:root {
    /* Color System */
    --primary-50: #fdf4ff;
    --primary-100: #fae8ff;
    --primary-200: #f5d0fe;
    --primary-300: #f0abfc;
    --primary-400: #e879f9;
    --primary-500: #d946ef;
    --primary-600: #c026d3;
    --primary-700: #a21caf;
    --primary-800: #86198f;
    --primary-900: #701a75;

    --secondary-50: #f0fdf4;
    --secondary-100: #dcfce7;
    --secondary-200: #bbf7d0;
    --secondary-300: #86efac;
    --secondary-400: #4ade80;
    --secondary-500: #22c55e;
    --secondary-600: #16a34a;
    --secondary-700: #15803d;
    --secondary-800: #166534;
    --secondary-900: #14532d;

    --accent-50: #fef3c7;
    --accent-100: #fde68a;
    --accent-200: #fcd34d;
    --accent-300: #fbbf24;
    --accent-400: #f59e0b;
    --accent-500: #d97706;
    --accent-600: #b45309;
    --accent-700: #92400e;
    --accent-800: #78350f;
    --accent-900: #451a03;

    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;

    /* Dark Theme Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #e5e5e5;
    --text-muted: #a3a3a3;

    /* Spacing System (8px base) */
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 2.5rem;
    --space-6: 3rem;
    --space-8: 4rem;
    --space-10: 5rem;
    --space-12: 6rem;
    --space-16: 8rem;

    /* Typography */
    --font-primary: 'Comfortaa', Arial, sans-serif;
    --font-secondary: 'Nunito', Helvetica, sans-serif;
    
    /* Shadows and Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Bloom Glow Effects */
    --bloom-glow: 0 0 20px var(--primary-400), 0 0 40px var(--primary-300), 0 0 60px var(--primary-200);
    --petal-glow: 0 0 15px var(--secondary-400), 0 0 30px var(--secondary-300);
    --neon-glow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
}

body {
    font-family: var(--font-secondary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    line-height: 1.5;
    margin-bottom: var(--space-2);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-2);
}

/* Navigation */
.navbar {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary-800);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--space-2) 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    filter: drop-shadow(0 0 10px var(--primary-400));
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-300);
    text-shadow: var(--bloom-glow);
}

.nav-links {
    display: flex;
    gap: var(--space-3);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--space-1) var(--space-2);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-300);
    background: rgba(212, 70, 239, 0.1);
    box-shadow: 0 0 15px rgba(212, 70, 239, 0.3);
}

.nav-link.active {
    color: var(--primary-300);
    background: rgba(212, 70, 239, 0.2);
    box-shadow: var(--bloom-glow);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.floating-petals {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(212, 70, 239, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
    animation: floatPetals 20s ease-in-out infinite;
}

.bloom-vines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(212, 70, 239, 0.05) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(34, 197, 94, 0.05) 50%, transparent 70%);
    animation: bloomPulse 15s ease-in-out infinite;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
    padding: var(--space-4);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-3);
    background: linear-gradient(135deg, var(--primary-300), var(--secondary-400), var(--accent-300));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-5);
    font-style: italic;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: white;
    border: none;
    padding: var(--space-3) var(--space-6);
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--bloom-glow);
    font-family: var(--font-primary);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--primary-400), 0 0 60px var(--primary-300);
    background: linear-gradient(135deg, var(--primary-500), var(--primary-400));
}

/* Games Section */
.games-section {
    padding: var(--space-12) 0;
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-8);
    color: var(--primary-300);
    text-shadow: var(--bloom-glow);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-4);
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: var(--bg-tertiary);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-500);
    box-shadow: var(--bloom-glow);
}

.game-card:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    color: var(--primary-300);
    padding: var(--space-1) var(--space-2);
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 10;
    box-shadow: var(--petal-glow);
    animation: tooltipFade 0.3s ease-in;
}

.game-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.game-info {
    padding: var(--space-3);
}

.game-title {
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    font-size: 1.25rem;
}

.game-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-decoration: none;
}

/* About Section */
.about-section {
    padding: var(--space-12) 0;
    text-align: center;
}

.about-text {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Features Section */
.features-section {
    padding: var(--space-12) 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-tertiary);
    padding: var(--space-6);
    border-radius: 16px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--secondary-500);
    box-shadow: var(--petal-glow);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-3);
    display: block;
}

.feature-title {
    color: var(--secondary-300);
    margin-bottom: var(--space-2);
}

.feature-text {
    color: var(--text-muted);
}

/* Disclaimer Section */
.disclaimer-section {
    padding: var(--space-8) 0;
    text-align: center;
    background: var(--bg-tertiary);
}

.disclaimer-text {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: var(--space-6) 0;
    border-top: 1px solid var(--primary-800);
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-2);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    filter: drop-shadow(0 0 8px var(--primary-400));
}

.footer-brand {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary-300);
}

.footer-middle {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-300);
}

.footer-right {
    text-align: right;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.petal-grid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-500) 0%, 
        var(--secondary-500) 33%, 
        var(--accent-500) 66%, 
        var(--primary-500) 100%);
    opacity: 0.6;
}

/* Game Pages */
.game-page {
    background: var(--bg-primary);
    min-height: 100vh;
}

.game-main {
    position: relative;
    min-height: calc(100vh - 80px);
}

.game-header {
    padding: var(--space-4) var(--space-2);
    text-align: center;
    position: relative;
    z-index: 2;
}

.back-button {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 2px solid var(--primary-600);
    padding: var(--space-2) var(--space-4);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-secondary);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.back-button:hover {
    background: var(--primary-600);
    color: white;
    box-shadow: var(--bloom-glow);
    transform: translateX(-4px);
}

.game-page-title {
    font-size: 2.5rem;
    color: var(--primary-300);
    text-shadow: var(--bloom-glow);
    margin-bottom: var(--space-4);
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-2);
    position: relative;
    z-index: 2;
}

.game-iframe {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    border: 2px solid var(--primary-600);
    border-radius: 16px;
    background: var(--bg-tertiary);
    box-shadow: var(--bloom-glow);
}

.game-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0.3;
}

/* Contact Page */
.contact-main {
    min-height: calc(100vh - 160px);
    padding: var(--space-8) 0;
    position: relative;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-title {
    text-align: center;
    margin-bottom: var(--space-8);
    color: var(--primary-300);
    text-shadow: var(--bloom-glow);
}

.contact-form {
    background: var(--bg-secondary);
    padding: var(--space-6);
    border-radius: 16px;
    border: 2px solid var(--primary-800);
    box-shadow: var(--shadow-xl);
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    margin-bottom: var(--space-1);
    color: var(--text-secondary);
    font-weight: 600;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-3);
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 15px rgba(212, 70, 239, 0.3);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: white;
    border: none;
    padding: var(--space-3) var(--space-4);
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    box-shadow: var(--bloom-glow);
}

.form-submit:hover {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-400));
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--primary-400);
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0.2;
}

/* Legal Pages */
.legal-main {
    min-height: calc(100vh - 160px);
    padding: var(--space-8) 0;
    position: relative;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.legal-section {
    background: var(--bg-secondary);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    border-radius: 12px;
    border-left: 4px solid var(--primary-500);
}

.legal-section h2 {
    color: var(--primary-300);
    margin-bottom: var(--space-2);
    font-size: 1.25rem;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.legal-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0.1;
}

/* Animations */
@keyframes floatPetals {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes bloomPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes titleGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2) drop-shadow(0 0 20px rgba(212, 70, 239, 0.5)); }
}

@keyframes tooltipFade {
    0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-3);
    }
    
    .footer-right {
        text-align: center;
    }
    
    .game-iframe {
        height: 60vh;
        min-height: 400px;
    }
    
    .game-page-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: var(--space-2);
    }
    
    .cta-button {
        padding: var(--space-2) var(--space-4);
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .game-card {
        margin: 0 var(--space-1);
    }
    
    .contact-form {
        padding: var(--space-4);
        margin: 0 var(--space-2);
    }
    
    .legal-content {
        padding: 0 var(--space-2);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --bg-primary: #000000;
        --bg-secondary: #111111;
        --bg-tertiary: #222222;
        --text-primary: #ffffff;
        --text-secondary: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
 #Game {
    width: 100%;
    height: 600px;
    border: none;
  }