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

:root {
    --bg-primary: #0f0a17;
    --accent: #8a45ff;
    --highlight: #e9c8ff;
    --text: #ffffff;
    --button-hover: #5912c0;
    --card-bg: rgba(138, 69, 255, 0.1);
    --card-border: rgba(138, 69, 255, 0.3);
    --shadow-glow: rgba(138, 69, 255, 0.4);
}

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

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

/* Typography */
h1, h2, h3 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--highlight);
    text-shadow: 0 0 20px var(--accent);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 10, 23, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: transform 0.3s ease;
    border-bottom: 1px solid var(--card-border);
}

.navbar.hidden {
    transform: translateY(-100%);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--highlight);
}

.logo-icon svg {
    filter: drop-shadow(0 0 10px var(--accent));
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

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

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

.nav-link:hover {
    color: var(--highlight);
    text-shadow: 0 0 10px var(--accent);
}

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

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

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

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(138, 69, 255, 0.2) 0%, var(--bg-primary) 70%);
    overflow: hidden;
}

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

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--highlight), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--accent);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    color: var(--text);
}

.cta-button {
    background: linear-gradient(45deg, var(--accent), var(--button-hover));
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(138, 69, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(138, 69, 255, 0.5);
    filter: brightness(1.1);
}

/* Particles Animation */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particles::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 
        25px 50px 0 var(--highlight),
        -35px 75px 0 var(--accent),
        65px 25px 0 var(--highlight),
        -85px 35px 0 var(--accent),
        45px 85px 0 var(--highlight);
}

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

/* Games Section */
.games-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(138, 69, 255, 0.05) 50%, var(--bg-primary) 100%);
}

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

.game-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

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

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

.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: 1.5rem;
    text-align: center;
}

.game-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--highlight);
}

.play-button {
    background: linear-gradient(45deg, var(--accent), var(--button-hover));
    border: none;
    padding: 10px 25px;
    color: var(--text);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(138, 69, 255, 0.4);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.about-image {
    position: relative;
    height: 400px;
    background: radial-gradient(circle, rgba(138, 69, 255, 0.2) 0%, transparent 70%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.throne-room {
    position: relative;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--accent), var(--button-hover));
    border-radius: 50%;
    box-shadow: 0 0 50px var(--shadow-glow);
}

.floating-orb {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--highlight);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--highlight);
    animation: orbit 4s linear infinite;
}

.orb-1 { animation-delay: 0s; }
.orb-2 { animation-delay: 1.33s; }
.orb-3 { animation-delay: 2.66s; }

@keyframes orbit {
    from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(138, 69, 255, 0.05) 50%, var(--bg-primary) 100%);
}

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

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

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-glow);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--accent));
}

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

.feature-card p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Disclaimer Section */
.disclaimer-section {
    padding: 60px 0;
    background: rgba(138, 69, 255, 0.05);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

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

.disclaimer-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.8;
}

/* Footer */
.footer {
    padding: 40px 0 20px;
    background: var(--bg-primary);
    border-top: 1px solid var(--card-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--highlight);
}

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
    opacity: 0.7;
}

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

.game-header {
    text-align: center;
    padding: 2rem 0;
    background: rgba(138, 69, 255, 0.1);
    border-bottom: 1px solid var(--card-border);
}

.game-header h1 {
    font-size: 2.5rem;
    color: var(--highlight);
    margin-bottom: 1rem;
}

.back-button {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.game-container {
    padding: 0;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

.game-iframe {
    width: 100vw;
    height: calc(100vh - 200px);
    border: none;
    background: var(--card-bg);
}

/* Contact Page Styles */
.contact-page {
    padding-top: 80px;
    min-height: 100vh;
}

.contact-header {
    text-align: center;
    padding: 3rem 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(138, 69, 255, 0.3);
}

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

.submit-button {
    width: 100%;
    background: linear-gradient(45deg, var(--accent), var(--button-hover));
    border: none;
    padding: 15px;
    color: var(--text);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(138, 69, 255, 0.4);
}

/* Static Pages */
.static-page {
    padding-top: 80px;
    min-height: 100vh;
}

.static-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.static-content h1 {
    color: var(--highlight);
    margin-bottom: 2rem;
    text-align: center;
}

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

.static-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    opacity: 0.9;
}

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

.static-content li {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 10, 23, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 1px solid var(--card-border);
    }

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

    .hamburger {
        display: flex;
    }

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

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        gap: 1rem;
    }

    .game-iframe {
        height: calc(100vh - 250px);
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

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

    .nav-container {
        padding: 1rem;
    }

    .game-iframe {
        height: calc(100vh - 300px);
    }
}

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