:root {
    --primary-purple: #4C1D95;
    --secondary-purple: #7C3AED;
    --tertiary-purple: #A855F7;
    --gold: #F59E0B;
    --light-gold: #FCD34D;
    --teal: #0D9488;
    --light-teal: #14B8A6;
    --silver: #E5E7EB;
    --dark-bg: #1F2937;
    --darker-bg: #111827;
    --text-light: #F9FAFB;
    --text-gray: #9CA3AF;
    --gradient-primary: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    --gradient-gold: linear-gradient(135deg, var(--gold), var(--light-gold));
    --gradient-mystical: linear-gradient(135deg, var(--primary-purple), var(--teal), var(--gold));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.3);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold, #ffd700);
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3), 0 1px 0 #fff;
    margin-left: 0.5rem;
    vertical-align: middle;
    transition: color 0.3s;
    text-decoration: none;
}

.logo-text:hover {
    color: #fffbe6;
    text-shadow: 0 4px 16px rgba(255, 215, 0, 0.6), 0 1px 0 #fff;
    text-decoration: none;
}


.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gold);
}

.logo-symbol {
    font-size: 2rem;
    animation: sparkle 2s ease-in-out infinite;
}

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

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

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

.nav-link:hover {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gold);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: 
        linear-gradient(135deg, rgba(76,29,149,0.4) 20%, rgba(4, 52, 48, 0.8) 60%, rgba(245,158,11,0.9) 100%),
        url('/assets/banner.jpg');
    background-size: cover;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: var(--gradient-mystical); */
    opacity: 0.8;
}

.hero-background::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><radialGradient id="star"><stop offset="0%" stop-color="rgba(245,158,11,0.8)"/><stop offset="100%" stop-color="transparent"/></radialGradient></defs><circle cx="20" cy="20" r="1" fill="url(%23star)"><animate attributeName="opacity" values="0;1;0" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="30" r="1" fill="url(%23star)"><animate attributeName="opacity" values="0;1;0" dur="2s" repeatCount="indefinite" begin="1s"/></circle><circle cx="30" cy="70" r="1" fill="url(%23star)"><animate attributeName="opacity" values="0;1;0" dur="4s" repeatCount="indefinite" begin="2s"/></circle><circle cx="70" cy="80" r="1" fill="url(%23star)"><animate attributeName="opacity" values="0;1;0" dur="2.5s" repeatCount="indefinite" begin="0.5s"/></circle></svg>') repeat; */
    animation: float 20s linear infinite;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-gold);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.8;
}

.hero-button {
    position: relative;
    background: var(--gradient-gold);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--darker-bg);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

.button-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-button:hover .button-glow {
    opacity: 1;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* Section Styles */
.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-gold);
    background-clip: text;
    -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: var(--gradient-gold);
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Saga Section */
.saga {
    padding: 6rem 0;
    background: var(--dark-bg);
}

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

.saga-story p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.saga-image {
    display: flex;
    justify-content: center;
    align-items: center;
}
.saga-image img {
    width: 460px;
    height: 460px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--gold);
    box-shadow: 0 8px 32px 0 rgba(76,29,149,0.25), 0 2px 16px 0 rgba(245,158,11,0.18);
    transition: transform 0.5s cubic-bezier(.4,2,.6,1), box-shadow 0.5s;
    background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(76,29,149,0.08));
    position: relative;
    z-index: 2;
}

.saga-image img:hover {
    transform: scale(1.06) rotate(-2deg);
    box-shadow: 0 16px 48px 0 rgba(124,58,237,0.35), 0 4px 32px 0 rgba(245,158,11,0.25);
}

.mystical-creature {
    position: relative;
    font-size: 8rem;
    animation: hover 3s ease-in-out infinite;
}

.creature-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: glow 2s ease-in-out infinite alternate;
}

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

@keyframes glow {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

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

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

.feature-card {
    background: linear-gradient(135deg, rgba(76, 29, 149, 0.2), rgba(13, 148, 136, 0.2));
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(245, 158, 11, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotate 4s linear infinite;
}

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

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

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

.feature-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

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

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

/* Realms/Games Section */
.realms {
    padding: 6rem 0;
    background: var(--dark-bg);
}

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

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

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.2);
}

.game-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 350/260;
}

.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;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.enter-realm-btn {
    background: var(--gradient-gold);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--darker-bg);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.enter-realm-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
}

.btn-sparkle {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.enter-realm-btn:hover .btn-sparkle {
    left: 100%;
}

.game-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    padding: 1.5rem;
    text-align: center;
    color: var(--gold);
    background: linear-gradient(135deg, rgba(76, 29, 149, 0.1), rgba(13, 148, 136, 0.1));
}

/* Disclaimer Section */
.disclaimer {
    padding: 4rem 0;
    background: var(--darker-bg);
}

.disclaimer-scroll {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(124, 58, 237, 0.1));
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--gold);
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer-scroll::before {
    content: '📜';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    background: var(--darker-bg);
    padding: 0 1rem;
}

.disclaimer-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.disclaimer-text {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--primary-purple);
    padding: 2rem 0;
    margin-top: 4rem;
}

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

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

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

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: var(--gold);
    text-shadow: 0 0 5px rgba(245, 158, 11, 0.5);
}

.footer-links a {
    color: var(--gold, #eab308);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
    padding-bottom: 2px;
    overflow: hidden;
}

.footer-links a::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #a78bfa, #06b6d4, #eab308);
    transform: scaleX(0);
    transition: transform 0.35s cubic-bezier(.77,0,.18,1);
    border-radius: 2px;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #fffbe6;
    animation: footerLinkGlow 0.7s alternate;
}

.footer-links a:hover::after,
.footer-links a:focus::after {
    transform: scaleX(1);
}

@keyframes footerLinkGlow {
    from {
        text-shadow: 0 0 0px #eab308, 0 0 0px #06b6d4;
    }
    to {
        text-shadow: 0 0 8px #eab308, 0 0 12px #06b6d4;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
    }
    
    .saga-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .mystical-creature {
        font-size: 5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        text-align: center;
        flex-direction: column;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .disclaimer-scroll {
        padding: 1.5rem;
    }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}