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

:root {
    --bg-dark: #0f0f0f;
    --bg-card: #1a1a1a;
    --primary-orange: #ffa500;
    --royal-gold: #ffd700;
    --text-light: #ffffff;
    --text-gray: #cccccc;
    --shadow-glow: 0 0 20px rgba(255, 165, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3 {
    font-family: 'Rubik Mono One', monospace;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-orange), var(--royal-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
.header {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Rubik Mono One', monospace;
    font-size: 1.5rem;
    color: var(--primary-orange);
}

.crown-icon {
    font-size: 2rem;
    animation: crownPulse 2s ease-in-out infinite;
}

@keyframes crownPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-orange);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-orange), var(--royal-gold));
    color: var(--bg-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(255, 165, 0, 0.5);
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 165, 0, 0.1), transparent 70%);
}

.floating-cards, .falling-coins {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-cards::before {
    content: '🃏';
    position: absolute;
    font-size: 3rem;
    top: 20%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.3;
}

.falling-coins::before {
    content: '🪙';
    position: absolute;
    font-size: 2rem;
    top: 30%;
    left: 15%;
    animation: coinFall 8s linear infinite;
    opacity: 0.4;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes coinFall {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-orange), var(--royal-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { text-shadow: 0 0 10px rgba(255, 165, 0, 0.5); }
    to { text-shadow: 0 0 20px rgba(255, 165, 0, 0.8); }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), var(--royal-gold));
    color: var(--bg-dark);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
}

.btn-secondary:hover {
    background: var(--primary-orange);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* Games Section */
.games-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--bg-dark), #1a1a1a);
}

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

.game-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px) rotate(1deg);
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-glow);
}

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

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.game-info {
    padding: 1.5rem;
    text-align: center;
}

.game-info h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--royal-gold);
}

.play-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--royal-gold));
    color: var(--bg-dark);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 165, 0, 0.5);
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: var(--bg-dark);
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

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

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--royal-gold);
}

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

/* About Section */
.about-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #1a1a1a, var(--bg-dark));
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.disclaimer {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid var(--primary-orange);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.disclaimer p {
    color: var(--text-light);
    font-weight: 600;
}

/* Footer */
.footer {
    background: #000000;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.footer-copy p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Game Page Styles */
.game-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.game-header {
    background: var(--bg-card);
    padding: 1rem 0;
    text-align: center;
}

.game-title {
    font-size: 2rem;
    color: var(--royal-gold);
    margin-bottom: 0.5rem;
}

.back-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--royal-gold);
}

.game-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.game-frame {
    width: 100%;
    max-width: 1200px;
    height: 80vh;
    border: none;
    border-radius: 10px;
    background: var(--bg-card);
}

/* Contact Form Styles */
.contact-section {
    padding: 5rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.contact-form {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 15px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-glow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--royal-gold);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-dark);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-light);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
}

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

.submit-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--royal-gold));
    color: var(--bg-dark);
    border: none;
    padding: 1rem 3rem;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 165, 0, 0.5);
}

/* Legal Pages */
.legal-section {
    padding: 5rem 0;
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 15px;
}

.legal-content h2 {
    color: var(--royal-gold);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.legal-content h3 {
    color: var(--primary-orange);
    margin: 2rem 0 1rem 0;
    font-size: 1.25rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .contact-form {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .legal-content {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .footer-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .game-frame {
        height: 70vh;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}