/* 
 * Fjordscape.digital - Main Stylesheet
 * Theme: Nordic Fjord Landscape
 */

/* Import Google Fonts - Poppins (headings) and Nunito (body text) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Nunito:wght@300;400;600&display=swap');

/* CSS Reset and Base Styles */
:root {
  /* Color palette - Nordic Fjord inspired */
  --primary: #3A4F73;      /* Deep fjord blue */
  --primary-light: #6A8CAD; /* Light blue */
  --primary-dark: #2C3E50; /* Dark blue */
  --secondary: #5DB7DE;    /* Water blue */
  --secondary-light: #BFE6F5; /* Light water blue */
  --accent: #F6BD60;       /* Nordic sun gold */
  --accent-light: #F8D595; /* Light gold */
  --text-light: #F8F9FA;   /* Light text */
  --text-dark: #2C3E50;    /* Dark text */
  --bg-light: #E9EFF5;     /* Light background - icy blue */
  --bg-dark: #293241;      /* Dark background */
  --warning: #E76F51;      /* Red for alerts */
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Nunito', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-light);
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: 4rem 0;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background-color: var(--primary);
  color: var(--text-light);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(58, 79, 115, 0.2);
}

.btn:hover {
  background-color: var(--primary-light);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(58, 79, 115, 0.3);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--text-dark);
}

.btn-accent:hover {
  background-color: var(--accent-light);
  color: var(--text-dark);
}

.text-center {
  text-align: center;
}

/* Header and Navigation */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: 1000;
}

.nordic-nav {
  width: 100%;
}

.nav-banner {
  background-color: var(--primary-dark);
  padding: 0.5rem 0;
}

.nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light);
  font-size: 0.85rem;
}

.age-notice {
  display: flex;
  align-items: center;
}

.age-notice i {
  color: var(--accent);
  margin-right: 0.5rem;
}

.nav-social {
      display: flex;
  gap: 1rem;
}

/* New site-wide dark footer styles to match requested design */
.site-footer {
  background: linear-gradient(180deg, #0f2129 0%, #071218 100%);
  color: rgba(255,255,255,0.95);
  padding: 2.6rem 0 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.site-footer .container {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  justify-content: space-between;
  flex-wrap: wrap;
}
.site-footer .brand-inline {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.site-footer .brand-inline .brand-logo img {
  height: 30px;
}
.site-footer .footer-nav {
  display: flex;
  gap: 2.4rem; /* increased spacing between links */
  align-items: center;
}
.site-footer .footer-nav a {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  opacity: 0.98;
  padding: 0.35rem 0.25rem; /* touch target padding */
  transition: color 0.18s ease, transform 0.12s ease;
}
.site-footer .footer-nav a:hover { color: var(--accent); transform: translateY(-2px); }

.site-footer .footer-note {
  background: rgba(255,255,255,0.035);
  padding: 1rem 1.2rem;
  border-radius: 10px;
  font-size: 0.94rem;
  color: rgba(255,255,255,0.95);
  box-shadow: 0 6px 18px rgba(3,9,12,0.45);
  display: flex;
  gap: 0.9rem;
  /* Make the note span the full width of the footer container */
  flex: 1 1 100%;
  width: 100%;
  max-width: none;
  order: 2;
  margin-top: 0.6rem;
}
.site-footer .footer-note a { color: #8ec8ff; text-decoration: underline; }

/* Add a small icon area at the left of the disclaimer card */
.site-footer .footer-note::before {
  content: "\26A0"; /* warning symbol */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.04);
  color: var(--accent);
  border-radius: 8px;
  font-size: 1.05rem;
  margin-top: 4px;
}
.site-footer .footer-bottom { text-align: center; width: 100%; margin-top: 1rem; border-top: 1px solid rgba(255,255,255,0.03); padding-top: 0.9rem; }
.site-footer .footer-bottom small { color: rgba(255,255,255,0.6); }

@media (max-width: 880px) {
  .site-footer .container { flex-direction: column; align-items: stretch; gap: 1rem; }
  .site-footer .footer-nav { justify-content: center; flex-wrap: wrap; gap: 1rem; }
  .site-footer .footer-note { order: 3; }
  .site-footer .footer-note::before { margin-left: 0; }
}

/* Extra spacing adjustments for very large screens */
@media (min-width: 1400px) {
  .site-footer .container { gap: 3.6rem; }
  .site-footer .footer-nav { gap: 3rem; }
}



.nav-social a {
  color: var(--text-light);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.nav-social a:hover {
  color: var(--accent);
  opacity: 1;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0.5rem;
  background-color: white;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo img {
  height: 45px;
  margin-right: 0.8rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: 1px;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.85rem;
  color: var(--primary-light);
  letter-spacing: 2px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-dark);
  cursor: pointer;
}

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

.main-nav a {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
}

/* Custom Nordic nav underline effect */
.main-nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(to right, var(--accent), var(--secondary));
  transition: width 0.3s ease;
  border-radius: 3px;
}

.main-nav a:hover::before,
.main-nav a.active::before {
  width: 100%;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  background: linear-gradient(rgba(0, 0, 0, 0.466), rgba(0, 0, 0, 0.4)), url('../img/hero.svg') center/cover no-repeat;
  display: flex;
  align-items: center;
  color: var(--text-light);
  margin-top: 70px;
  text-align: center;
  z-index: 0;

}

/* Site-wide offset for any pages that use a fixed header */
main, .legal-page > main, .play-page main, .contact-page main {
  /* Ensure there's space beneath the fixed header (nav-banner + nav-container). */
  padding-top: 5.5rem; /* 88px: reasonable default; adjusted for compact screens below */
}

/* Match the play page offset for legal pages to ensure content clears header */
.legal-page > main { padding-top: 10rem; /* 160px to match play page */ }
.contact-page main { padding-top: 10rem; /* 160px to match play page */ }

.legal-content {
  max-width: 950px;
  margin: 0 auto;
  line-height: 1.7;
  color: var(--text-dark);
  padding-bottom: 3rem;
}

@media (max-width: 880px) {
  main, .legal-page > main, .play-page main { padding-top: 10.5rem; }
  .legal-content { padding: 0 1rem 3rem; }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.11);
  z-index: 0;
}

/* Ensure content is pushed below fixed header on pages that use the fixed header */
.play-page main {
  /* header uses approx 140px (nav-banner + nav-container) - give a safe offset */
  padding-top: 160px;
}

/* Game iframe responsive handling */
.game-container {
  margin-top: 1.2rem;
}
.game-frame {
  width: 100%;
  height: 72vh; /* use viewport height so the game is prominent but doesn't overflow */
  min-height: 560px;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  box-shadow: 0 10px 30px rgba(42, 60, 90, 0.12);
}

@media (max-width: 880px) {
  .play-page main { padding-top: 200px; }
  .game-frame { height: 60vh; min-height: 420px; }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  color: var(--text-light);
  z-index: 1;
}

.hero h1 {
  font-size: 3.2rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about {
  background-color: white;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-color: rgba(93, 183, 222, 0.1);
  border-radius: 50%;
  transform: translate(150px, -150px);
  z-index: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content {
  z-index: 1;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  /* transform: rotate(2deg); */
}

.about-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(44, 62, 80, 0.4), transparent);
}

.about-image img {
  display: block;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Features Section */
.features {
  background-color: #E9EFF5;
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 200px;
  height: 200px;
  background-color: rgba(93, 183, 222, 0.1);
  border-radius: 50%;
  transform: translate(-100px, -100px);
}

.features-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background-color: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-align: left;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 2.2rem;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  position: relative;
}

/* Game Section */
.game-section {
  padding: 5rem 0;
  background-color: white;
  text-align: center;
}

.game-heading {
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.game-container {
  max-width: 1000px;
  margin: 0 auto 4rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(93, 183, 222, 0.2);
}

.game-header {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  padding: 1.2rem;
  color: white;
}

.game-frame {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* Disclaimer Card */
.disclaimer-card {
  background-color: var(--bg-light);
  border: 1px solid rgba(93, 183, 222, 0.3);
  border-radius: 12px;
  padding: 1.8rem;
  margin: 2rem auto;
  max-width: 800px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.disclaimer-title {
  font-size: 1.3rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.disclaimer-title::before {
  content: "⚠️";
  margin-right: 0.8rem;
}

/* Age Verification Popup */
.age-verify-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 1rem;
}

.age-popup-content {
  background-color: white;
  border-radius: 15px;
  padding: 2.5rem;
  max-width: 550px;
  width: 100%;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.age-popup-content h2 {
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

.age-popup-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.age-yes-btn, .age-no-btn {
  padding: 0.8rem 2rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.age-yes-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(58, 79, 115, 0.2);
}

.age-no-btn {
  background-color: var(--warning);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(231, 111, 81, 0.2);
}

.age-yes-btn:hover, .age-no-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Contact Page */
.contact-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)), url('../img/contact-bg.jpg') center/cover no-repeat;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  margin-top: 70px;
}

.contact-form-section {
  background-color: white;
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.contact-info {
  padding: 2.5rem;
  background-color: var(--bg-light);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.contact-methods {
  margin-top: 2rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.8rem;
}

.contact-icon {
  width: 45px;
  height: 45px;
  background: rgba(58, 79, 115, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.2rem;
  font-size: 1.3rem;
  color: var(--primary);
}

.contact-text h3 {
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.contact-text p {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.contact-form-container {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
}

.contact-form {
  width: 100%;
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1.5px solid #DAE2EC;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-light);
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 10px rgba(44, 62, 80, 0.05);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(93, 183, 222, 0.15);
  outline: none;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.form-checkbox input[type="checkbox"] {
  accent-color: var(--primary);
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
}

.form-checkbox label {
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
  background-color: var(--bg-light);
  padding: 4rem 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.faq-item {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: var(--primary-dark);
}

/* Legal Pages */
.legal-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), url('../img/legal-bg.jpg') center/cover no-repeat;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  margin-top: 70px;
}

.legal-content {
  padding: 4rem 0;
}

.legal-document {
  background-color: white;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #eaecf0;
}

.legal-section h3 {
  font-size: 1.3rem;
  margin: 1.8rem 0 0.8rem;
  color: var(--primary);
}

.legal-section ul {
  padding-left: 2rem;
  margin: 1rem 0 1.5rem;
}

.legal-section li {
  margin-bottom: 0.8rem;
}

/* Footer */
.nordic-footer {
  background: linear-gradient(135deg, #293241 0%, #3A4F73 100%);
  color: var(--text-light);
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.footer-waves {
  line-height: 0;
  margin-bottom: -10px;
}

.footer-waves svg {
  filter: drop-shadow(0 -5px 5px rgba(0, 0, 0, 0.1));
}

.footer-content {
  padding: 4rem 0 2rem;
  position: relative;
  background: linear-gradient(135deg, #293241 0%, #3A4F73 100%);

}

.footer-content::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-color: rgba(93, 183, 222, 0.05);
  border-radius: 50%;
  transform: translate(150px, -150px);
}

.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
}

.footer-logo span {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #ffffff; /* ensure brand text is pure white for contrast */
}

.footer-heading {
  color: #ffffff; /* headings should be white on dark footer */
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: #ffffff; /* pure white links for readability */
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.footer-links a::before {
  content: '›';
  margin-right: 0.5rem;
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-light);
  padding-left: 5px;
}

.footer-links a:hover::before {
  transform: translateX(3px);
}

.footer-disclaimer {
  background-color: rgba(0, 0, 0, 0.25);
  padding: 1.8rem;
  border-radius: 12px;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Ensure footer paragraph and small text elements are white for contrast */
.footer-about,
.footer-brand-name,
.footer-brand-digital,
.footer-disclaimer p,
.footer-disclaimer h4,
.footer-content p,
.disclaimer-content,
.footer-contact,
.footer-title,
.footer-social a,
.footer-menu a,
.footer-info,
.footer-links li,
.footer-bottom p {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Media Queries for Responsive Design */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .about-grid,
  .contact-grid,
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    gap: 2rem;
  }
  
  .about-image {
    margin-top: 2rem;
    order: 2;
  }
  
  .game-frame {
    height: 500px;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .header-container {
    padding: 0.8rem 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-light);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .main-nav.show {
    height: auto;
    padding: 1rem 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 0 1rem;
  }
  
  .hero {
    min-height: 60vh;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .game-frame {
    height: 400px;
  }
  
  .legal-document {
    padding: 2rem;
  }
  
  .age-popup-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 576px) {
  .container {
    width: 95%;
  }
  
  section {
    padding: 3rem 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .game-frame {
    height: 350px;
  }
  
  .legal-document {
    padding: 1.5rem;
  }
}

/* Mobile adjustments: nudge nav toggle slightly left for better alignment */
@media (max-width: 768px) {
  .nav-toggle {
    position: relative;
    left: -6px; /* nudge left */
    z-index: 1100;
  }

  /* Make mobile nav links easier to tap */
  .main-nav.show ul li a {
    padding: 0.8rem 0;
    display: block;
  }
}