/* TreknoaHub.live - Kites Theme CSS */
/* Montserrat + Roboto - Unique from previous sites */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Roboto:wght@300;400;500&display=swap");

/* CSS Variables - Kites Theme */
:root {
  /* Primary Colors - Sky Theme */
  --primary-blue: #4a97d6;
  --primary-light: #b7e0ff;
  --accent-orange: #ff7f50;
  --accent-red: #ff5555;
  --accent-purple: #9370db;

  /* Neutral Colors */
  --white: #e4fdcf;
  --light-gray: #f5f7fa;
  --medium-gray: #70839f;
  --dark-gray: #3a4559;

  /* Typography */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Roboto", sans-serif;

  /* Layout */
  --container-width: 1200px;
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
}

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--light-gray);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--accent-orange);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  background-color: var(--primary-blue);
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  background-color: var(--accent-orange);
  color: var(--white);
}

.btn-primary {
  background-color: var(--primary-blue);
}

.btn-secondary {
  background-color: var(--accent-purple);
}

/* Age Verification Popup */
.age-verification {
  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: 1000;
}

.age-modal {
  background: var(--white);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  max-width: 500px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
}

.age-modal::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background-color: var(--accent-orange);
  border-radius: 50%;
  z-index: -1;
}

.age-modal h2 {
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

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

.age-btn {
  padding: 0.8rem 1.2rem;
  font-family: var(--font-heading);
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.age-accept {
  background-color: var(--primary-blue);
  color: var(--white);
}

.age-accept:hover {
  background-color: var(--accent-purple);
}

.age-decline {
  background-color: var(--accent-red);
  color: var(--white);
}

/* Navigation */
.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  position: relative;
  z-index: 100;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
}

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

.nav-item {
  margin-left: 1.5rem;
}

.nav-item a {
  color: var(--dark-gray);
  font-weight: 500;
}

.nav-item a:hover {
  color: var(--accent-orange);
}

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

/* Hero Section */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--accent-purple) 100%
  );
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

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

.hero h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--white);
  opacity: 0.9;
}

.hero-image-placeholder {
  width: 100%;
  max-width: 600px;
  height: 300px;
  margin: 0 auto 2rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}

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

.game-section h2 {
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.game-section p {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--medium-gray);
}

.game-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 900px;
  margin: 0 auto;
}

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

/* Entertainment Guidelines */
.entertainment-guidelines {
  background: var(--primary-light);
  border-left: 6px solid var(--accent-orange);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  padding: 2rem 2rem 1.5rem 2rem;
  margin: 2.5rem auto 0 auto;
  max-width: 700px;
  text-align: left;
}
.entertainment-guidelines h3 {
  color: var(--accent-orange);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
}
.entertainment-guidelines ul {
  list-style: disc inside;
  padding-left: 1.2em;
}
.entertainment-guidelines li {
  color: var(--dark-gray);
  font-size: 1.05rem;
  margin-bottom: 0.7em;
  line-height: 1.6;
  font-family: var(--font-body);
}

/* About Section */
.about {
  padding: 4rem 0;
  background-color: var(--light-gray);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

/* Ensure the about image scales nicely and maintains composition */
.about-image img {
  display: block;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border: 1px solid rgba(58, 69, 89, 0.06);
}

@media (max-width: 800px) {
  .about-content {
    flex-direction: column;
    align-items: stretch;
  }
  .about-image img {
    max-height: 320px;
  }
}

/* About image wrapper with overlay */
.about-image-wrap {
  position: relative;
  display: block;
}
/* Make the image container clip and allow subtle hover effects */
.about-image-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

/* Dim overlay when hovering, implemented with a pseudo element */
.about-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.18));
  pointer-events: none;
  transition: opacity 280ms ease, transform 280ms ease;
  opacity: 0;
}
.about-image-wrap:hover::after,
.about-image-wrap:focus-within::after {
  opacity: 1;
}

/* Play button - circular, prominent, accessible focus state and subtle pulse */
.about-play-btn {
  --btn-size: 62px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: var(--btn-size);
  height: var(--btn-size);
  display: inline-grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    rgba(74, 151, 214, 0.96),
    rgba(147, 112, 219, 0.96)
  );
  color: var(--white);
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(58, 69, 89, 0.28);
  z-index: 6;
  transition: transform 220ms cubic-bezier(0.2, 0.9, 0.3, 1),
    box-shadow 220ms ease, filter 220ms ease;
}
.about-play-btn::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 10px solid var(--white);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 3px;
}
.about-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 18px 40px rgba(58, 69, 89, 0.32);
}
.about-play-btn:active {
  transform: translate(-50%, -50%) scale(0.98);
}
.about-play-btn:focus {
  outline: 3px solid rgba(74, 151, 214, 0.25);
  outline-offset: 4px;
}

@keyframes btnPulse {
  0% {
    box-shadow: 0 10px 30px rgba(74, 151, 214, 0.12);
  }
  70% {
    box-shadow: 0 22px 50px rgba(74, 151, 214, 0.06);
  }
  100% {
    box-shadow: 0 10px 30px rgba(74, 151, 214, 0.12);
  }
}
.about-play-btn.pulse {
  animation: btnPulse 2.6s infinite ease-in-out;
}

/* Caption overlay on top of the about image */
.about-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(30, 34, 60, 0.38);
  color: #fff;
  padding: 0.38em 1.2em;
  border-radius: 22px 32px 32px 22px / 32px 22px 22px 32px;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  z-index: 7;
  box-shadow: 0 4px 18px rgba(30, 34, 60, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px) saturate(140%);
  transition: background 220ms, box-shadow 220ms, border 220ms, font-size 220ms;
  opacity: 0.97;
  text-align: center;
  max-width: 90%;
  white-space: pre-line;
}

@media (max-width: 480px) {
  .about-overlay-text {
    font-size: 0.92rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0.22em 0.6em;
    border-radius: 18px 24px 24px 18px / 24px 18px 18px 24px;
  }
  .about-play-btn {
    --btn-size: 52px;
    width: var(--btn-size);
    height: var(--btn-size);
  }
}

/* Modal for demo iframe */
.demo-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}
.demo-modal.active {
  display: flex;
}
.demo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.demo-content {
  position: relative;
  width: 90%;
  max-width: 1100px;
  background: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 10;
}
.demo-header {
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem;
}
.demo-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.25rem 0.6rem;
  color: var(--dark-gray);
}
.demo-iframe {
  width: 100%;
  height: 70vh;
  border: none;
  display: block;
}

@media (max-width: 800px) {
  .demo-content {
    width: 98%;
    height: 86vh;
  }
  .demo-iframe {
    height: 74vh;
  }
}

.about-image-placeholder {
  width: 100%;
  height: 300px;
  background-color: var(--primary-light);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 1.2rem;
}

/* Features Section */
.features {
  padding: 4rem 0;
  background-color: var(--white);
  text-align: center;
}

.features h2 {
  margin-bottom: 1rem;
}

.features > p {
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--medium-gray);
}

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

.feature-item {
  padding: 2rem;
  background-color: var(--light-gray);
  border-radius: var(--border-radius-md);
  text-align: center;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
}

.feature-item h3 {
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.feature-item p {
  color: var(--medium-gray);
}

/* Footer */
.footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

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

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

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

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

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

.footer-disclaimer {
  background-color: var(--primary-blue);
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--white);
}

/* Contact Form */
.contact-section {
  padding: 4rem 0;
  background-color: var(--white);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--light-gray);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-gray);
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.form-check input {
  margin-top: 0.3rem;
  margin-right: 0.5rem;
}

.form-check label {
  font-size: 0.9rem;
  color: var(--medium-gray);
}

/* Page Content */
.page-header {
  padding: 3rem 0;
  background-color: var(--primary-blue);
  color: var(--white);
  text-align: center;
}

.page-content {
  padding: 3rem 0;
  background-color: var(--white);
}

.page-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-content p {
  margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.4rem;
    line-height: 1.15;
    word-break: break-word;
    letter-spacing: 0.01em;
    margin-bottom: 1.1rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .hero {
    padding: 2.2rem 0 1.6rem;
  }
  .hero-content {
    padding: 0 0.5rem;
  }
  .hero-subtitle {
    font-size: 1.08rem;
    margin-bottom: 1.5rem;
  }
  .btn {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
  }
  .hero-image-placeholder {
    height: 140px;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-item {
    margin: 1rem 0;
  }
  .nav-toggle {
    display: block;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .about-content {
    flex-direction: column;
  }
}
