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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    background-color: #18120c;
    color: #e8e1d3;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.dust-particles::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s infinite linear;
}

.floating-runes::after {
    content: '⚡ ☥ ⚔️ 🔥';
    position: absolute;
    top: 20%;
    left: 10%;
    font-size: 2rem;
    color: rgba(212, 175, 55, 0.3);
    animation: runeFloat 15s infinite ease-in-out;
}

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

@keyframes runeFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 0.7; }
}

/* Header */
.header {
    background: rgba(24, 18, 12, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px #d4af37);
}

.logo-text {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #d4af37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

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

.nav-link {
    color: #e8e1d3;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #d4af37;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #5e1d1d);
    transition: width 0.3s ease;
}

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

.cta-button {
    background: linear-gradient(135deg, #d4af37, #5e1d1d);
    color: #18120c;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #18120c, #2a1f17);
    overflow: hidden;
}

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

.hero-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: #d4af37;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #e8e1d3;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.btn-primary {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #18120c;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
}

.btn-secondary:hover {
    background: #d4af37;
    color: #18120c;
    transform: translateY(-3px);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.swirling-dust {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent);
    border-radius: 50%;
    animation: swirl 10s infinite linear;
}

.golden-scarabs::before {
    content: '🪲';
    position: absolute;
    top: 30%;
    left: 15%;
    font-size: 2rem;
    animation: scarabFloat 8s infinite ease-in-out;
}

.glowing-glyphs::after {
    content: '☥ ⚔️ 🔥';
    position: absolute;
    bottom: 20%;
    right: 20%;
    font-size: 1.8rem;
    color: rgba(212, 175, 55, 0.6);
    animation: glyphGlow 6s infinite alternate;
}

@keyframes swirl {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes scarabFloat {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-20px) translateX(20px); }
}

@keyframes glyphGlow {
    0% { opacity: 0.3; text-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
    100% { opacity: 0.8; text-shadow: 0 0 20px rgba(212, 175, 55, 0.8); }
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #d4af37;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #b8a082;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Games Section */
.games-section {
    background: linear-gradient(180deg, #18120c, #1a1310);
}

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

.game-card {
    background: linear-gradient(145deg, #2a1f17, #1a1310);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(212, 175, 55, 0.2);
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
    border-color: #d4af37;
}

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

.game-image img {
    width: 100%;
    height: 250px;
    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;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.play-btn {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #18120c;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.game-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.5rem;
    color: #d4af37;
    margin: 1rem;
    text-align: center;
}

.game-description {
    color: #b8a082;
    padding: 0 1rem 1.5rem;
    text-align: center;
    font-style: italic;
}

/* Lore Section */
.lore-section {
    background: linear-gradient(180deg, #1a1310, #18120c);
    position: relative;
}

.lore-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.lore-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #d4af37, #5e1d1d);
}

.lore-item {
    display: flex;
    align-items: center;
    margin: 3rem 0;
    position: relative;
}

.lore-item:nth-child(even) {
    flex-direction: row-reverse;
}

.lore-orb {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #d4af37, #5e1d1d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    animation: orbPulse 3s infinite ease-in-out;
}

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

.lore-content {
    flex: 1;
    background: linear-gradient(145deg, #2a1f17, #1a1310);
    padding: 2rem;
    border-radius: 15px;
    margin: 0 2rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.lore-content h3 {
    font-family: 'Cinzel Decorative', serif;
    color: #d4af37;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Legends Section */
.legends-section {
    background: linear-gradient(180deg, #18120c, #1a1310);
    text-align: center;
}

.legends-content {
    max-width: 800px;
    margin: 0 auto;
}

.legends-text {
    font-size: 1.2rem;
    color: #e8e1d3;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(180deg, #1a1310, #18120c);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(145deg, #2a1f17, #1a1310);
    padding: 3rem;
    border-radius: 15px;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

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

.form-group label {
    display: block;
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Cinzel Decorative', serif;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(232, 225, 211, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: #e8e1d3;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.contact-success {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #18120c;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    font-weight: 600;
    margin-top: 2rem;
    animation: successFade 0.5s ease-in;
}

@keyframes successFade {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Disclaimer */
.disclaimer {
    background: rgba(94, 29, 29, 0.2);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.disclaimer-text {
    color: #b8a082;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: #0f0a06;
    padding: 3rem 0;
    border-top: 2px solid rgba(212, 175, 55, 0.3);
}

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

.footer-text {
    font-size: 1.1rem;
    color: #e8e1d3;
    margin-bottom: 0.5rem;
}

.footer-powered {
    color: #b8a082;
    margin-bottom: 2rem;
    font-style: italic;
}

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

.footer-link {
    color: #d4af37;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #f4d03f;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #d4af37;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .lore-timeline::before {
        left: 30px;
    }
    
    .lore-item {
        flex-direction: row !important;
        padding-left: 80px;
    }
    
    .lore-orb {
        position: absolute;
        left: 0;
    }
    
    .lore-content {
        margin-left: 0;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Game Page Styles */
.game-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #18120c, #2a1f17);
    padding: 2rem 0;
}

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

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

.game-page-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.game-quote {
    font-size: 1.2rem;
    color: #b8a082;
    font-style: italic;
    margin-bottom: 2rem;
}

.game-frame-container {
    background: linear-gradient(145deg, #2a1f17, #1a1310);
    border-radius: 15px;
    padding: 1rem;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #d4af37, #5e1d1d);
    color: #18120c;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

@media (max-width: 768px) {
    .game-frame {
        height: 400px;
    }
    
    .game-page-title {
        font-size: 2.5rem;
    }
    
    .game-container {
        padding: 0 1rem;
    }
}

/* Legal Pages */
.legal-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #18120c, #2a1f17);
    padding: 4rem 0;
}

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

.legal-content {
    background: linear-gradient(145deg, #2a1f17, #1a1310);
    padding: 3rem;
    border-radius: 15px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    line-height: 1.8;
}

.legal-content h1 {
    font-family: 'Cinzel Decorative', serif;
    color: #d4af37;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-align: center;
}

.legal-content h2 {
    font-family: 'Cinzel Decorative', serif;
    color: #d4af37;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: #e8e1d3;
}

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

.legal-content li {
    color: #e8e1d3;
    margin-bottom: 0.5rem;
}