@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Poppins:wght@300;400;600;700&display=swap');

/* CSS Variables */
:root {
    --dark-bg: #0a0a0a;
    --dark-card: rgba(255, 255, 255, 0.1);
    --dark-text: #ffffff;
    --dark-subtext: #e0e0e0;
    --light-bg: #f0f8ff;
    --light-card: rgba(240, 248, 255, 0.3);
    --light-text: #252525;
    --light-subtext: #353535;
    --holy-gold: #ffd700;
    --holy-glow: rgba(255, 215, 0, 0.4);
    --shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    transition: background 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
}

/* Backgrounds */
.dark-mode {
    background: url('./assets/woj.png') center/cover no-repeat fixed;
    color: var(--dark-text);
}

.light-mode {
    background: url('./assets/woj.png') center/cover no-repeat fixed;
    color: var(--light-text);
}

/* Typography */
.pope {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(45deg, #ffd700, #ffaa00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px var(--holy-glow);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.heaven-preloader {
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 300px;
}

.door-icon {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--holy-gold);
    text-shadow: 0 0 20px var(--holy-glow);
}

.loading-text {
    font-family: 'Cinzel', serif;
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-top: 1rem;
    color: var(--holy-gold);
    text-shadow: 0 0 15px var(--holy-glow);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.animate-fade {
    animation: fadeUp 3s ease-out forwards;
}

@keyframes fadeUp {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    70% { opacity: 0.8; transform: translateY(-20px) scale(1.1); }
    100% { opacity: 0; transform: translateY(-100px) scale(1.2); }
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2000;
}

#theme-btn {
    background: var(--holy-gold);
    border: none;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    padding: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.5s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.dark-mode #theme-btn { color: #000; }
.light-mode #theme-btn { color: var(--light-text); }
.dark-mode #theme-btn .fa-sun { display: inline; }
.dark-mode #theme-btn .fa-moon { display: none; }
.light-mode #theme-btn .fa-sun { display: none; }
.light-mode #theme-btn .fa-moon { display: inline; }

#theme-btn:hover {
    transform: rotate(360deg) scale(1.1);
    background: #ffaa00;
    box-shadow: 0 0 25px var(--holy-glow);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
}

.light-mode .navbar {
    background: rgba(240, 248, 255, 0.85);
    box-shadow: 0 3px 15px rgba(70, 130, 180, 0.3);
}

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

.logo {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--holy-gold);
    text-shadow: 0 0 8px var(--holy-glow);
}

.light-mode .logo {
    text-shadow: 0 2px 6px rgba(44, 62, 80, 0.5);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background: var(--holy-gold);
    transition: width 0.4s ease;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover {
    color: var(--holy-gold);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--holy-gold);
    cursor: pointer;
}

/* Hero */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('./assets/woj.png') center/cover no-repeat fixed;
}

.light-mode .hero {
    background: url('./assets/woj.png') center/cover no-repeat fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    animation: shimmer 6s infinite;
}

.light-mode .hero-overlay {
    background: linear-gradient(to bottom, rgba(240, 248, 255, 0.4), rgba(240, 248, 255, 0.2));
}

@keyframes shimmer {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

.wojama-icon {
    width: clamp(100px, 20vw, 150px);
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px var(--holy-glow));
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px var(--holy-glow);
    color: white;
}

/* .light-mode .hero h1 {
    text-shadow: 0 3px 12px rgba(44, 62, 80, 0.6);
} */

.hero p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--dark-subtext);
}

/* .light-mode .hero p { color: var(--light-subtext); } */

.btn {
    padding: 1rem 2rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    transition: all 0.5s ease;
}

.btn-primary {
    background: var(--holy-gold);
    color: #000;
    box-shadow: 0 0 20px var(--holy-glow);
}

.btn-secondary {
    background: transparent;
    border: 3px solid var(--holy-gold);
    color: var(--dark-text);
}

.light-mode .btn-secondary { color: var(--light-text); }

.btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--holy-glow);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Animations */
.animate-float {
    animation: float 5s ease-in-out infinite;
}

.animate-glow {
    animation: glow 4s ease-in-out infinite;
}

.animate-pop:hover {
    transform: scale(1.1) rotate(2deg);
    transition: transform 0.4s ease;
}

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px var(--holy-glow); }
    50% { box-shadow: 0 0 40px var(--holy-glow); }
}

/* Marquee */
.marquee {
    background: rgba(0, 0, 0, 0.9);
    padding: 1.5rem 0;
    overflow: hidden;
    border-top: 2px solid var(--holy-gold);
    border-bottom: 2px solid var(--holy-gold);
    box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.2);
}

.light-mode .marquee {
    background: rgba(240, 248, 255, 0.9);
    box-shadow: inset 0 0 30px rgba(70, 130, 180, 0.2);
}

.marquee-track {
    display: flex;
    animation: scroll 25s linear infinite;
}

.marquee-content {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
}

.marquee span {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--holy-gold);
    text-shadow: 0 0 10px var(--holy-glow);
}

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

/* General Containers */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

section {
    padding: clamp(4rem, 10vw, 8rem) 0;
}

h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 3rem;
    text-shadow: 0 0 15px var(--holy-glow);
}

.light-mode h2 {
    text-shadow: 0 3px 12px rgba(44, 62, 80, 0.6);
}

/* About Section */
.about-section {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(26, 26, 26, 0.95));
}

.light-mode .about-section {
    background: linear-gradient(180deg, rgba(240, 248, 255, 0.95), rgba(240, 248, 255, 0.95));
}

.pope-image {
    width: clamp(120px, 25vw, 200px);
    margin: 2rem auto;
    display: block;
    filter: drop-shadow(0 0 20px var(--holy-glow));
}

.about-section p, .features-section p, .guide-section p {
    color: var(--dark-subtext);
}

.light-mode .about-section p, .light-mode .features-section p, .light-mode .guide-section p {
    color: var(--light-subtext);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.social-btn {
    width: clamp(40px, 10vw, 60px);
    height: clamp(40px, 10vw, 60px);
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--holy-gold);
    color: #000;
    box-shadow: var(--shadow);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.social-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 0 25px var(--holy-glow);
}

.contract-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 25px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: var(--shadow);
}

.light-mode .contract-card {
    background: var(--light-card);
    border: 2px solid rgba(70, 130, 180, 0.3);
}

.contract-card h3 {
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.light-mode .contract-card h3 { color: var(--light-text); }

.contract-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 215, 0, 0.15);
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.light-mode .contract-info {
    background: rgba(240, 248, 255, 0.2);
    box-shadow: 0 10px 30px rgba(70, 130, 180, 0.2);
}

.contract-info span {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    word-break: break-word;
    flex: 1;
    color: var(--dark-text);
}

.light-mode .contract-info span { color: var(--light-text); }

.copy-btn {
    background: var(--holy-gold);
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.5s ease;
    box-shadow: 0 0 15px var(--holy-glow);
}

.copy-btn:hover {
    background: #ffaa00;
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--holy-glow);
}

/* Features Section */
.features-section {
    background: var(--dark-bg);
}

.light-mode .features-section {
    background: var(--light-bg);
}

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

.feature-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 25px;
    text-align: center;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: var(--shadow);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.light-mode .feature-card {
    background: var(--light-card);
    border: 2px solid rgba(70, 130, 180, 0.3);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px var(--holy-glow);
}

.feature-card i {
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--holy-gold);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.light-mode .feature-card h3 { color: var(--light-text); }

.feature-card p {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--dark-subtext);
}

.light-mode .feature-card p { color: var(--light-subtext); }

.media-showcase {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.media-showcase img, .media-showcase video {
    max-width: 100%;
    height: clamp(200px, 50vw, 400px);
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid var(--holy-gold);
    box-shadow: var(--shadow);
}

/* Gallery Section */
.gallery-section {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(26, 26, 26, 0.95));
}

.light-mode .gallery-section {
    background: linear-gradient(180deg, rgba(240, 248, 255, 0.95), rgba(240, 248, 255, 0.95));
}

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

.meme-grid img {
    width: 100%;
    border-radius: 20px;
    border: 2px solid var(--holy-gold);
    box-shadow: var(--shadow);
    transition: all 0.5s ease;
}

.meme-grid img:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 0 40px var(--holy-glow);
}

/* Market Section */
.market-section {
    background: var(--dark-bg);
}

.light-mode .market-section {
    background: var(--light-bg);
}

.market-embed iframe {
    width: 100%;
    height: clamp(300px, 80vw, 600px);
    border-radius: 25px;
    border: 3px solid var(--holy-gold);
    box-shadow: var(--shadow);
}

/* Guide Section */
.guide-section {
    background: var(--dark-bg);
}

.light-mode .guide-section {
    background: var(--light-bg);
}

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

.step-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 25px;
    text-align: center;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.light-mode .step-card {
    background: var(--light-card);
    border: 2px solid rgba(70, 130, 180, 0.3);
}

.step-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px var(--holy-glow);
}

.step-number {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--holy-gold);
    color: #000;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
}

.step-card i {
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--holy-gold);
    margin: 2rem 0 1.5rem;
}

.step-card p {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--dark-subtext);
}

.light-mode .step-card p { color: var(--light-subtext); }

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 2rem 0;
    text-align: center;
    border-top: 3px solid var(--holy-gold);
    box-shadow: inset 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.light-mode .footer {
    background: rgba(240, 248, 255, 0.9);
    border-top: 3px solid #4682b4;
    box-shadow: inset 0 -5px 20px rgba(70, 130, 180, 0.2);
}

.footer p {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    color: var(--dark-subtext);
}

.light-mode .footer p { color: var(--light-subtext); }

/* Mobile Responsive */
@media (max-width: 768px) {
    .dark-mode, .light-mode {
        background: url('./assets/bg2-mobile.jpg') center/cover no-repeat scroll;
    }

    .theme-toggle{
        position: fixed;
        right: 3.2rem;
    }

    .nav-container { padding: 0 1rem; }
    .menu-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        padding: 1rem 0;
    }
    .light-mode .nav-links {
        background: rgba(240, 248, 255, 0.9);
    }
    .nav-links.active { display: flex; }
    .nav-links a { margin: 0.8rem 0; }

    .hero-cta { flex-direction: column; gap: 1rem; }
    .marquee { padding: 1rem 0; }
    .container { padding: 0 1rem; }
    .feature-grid, .meme-grid, .steps-grid { grid-template-columns: 1fr; }
    .media-showcase { flex-direction: column; }
    .media-showcase img{
        height: 100%;
    }
}

/* .game-section {
    padding: 40px 0;
    background: #f5f5f5;
    text-align: center;
  } */
  
  .game-section .container {
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .game-iframe {
    display: none; /* Hidden by default */
    width: 100%;
    height: 800px; /* Adjust height as needed */
    border: 2px solid #333;
    margin-top: 20px;
    /* background: #e0e0e0; */
  }

  @media screen and (max-width: 1024px) {
    .game-section {
      padding: 30px 0;
    }
  
    .game-section .container {
      max-width: 900px;
    }
  
    .game-iframe {
      height: 350px; /* Adjusted height for tablets */
    }
  }
  
  /* Media query for mobile devices (max-width: 768px) */
  @media screen and (max-width: 768px) {
    .game-section {
        background-color: #181818;
      padding: 20px 0;
    }
  
    .game-section .container {
      max-width: 100%; /* Full width on mobile */
      padding: 0 15px; /* Add padding for content on mobile */
    }
  
    .game-iframe {
      height: 250px; /* Further reduced height for mobile */
      border-width: 1px; /* Thinner border for mobile */
      margin-top: 15px; /* Reduced margin for mobile */
    }
  }
  
  /* Media query for very small screens (max-width: 480px) */
  @media screen and (max-width: 480px) {
    .game-section {
      padding: 15px 0;
    }
  
    .game-iframe {
      height: 600px; /* Minimum height for very small screens */
    }
  }