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

:root {
  /* Core Colors */
  --bg-primary: #0a080c;
  --bg-secondary: #141218;
  --bg-card: rgba(255, 248, 225, 0.04);
  
  /* Gem & Egypt Accents */
  --gem-purple: #a855f7;
  --sapphire-blue: #3b82f6;
  --emerald-glow: #10b981;
  --crystal-light: #c4b5fd;
  --golden-sand: #eab308;
  --scarab-green: #2dd4bf;
  
  /* Typography Colors */
  --text-primary: #f5f3ef;
  --text-secondary: #b9b1a2;

  /* Fonts */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* UI Elements */
  --sidebar-width: 80px;
  --border-gold: rgba(234, 179, 8, 0.2);
  --border-purple: rgba(168, 85, 247, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(168, 85, 247, 0.05), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(234, 179, 8, 0.05), transparent 25%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--golden-sand);
  letter-spacing: 1px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Layout System */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Slim Left Icon Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: rgba(20, 18, 24, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid var(--border-gold);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
  z-index: 1000;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
}

.brand-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 3rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gem-purple), var(--golden-sand));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.3);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--text-primary);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  align-items: center;
}

.nav-link {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  position: relative;
  background: transparent;
}

.nav-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--golden-sand);
  background: rgba(234, 179, 8, 0.1);
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.2), inset 0 0 5px rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.nav-link[title]::after {
  content: attr(title);
  position: absolute;
  left: 65px;
  background: var(--bg-secondary);
  color: var(--golden-sand);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: var(--transition-fast);
  border: 1px solid var(--border-gold);
  font-family: var(--font-heading);
}

.nav-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 2rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/photo-1618005182384-a83a8bd57fbe.png'); /* Abstract luxury dark gold texture */
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
  mix-blend-mode: luminosity;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 8, 12, 0.3) 0%, var(--bg-primary) 100%);
  z-index: 1;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--golden-sand) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.1;
  animation: float 20s linear infinite;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 1s ease-out forwards;
}

.legal-badge {
  display: inline-block;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid var(--border-purple);
  color: var(--crystal-light);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--golden-sand), #fff, var(--golden-sand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(234, 179, 8, 0.3);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 650px;
  line-height: 1.8;
}

/* Button System */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gem-purple) 0%, #b829e3 50%, var(--golden-sand) 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(234, 179, 8, 0.5);
}

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

/* Game Section */
.game-section {
  padding: 5rem 2rem;
  background: var(--bg-secondary);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid var(--border-gold);
}

.game-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--golden-sand), transparent);
  opacity: 0.5;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

.game-container {
  width: 100%;
  max-width: 950px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 85, 247, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
}

.game-container::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--gem-purple), transparent, var(--golden-sand));
  z-index: -1;
  opacity: 0.3;
}

.game-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  position: relative;
}

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

/* Features Section */
.features-section {
  padding: 5rem 2rem;
  background: var(--bg-primary);
  position: relative;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gem-purple), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  background: rgba(255, 248, 225, 0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--golden-sand);
  border: 1px solid var(--border-purple);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

/* Inner Page Layout */
.page-header {
  padding: 6rem 2rem 3rem;
  text-align: center;
  background: linear-gradient(to bottom, rgba(168, 85, 247, 0.1), transparent);
  border-bottom: 1px solid var(--border-gold);
}

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

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

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

.glass-panel h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--crystal-light);
  font-size: 1.5rem;
}

.glass-panel h2:first-child {
  margin-top: 0;
}

.glass-panel p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.glass-panel ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  list-style-type: disc;
}

.glass-panel ul li {
  margin-bottom: 0.5rem;
}

/* Forms */
.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(--golden-sand);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.form-control {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1rem;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--gem-purple);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

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

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-gold);
  padding: 4rem 2rem 2rem;
  text-align: center;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--gem-purple);
}

.footer-legal {
  color: var(--text-secondary);
  font-size: 0.85rem;
  max-width: 800px;
  line-height: 1.6;
  opacity: 0.7;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: 70px;
    top: auto;
    bottom: 0;
    flex-direction: row;
    justify-content: space-around;
    padding: 0 1rem;
    border-right: none;
    border-top: 1px solid var(--border-gold);
  }

  .brand-icon {
    display: none;
  }

  .nav-menu {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .nav-link[title]::after {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding-bottom: 70px; /* space for mobile nav */
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .glass-panel {
    padding: 2rem 1.5rem;
  }
}