/* Base Styles */
:root {
  /* Color Palette */
  --background: #000000;
  --gold-primary: #FFD700;
  --gold-dark: #B8860B;
  --gold-light: #FFDF45;
  --red-deep: #8B0000;
  --red-flame: #B22222;
  --red-bright: #FF3333;
  --text-light: #ffffff;
  --text-dark: #111111;
  --gray-dark: #222222;
  --gray-medium: #444444;
  --gray-light: #666666;
  
  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 64px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.6s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--background);
  color: var(--text-light);
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(139, 0, 0, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(139, 0, 0, 0.2) 0%, transparent 50%);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  letter-spacing: 1px;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.8rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

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

.section-title {
  position: relative;
  display: inline-block;
  color: var(--gold-primary);
  margin-bottom: var(--space-md);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--red-flame), var(--gold-primary));
  border-radius: var(--radius-sm);
}

.section-description {
  font-size: 1.2rem;
  max-width: 800px;
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}

.accent {
  color: var(--gold-primary);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* Links & Buttons */
a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.cta-button, 
.play-button,
.submit-button,
.back-button,
.close-button {
  position: relative;
  display: inline-block;
  background: linear-gradient(45deg, var(--red-deep), var(--red-flame));
  color: var(--text-light);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 1px;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-fast);
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(178, 34, 34, 0.5);
  outline: none;
}

.cta-button:hover, 
.play-button:hover,
.submit-button:hover,
.back-button:hover,
.close-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 215, 0, 0.5);
  border-color: var(--gold-light);
}

.cta-button:active, 
.play-button:active,
.submit-button:active,
.back-button:active,
.close-button:active {
  transform: translateY(1px);
}

.flame-effect {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 10px;
  background-image: 
    radial-gradient(circle at 10% 0, var(--red-bright) 0%, transparent 50%),
    radial-gradient(circle at 30% 0, var(--red-flame) 0%, transparent 60%),
    radial-gradient(circle at 50% 0, var(--red-bright) 0%, transparent 50%),
    radial-gradient(circle at 70% 0, var(--red-flame) 0%, transparent 60%),
    radial-gradient(circle at 90% 0, var(--red-bright) 0%, transparent 50%);
  background-size: 20% 100%;
  animation: flameAnimation 1.5s infinite;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.cta-button:hover .flame-effect, 
.play-button:hover .flame-effect,
.submit-button:hover .flame-effect,
.back-button:hover .flame-effect,
.close-button:hover .flame-effect {
  opacity: 1;
}

@keyframes flameAnimation {
  0% {
    background-position: 0% 0%, 20% 0%, 40% 0%, 60% 0%, 80% 0%;
    height: 10px;
  }
  50% {
    background-position: 10% 0%, 30% 0%, 50% 0%, 70% 0%, 90% 0%;
    height: 15px;
  }
  100% {
    background-position: 0% 0%, 20% 0%, 40% 0%, 60% 0%, 80% 0%;
    height: 10px;
  }
}

/* Header */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: var(--space-md) 0;
  z-index: 1000;
  transition: background-color var(--transition-medium);
}

header.scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.3);
  padding: var(--space-sm) 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--gold-primary);
  text-decoration: none;
}

.logo h1 {
  margin: 0;
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(45deg, var(--gold-primary), var(--gold-light));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: var(--space-md);
}

nav ul li a {
  position: relative;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color var(--transition-fast);
  padding: var(--space-xs) 0;
}

nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red-flame), var(--gold-primary));
  transition: width var(--transition-medium);
  border-radius: var(--radius-sm);
}

nav ul li a:hover, 
nav ul li a.active {
  color: var(--gold-primary);
}

nav ul li a:hover::after, 
nav ul li a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--gold-primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

/* Footer */
footer {
  background-color: var(--gray-dark);
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-xxl);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-flame), var(--gold-primary), var(--red-flame));
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.footer-logo h2 {
  font-size: 2.5rem;
  color: var(--gold-primary);
  margin-bottom: var(--space-xs);
}

.footer-logo p {
  font-size: 1rem;
  color: var(--text-light);
  opacity: 0.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.link-group h3 {
  font-size: 1.3rem;
  color: var(--gold-primary);
  margin-bottom: var(--space-md);
}

.link-group ul {
  list-style: none;
}

.link-group ul li {
  margin-bottom: var(--space-xs);
}

.link-group ul li a {
  color: var(--text-light);
  opacity: 0.7;
  transition: all var(--transition-fast);
}

.link-group ul li a:hover {
  color: var(--gold-primary);
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.4rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .footer-links {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    transition: right var(--transition-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
  }
  
  nav.active {
    right: 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: var(--space-md) 0;
  }
  
  nav ul li a {
    font-size: 1.5rem;
  }
  
  .footer-links {
    gap: var(--space-lg);
  }
  
  .link-group {
    width: 100%;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.7rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  nav {
    width: 85%;
  }
}