/* Main Styles for pinewhisper.xyz */
:root {
  --primary-color: #7fc6a4;
  --secondary-color: #5d7599;
  --accent-color: #f7b267;
  --text-color: #333333;
  --light-text: #ffffff;
  --dark-bg: #2a3b4c;
  --light-bg: #f9f9f9;
  --footer-bg: #1d2b3a;
  --card-bg: #ffffff;
  --border-radius: 12px;
  --box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Header & Navigation */
header {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 1.2rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  margin-right: 10px;
}

.logo-text {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--light-text);
  letter-spacing: 1px;
}

.logo-text span {
  color: var(--primary-color);
}

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

.nav-item {
  margin-left: 2rem;
  position: relative;
}

.nav-link {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  padding-bottom: 5px;
}

.nav-link:hover {
  color: var(--primary-color);
}

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

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--light-text);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(42, 59, 76, 0.85), rgba(42, 59, 76, 0.85)), url('../img/hero.jpg');
  background-position: center;
  background-size: cover;
  height: 100vh;
  display: flex;
  align-items: center;
  color: var(--light-text);
  text-align: center;
  position: relative;
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.hero-title span {
  color: var(--primary-color);
}

.hero-text {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  background-color: var(--primary-color);
  color: var(--light-text);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  margin-left: 15px;
}

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

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--light-text);
  font-size: 0.9rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.scroll-down:hover {
  opacity: 1;
}

.scroll-down i {
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* About Section */
.about {
  padding: 100px 0;
  background-color: var(--dark-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--light-text);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.section-title p {
  color: var(--light-text);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.about-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  align-items: center;
}

.about-img {
  position: relative;
}

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

.about-img::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 5px solid var(--primary-color);
  border-radius: var(--border-radius);
  z-index: -1;
}

.about-text h3 {
  font-size: 2rem;
  color: var(--light-text);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 25px;
  color: var(--light-text);
}

/* Features Section */
.features {
  padding: 100px 0;
  background-color: var(--light-bg);
  color: var(--text-color);
}

.features .section-title h2 {
  color: var(--text-color);
}

.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-box {
  background: rgb(255, 255, 255);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: all 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(127, 198, 164, 0.2);
  border-radius: 50%;
}

.feature-icon i {
  font-size: 2rem;
  color: var(--primary-color);
}

.feature-box h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.feature-box p {
  opacity: 0.8;
}

/* Game Section */
.game-section {
  padding: 100px 0;
  background-color: var(--light-bg);
}

.game-disclaimer {
  max-width: 1000px;
  margin: 0 auto 40px;
  padding: 20px;
  background-color: rgba(93, 117, 153, 0.1);
  border-radius: var(--border-radius);
  text-align: center;
}

.game-disclaimer h4 {
  font-size: 1.2rem;
  color: var(--dark-bg);
  margin-bottom: 10px;
}

.game-disclaimer p {
  font-size: 1rem;
  opacity: 0.9;
}

.game-container {
  margin: 0 auto;
  max-width: 1000px;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

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

/* Contact Section */
.contact {
  padding: 100px 0;
  background: linear-gradient(rgba(42, 59, 76, 0.9), rgba(42, 59, 76, 0.9)), url('../img/contact-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--light-text);
}

.contact .section-title h2 {
  color: var(--light-text);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.contact-info {
  padding: 40px;
  background-color: rgba(29, 43, 58, 0.7);
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.contact-info-item i {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-right: 15px;
  margin-top: 5px;
}

.contact-info-text {
  font-size: 1rem;
}

.contact-info-text h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-info-text p {
  opacity: 0.8;
}

.contact-form {
  padding: 40px;
}

.contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--light-text);
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: var(--light-text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  outline: none;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--light-text);
  padding: 70px 0 20px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 15px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}

.footer-about p {
  margin-bottom: 20px;
  opacity: 0.7;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-text);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

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

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--light-text);
  opacity: 0.7;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

.footer-links a:hover {
  color: var(--primary-color);
  opacity: 1;
  padding-left: 5px;
}

.footer-disclaimer {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: var(--border-radius);
  margin-top: 20px;
}

.footer-disclaimer p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Disclaimer Popup */
.disclaimer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.disclaimer-popup {
  background-color: var(--dark-bg);
  border: 1px solid var(--primary-color);
  max-width: 500px;
  width: 90%;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: var(--light-text);
}

.disclaimer-popup h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.disclaimer-popup p {
  margin-bottom: 30px;
  line-height: 1.8;
}

.disclaimer-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--light-text);
}

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

/* Legal Pages */ /* Restrict large page wrapper padding to section elements only so inner divs with the same class don't inherit it */
section.legal-section {
  padding: 100px 0 60px;
  background-color: var(--light-bg);
}

/* Legal card: give a bit more horizontal padding than vertical to improve readability */
.legal-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--card-bg);
  padding: 36px 48px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Ensure legal-content wrapper spacing is modest (page-level spacing) */
.legal-content {
  padding: 60px 0;
}

.legal-container h2 {
  font-size: 2.5rem;
  color: var(--dark-bg);
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.legal-container h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.legal-content h3 {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin: 40px 0 15px;
}

.legal-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.legal-content ul {
  margin-bottom: 25px;
  margin-left: 20px;
}

.legal-content li {
  margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .game-frame {
    height: 500px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 0;
  }
  
  .hamburger {
    display: block;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--dark-bg);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 20px 0;
  }
  
  .nav-menu.active {
    top: 70px;
  }
  
  .nav-item {
    margin: 15px 0;
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .hero-text {
    font-size: 1rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-img {
    margin-bottom: 30px;
    order: -1;
  }
  
  .about-img::before {
    display: none;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .legal-container {
    padding: 30px;
  }
  
  .legal-container h2 {
    font-size: 2rem;
  }
  
  .game-frame {
    height: 400px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 20px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .btn {
    padding: 12px 25px;
    font-size: 0.8rem;
  }
  
  .game-frame {
    height: 300px;
  }
}

/* Utility Classes */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

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