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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #FE9;
    background: linear-gradient(
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0.5)
    ), url('/images/background.png') no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    background-color: #000;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 1;
    pointer-events: none;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.home-overlay {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('/images/home.png') no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 92%,
        rgba(0, 0, 0, 0.2) 96%,
        rgba(0, 0, 0, 0) 98%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 92%,
        rgba(0, 0, 0, 0.2) 96%,
        rgba(0, 0, 0, 0) 98%
    );
}

.home-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Add media query for mobile devices */
@media screen and (max-width: 768px) {
    body, .home-overlay {
        background-attachment: fixed;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        will-change: transform;
    }

    .home-overlay {
        background-position: center center;
        mask-image: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 1) 92%,
            rgba(0, 0, 0, 0.2) 96%,
            rgba(0, 0, 0, 0) 98%
        );
        -webkit-mask-image: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 1) 92%,
            rgba(0, 0, 0, 0.2) 96%,
            rgba(0, 0, 0, 0) 98%
        );
        padding-top: 0;
        align-items: center;
        justify-content: center;
        height: 60vh;
    }

    .home-title {
        max-width: 300px;
        padding: 15px 30px;
        margin: 0 auto;
    }
}

.home-overlay::after {
    display: none;
}

.home-title {
    position: relative;
    z-index: 3;
    max-width: 500px;
    height: auto;
    padding: 20px 40px;
    animation: glow 2s ease-in-out infinite alternate;
}

@media screen and (max-width: 768px) {
    .home-title {
        max-width: 300px;
        padding: 15px 30px;
    }
}

@keyframes glow {
    from {
        text-shadow: 
            3px 3px 6px rgba(0, 0, 0, 0.9),
            0 0 30px rgba(255, 255, 255, 0.7),
            0 0 60px rgba(255, 255, 255, 0.6),
            0 0 90px rgba(255, 255, 255, 0.5);
    }
    to {
        text-shadow: 
            3px 3px 6px rgba(0, 0, 0, 0.9),
            0 0 40px rgba(255, 255, 255, 0.8),
            0 0 80px rgba(255, 255, 255, 0.7),
            0 0 100px rgba(255, 255, 255, 0.6);
    }
}

.content-wrapper {
    position: relative;
    z-index: 2;
    background: none !important;
}

.overlay {
    background-color: transparent;
    min-height: auto;
    padding: 0.5rem;
    position: relative;
    backdrop-filter: none;
}

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

.section {
    background: none;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    backdrop-filter: none;
    box-shadow: none;
    text-align: center;
}

h2 {
    color: #FE9;
    margin-bottom: 1rem;
    font-size: 2rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #FE9;
    white-space: normal;
    word-wrap: break-word;
    hyphens: auto;
}

.highlight {
    color: #FE9;
    font-weight: bold;
}

/* Adding the image gallery styles we discussed earlier */
.image-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin: 4rem auto;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

.image-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 500px;
    height: 500px;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    transition: transform 0.5s ease-out;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    transition: all 0.5s ease-out;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0) 100%
    );
}

.image-overlay h3, .image-overlay p {
    color: #FE9;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    transform: translateY(0);
    opacity: 1;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-card:hover .image-overlay {
    height: 100%;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35) !important;
}

.image-card:hover .image-overlay h3,
.image-card:hover .image-overlay p {
    transform: translateY(0);
}

.image-overlay::before {
    display: none;
}

.image-overlay h3 {
    color: #FE9;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%;
}

.image-overlay p {
    color: #FE9;
    font-size: 1.3rem;
    line-height: 1.5;
    text-align: center;
    width: 100%;
    padding: 0 10px;
}

.contact-button-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.contact-button {
    max-width: 289px;
    display: inline-block;
    background: #651515;
    height: 66px;
    width: 100%;
    color: #FE9;
    font-size: 17px;
    text-transform: uppercase;
    font-weight: bold;
    transition: ease-in all 0.5s;
    border: none;
    cursor: pointer;
    text-decoration: none;
    line-height: 66px;
    text-align: center;
}
.contact-button:hover {
    background-color: #8b1e1e;
}

.footer-text {
    text-align: center;
    padding: 2rem 0;
    margin: 2rem auto 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none !important;
}

.footer-text p {
    margin-bottom: 0.4rem;
    font-size: 1rem;
    color: #FE9;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 0;
    white-space: nowrap;
    background: none !important;
}

@media screen and (max-width: 768px) {
    .footer-text {
        padding: 1.5rem 0;
        margin-top: 1rem;
    }
    
    .footer-text p {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
}

/* Media queries for different screen sizes */
@media screen and (max-width: 768px) {
    .image-gallery {
        flex-direction: column;
        gap: 2.5rem;
        align-items: center;
        padding: 0;
        width: 100%;
    }

    .image-card {
        width: 95%;
        margin: 0 auto;
    }

    .container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0.3rem;
        background: none !important;
    }

    .section {
        background: none !important;
        padding: 0.5rem 0.3rem;
        margin-bottom: 0.5rem;
        text-align: left;
    }

    h2 {
        font-size: 1.6rem;
        text-align: center;
        margin-bottom: 0.8rem;
        padding: 0;
    }

    p, .feature-item p {
        font-size: 0.95rem;
        text-align: left;
        line-height: 1.4;
        padding: 0;
    }

    .feature-item {
        padding: 1rem 0;
        text-align: left;
    }

    .feature-item h3 {
        font-size: 1.3rem;
        text-align: center;
        padding: 0;
        margin-bottom: 1rem;
    }

    .final-cta {
        padding: 0.5rem;
        margin: 1rem auto;
    }

    .cta-title {
        text-align: center;
        padding: 0;
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .final-cta .highlight {
        text-align: center;
        padding: 0;
        font-size: 1.1rem;
        line-height: 1.6;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .image-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media screen and (min-width: 1025px) {
    .image-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.game-features {
    margin: 4rem 0;
}

.features-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.feature-item {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item h3 {
    color: #FE9;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.feature-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    .feature-item {
        padding: 1rem 0;
    }
    
    .feature-item h3 {
        font-size: 1.6rem;
    }
    
    .feature-item p {
        font-size: 1.1rem;
    }
}

.cta-title {
    color: #FE9;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-transform: capitalize;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.final-cta {
    margin: 4rem auto;
    max-width: 1000px;
    padding: 2rem 1rem;
    background: none;
}

.final-cta .highlight {
    font-size: 1.1rem;
    line-height: 1.8;
    letter-spacing: 0.3px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

@media screen and (max-width: 768px) {
    .final-cta {
        padding: 1rem;
        margin: 2rem auto;
        background: transparent !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .section.final-cta {
        background: none !important;
        box-shadow: none;
    }
    
    .cta-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .image-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 40%;
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        text-align: center;
        transition: all 2s cubic-bezier(0.4, 0, 0.2, 1);
        background: transparent;
    }

    .image-overlay h3, .image-overlay p {
        color: #FE9;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        transform: translateY(0);
        opacity: 1;
        transition: transform 2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .image-card.visible .image-overlay {
        height: 100%;
        justify-content: center;
        background: rgba(0, 0, 0, 0.55);
    }

    .image-card.visible .image-overlay h3,
    .image-card.visible .image-overlay p {
        transform: translateY(30%);
    }
}

@media screen and (max-width: 768px) {
    .content-wrapper {
        background: none;
        position: relative;
        z-index: 2;
    }

    .overlay {
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .section {
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* Remove all white backgrounds and ensure dark theme */
.content-wrapper,
.overlay,
.section,
.image-overlay,
.footer-text,
.feature-item {
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

@media screen and (max-width: 768px) {
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.15) 50%,
            rgba(0, 0, 0, 0.1) 100%
        );
        z-index: 1;
        pointer-events: none;
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .image-card.visible .image-overlay {
        height: 100%;
        justify-content: center;
        background: rgba(0, 0, 0, 0.55) !important;
    }

    /* Force hardware acceleration */
    * {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        will-change: transform;
    }
}


/* Base text shadow for all text elements */
p, h1, h2, h3, .highlight, .footer-text p {
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(254, 238, 153, 0.2);
}

/* Enhanced shadow for headings */
h1, h2, h3 {
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(254, 238, 153, 0.3),
        0 0 40px rgba(254, 238, 153, 0.2);
}

/* Special shadow for the home title */
.home-title {
    text-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(254, 238, 153, 0.3),
        0 0 60px rgba(254, 238, 153, 0.2);
}

/* Image overlay text shadow */
.image-overlay h3, 
.image-overlay p {
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(254, 238, 153, 0.25);
}

/* Footer text shadow */
.footer-text p {
    text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.7),
        0 0 10px rgba(254, 238, 153, 0.2);
}

@media screen and (max-width: 768px) {
    .image-overlay h3 {
        font-size: 1.8rem;
    }
    
    .image-overlay p {
        font-size: 1.2rem;
        line-height: 1.4;
    }
}

