/* Base Styles */
:root {
  --twilight-navy: #101B2D;
  --sky-glow-blue: #A0E9FF;
  --celestial-gold: #F5C542;
  --deep-space: #050914;
  --cosmic-violet: #8A4FFF;
  --nebula-pink: #FF6CAD;
  --star-white: #FFFFFF;
  --cloud-gray: #E0E6ED;
  
  --success: #4CAF50;
  --warning: #FF9800;
  --error: #F44336;
  
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;
  
  --header-height: 120px;
  --footer-height: 80px;
  --transition-speed: 0.4s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--twilight-navy);
  color: var(--star-white);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

h1 {
  font-size: 3.5rem;
  font-weight: 900;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: var(--space-3);
}

a {
  color: var(--sky-glow-blue);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

a:hover {
  color: var(--celestial-gold);
}

img {
  max-width: 100%;
}

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

/* Logo Styles */
.logo-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(160, 233, 255, 0.5));
  transition: filter var(--transition-speed) ease;
}

.logo-image:hover {
  filter: drop-shadow(0 0 15px rgba(160, 233, 255, 0.8));
}

/* Particles Background */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  background-color: var(--twilight-navy);
}

/* Header Styles */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: transform var(--transition-speed) ease;
}

.header-arc {
  position: relative;
  height: var(--header-height);
  background: linear-gradient(to bottom, rgba(16, 27, 45, 0.9), rgba(16, 27, 45, 0));
  border-bottom: 2px solid rgba(160, 233, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.header-arc::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: radial-gradient(ellipse at center, rgba(160, 233, 255, 0.2) 0%, rgba(160, 233, 255, 0) 70%);
  z-index: -1;
}

.logo-orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--sky-glow-blue) 0%, rgba(160, 233, 255, 0) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
  box-shadow: 0 0 20px rgba(160, 233, 255, 0.5);
  animation: pulse 4s infinite alternate;
}

.logo-orb img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

nav {
  width: 100%;
  max-width: 800px;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
}

.nav-link {
  color: var(--star-white);
  font-weight: 600;
  padding: var(--space-1) var(--space-2);
  position: relative;
  display: inline-block;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--celestial-gold);
  transition: width var(--transition-speed) ease;
}

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

/* Section Styles */
.section {
  min-height: 100vh;
  padding: calc(var(--header-height) + var(--space-6)) var(--space-4) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Hero Section */
#hero {
  background: linear-gradient(180deg, var(--twilight-navy) 0%, var(--deep-space) 100%);
  position: relative;
  text-align: center;
}

.hero-content {
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  margin-bottom: var(--space-3);
  font-size: 5rem;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: var(--space-5);
  color: var(--cloud-gray);
}

.glow-text {
  text-shadow: 0 0 10px rgba(160, 233, 255, 0.7), 
               0 0 20px rgba(160, 233, 255, 0.5), 
               0 0 30px rgba(160, 233, 255, 0.3);
}

.btn-arcade {
  display: inline-block;
  background: linear-gradient(135deg, var(--celestial-gold), #E2A92B);
  color: var(--deep-space);
  font-weight: 700;
  padding: var(--space-2) var(--space-4);
  border-radius: 30px;
  border: 2px solid var(--celestial-gold);
  box-shadow: 0 0 15px rgba(245, 197, 66, 0.5);
  transition: all var(--transition-speed) ease;
  font-size: 1.2rem;
  cursor: pointer;
}

.btn-arcade:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(245, 197, 66, 0.7);
  color: var(--deep-space);
}

/* About Section */
#about {
  background: linear-gradient(180deg, var(--deep-space) 0%, var(--twilight-navy) 100%);
  text-align: center;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
}

.about-content p {
  font-size: 1.2rem;
  line-height: 1.8;
}

.rune-divider {
  width: 100%;
  height: 40px;
  background: url('../images/rune-divider.png') center no-repeat;
  background-size: contain;
  margin: var(--space-4) 0;
}

/* Games Section */
#games {
  padding-top: var(--space-8);
  text-align: center;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
  max-width: 1200px;
  width: 100%;
  margin: var(--space-4) auto;
}

.game-card {
  background: rgba(5, 9, 20, 0.7);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-speed) ease, 
              box-shadow var(--transition-speed) ease;
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(160, 233, 255, 0.1);
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(160, 233, 255, 0.2);
}

.game-image {
  height: 200px;
  overflow: hidden;
}

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

.game-card:hover .game-image img {
  transform: scale(1.05);
}

.game-info {
  padding: var(--space-3);
}

.game-info h3 {
  margin-bottom: var(--space-2);
  color: var(--celestial-gold);
}

.game-info p {
  margin-bottom: var(--space-3);
  font-size: 0.9rem;
  color: var(--cloud-gray);
}

.btn-play {
  display: inline-block;
  background: linear-gradient(135deg, var(--sky-glow-blue), #6DCDFF);
  color: var(--deep-space);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: 20px;
  transition: all var(--transition-speed) ease;
  font-size: 0.9rem;
}

.btn-play:hover {
  background: linear-gradient(135deg, var(--celestial-gold), #E2A92B);
  color: var(--deep-space);
  transform: translateY(-2px);
}

/* Footer Styles */
footer {
  background-color: rgba(5, 9, 20, 0.9);
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(160, 233, 255, 0.2);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.footer-logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer-links ul {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
}

.footer-links a {
  color: var(--cloud-gray);
  transition: color var(--transition-speed) ease;
}

.footer-links a:hover,
.footer-links a.active {
  color: var(--celestial-gold);
}

.footer-copyright {
  color: var(--cloud-gray);
  font-size: 0.9rem;
}

/* Buttons */
.btn-back {
  display: inline-block;
  background: rgba(160, 233, 255, 0.1);
  color: var(--sky-glow-blue);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: 20px;
  border: 1px solid rgba(160, 233, 255, 0.3);
  transition: all var(--transition-speed) ease;
  margin-top: var(--space-4);
}

.btn-back:hover {
  background: rgba(160, 233, 255, 0.2);
  color: var(--star-white);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}