:root {
  --color-deep-ocean: #021B38;
  --color-ocean-blue: #053B78;
  --color-treasure-gold: #F8C537;
  --color-golden-amber: #FFB100;
  --color-pearl-white: #F7FAFF;
  --color-coral-cyan: #28D7FF;
  --color-ocean-glow: #1CA8FF;
  --color-surface: #08264A;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #D6E7F5;
  --color-text-muted: #9CB5CC;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-footer-top: #042042;
  --color-footer-bottom: #01152D;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --transition-speed: 0.3s;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-deep-ocean);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--color-text-secondary);
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--color-coral-cyan);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--color-pearl-white);
  line-height: 1.2;
  margin-bottom: 15px;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
}

h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 40px;
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--color-text-secondary);
  margin-bottom: 15px;
}

.text-highlight {
  color: var(--color-treasure-gold);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 30px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-speed);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-treasure-gold), var(--color-golden-amber));
  color: #000;
  box-shadow: 0 4px 15px rgba(248, 197, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(248, 197, 55, 0.5);
  color: #000;
}

.btn-secondary {
  background: transparent;
  color: var(--color-coral-cyan);
  border: 2px solid var(--color-coral-cyan);
}

.btn-secondary:hover {
  background: rgba(40, 215, 255, 0.1);
  color: var(--color-coral-cyan);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
  background: rgba(2, 27, 56, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-speed);
}

header.scrolled {
  background: rgba(5, 59, 120, 0.95);
}

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

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-treasure-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links li a {
  font-weight: 500;
  font-size: 0.95rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-pearl-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 120px 0 60px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, var(--color-ocean-blue) 0%, var(--color-deep-ocean) 80%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('images/photo-1544551763-46a013bb70d5.png') center/cover;
  opacity: 0.15;
  z-index: 0;
  mix-blend-mode: overlay;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image img {
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid var(--color-border);
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(28,168,255,0.2) 0%, transparent 70%);
  z-index: -1;
}

/* Game Section */
.game-section {
  padding: 80px 0;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.game-container {
  width: 75%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  background: #000;
  aspect-ratio: 16 / 9;
}

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

/* Adventure Features */
.features {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  transition: transform var(--transition-speed);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-ocean-glow);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: rgba(5, 59, 120, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.feature-icon img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

/* Ocean Statistics */
.stats {
  background-color: var(--color-ocean-blue);
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-treasure-gold);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-secondary);
}

/* Why Play */
.why-play {
  padding: 80px 0;
}

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

.play-card, .reward-card {
  background: var(--color-surface);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-speed);
}

.play-card:hover, .reward-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.card-img-container {
  height: 200px;
  overflow: hidden;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed);
}

.play-card:hover .card-img-container img, 
.reward-card:hover .card-img-container img {
  transform: scale(1.05);
}

.card-content {
  padding: 25px;
}

.card-content h3 {
  margin-bottom: 10px;
  color: var(--color-coral-cyan);
}

/* Rewards Section */
.rewards {
  padding: 80px 0;
  background-color: var(--color-surface);
}

/* About Section */
.about {
  padding: 80px 0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

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

/* FAQ Section */
.faq {
  padding: 80px 0;
  background-color: var(--color-surface);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 10px;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-pearl-white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-coral-cyan);
  transition: transform var(--transition-speed);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) ease-out;
}

.faq-answer p {
  padding-bottom: 20px;
}

/* Call To Action */
.cta {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(rgba(2, 27, 56, 0.8), rgba(2, 27, 56, 0.9)), url('images/photo-1682687220063-4742bd7fd538.png') center/cover;
  border-top: 1px solid var(--color-border);
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 20px;
  font-size: 2.8rem;
}

/* Footer */
footer {
  background-color: var(--color-footer-top);
  color: var(--color-text-secondary);
}

.footer-top {
  padding: 60px 0;
}

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

.footer-col h4 {
  color: var(--color-treasure-gold);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  margin-top: 15px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.05);
  color: var(--color-pearl-white);
  border-radius: 4px 0 0 4px;
  outline: none;
}

.newsletter-form button {
  padding: 10px 20px;
  background: var(--color-ocean-glow);
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: bold;
}

.footer-treasure-img {
  margin-top: 20px;
  max-width: 100px;
  opacity: 0.8;
}

.footer-bottom {
  background-color: var(--color-footer-bottom);
  border-top: 2px solid var(--color-treasure-gold);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-bottom p {
  margin-bottom: 5px;
  color: inherit;
}

/* Forms Content Pages */
.page-header {
  padding: 120px 0 40px;
  background: var(--color-surface);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.content-page {
  padding: 60px 0;
  background: var(--color-deep-ocean);
}

.content-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-surface);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.content-container h2 {
  text-align: left;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: var(--color-treasure-gold);
}

.content-container ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--color-text-secondary);
}

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

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

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

.form-group input, .form-group textarea {
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-pearl-white);
  font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-coral-cyan);
  background: rgba(255,255,255,0.08);
}

.form-status {
  padding: 15px;
  border-radius: 8px;
  display: none;
  text-align: center;
  font-weight: bold;
}

.form-status.loading {
  display: block;
  background: rgba(255,255,255,0.1);
  color: var(--color-pearl-white);
}

.form-status.success {
  display: block;
  background: rgba(40, 215, 255, 0.2);
  color: var(--color-coral-cyan);
  border: 1px solid var(--color-coral-cyan);
}

.form-status.error {
  display: block;
  background: rgba(255, 50, 50, 0.2);
  color: #ff6b6b;
  border: 1px solid #ff6b6b;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 20px;
  border-radius: 12px;
  max-width: 350px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-text {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
}

.cookie-accept {
  background: var(--color-treasure-gold);
  color: #000;
}

.cookie-reject {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .game-container {
    width: 90%;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .stats-container {
    flex-direction: column;
    gap: 30px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--color-surface);
    flex-direction: column;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .newsletter-form {
    justify-content: center;
  }
  .footer-treasure-img {
    margin: 20px auto 0;
  }
}

@media (max-width: 480px) {
  .game-container {
    width: 100%;
    border-radius: 0;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 2.2rem;
  }
  .cookie-banner {
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }
}