:root {
  --bg: #0b111a;
  --text: #ffffff;
  --accent: #00ff88;
  --muted: #9ca3af;
  --radius: 10px;
  font-family: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.loaded {
  opacity: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

/* Header */
.site-header {
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
}
.logo .accent { color: var(--accent); }

.nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
}

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 0;
}
.hero-text { flex: 1 1 400px; }
.hero-text h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero-text p { color: var(--muted); margin-bottom: 1.5rem; }
.btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  margin-right: 0.5rem;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-outline { border: 1px solid var(--accent); color: var(--accent); }

/* Sections */
.section { padding: 3rem 0; }
.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.feature {
  background: rgba(255,255,255,0.05);
  padding: 1rem;
  border-radius: var(--radius);
}
.glow-on-hover {
  transition: all 0.3s ease-in-out;
  border-radius: 12px;
}
.glow-on-hover:hover {
  box-shadow: 0 0 25px rgba(0, 255, 100, 0.7);
  transform: translateY(-5px);
}

/* How It Works Steps */
.steps-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.step-item {
  background: #111827;
  border-radius: 15px;
  padding: 1.5rem;
  width: 280px;
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0; /* hidden initially for scroll animation */
  transform: translateY(20px);
}

.step-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-item h3 {
  color: var(--text);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.step-item p {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0, 255, 100, 0.7);
}
.step-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 255, 100, 0.8);
}
.step-item:hover h3,
.step-item:hover p {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent);
}

/* ==============================
   GreenX Levels Section
============================== */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.level-card {
  background: #111827;
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
}

.level-card h3 {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.level-card p {
  color: var(--muted);
  margin: 0.3rem 0;
  font-size: 0.95rem;
}

/* ============================
   About Page - Level Details
============================= */
.levels-details {
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}

.level-detail {
  margin: 25px auto;
  padding: 25px;
  max-width: 800px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(0, 255, 150, 0);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out, box-shadow 0.4s ease;
}

/* Fade-in when visible */
.level-detail.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Temporary glow (3 seconds) */
.level-detail.highlight {
  box-shadow: 0 0 20px #00ff99, 0 0 40px #00ff99;
}

/* Glow on hover */
.level-detail:hover {
  box-shadow: 0 0 20px #00ff99, 0 0 40px #00ff99;
  transform: translateY(-5px);
}

/* Contact (generic form style) */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form label {
  font-weight: 600;
  color: var(--text-color, #fff);
  display: flex;
  flex-direction: column;
}
.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  font-family: inherit;
  transition: all 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #00c853;
  box-shadow: 0 0 8px rgba(0, 200, 83, 0.6);
}
.contact-form button {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  background-color: #00c853;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.contact-form button:hover {
  background-color: #00b44b;
  transform: scale(1.05);
}

/* Footer */
.site-footer {
  background: rgba(0,0,0,0.3);
  padding: 1rem 0;
  text-align: center;
}
.footer-nav a {
  color: var(--muted);
  margin: 0 0.5rem;
  text-decoration: none;
}
.footer-nav a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 768px) {
  .nav ul {
    display: none;
    flex-direction: column;
    background: rgba(0,0,0,0.9);
    position: absolute;
    right: 1rem;
    top: 60px;
    border-radius: var(--radius);
  }
  .nav.open ul { display: flex; }
  .nav-toggle { display: block; }
}

/* Center helper */
.center { text-align: center; }

/* CTA (App Store buttons) */
.store-badges img {
  height: 50px;
  margin: 0.5rem;
  transition: transform 0.3s ease, filter 0.3s ease;
  animation: pulseGlow 2s infinite;
}
.store-badges img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px var(--accent));
}
@keyframes pulseGlow {
  0% { filter: drop-shadow(0 0 0px var(--accent)); }
  50% { filter: drop-shadow(0 0 8px var(--accent)); }
  100% { filter: drop-shadow(0 0 0px var(--accent)); }
}

/* Social icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.social-icons img {
  width: 40px;
  transition: transform 0.3s ease;
}
.social-icons img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px var(--accent));
}

.back-home {
  display: inline-block;
  margin-top: 2rem;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  color: #000;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.3s ease;
}
.back-home:hover {
  background: #00e07a;
  transform: translateY(-2px);
}

/* Smooth page load */
body {
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Hero Gallery */
.hero-gallery {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hero-gallery .gallery-item {
  flex: 1 1 30%;
  max-width: 280px;
  transition: all 0.4s ease;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.hero-gallery .gallery-item img {
  width: 100%;
  display: block;
  border-radius: 15px;
}
.hero-gallery .gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 255, 100, 0.8);
}

/* ===== Download Section Layout ===== */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

/* ===== APK Download Container ===== */
.apk-download-container {
  text-align: center;
  margin-top: 15px;
  animation: fadeInUp 0.8s ease forwards;
}

.download-text {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ===== APK Button Styling ===== */
.apk-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, #00ff99, #00ccff);
  color: #000;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 255, 150, 0.4);
  font-size: 16px;
}

.apk-download-btn:hover {
  box-shadow: 0 0 25px #00ff99, 0 0 45px #00ccff;
  transform: translateY(-3px);
}

/* ===== Animation for fade-in effect ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================
   Contact Page Layout
============================= */

.contact-hero {
  padding-top: 4rem;
}

.contact-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 700px;
  margin: 0.5rem auto 2.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-info-panel,
.contact-form-panel {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
}

.contact-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: all 0.3s ease;
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.contact-card p {
  margin: 0.2rem 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-card .contact-highlight {
  font-weight: 600;
  margin-top: 0.4rem;
}

.contact-card .contact-highlight a {
  color: var(--accent);
  text-decoration: none;
}

.contact-card .contact-highlight a:hover {
  text-decoration: underline;
}

.contact-card .contact-meta {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-top: 0.3rem;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
  border-color: rgba(34, 197, 94, 0.6);
}

.contact-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.contact-tag {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.7);
  color: var(--accent);
}

/* Right form panel */
.contact-form-panel h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.contact-form-panel .contact-form-text {
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ============================
   FAQ Section
============================= */

.faq-section {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}

.faq-intro {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Single-column FAQ list */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  transition: all 0.3s ease;
}

.faq-question {
  font-size: 1rem;
  color: #fff;
  margin: 0 0 0.3rem 0;
}

.faq-answer {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.faq-item a {
  color: var(--accent);
  text-decoration: none;
}

.faq-item a:hover {
  text-decoration: underline;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.4);
  border-color: rgba(34, 197, 94, 0.6);
}

/* ============================
   Contact Page Responsive
============================= */

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
