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

body {
    font-family: 'Spectral', serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1e1b4b 25%, #312e81 50%, #4c1d95 75%, #581c87 100%);
    color: #e5e7eb;
    overflow-x: hidden;
    position: relative;
}

/* Particle Canvas */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

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

/* Header */
.mystical-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
    z-index: 1000;
    padding: 1rem 0;
}

.mystical-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
    margin-bottom: 0.2rem;
}

.tagline {
    font-size: 0.8rem;
    color: #a78bfa;
    text-align: center;
    display: block;
}

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

.nav-link {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.nav-link:hover {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Banner Section */
.banner-section {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), 
                url('/assets/spnhancer.webp') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mystical-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(147, 51, 234, 0.2) 0%, transparent 70%);
    animation: pulseOverlay 4s ease-in-out infinite alternate;
}

@keyframes pulseOverlay {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

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

.enchanted-title {
    margin-bottom: 2rem;
}

.mystical-text {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(45deg, #fbbf24, #a78bfa, #ec4899, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
    animation: titleGlow 3s ease-in-out infinite alternate;
    margin-bottom: 1rem;
}

.sub-mystical {
    display: block;
    font-size: 1.5rem;
    color: #a78bfa;
    font-weight: 300;
    opacity: 0.9;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 30px rgba(251, 191, 36, 0.5); }
    100% { text-shadow: 0 0 50px rgba(251, 191, 36, 0.8), 0 0 70px rgba(167, 139, 250, 0.4); }
}

.ethereal-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #d1d5db;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.mystical-cta {
    background: linear-gradient(45deg, #7c3aed, #9333ea, #a855f7);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: 'Spectral', serif;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

.mystical-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.6);
}

.mystical-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.mystical-cta:hover::before {
    left: 100%;
}

.magical-sparkle {
    margin-left: 0.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: rotate(0deg) scale(1); }
    50% { opacity: 0.7; transform: rotate(180deg) scale(1.2); }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.mystical-orb {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(251, 191, 36, 0.8), rgba(147, 51, 234, 0.4));
    filter: blur(1px);
    animation: float 6s ease-in-out infinite;
}

.orb-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

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

.orb-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: -4s;
}

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

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.9), rgba(30, 27, 75, 0.8));
    position: relative;
    z-index: 10;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(45deg, #fbbf24, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    transform: translateX(-50%);
}

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

.feature-card {
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.mystical-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
}

.feature-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fbbf24;
}

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

/* About Section */
.about-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.9), rgba(49, 46, 129, 0.8));
    position: relative;
    z-index: 10;
}

.ancient-scroll {
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.95), rgba(30, 27, 75, 0.9));
    border: 2px solid rgba(251, 191, 36, 0.4);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.ancient-scroll::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="scroll" patternUnits="userSpaceOnUse" width="100" height="100"><path d="M0,50 Q25,40 50,50 T100,50" stroke="rgba(251,191,36,0.1)" stroke-width="0.5" fill="none"/></pattern></defs><rect width="100" height="100" fill="url(%23scroll)"/></svg>');
    opacity: 0.3;
}

.scroll-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #fbbf24;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.scroll-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.scroll-image {
    position: relative;
}

.arcane-chamber {
    width: 100%;
    border-radius: 15px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    filter: sepia(20%) hue-rotate(240deg) saturate(1.2);
    transition: all 0.3s ease;
}

.arcane-chamber:hover {
    border-color: rgba(251, 191, 36, 0.6);
    filter: sepia(30%) hue-rotate(240deg) saturate(1.4);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

.ancient-wisdom {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d1d5db;
    margin-bottom: 2rem;
    text-align: justify;
}

.mystical-signature {
    text-align: center;
    font-family: 'Cinzel', serif;
    color: #a78bfa;
    font-style: italic;
    margin-top: 2rem;
    font-size: 1.1rem;
}

/* Games Section */
.games-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(49, 46, 129, 0.9), rgba(76, 29, 149, 0.8));
    position: relative;
    z-index: 10;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #a78bfa;
    margin-bottom: 4rem;
    opacity: 0.9;
}

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

.game-orb {
    background: rgba(15, 15, 35, 0.9);
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 25px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
}

.game-orb:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(251, 191, 36, 0.8);
    box-shadow: 0 25px 50px rgba(124, 58, 237, 0.3);
}

.orb-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: rotate 20s linear infinite;
}

.game-orb:hover .orb-glow {
    opacity: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.game-orb:hover .game-image {
    filter: brightness(1.1) saturate(1.2);
}

.game-orb h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #fbbf24;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.game-orb p {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.cast-spell-btn {
    background: linear-gradient(45deg, #7c3aed, #9333ea, #a855f7);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: 'Spectral', serif;
    z-index: 2;
    animation: pulseGlow 3s ease-in-out infinite;
}

.cast-spell-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.4);
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.3); }
    50% { box-shadow: 0 0 40px rgba(124, 58, 237, 0.6); }
}

.spell-sparkle {
    margin-left: 0.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(76, 29, 149, 0.9), rgba(88, 28, 135, 0.8));
    position: relative;
    z-index: 10;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.contact-info {
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(15px);
}

.contact-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #fbbf24;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.mystical-contact p {
    margin-bottom: 1rem;
    color: #a78bfa;
}

.mystical-form {
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(15px);
}

.enchanted-input,
.enchanted-textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(30, 27, 75, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    color: #e5e7eb;
    font-family: 'Spectral', serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.enchanted-input:focus,
.enchanted-textarea:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
    background: rgba(30, 27, 75, 0.7);
}

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

.mystical-submit {
    background: linear-gradient(45deg, #7c3aed, #9333ea, #a855f7);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Spectral', serif;
    width: 100%;
}

.mystical-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.4);
}

/* Disclaimer Section */
.disclaimer-section {
    padding: 4rem 0;
    background: rgba(15, 15, 35, 0.95);
    position: relative;
    z-index: 10;
}

.ancient-decree {
    background: rgba(30, 27, 75, 0.8);
    border: 2px solid rgba(251, 191, 36, 0.4);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.ancient-decree h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #fbbf24;
    margin-bottom: 1.5rem;
}

.ancient-decree p {
    color: #d1d5db;
    line-height: 1.6;
    font-size: 1rem;
}

/* Footer */
.mystical-footer {
    background: linear-gradient(135deg, rgba(15, 15, 35, 1), rgba(30, 27, 75, 0.95));
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(251, 191, 36, 0.3);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    background: linear-gradient(45deg, #fbbf24, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #a78bfa;
    opacity: 0.8;
}

.enchanted-links h4 {
    font-family: 'Cinzel', serif;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.footer-link {
    display: block;
    color: #d1d5db;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-link:hover {
    color: #fbbf24;
    opacity: 1;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(251, 191, 36, 0.2);
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mystical-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .enchanted-nav {
        gap: 1rem;
    }
    
    .mystical-text {
        font-size: 2.5rem;
    }
    
    .sub-mystical {
        font-size: 1.2rem;
    }
    
    .scroll-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mystical-text {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Game Page Styles */
.game-page {
    padding-top: 100px;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f23 0%, #1e1b4b 25%, #312e81 50%, #4c1d95 75%, #581c87 100%);
}

.game-header {
    text-align: center;
    padding: 2rem 0;
    background: rgba(15, 15, 35, 0.9);
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
}

.game-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    background: linear-gradient(45deg, #fbbf24, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.game-subtitle {
    color: #a78bfa;
    font-size: 1.1rem;
    opacity: 0.9;
}

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

.game-frame {
    background: rgba(15, 15, 35, 0.9);
    border: 2px solid rgba(251, 191, 36, 0.4);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
    backdrop-filter: blur(15px);
}

.game-iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 15px;
}

.back-button {
    background: linear-gradient(45deg, #7c3aed, #9333ea, #a855f7);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    margin: 2rem auto;
    display: block;
    transition: all 0.3s ease;
    font-family: 'Spectral', serif;
    text-decoration: none;
}

.back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.4);
}

/* Policy Page Styles */
.policy-page {
    padding-top: 100px;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f23 0%, #1e1b4b 25%, #312e81 50%, #4c1d95 75%, #581c87 100%);
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: rgba(15, 15, 35, 0.9);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(15px);
}

.policy-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    background: linear-gradient(45deg, #fbbf24, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 2rem;
}

.policy-section {
    margin-bottom: 2rem;
}

.policy-section h3 {
    font-family: 'Cinzel', serif;
    color: #fbbf24;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.policy-section p {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.policy-section ul {
    color: #d1d5db;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.policy-section li {
    margin-bottom: 0.5rem;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(251, 191, 36, 0.3);
    border-radius: 50%;
    border-top-color: #fbbf24;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}