/* ===============================
   🌿 TARUMA4D - Modern Responsive CSS
   With CSS Variables for Consistency
   =============================== */

:root {
  /* 🎨 Color Palette */
  --color-bg-dark: #0f1f0f;
  --color-bg-secondary: #143601;
  --color-bg-accent: #1a4d2e;
  --color-surface: #1e3314;

  --color-text-main: #f4f4f4;
  --color-text-muted: #d8e8d8;
  --color-heading: #ffffff;

  --color-primary: #00ff7f;
  --color-primary-dark: #14c38e;
  --color-accent: #00f5ff; /* secondary neon tone for hover or glow */

  --color-cta: #ff5c5c;
  --color-footer: #0d0d0d;

  /* 🧭 Effects */
  --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 10px 30px rgba(0, 255, 127, 0.3);

  /* 📏 Spacing & Layout */
  --radius: 20px;
  --radius-pill: 50px;

  /* 🅰️ Typography */
  --font-main: "Poppins", "Arial", sans-serif;

  /* 🔀 Breakpoints */
  --bp-tablet: 768px;
  --bp-desktop: 1024px;
}

/* ===============================
   Global Styles
   =============================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

body {
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  color: var(--color-heading);
  font-weight: 700;
  letter-spacing: 0.5px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

/* ===============================
   Header
   =============================== */

header {
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-soft);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.logo img {
  position: relative;
  max-width: 60px;
  aspect-ratio: 1/1;
  width: 100%;
}

.logo h1 {
  font-size: 26px;
  color: var(--color-primary);
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0, 255, 127, 0.3);
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links li a {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-links li a:hover {
  background: var(--color-primary);
  color: #111;
}

/* ===============================
   Hero Section
   =============================== */

.hero-home {
  background: linear-gradient(
    135deg,
    var(--color-bg-accent),
    var(--color-bg-secondary)
  );
  padding: 100px 20px;
  align-items: center;
  text-align: center;
  color: var(--color-heading);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-home img.banner {
  position: relative;
  max-width: 980px;
  aspect-ratio: 2/1;
  width: 100%;
}

.hero {
  background: linear-gradient(
    135deg,
    var(--color-bg-accent),
    var(--color-bg-secondary)
  );
  padding: 100px 20px;
  text-align: center;
  color: var(--color-heading);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.1),
    transparent 70%
  );
}

.hero h2 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  padding: 14px 35px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  font-size: 18px;
  font-weight: 600;
  color: #111;
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.05);
  background: linear-gradient(
    135deg,
    var(--color-primary-dark),
    var(--color-primary)
  );
}

/* ===============================
   Games Section
   =============================== */

.games {
  padding: 100px 20px;
  background: radial-gradient(
    circle at top,
    var(--color-bg-secondary),
    var(--color-bg-dark) 80%
  );
  text-align: center;
  color: var(--color-heading);
}

.games h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(0, 255, 127, 0.4);
}

.games h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 15px auto 0;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  border-radius: 2px;
}

/* Game Cards */
.game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.game-item {
  background: linear-gradient(145deg, #1c3c19, var(--color-bg-dark));
  border-radius: var(--radius);
  padding: 40px 25px;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.game-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.game-item h3 {
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.game-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 0 8px rgba(0, 255, 127, 0.3));
}

.game-item:hover .game-img {
  transform: scale(1.1) rotate(5deg);
}

.game-item p {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 250px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ===============================
   About Section
   =============================== */

.about {
  background: var(--color-bg-secondary);
  padding: 80px 20px;
  text-align: center;
}

.about h2 {
  color: var(--color-primary);
  font-size: 36px;
  margin-bottom: 20px;
}

.about p {
  color: var(--color-text-muted);
  font-size: 18px;
  max-width: 800px;
  margin: 20px auto;
}

/* ===============================
   Join Section
   =============================== */

.join {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  color: #111;
  padding: 80px 20px;
  text-align: center;
}

.join h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.join p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 30px;
}

.join .cta-button {
  background: #111;
  color: var(--color-primary);
}

.join .cta-button:hover {
  background: #222;
  transform: scale(1.05);
}

/* ===============================
   Contact Section
   =============================== */

.contact {
  background-color: var(--color-bg-secondary);
  padding: 80px 20px;
  text-align: center;
}

.contact label {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  color: var(--color-primary);
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: none;
  background: var(--color-surface);
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
}

.contact input:focus,
.contact textarea:focus {
  outline: 2px solid var(--color-primary);
}

.contact button {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  color: #111;
  font-size: 18px;
  padding: 14px 35px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact button:hover {
  transform: translateY(-2px);
}

/* ===============================
   Footer
   =============================== */

footer {
  background-color: var(--color-footer);
  color: #bbb;
  padding: 40px 20px;
  text-align: center;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links li {
  display: inline-block;
  margin: 0 15px;
}

.footer-links a {
  color: #bbb;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.social-media a {
  color: var(--color-primary);
  font-size: 20px;
  margin: 0 8px;
  transition: transform 0.3s ease;
}

.social-media a:hover {
  transform: scale(1.2);
}

/* ===============================
   Responsive Design
   =============================== */

@media (max-width: 1024px) {
  .hero h2 {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h2 {
    font-size: 32px;
  }

  .game-list {
    grid-template-columns: 1fr;
  }

  .game-item {
    padding: 30px 20px;
  }

  .game-img {
    width: 80px;
    height: 80px;
  }

  .about p,
  .join p {
    font-size: 16px;
  }
}

/* =========================================
   Modern About Page Enhancements
   ========================================= */

/* Animated Hero Section */
.hero-about {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--color-bg-dark),
    var(--color-primary)
  );
  color: #111;
  padding: 120px 20px;
  text-align: center;
  overflow: hidden;
}

.hero-about .hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.25),
    transparent 70%
  );
  filter: blur(100px);
  animation: float-bg 6s infinite alternate ease-in-out;
}

.hero {
  pointer-events: none;
}

.hero-about .hero-overlay {
  pointer-events: none; /* allow clicking buttons underneath */
}

@keyframes float-bg {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-30px);
  }
}

.hero-about h2 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero-about .highlight {
  color: #111;
  background: var(--color-primary);
  padding: 5px 10px;
  border-radius: 10px;
}

.hero-about p {
  font-size: 20px;
  opacity: 0.9;
}

/* Core Values Section */
.core-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin: 60px auto;
  max-width: 1000px;
}

.value-card {
  background: linear-gradient(145deg, #1c3c19, var(--color-bg-dark));
  border-radius: var(--radius);
  padding: 40px 25px;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s ease;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.value-card i {
  font-size: 40px;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.value-card h3 {
  color: var(--color-primary);
  margin-bottom: 10px;
}

/* Fade-in Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s forwards;
}

.delay-1 {
  animation-delay: 0.3s;
}
.delay-2 {
  animation-delay: 0.6s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CTA Button Animation */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 127, 0.6);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(0, 255, 127, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 127, 0);
  }
}

/* Footer Copy */
.footer-copy {
  margin-top: 10px;
  font-size: 14px;
  color: #777;
}

/* ===============================
   Contact Page Enhancements
   =============================== */

/* Two-column layout adjustments */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form h3,
.contact-info h3 {
  font-size: 28px;
}

.contact-info p {
  font-size: 16px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.contact-info .social-media a {
  font-size: 22px;
  margin-right: 15px;
  color: var(--color-primary);
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-info .social-media a:hover {
  transform: scale(1.2);
  color: var(--color-accent);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .contact-info p {
    justify-content: center;
  }

  .contact-info .social-media a {
    margin: 0 10px;
  }
}

@media (max-width: 480px) {
  .contact input,
  .contact textarea,
  .contact button {
    font-size: 14px;
    padding: 12px;
  }

  .contact-form h3,
  .contact-info h3 {
    font-size: 24px;
  }
}

/* ===============================
   Contact Form Enhancements
   =============================== */

.contact-form {
  background: var(--color-bg-dark);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--color-primary);
  transition: all 0.3s ease;
}

.contact-form:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}

.contact-form input,
.contact-form textarea {
  background: var(--color-surface);
  border: 1px solid #2f4d2e;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}

.contact-form button {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  color: #111;
  font-size: 18px;
  padding: 14px 35px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  border: 2px solid var(--color-primary);
  transition: all 0.3s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  box-shadow: 0 0 15px var(--color-accent);
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 60px;
}

.info-card {
  background: var(--color-bg-dark);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 30px 25px;
  width: 250px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 20px var(--color-accent);
  transform: translateY(-5px);
}

.info-card i {
  font-size: 36px;
  color: var(--color-primary);
  margin-bottom: 15px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.info-card:hover i {
  color: var(--color-accent);
  transform: scale(1.2);
}

.info-card h3 {
  font-size: 20px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.info-card p {
  color: var(--color-text-muted);
  font-size: 16px;
  opacity: 0.9;
}

/* Hamburger Styles - Mobile Only */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .logo img {
    max-width: 50px;
  }

  .logo h1 {
    font-size: 20px;
  }

  .hero-about h2 {
    font-size: 36px;
  }

  .core-values {
    gap: 20px;
  }

  .value-card {
    padding: 30px 20px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px; /* adjust depending on header height */
    right: 20px;
    background: var(--color-bg-dark);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    gap: 15px;
    width: 300px;
  }

  /* Show nav links when active */
  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1100;
  }

  .hamburger span {
    height: 3px;
    width: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .nav-links li a {
    font-size: 20px;
    padding: 10px 20px;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}
