/* Aurvix - Racing/Automotive Gaming Theme */

:root {
  /* Primary Racing Colors */
  --primary-color: #ff4444;
  --secondary-color: #1a1a1a;
  --accent-color: #ffd700;
  --dark-bg: #0d0d0d;
  --light-color: #ffffff;
  --text-color: #e0e0e0;
  --muted-color: #888888;
  
  /* Racing Gradients */
  --gradient-primary: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
  --gradient-secondary: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
  --gradient-accent: linear-gradient(135deg, #ffd700 0%, #ffb000 100%);
  
  /* Shadows and Effects */
  --shadow-light: 0 2px 8px rgba(255, 68, 68, 0.2);
  --shadow-dark: 0 4px 16px rgba(0, 0, 0, 0.3);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Orbitron', 'Roboto', sans-serif;
  background: var(--dark-bg);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--primary-color);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--light-color);
}

.logo-img {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

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

.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: var(--transition);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.nav-menu a:hover {
  color: var(--primary-color);
  background: rgba(255, 68, 68, 0.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--light-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(13, 13, 13, 0.8) 0%, rgba(26, 26, 26, 0.8) 100%);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    rgba(255, 68, 68, 0.05) 2px,
    rgba(255, 68, 68, 0.05) 4px
  );
  pointer-events: none;
}

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

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--light-color);
  padding: 16px 40px;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  border: 2px solid transparent;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
  border-color: var(--accent-color);
}

/* Game Section */
.game-section {
  padding: 80px 0;
  background: rgba(26, 26, 26, 0.5);
}

/* Extra spacing variant used on standalone play page to avoid header overlap */
.game-section--spaced {
  padding-top: 160px; /* accounts for fixed header and gives extra room for the iframe */
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--light-color);
  letter-spacing: 2px;
}

.game-container {
  background: var(--secondary-color);
  border-radius: var(--border-radius);
  /* reduce padding so large games have more room on smaller viewports */
  padding: 18px;
  box-shadow: var(--shadow-dark);
  border: 2px solid rgba(255, 68, 68, 0.2);
}

.game-iframe {
  width: 100%;
  /* Use a responsive height so the iframe scales to viewport while staying constrained
     - prefer clamp so it won't get too small or too large
     - 55vh is a good default to show full game; allow between 380px and 1000px */
  height: clamp(380px, 55vh, 1000px);
  border: none;
  border-radius: 8px;
  background: #000;
}

/* About Section */
.about-section {
  padding: 80px 0;
  background: var(--dark-bg);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--light-color);
  letter-spacing: 1px;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-image {
  text-align: center;
}

.about-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-dark);
  border: 3px solid var(--primary-color);
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background: rgba(26, 26, 26, 0.3);
}

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

.feature-card {
  background: var(--gradient-secondary);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-dark);
  border: 2px solid rgba(255, 68, 68, 0.1);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(255, 68, 68, 0.3);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--light-color);
  letter-spacing: 1px;
}

.feature-card p {
  color: var(--text-color);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background: var(--secondary-color);
  padding: 50px 0 20px;
  border-top: 3px solid var(--primary-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--light-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  width: 35px;
  height: 35px;
}

.footer-text {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  padding: 5px 0;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 10px;
}

/* Disclaimer Card */
.footer-disclaimer {
  background: rgba(255, 68, 68, 0.1);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--primary-color);
  margin-bottom: 2rem;
}

.footer-disclaimer p {
  color: var(--text-color);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 68, 68, 0.2);
  color: var(--muted-color);
  font-size: 0.9rem;
}

/* Age Verification Popup */
.age-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.popup-content {
  background: var(--gradient-secondary);
  padding: 3rem;
  border-radius: var(--border-radius);
  text-align: center;
  max-width: 500px;
  width: 90%;
  border: 3px solid var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.popup-content h2 {
  color: var(--light-color);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.popup-content p {
  color: var(--text-color);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-size: 1rem;
}

.popup-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.popup-btn {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 1px;
}

.btn-confirm {
  background: var(--gradient-primary);
  color: var(--light-color);
}

.btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

.btn-decline {
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--muted-color);
}

.btn-decline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Legal Pages */
.legal-section {
  padding: 120px 0 80px;
  background: var(--dark-bg);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(26, 26, 26, 0.8);
  padding: 3rem;
  border-radius: var(--border-radius);
  border: 2px solid rgba(255, 68, 68, 0.2);
}

.legal-content h1 {
  color: var(--light-color);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: 2px;
}

.legal-content h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  letter-spacing: 1px;
}

.legal-content p {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.legal-content ul {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Contact Form */
.contact-section {
  padding: 120px 0 80px;
  background: var(--dark-bg);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  background: rgba(26, 26, 26, 0.8);
  padding: 3rem;
  border-radius: var(--border-radius);
  border: 2px solid rgba(255, 68, 68, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--light-color);
  font-weight: 500;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 68, 68, 0.3);
  border-radius: 8px;
  color: var(--light-color);
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.2);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.submit-btn {
  background: var(--gradient-primary);
  color: var(--light-color);
  padding: 14px 35px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 1px;
  width: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

.contact-info h2 {
  color: var(--light-color);
  font-size: 2rem;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.contact-info p {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(26, 26, 26, 0.98);
    flex-direction: column;
    justify-content: start;
    padding-top: 2rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: block;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .popup-content {
    padding: 2rem;
    margin: 1rem;
  }

  .popup-buttons {
    flex-direction: column;
  }

  .game-iframe {
    /* mobile: allow a taller relative viewport height to reduce clipping */
    height: clamp(300px, 60vh, 800px);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .game-iframe {
    height: clamp(280px, 65vh, 700px);
  }

  .popup-content {
    padding: 1.5rem;
  }
}