:root {
  --deep-ocean: #041c2c;
  --tropical-blue: #0e7490;
  --lagoon-teal: #14b8a6;
  --sunset-orange: #fb923c;
  --golden-sand: #facc15;
  --coral-glow: #f97316;
  --palm-green: #22c55e;
  --soft-cream: #fefce8;
  --muted-aqua: #a7f3d0;
  
  --glass-bg: rgba(4, 28, 44, 0.6);
  --glass-border: rgba(20, 184, 166, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  --font-main: 'Poppins', sans-serif;
  --radius-lg: 20px;
  --radius-md: 16px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--deep-ocean);
  color: var(--soft-cream);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(circle at top center, var(--tropical-blue) 0%, var(--deep-ocean) 100%);
  background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  background: linear-gradient(to right, var(--soft-cream), var(--golden-sand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  color: var(--golden-sand);
  margin-bottom: 1.5rem;
}

p {
  color: var(--muted-aqua);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--soft-cream);
  transition: var(--transition);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(4, 28, 44, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(4, 28, 44, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--golden-sand);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 32px;
  width: auto;
}

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

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--golden-sand);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--lagoon-teal), var(--palm-green));
  color: var(--deep-ocean);
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.2), transparent);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.4);
  color: #fff;
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid var(--glass-border);
  color: var(--soft-cream);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--soft-cream);
  margin: 5px 0;
  transition: var(--transition);
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/caribbean-sunset-background-hero.webp');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(4, 28, 44, 0.4) 0%, rgba(4, 28, 44, 1) 100%);
  z-index: -1;
}

#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text .subtext {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--muted-aqua);
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

/* Game Section */
.game-section {
  position: relative;
  background: url('images/tropical-leaves-bg-overlay.webp') no-repeat center center;
  background-size: cover;
  background-blend-mode: overlay;
}

.game-wrapper {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--glass-shadow), 0 0 40px rgba(250, 204, 21, 0.1);
  margin: 0 auto;
  max-width: 1000px;
  position: relative;
}

.game-wrapper::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, var(--lagoon-teal), transparent, var(--sunset-orange));
  z-index: -1;
  border-radius: calc(var(--radius-lg) + 2px);
  opacity: 0.3;
}

.game-container {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
}

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

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
  border-color: rgba(250, 204, 21, 0.3);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  color: var(--soft-cream);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Content Pages (Legal, About, Contact) */
.page-hero {
  padding: 10rem 0 4rem;
  text-align: center;
  background: linear-gradient(to bottom, rgba(4, 28, 44, 0.2), var(--deep-ocean));
}

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

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--glass-shadow);
}

.glass-panel h3 {
  color: var(--golden-sand);
  margin: 2rem 0 1rem;
}

.glass-panel ul {
  list-style: none;
  margin-left: 1rem;
  margin-bottom: 1.5rem;
}

.glass-panel ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--muted-aqua);
}

.glass-panel ul li::before {
  content: '🌴';
  position: absolute;
  left: 0;
  font-size: 0.9rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--soft-cream);
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--soft-cream);
  font-family: var(--font-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--lagoon-teal);
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.2);
}

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

/* Footer */
footer {
  background: #02101a;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-brand p {
  margin-top: 1rem;
  max-width: 300px;
}

.footer-links h4 {
  color: var(--golden-sand);
  margin-bottom: 1.5rem;
}

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

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

.footer-links a:hover {
  color: var(--lagoon-teal);
}

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

.disclaimer {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  max-width: 800px;
  margin: 1rem auto 0;
}