/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Staatliches:wght@400&family=Open+Sans:wght@300;400;600;700&display=swap');

/* CSS Variables */
:root {
    --bg-primary: #1A0000;
    --bg-secondary: #440000;
    --accent-fire: #FF4500;
    --accent-gold: #FFB400;
    --accent-charcoal: #3E3E3E;
    --text-ivory: #FFF8E7;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 180, 0, 0.2);
    --shadow-ember: 0 8px 32px rgba(255, 69, 0, 0.3);
}

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

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--accent-fire) 100%);
    background-attachment: fixed;
    color: var(--text-ivory);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 69, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 180, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 69, 0, 0.1) 0%, transparent 50%);
    animation: flameMove 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes flameMove {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Staatliches', cursive;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    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(--accent-gold), transparent);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-family: 'Staatliches', cursive;
    font-size: 1.8rem;
    color: var(--accent-gold);
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.nav-link {
    color: var(--text-ivory);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.nav-link:hover {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(255, 180, 0, 0.5);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--accent-gold);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
      background: linear-gradient(rgba(13, 27, 42, 0.7), rgba(31, 42, 68, 0.7)),
              url('/images/mainbg.webp') no-repeat center center/cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    color: var(--accent-gold);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
    animation: flameGlow 2s ease-in-out infinite alternate;
}

@keyframes flameGlow {
    0% { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 180, 0, 0.3); }
    100% { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 180, 0, 0.6); }
}

.hero-tagline {
    font-size: 1.3rem;
    color: var(--text-ivory);
    margin-bottom: 2rem;
    font-weight: 300;
}

.flame-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    pointer-events: none;
}

.flame-particle {
    position: absolute;
    width: 4px;
    height: 20px;
    background: linear-gradient(to top, var(--accent-fire), var(--accent-gold), transparent);
    animation: flameRise linear;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

@keyframes flameRise {
    0% {
        transform: translateY(200px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px) scale(0.5);
        opacity: 0;
    }
}
.explore-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: #FF6A00; /* Customize as needed */
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.explore-btn:hover {
    background-color: #e55b00;
}

/* Glass Card Effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-ember);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(255, 69, 0, 0.4);
}

/* Sections */
section {
    padding: 5rem 0;
}

/* About Section Styles */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-features {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 180, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.feature-item h4 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.about-images {
    position: relative;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 180, 0, 0.3);
}

.about-img:nth-child(1) {
    transform: rotate(-2deg);
}

.about-img:nth-child(2) {
    transform: rotate(2deg);
}

.about-img:nth-child(3) {
    transform: rotate(1deg);
}

.about-img:nth-child(4) {
    transform: rotate(-1deg);
}

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

.game-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-ember);
}

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

.game-thumbnail img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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 .play-overlay {
    opacity: 1;
}

.play-button {
    font-size: 3rem;
    color: var(--accent-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.game-card h3 {
    padding: 1rem;
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.game-card p {
    padding: 0 1rem 1rem;
    color: var(--text-ivory);
    opacity: 0.8;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    font-family: 'Staatliches', cursive;
}

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

.community-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
}

.flame-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    animation: flameFlicker 2s ease-in-out infinite alternate;
}

@keyframes flameFlicker {
    0% { box-shadow: 0 0 20px rgba(255, 180, 0, 0.5); }
    100% { box-shadow: 0 0 30px rgba(255, 180, 0, 0.8); }
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-3px);
}

.tip-card h4 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.social-btn {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.social-btn:hover {
    background: var(--text-ivory);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 180, 0, 0.3);
}

/* Disclaimer */
.disclaimer {
    padding: 2rem 0;
}

.disclaimer-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent-gold);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
}

/* Footer */
.footer {
    background: rgba(26, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

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

.footer-section h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: var(--text-ivory);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
    color: var(--text-ivory);
    opacity: 0.8;
}

/* Game Page Styles */
.game-container {
    padding-top: 100px;
    min-height: 100vh;
}

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

.back-button {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    font-family: 'Open Sans', sans-serif;
}

.back-button:hover {
    background: var(--text-ivory);
    transform: translateY(-2px);
}

.game-iframe-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1rem;
    margin: 0 auto;
    max-width: 1300px;
    box-shadow: var(--shadow-ember);
}

#game-iframe {
    width: 100%;
    height: 720px;
    border: none;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(26, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: start;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .image-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .about-img {
        height: 120px;
    }

    .social-buttons {
        flex-direction: column;
        align-items: center;
    }

    .social-btn {
        width: 200px;
    }

    #game-iframe {
        height: 500px;
    }

    .steps-grid,
    .community-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    section {
        padding: 3rem 0;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .about-content {
        gap: 1.5rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .image-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .about-img {
        height: 150px;
    }

    #game-iframe {
        height: 400px;
    }
}

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

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

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

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

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

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