@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Colors - Base (Game UI style) */
  --bg-primary: #05080a;
  --bg-secondary: #0c141a;
  
  /* Glassmorphism */
  --glass-bg: rgba(12, 20, 26, 0.7);
  --glass-blur: 24px;
  
  /* Accents */
  --accent-gold: linear-gradient(135deg, #FACC15, #B45309);
  --accent-blue: linear-gradient(135deg, #0284C7, #0369A1);
  --accent-navy: linear-gradient(135deg, #0F172A, #1E293B);
  
  /* Glows */
  --glow-gold: rgba(250, 204, 21, 0.35);
  
  /* Typography Colors */
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;

  /* Typography Fonts */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing & Layout */
  --max-width: 1280px;
  --nav-width: 100px;
  --border-radius-lg: 18px;
  --border-radius-md: 18px;
  --border-radius-sm: 12px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 0%, var(--bg-secondary) 0%, var(--bg-primary) 80%);
  z-index: -2;
}

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

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

ul {
  list-style: none;
}

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

/* Typography Classes */
.text-gradient-gold {
  background: var(--accent-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 120px; /* Desktop spacing */
}

@media (max-width: 1024px) {
  .container { padding: 0 80px; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
}

/* Header - "Game Control Bar" */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px 0 140px; /* Offset for side nav */
  z-index: 100;
  background: rgba(5, 8, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(250, 204, 21, 0.15);
}

.header-center {
  flex-grow: 1;
}

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

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(6, 182, 212, 0.2));
  transition: filter 0.3s ease;
}

.logo:hover .brand-logo {
  filter: drop-shadow(0 4px 15px rgba(6, 182, 212, 0.5));
}

/* Side Navigation - Game HUD style */
.side-nav {
  position: fixed;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(250, 204, 21, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  z-index: 99;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(250, 204, 21, 0.05);
}

.side-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.side-nav a svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  transition: all 0.3s ease;
}

.side-nav a:hover, .side-nav a.active {
  color: #FACC15;
}

.side-nav a:hover svg, .side-nav a.active svg {
  stroke: url(#gold-gradient);
  filter: drop-shadow(0 0 8px var(--glow-gold));
}

@media (max-width: 1024px) {
  header { padding-left: 40px; }
  .side-nav {
    left: 0;
    top: auto;
    bottom: 0;
    transform: none;
    width: 100%;
    height: 70px;
    flex-direction: row;
    justify-content: space-around;
    padding: 0;
    border-radius: 24px 24px 0 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.btn-primary {
  background: var(--accent-gold);
  color: #1A0D00;
  box-shadow: 0 4px 15px var(--glow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--glow-gold);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(250, 204, 21, 0.4);
}

.btn-outline:hover {
  background: rgba(250, 204, 21, 0.1);
  border-color: #FACC15;
  box-shadow: 0 0 15px var(--glow-gold);
}

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

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('images/caribbean-pirates-slot-environment-bg.jpg'); /* Game related bg */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(5,8,10,0.4) 0%, rgba(5,8,10,0.95) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  animation: fadeUp 1s ease forwards;
}

.hero-artwork-wrapper {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.hero-artwork {
  max-width: 400px;
  width: 100%;
  filter: drop-shadow(0 10px 30px rgba(250, 204, 21, 0.3));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 700px;
  margin-inline: auto;
}

.hero-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.legal-notice-bar {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .hero { padding-left: 0; }
}

/* Game Section */
.game-section {
  padding: 120px 0;
  position: relative;
  z-index: 10;
}

.game-showcase-card {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid rgba(250, 204, 21, 0.2);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8), inset 0 0 40px rgba(250, 204, 21, 0.05);
}

.game-preview-wrapper {
  padding: 24px;
  background: linear-gradient(to bottom, rgba(20,30,40,0.8), rgba(5,8,10,0.9));
}

.game-frame-inner {
  background: #000;
  border-radius: var(--border-radius-sm);
  border: 2px solid rgba(250, 204, 21, 0.3);
  box-shadow: 0 0 30px rgba(0,0,0,0.9);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
}

.game-frame-inner iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.game-ui-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px;
  background: rgba(12, 20, 26, 0.95);
  border-top: 1px solid rgba(250, 204, 21, 0.1);
  border-bottom: 1px solid rgba(250, 204, 21, 0.1);
}

.game-title-group h2 {
  font-size: 2rem;
  margin-bottom: 4px;
}

.game-title-group p {
  color: var(--text-muted);
  font-size: 1rem;
}

.game-controls {
  display: flex;
  gap: 16px;
}

.how-to-play {
  padding: 30px 40px;
  background: rgba(5, 8, 10, 0.6);
}

.how-to-play h3 {
  color: #FACC15;
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-family: var(--font-heading);
}

.how-to-play p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 800px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .game-ui-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
  }
  .how-to-play {
    padding: 20px;
  }
}

/* Features Section */
.features-section {
  padding: 120px 0;
  position: relative;
}

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

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.feature-card {
  background: rgba(12, 20, 26, 0.6);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(250, 204, 21, 0.15);
  border-radius: var(--border-radius-lg);
  padding: 40px 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(250, 204, 21, 0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), inset 0 0 20px rgba(250, 204, 21, 0.1);
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(5, 8, 10, 0.8);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(250, 204, 21, 0.3);
  color: #FACC15;
}

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

.feature-card h4 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

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

/* Footer */
footer {
  background: #030507;
  padding: 80px 0 40px;
  border-top: 1px solid rgba(250, 204, 21, 0.1);
  position: relative;
  z-index: 10;
  padding-left: 100px; /* Offset for nav */
}

@media (max-width: 1024px) {
  footer { padding-left: 0; padding-bottom: 100px; }
}

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

.footer-brand .brand-logo {
  height: 56px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 20px;
  max-width: 300px;
}

.footer-brand p.footer-address {
  margin-top: 12px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h5 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: #fff;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: #FACC15;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-warning {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 24px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-content { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

/* Internal Pages Typography & Layout */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  background: url('images/caribbean-pirates-slot-ui-bg.jpg') center/cover no-repeat;
  position: relative;
  padding-left: 100px;
}

@media (max-width: 1024px) {
  .page-header { padding-left: 0; }
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(5, 8, 10, 0.8), var(--bg-primary));
}

.page-header-content {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 16px;
}

.content-section {
  padding: 80px 0;
  padding-left: 100px;
  min-height: 50vh;
}

@media (max-width: 1024px) {
  .content-section { padding-left: 0; }
}

.document-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--glass-bg);
  padding: 60px;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(250, 204, 21, 0.15);
}

.document-container h2 {
  font-size: 2rem;
  margin: 40px 0 20px;
  color: #FACC15;
}

.document-container h3 {
  font-size: 1.4rem;
  margin: 30px 0 16px;
}

.document-container p, .document-container ul {
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.document-container ul {
  padding-left: 24px;
  list-style: disc;
}

.document-container li {
  margin-bottom: 10px;
}

/* Forms */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: #FACC15;
  font-size: 0.95rem;
}

.form-group input, .form-group textarea {
  background: rgba(5, 8, 10, 0.6);
  border: 1px solid rgba(250, 204, 21, 0.2);
  border-radius: var(--border-radius-sm);
  padding: 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: #FACC15;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.2);
}

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

/* SVG Gradients definitions hidden */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
}