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

:root {
    --charcoal: #1a1a1a;
    --charcoal-light: #2a2a2a;
    --blood-red: #8b0000;
    --blood-red-light: #a01010;
    --dark-purple: #301934;
    --dark-purple-light: #4a2650;
    --decay-green: #2d4a2d;
    --tarnished-silver: #a8a8a8;
    --bone-white: #f5f5dc;
    --shadow: rgba(0, 0, 0, 0.8);
    --glow: rgba(139, 0, 0, 0.3);
}

body {
    font-family: 'Crimson Text', serif;
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--dark-purple) 50%, var(--charcoal) 100%);
    color: var(--bone-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo h1 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--blood-red);
    text-shadow: 0 0 10px var(--glow);
    letter-spacing: 3px;
}

.logo .tagline {
    font-size: 0.8rem;
    color: var(--tarnished-silver);
    font-style: italic;
    display: block;
    margin-top: -5px;
}

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

.nav-link {
    color: var(--bone-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--glow), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: var(--blood-red);
    border-color: var(--blood-red);
    box-shadow: 0 0 15px var(--glow);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)),
                url('https://images.pexels.com/photos/1257860/pexels-photo-1257860.jpeg?auto=compress&cs=tinysrgb&w=1200') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 2s ease-out;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--shadow);
    color: var(--bone-white);
    letter-spacing: 2px;
    animation: glow 3s infinite alternate;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--tarnished-silver);
    text-shadow: 0 0 10px var(--shadow);
    animation: fadeIn 3s ease-out 1s both;
}

.mist-effect {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.1), transparent);
    animation: mistFloat 8s infinite linear;
}

/* Section Titles */
.section-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--blood-red);
    text-shadow: 0 0 15px var(--glow);
    position: relative;
}

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

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--charcoal-light);
}

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

.feature-card {
    background: linear-gradient(135deg, var(--dark-purple), var(--charcoal));
    border: 2px solid var(--decay-green);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--blood-red), var(--dark-purple), var(--decay-green), var(--blood-red));
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow);
}

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

.feature-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--bone-white);
}

.feature-card p {
    color: var(--tarnished-silver);
    font-size: 1.1rem;
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(45deg, var(--charcoal), var(--dark-purple-light));
}

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

.about-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--tarnished-silver);
    text-align: justify;
    line-height: 1.8;
}

.about-image {
    position: relative;
    height: 400px;
    background: url('/assets/regfvdfttt.jpg') center/cover;
    border-radius: 15px;
    overflow: hidden;
}

.mystical-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 5px solid var(--blood-red);
    border-radius: 15px;
    box-shadow: inset 0 0 50px var(--shadow);
}

/* Games Section */
.games {
    padding: 100px 0;
    background: var(--charcoal);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.game-card {
    background: linear-gradient(135deg, var(--charcoal-light), var(--dark-purple));
    border: 3px solid var(--decay-green);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.game-card:hover::before {
    opacity: 0.3;
}

.game-card:hover {
    transform: translateY(-15px) rotateY(5deg);
    box-shadow: 0 25px 50px var(--shadow);
    border-color: var(--blood-red);
}

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

.game-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.game-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--bone-white);
}

.game-content p {
    color: var(--tarnished-silver);
    margin-bottom: 1.5rem;
}

.game-btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--blood-red), var(--blood-red-light));
    color: var(--bone-white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-btn:hover {
    background: linear-gradient(45deg, var(--blood-red-light), var(--blood-red));
    border-color: var(--bone-white);
    box-shadow: 0 10px 30px var(--glow);
    transform: translateY(-3px);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark-purple), var(--charcoal));
}

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

.contact-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: var(--tarnished-silver);
    font-style: italic;
}

.contact-info {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: var(--charcoal-light);
    border: 2px solid var(--decay-green);
    border-radius: 15px;
    transition: all 0.3s ease;
    flex: 1;
}

.contact-item:hover {
    border-color: var(--blood-red);
    box-shadow: 0 10px 25px var(--shadow);
    transform: translateY(-5px);
}

.contact-label {
    font-weight: 600;
    color: var(--blood-red);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Disclaimer */
.disclaimer {
    padding: 50px 0;
    background: var(--charcoal-light);
    border-top: 3px solid var(--blood-red);
    border-bottom: 3px solid var(--blood-red);
}

.disclaimer h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--blood-red);
    text-align: center;
}

.disclaimer p {
    text-align: center;
    font-size: 1rem;
    color: var(--tarnished-silver);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--charcoal);
    padding: 40px 0;
    border-top: 2px solid var(--blood-red);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.footer-content p {
    color: var(--tarnished-silver);
    font-style: italic;
}

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

.footer-links a {
    color: var(--bone-white);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.footer-links a:hover {
    color: var(--blood-red);
    background: var(--charcoal-light);
    box-shadow: 0 5px 15px var(--shadow);
}

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

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

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

.game-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--blood-red);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px var(--glow);
}

.back-link {
    display: inline-block;
    background: linear-gradient(45deg, var(--decay-green), var(--dark-purple));
    color: var(--bone-white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.back-link:hover {
    background: linear-gradient(45deg, var(--dark-purple), var(--decay-green));
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow);
}

.game-frame {
    width: 100%;
    height: 500px;
    border: 5px solid var(--blood-red);
    border-radius: 15px;
    box-shadow: 0 20px 40px var(--shadow);
    background: var(--charcoal-light);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px var(--shadow);
    }
    to {
        text-shadow: 0 0 30px var(--glow), 0 0 40px var(--glow);
    }
}

@keyframes mistFloat {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .game-card {
        margin-bottom: 2rem;
    }
}