:root {
  --primary-bg: #040507;
  --secondary-bg: #0c1a13;
  --card-bg: rgba(255, 255, 255, 0.04);
  --emerald-green: #22c55e;
  --royal-green: #166534;
  --gold-crown: #facc15;
  --deep-gold: #ca8a04;
  --mystic-glow: #4ade80;
  --primary-text: #ecfdf5;
  --secondary-text: #86efac;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --glass-border: rgba(74, 222, 128, 0.2);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--primary-bg);
  color: var(--primary-text);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 50% 0%, var(--secondary-bg) 0%, var(--primary-bg) 70%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gold-crown);
}

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

a:hover {
  color: var(--mystic-glow);
}

/* Typography Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* -------------------------------------
   HEADER NAVIGATION
-------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(12, 26, 19, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--gold-crown);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

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

.main-nav a {
  color: var(--primary-text);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  font-family: var(--font-body);
}

.main-nav a:hover {
  color: var(--gold-crown);
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  color: var(--emerald-green);
  font-size: 2rem;
  cursor: pointer;
}

/* -------------------------------------
   MAIN CONTENT AREA
-------------------------------------- */
.main-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 80px; /* offset for fixed header */
}

/* -------------------------------------
   HERO SECTION
-------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
  background: url('images/irish-emerald-casino-bg.png') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(4,5,7,0.7) 0%, rgba(12,26,19,0.8) 100%);
  z-index: 1;
}

/* Fog & Light Rays */
.hero-rays {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(74, 222, 128, 0.1) 0%, transparent 60%);
  animation: rotate-rays 30s linear infinite;
  z-index: 2;
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 3;
  background-image: radial-gradient(rgba(250, 204, 21, 0.4) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  animation: float-particles 20s linear infinite;
  pointer-events: none;
}

.hero-glass-box {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-top: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 24px;
  padding: 3.5rem 2rem;
  max-width: 700px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 30px rgba(34, 197, 94, 0.05);
  animation: fade-in-up 1s ease-out;
}

.legal-badge {
  display: inline-block;
  background: rgba(4, 5, 7, 0.6);
  border: 1px solid var(--deep-gold);
  color: #d1d5db;
  font-size: 0.8rem;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 15px rgba(202, 138, 4, 0.2);
}

.hero-glass-box h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--gold-crown), var(--emerald-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

.hero-glass-box p {
  font-size: 1.1rem;
  color: var(--secondary-text);
  margin-bottom: 2.5rem;
}

/* -------------------------------------
   BUTTON SYSTEM
-------------------------------------- */
.btn-primary {
  display: inline-block;
  background: linear-gradient(45deg, var(--emerald-green), var(--deep-gold));
  color: var(--primary-bg);
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: all 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 25px rgba(250, 204, 21, 0.4);
  color: #fff;
}

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

/* -------------------------------------
   GAME SECTION
-------------------------------------- */
.game-section {
  padding: 5rem 2rem;
  background: var(--primary-bg);
  position: relative;
  text-align: center;
}

.game-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald-green), transparent);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(250, 204, 21, 0.2);
}

.section-subtitle {
  color: var(--secondary-text);
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.game-wrapper {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  border-radius: 20px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(250, 204, 21, 0.2));
  box-shadow: 0 0 50px rgba(34, 197, 94, 0.15);
  animation: glow-pulse 4s infinite alternate;
}

.game-wrapper iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 15px;
  background: var(--secondary-bg);
  display: block;
}

/* -------------------------------------
   FEATURES SECTION
-------------------------------------- */
.features-section {
  padding: 5rem 2rem;
  background: var(--secondary-bg);
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.15);
  border-color: var(--gold-crown);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--mystic-glow);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 15px rgba(74, 222, 128, 0.5);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--primary-text);
  font-family: var(--font-body);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--secondary-text);
}

/* -------------------------------------
   CONTENT PAGES (LEGAL, ABOUT, CONTACT)
-------------------------------------- */
.page-header {
  padding: 5rem 2rem 3rem;
  background: linear-gradient(180deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
  text-align: center;
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.content-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.content-box {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.content-box h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: var(--emerald-green);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.5rem;
}

.content-box h2:first-child {
  margin-top: 0;
}

.content-box p {
  margin-bottom: 1.5rem;
  color: #d1d5db;
}

.content-box ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: #d1d5db;
}

.content-box li {
  margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--secondary-text);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--primary-text);
  font-family: var(--font-body);
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--emerald-green);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

/* -------------------------------------
   FOOTER
-------------------------------------- */
.site-footer {
  background: #020304;
  border-top: 1px solid rgba(250, 204, 21, 0.1);
  padding: 4rem 2rem 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto 3rem auto;
}

.footer-col h4 {
  font-family: var(--font-body);
  color: var(--gold-crown);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-col p, .footer-col address {
  color: var(--secondary-text);
  font-style: normal;
  line-height: 1.8;
}

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

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

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

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #6b7280;
  font-size: 0.9rem;
}

.footer-disclaimer {
  max-width: 800px;
  margin: 0 auto 1rem auto;
  font-size: 0.85rem;
  color: #9ca3af;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1rem;
  border-radius: 8px;
  background: rgba(0,0,0,0.3);
}

/* -------------------------------------
   ANIMATIONS
-------------------------------------- */
@keyframes rotate-rays {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes float-particles {
  0% { background-position: 0 0; }
  100% { background-position: 100px 100px; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glow-pulse {
  from { box-shadow: 0 0 30px rgba(34, 197, 94, 0.1); }
  to { box-shadow: 0 0 60px rgba(250, 204, 21, 0.25); }
}

/* -------------------------------------
   RESPONSIVE DESIGN
-------------------------------------- */
@media (max-width: 992px) {
  .hero-glass-box h1 { font-size: 2.8rem; }
  .game-wrapper iframe { height: 500px; }
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }
  
  .main-nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(12, 26, 19, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
  }
  
  .menu-toggle:checked ~ .main-nav {
    transform: translateY(0);
  }
  
  .main-nav .nav-menu {
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
  }

  .hero-glass-box h1 { font-size: 2.2rem; }
  .hero-glass-box { padding: 2rem 1.5rem; }
  
  .game-wrapper iframe { height: 400px; }
}