* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --pseudo-bg-position: 50% 50%;
}


body {
    font-family: 'MedievalSharp';
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background: none;
}

/* Add this after the body style */
/* Modify the body::before style */
body::before {
        background-position: var(--pseudo-bg-position);
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        linear-gradient(
            100deg, 
            rgba(21, 15, 44, 0.9) 0%, 
            rgba(37, 5, 73, 0.9) 50%, 
            rgba(123, 119, 167, 0.9) 100%
        ),
        url('images/background.png');
    background-size: 120% 120%;  /* Slightly larger to allow movement */
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    transform: scale(1.1);
    transition: background-position 0.3s ease-out;
}

/* Magical floating particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #64ffda;
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
    opacity: 0.7;
}

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

/* Header */
header {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    overflow: hidden;
}

.hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.8;
}

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

.game-logo {
    max-width: 400px;
    width: 100%;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 20px rgba(100, 255, 218, 0.5));
    animation: pulse 2s infinite ease-in-out;
}

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

.hero-title {
    font-size: 5rem;
    font-weight: bold;
    font-style: underline   ;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #6964ff, #c5c5c5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* text-shadow: 0 0 30px rgba(100, 255, 218, 0.5); */
    
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #b0b0b0;
    
}

.cta-button {
    font-family: 'Arial', sans-serif;
    display: inline-block;
    background-color: rgb(190, 171, 0);
    padding: 15px 40px;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    /* box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3); */
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

.cta-button::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.5s;
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(23, 12, 39, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(26, 11, 46, 0.95);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #edce1e;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #64ffda;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #64ffda;
    transition: width 0.3s ease;
}

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

/* Sections */
.section {
    padding: 80px 0;
    position: relative;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    font-style: bold    ;
    background: linear-gradient(45deg, #90a900, #b9d600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Game Description */
.game-description {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.game-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d0d0d0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 255, 218, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #64ffda;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #64ffda;
}

.feature-card p {
    color: #b0b0b0;
}

/* Media Gallery */
.media-gallery {
    background: rgba(0,0,0,0.3);
}

.gameplay-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.gameplay-video {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

.gameplay-video video,
.gameplay-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sprite-showcase {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.sprite-container {
    text-align: center;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.sprite-container:hover {
    transform: scale(1.1);
}

.sprite-container img {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.5));
}

.sprite-container h4 {
    color: #64ffda;
    font-size: 1.1rem;
}

/* Newsletter Signup */
.newsletter {
    background: linear-gradient(135deg, rgba(29, 12, 12, 0.5), rgba(10, 29, 28, 0.5));
    text-align: center;
}

.signup-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.email-input {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
    outline: none;
    backdrop-filter: blur(10px);
}

.email-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.signup-button {
    padding: 15px 30px;
    background: linear-gradient(45deg, #cac700, #d6a400);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.signup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

/* Footer */
footer {
    background: rgba(0,0,0,0.5);
    text-align: center;
    padding: 40px 0;
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .gameplay-showcase {
        grid-template-columns: 1fr;
    }
    
    .signup-form {
        flex-direction: column;
        align-items: center;
    }
    
    .email-input {
        min-width: 100%;
    }
}
.banner-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

/* Remove or comment out the .hero-banner styles since we're not using it anymore */
/* .hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.8;
} */

/* FAQ Section */
.faq-section {
    background: rgba(0,0,0,0.3);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'MedievalSharp';
}

.faq-question:hover {
    color: #64ffda;
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 1.5rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer p {
    color: #b0b0b0;
    line-height: 1.6;
}

 /* singup form */
#formMessage {
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
    background: rgba(0,0,0,0.2);
}



/* popup */
/* Popup styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background: linear-gradient(135deg, #161029, #1a0f2e);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    animation: popupFade 0.3s ease-out;
}

@keyframes popupFade {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.popup-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #64ffda;
}

.popup-content p {
    margin-bottom: 25px;
    color: #e0e0e0;
}

.popup-button {
    display: block;
    background: linear-gradient(45deg, #cac700, #d6a400);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.popup-button:hover {
    transform: translateY(-2px);
}

.popup-close {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: #e0e0e0;
}

.link{
    color: #64ffda;
    text-decoration: none;
    transition: color 0.3s ease;
}