/* Global Styles & Variables */
:root {
  /* Color Palette */
  --forest-green: #2C5530;
  --khaki: #BFA265;
  --burnt-orange: #C35831;
  --weathered-brown: #6D4C3D;
  --brassy-gold: #D1AC00;
  --compass-red: #B22222;
  --light-parchment: #F5E8D0;
  --dark-parchment: #E8D5B5;
  --text-dark: #2A2118;
  --text-light: #F5E8D0;
  
  /* Fonts */
  --font-heading: 'Cinzel', serif;
  --font-body: 'EB Garamond', serif;
  --font-accent: 'Marcellus', serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-round: 50%;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--light-parchment);
  overflow-x: hidden;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md) 0;
}

/* Texture Overlays */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c4S8ytAAAAMklEQVR4nO3BAQEAAACCIP+vbkhAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEDuhwFBrAEHlgAAAABJRU5ErkJggg==');
  opacity: 0.04;
  z-index: 9999;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--burnt-orange);
  transform: scaleX(0.6);
  transform-origin: center;
  transition: transform 0.3s ease;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-sm);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  z-index: 1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background-color: var(--burnt-orange);
  color: var(--text-light);
  box-shadow: 0 4px 8px rgba(195, 88, 49, 0.3);
}

.btn-primary:hover {
  background-color: #A5472A;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(195, 88, 49, 0.4);
}

.btn-play {
  background-color: var(--brassy-gold);
  color: var(--text-dark);
  box-shadow: 0 4px 8px rgba(209, 172, 0, 0.3);
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
}

.btn-play:hover {
  background-color: #B89800;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(209, 172, 0, 0.4);
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #000 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
}

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

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

.logo h1 {
  font-family: var(--font-heading);
  color: var(--text-light);
  font-size: 1.8rem;
  margin-bottom: 0;
  margin-left: var(--spacing-sm);
  letter-spacing: 2px;
}

/* Compass Logo */
.compass {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D1AC00, #BFA265);
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.compass::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-radius: 50%;
  background: var(--weathered-brown);
  z-index: 1;
}

.compass-inner {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--light-parchment);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 5s infinite;
}

.compass-arrow {
  width: 2px;
  height: 22px;
  background: linear-gradient(to bottom, var(--compass-red) 0%, var(--compass-red) 45%, var(--weathered-brown) 45%, var(--weathered-brown) 55%, var(--forest-green) 55%, var(--forest-green) 100%);
  position: absolute;
  animation: rotate 20s linear infinite;
  transform-origin: center center;
}

.compass-arrow::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 8px;
  height: 8px;
  background-color: var(--compass-red);
  border-radius: 50%;
}

.compass.small {
  width: 30px;
  height: 30px;
}

.compass.small .compass-inner {
  width: 22px;
  height: 22px;
}

.compass.small .compass-arrow {
  height: 16px;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(90deg); }
  50% { transform: rotate(180deg); }
  75% { transform: rotate(270deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
}

.nav-links li a {
  color: var(--text-light);
  font-family: var(--font-accent);
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brassy-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links li a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin-bottom: 5px;
  position: relative;
  background: var(--text-light);
  border-radius: 3px;
  z-index: 1;
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  background-image: url('/assets/bnrrr-P.jpeg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  color: var(--text-light);
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(191,162,101,0.15)" stroke-width="0.5" stroke-dasharray="5,5"/></svg>');
  opacity: 0.8;
  z-index: 1;
}

.hero-content {
  margin-top: 70px;
  max-width: 600px;
  position: relative;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.8);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: fadeIn 1.5s ease;
  border: 2px solid var(--brassy-gold);
}

.hero-title {
  font-size: 3 rem;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-accent);
  opacity: 0.9;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Features Section */
.features-section {
  background-color: var(--light-parchment);
  position: relative;
  overflow: hidden;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><circle cx="100" cy="100" r="80" fill="none" stroke="rgba(109,76,61,0.1)" stroke-width="0.5"/><circle cx="100" cy="100" r="60" fill="none" stroke="rgba(109,76,61,0.1)" stroke-width="0.5"/><circle cx="100" cy="100" r="40" fill="none" stroke="rgba(109,76,61,0.1)" stroke-width="0.5"/><line x1="20" y1="100" x2="180" y2="100" stroke="rgba(109,76,61,0.1)" stroke-width="0.5"/><line x1="100" y1="20" x2="100" y2="180" stroke="rgba(109,76,61,0.1)" stroke-width="0.5"/></svg>');
  opacity: 0.6;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
  z-index: 2;
}

.section-header h2 {
  color: #000 ;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.section-header p {
  color: var(--weathered-brown);
  font-size: 1.2rem;
  font-family: var(--font-accent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  position: relative;
  z-index: 2;
}

.feature-card {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border: 1px solid var(--khaki);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(191,162,101,0.2)" stroke-width="0.5" stroke-dasharray="5,5"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(109, 76, 61, 0.2);
}

.feature-icon {
  background-color: #000 !important;
  color: var(--light-parchment);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-sm);
  font-size: 1.8rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
  color: var(--weathered-brown);
  margin-bottom: var(--spacing-sm);
  position: relative;
  z-index: 2;
}

.feature-card p {
  color: var(--text-dark);
  font-size: 1rem;
  position: relative;
  z-index: 2;
}

/* About Section */
.about-section {
  background-color: var(--weathered-brown);
  color: var(--text-light);
  position: relative;
}

.about-section .section-header h2 {
  color: var(--light-parchment);
}

.about-section .section-header p {
  color: var(--dark-parchment);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
  border-radius: var(--radius-md);
}

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

.image-frame {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 8px solid var(--brassy-gold);
  border-radius: var(--radius-md);
  pointer-events: none;
}

.about-text {
  font-size: 1.1rem;
}

.logbook-entry {
  background-color: var(--dark-parchment);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transform: rotate(-2deg);
}

.logbook-entry::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 1px dashed rgba(109, 76, 61, 0.3);
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.logbook-entry h3 {
  font-family: var(--font-heading);
  margin-bottom: var(--spacing-sm);
  color: var(--burnt-orange);
}

.signature {
  font-family: 'Marcellus', cursive;
  text-align: right;
  margin-top: var(--spacing-md);
  font-style: italic;
  color: var(--forest-green);
}

/* Games Section */
.games-section {
  background-color: #000;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.games-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"><path d="M0,150 Q75,50 150,150 T300,150" fill="none" stroke="rgba(245,232,208,0.05)" stroke-width="2" /></svg>');
  background-size: 300px;
  opacity: 0.5;
}

.games-section .section-header h2 {
  color: var(--khaki);
}

.games-section .section-header p {
  color: var(--light-parchment);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  position: relative;
  z-index: 2;
  margin-bottom: var(--spacing-lg);
}

.game-card {
  background-color: var(--light-parchment);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  position: relative;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(191, 162, 101, 0.1) 0%, rgba(191, 162, 101, 0) 20%, rgba(191, 162, 101, 0) 80%, rgba(191, 162, 101, 0.1) 100%);
  pointer-events: none;
  z-index: 1;
}

.game-card:hover {
  transform: translateY(-10px);
}

.game-image {
  height: 200px;
  overflow: hidden;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.game-info {
  padding: var(--spacing-md);
  color: var(--text-dark);
  text-align: center;
  position: relative;
  z-index: 2;
}

.game-info h3 {
  color: var(--weathered-brown);
  margin-bottom: var(--spacing-xs);
}

.game-info p {
  margin-bottom: var(--spacing-sm);
  font-size: 0.9rem;
}

/* Disclaimer */
.disclaimer {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.compass-icon {
  margin-right: var(--spacing-sm);
  font-size: 1.5rem;
  color: var(--brassy-gold);
}

.disclaimer p {
  font-size: 0.9rem;
  margin-bottom: 0;
  font-style: italic;
}

/* Contact Section */
.contact-section {
  background-color: var(--khaki);
  color: var(--text-dark);
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect x="0" y="0" width="50" height="50" fill="rgba(109,76,61,0.05)"/><rect x="50" y="50" width="50" height="50" fill="rgba(109,76,61,0.05)"/></svg>');
  opacity: 0.3;
}

.contact-section .section-header h2 {
  color: #000;
}

.contact-section .section-header p {
  color: #000;
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.contact-form-container {
  background-color: var(--light-parchment);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  position: relative;
}

.contact-form-container::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px dashed rgba(109, 76, 61, 0.2);
  border-radius: calc(var(--radius-md) - 5px);
  pointer-events: none;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: #000;
  font-family: var(--font-accent);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--weathered-brown);
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body);
  color: var(--text-dark);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--burnt-orange);
  box-shadow: 0 0 0 2px rgba(195, 88, 49, 0.2);
  outline: none;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.info-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
}

.info-icon {
  margin-bottom: var(--spacing-sm);
  font-size: 1.8rem;
  color: #000;
}

.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xs);
  color: #000;
}

.info-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Footer */
.footer {
  background-color: #000;
  color: var(--text-light);
  padding: var(--spacing-md) 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--forest-green), var(--brassy-gold), var(--burnt-orange), var(--brassy-gold), var(--forest-green));
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

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

.footer-logo p {
  margin-left: var(--spacing-sm);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 0;
}

.footer-links ul {
  display: flex;
  gap: var(--spacing-md);
}

.footer-links a {
  color: var(--light-parchment);
  font-size: 0.9rem;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--brassy-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.footer-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-social {
  display: flex;
  gap: var(--spacing-sm);
}

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

.social-icon:hover {
  background-color: var(--brassy-gold);
  color: var(--text-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: var(--spacing-md);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(245, 232, 208, 0.7);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}