/* 
  Brand: fablenexaro.cyou
  Year: 2026
  Theme: Farm Slot Social Casino 
*/

:root {
  /* Core Natural Farm Palette */
  --sky-blue: #9ebdd4;
  --earth-beige: #e6dfd5;
  --muted-green: #899c78;
  --dusty-olive: #69785a;
  --wood-brown: #8a6c50;
  --sunlight-gold: #f2ce72;
  --fresh-leaf: #82bc59;
  
  /* Text Colors (No harsh blacks) */
  --text-primary: #3d352b;
  --text-secondary: #5e574f;
  
  /* Surface / Glass */
  --glass-bg: rgba(245, 241, 235, 0.65);
  --glass-border: rgba(242, 206, 114, 0.3);
  --glass-shadow: rgba(61, 53, 43, 0.05);

  /* Gradients */
  --btn-gradient: linear-gradient(135deg, var(--sunlight-gold), var(--fresh-leaf));
  --sky-gradient: linear-gradient(180deg, var(--sky-blue) 0%, var(--earth-beige) 100%);
  
  /* Layout */
  --max-width: 1400px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--sky-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--wood-brown);
  transition: var(--transition);
}

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

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

section {
  padding: 100px 0;
  position: relative;
}

@media (max-width: 991px) {
  section { padding: 70px 0; }
}

@media (max-width: 767px) {
  section { padding: 50px 0; }
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

/* Typography */
.display-1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
.display-2 { font-size: clamp(2rem, 4vw, 3rem); }
.lead { font-size: 1.125rem; color: var(--text-secondary); }
.legal-text { font-size: 0.875rem; color: var(--text-secondary); opacity: 0.8; }

/* Glass Components */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--glass-shadow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background: var(--btn-gradient);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(242, 206, 114, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(130, 188, 89, 0.4);
  filter: brightness(1.05);
}

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

.btn-secondary:hover {
  background: var(--muted-green);
  color: var(--earth-beige);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
}

.header.scrolled {
  padding: 10px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo svg {
  width: 32px;
  height: 32px;
  fill: var(--sunlight-gold);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sunlight-gold);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
  background: var(--fresh-leaf);
}

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

.mobile-menu-btn div {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/images/sunlit-farm-landscape.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.4;
  z-index: -2;
  animation: slowZoom 20s linear infinite alternate;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(230, 223, 213, 0.2) 0%, var(--earth-beige) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  z-index: 1;
  animation: fadeInUp 1s ease-out forwards;
}

.legal-badge {
  display: inline-block;
  background: rgba(245, 241, 235, 0.8);
  border: 1px solid var(--glass-border);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dusty-olive);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

/* Game Section */
.game-section {
  background: var(--earth-beige);
  position: relative;
  z-index: 2;
}

.game-wrapper {
  max-width: 1300px; /* 85-90% scale */
  margin: 0 auto;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 50px rgba(61, 53, 43, 0.1), 0 0 0 1px var(--glass-border);
  transition: var(--transition);
  position: relative;
}

.game-wrapper::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(135deg, var(--sunlight-gold), transparent, var(--fresh-leaf));
  border-radius: calc(var(--radius-lg) + 2px);
  z-index: -1;
  opacity: 0.5;
  filter: blur(10px);
  transition: var(--transition);
}

.game-wrapper:hover {
  transform: translateY(-5px) scale(1.01);
}

.game-wrapper:hover::before {
  opacity: 0.8;
  filter: blur(15px);
}

.game-frame-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--dusty-olive);
}

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

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.feature-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px var(--glass-shadow);
  border-color: var(--sunlight-gold);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(242, 206, 114, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wood-brown);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Stats Section */
.stats-section {
  background: rgba(245, 241, 235, 0.4);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
  padding: 30px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--dusty-olive);
  margin-bottom: 10px;
}

/* Internal Pages Structure */
.page-hero {
  padding: 180px 0 80px;
  text-align: center;
  background-image: url('assets/images/soft-clouds-sky-bg.webp');
  background-size: cover;
  background-position: center;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(230, 223, 213, 0.6) 0%, var(--earth-beige) 100%);
}

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

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px;
  border-radius: var(--radius-lg);
}

.content-wrapper h2 {
  color: var(--dusty-olive);
  margin-top: 2rem;
}

/* Contact Form */
.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(138, 108, 80, 0.2);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--sunlight-gold);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(242, 206, 114, 0.2);
}

/* Responsible Gaming Grid */
.rg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.rg-card {
  padding: 30px;
  border-left: 4px solid var(--muted-green);
  text-align: left;
}

/* Footer */
.footer {
  background: var(--earth-beige);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(138, 108, 80, 0.1);
}

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

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 24px;
  color: var(--dusty-olive);
}

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

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

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--fresh-leaf);
}

.footer-legal-box {
  background: rgba(105, 120, 90, 0.05);
  border: 1px solid rgba(105, 120, 90, 0.1);
  padding: 24px;
  border-radius: var(--radius-md);
  margin-bottom: 40px;
  text-align: center;
}

.footer-legal-box p {
  font-size: 0.875rem;
  margin-bottom: 0;
  color: var(--text-secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(138, 108, 80, 0.1);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Particles / Ambient Animation */
.particles {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: var(--sunlight-gold);
  border-radius: 50%;
  opacity: 0.3;
  animation: floatUp 15s infinite linear;
}

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

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

@keyframes floatUp {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}

/* Media Queries */
@media (max-width: 991px) {
  .features-grid, .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .game-wrapper {
    max-width: 95%;
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  .features-grid, .stats-grid, .rg-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .game-wrapper {
    max-width: 100%;
    border-radius: var(--radius-sm);
  }
  .game-frame-container {
    border-radius: var(--radius-sm);
  }
  .display-1 { font-size: 2.2rem; }
}