/* Layout styles for Norlitha Gaming Website */

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: all 0.3s ease;
  padding: 1.5rem 0;
  background: rgba(18, 3, 9, 0.9);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

nav ul li a {
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

nav ul li a:hover {
  color: var(--color-neon-pink);
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(to right, var(--color-lava-red), var(--color-neon-pink));
  transition: width 0.3s ease;
}

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

/* Mobile menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-light);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 101;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  background: url('https://i.pinimg.com/736x/d6/18/76/d618768f2ee6e77fa120a0643862b2a5.jpg') center/cover no-repeat fixed;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(42, 10, 41, 0.9) 0%, rgba(18, 3, 9, 0.8) 100%);
  animation: pulseOverlay 8s infinite;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 700px;
  text-align: center;
  margin: 0 auto;
  animation: heroContentFade 1.5s ease-out;
}

.hero-content h2 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  animation: glowPulse 3s infinite;
}

.hero-content h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-fire-orange);
  animation: slideUp 1s ease-out;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeIn 2s ease-out;
}

/* About Section */
.about-section {
  background: url('https://images.pexels.com/photos/6985135/pexels-photo-6985135.jpeg') center/cover no-repeat fixed;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(42, 10, 41, 0.85);
  animation: aboutOverlay 10s infinite;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Games Section */
.games-section {
  position: relative;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

/* Features Section */
.features-section {
  background: rgba(42, 10, 41, 0.5);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

/* Disclaimer Section */
.disclaimer-section {
  background: rgba(18, 3, 9, 0.7);
  text-align: center;
}

.disclaimer-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(58, 14, 64, 0.3);
}

/* Contact Form */
.contact-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
}

.contact-form {
  background: rgba(42, 10, 41, 0.5);
  padding: 3rem;
  border-radius: 8px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(216, 49, 91, 0.2);
}

/* Game Page */
.game-page-section {
  padding-top: 120px;
  min-height: 100vh;
}

.back-to-home {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--color-light);
}

.back-to-home:hover {
  color: var(--color-neon-pink);
}

.back-to-home svg {
  margin-right: 0.5rem;
}

/* Footer */
footer {
  background: rgba(18, 3, 9, 0.9);
  padding: 3rem 0;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-logo h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--color-fire-orange), var(--color-lava-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  position: relative;
  font-size: 0.9rem;
}

.footer-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -3px;
  left: 0;
  background: linear-gradient(to right, var(--color-lava-red), var(--color-neon-pink));
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

/* Legal Pages */
.legal-section {
  padding-top: 150px;
}

.legal-content {
  background: rgba(42, 10, 41, 0.5);
  padding: 2rem;
  border-radius: 8px;
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-ember-yellow);
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

/* Media Queries */
@media (max-width: 992px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 0;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--color-dark);
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    gap: 2rem;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-content h2 {
    font-size: 3rem;
  }
  
  .hero-content h3 {
    font-size: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
}

@keyframes pulseOverlay {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.6; }
}

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

@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 20px var(--color-neon-pink),
                 0 0 40px var(--color-neon-pink);
  }
  50% {
    text-shadow: 0 0 40px var(--color-neon-pink),
                 0 0 60px var(--color-neon-pink);
  }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes aboutOverlay {
  0%, 100% {
    background: rgba(42, 10, 41, 0.85);
  }
  50% {
    background: rgba(42, 10, 41, 0.75);
  }
}