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

:root {
    --primary-bg: #290101;
    --secondary-bg: #1a0000;
    --accent-gold: #ffd700;
    --accent-red: #ff4e4e;
    --text-light: #ffffff;
    --text-gold: #ffd700;
    --text-muted: #cccccc;
    --border-gold: #ffd700;
    --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.3);
    --shadow-red: 0 0 20px rgba(255, 78, 78, 0.3);
    --gradient-primary: linear-gradient(135deg, #290101 0%, #1a0000 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    --gradient-red: linear-gradient(135deg, #ff4e4e 0%, #e53e3e 100%);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(255, 215, 0, 0.3);
    position: relative;
}

.logo-text::after {
    content: '🃏';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: width 0.3s ease;
}

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

.start-btn {
    background: var(--gradient-gold);
    color: var(--primary-bg);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--accent-gold);
    margin: 3px 0;
    transition: 0.3s;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(255, 78, 78, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite alternate;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
    color: var(--text-muted);
}

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

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary-bg);
    box-shadow: var(--shadow-gold);
}

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

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

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

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-card,
.floating-fruit,
.floating-crown {
    position: absolute;
    font-size: 3rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.floating-card {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-fruit {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-crown {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

/* Games Section */
.games {
    padding: 6rem 0;
    background: var(--secondary-bg);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
    color: var(--accent-gold);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

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

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

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.game-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.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-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.play-btn {
    background: var(--gradient-gold);
    color: var(--primary-bg);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.game-title {
    padding: 1.5rem;
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-light);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--primary-bg);
}

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

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--text-muted);
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--secondary-bg);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 1.5rem;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--secondary-bg);
}

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

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

.feature-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-10px);
    box-shadow: var(--shadow-gold);
}

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

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

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

/* Disclaimer Section */
.disclaimer {
    padding: 4rem 0;
    background: var(--primary-bg);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

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

.disclaimer h2 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.disclaimer p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--secondary-bg);
    padding: 2rem 0;
}

.footer-divider {
    height: 2px;
    background: var(--gradient-gold);
    margin-bottom: 2rem;
}

.footer-content {
    text-align: center;
}

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

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

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

/* Contact Page Styles */
.contact-form {
    background: var(--primary-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--accent-gold);
    max-width: 600px;
    margin: 2rem auto;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--secondary-bg);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: var(--text-light);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

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

.submit-btn {
    background: var(--gradient-gold);
    color: var(--primary-bg);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* Game Page Styles */
.game-page {
    padding-top: 100px;
    min-height: 100vh;
    background: var(--primary-bg);
}

.game-header {
    text-align: center;
    padding: 2rem 0;
}

.game-header h1 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.back-btn {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-bg);
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.game-iframe {
    width: 100%;
    height: 80vh;
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-gold);
}

/* Content Pages */
.content-page {
    padding: 120px 0 60px;
    min-height: 100vh;
}

.content-page h1 {
    color: var(--accent-gold);
    margin-bottom: 2rem;
    text-align: center;
}

.content-page h2 {
    color: var(--accent-gold);
    margin: 2rem 0 1rem;
}

.content-page p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.content-page ul {
    margin: 1rem 0;
    padding-left: 2rem;
    color: var(--text-muted);
}

.content-page li {
    margin-bottom: 0.5rem;
}

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

@keyframes pulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

@keyframes glow {
    0% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
    100% { text-shadow: 0 0 30px rgba(255, 215, 0, 0.8); }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--secondary-bg);
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 250px;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .features-list {
        grid-template-columns: 1fr;
    }

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

    .game-iframe {
        height: 60vh;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .games,
    .about,
    .features {
        padding: 4rem 0;
    }

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

    .contact-form {
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero-decoration,
    .btn,
    .play-btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .section-title {
        color: black;
    }
}