/* Vyvik Art - Emergency Response Gaming Theme
   Unique firefighter-inspired design with red and orange accents */

/* CSS Variables */
:root {
  --primary-red: #dc2626;
  --fire-orange: #f97316;
  --warning-yellow: #eab308;
  --smoke-gray: #374151;
  --dark-charcoal: #111827;
  --white-smoke: #f9fafb;
  --emergency-bg: #fef2f2;
  --card-shadow: 0 8px 25px rgba(220, 38, 38, 0.15);
  --glow-effect: 0 0 20px rgba(249, 115, 22, 0.3);
  --border-radius: 15px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--smoke-gray);
  background: linear-gradient(135deg, var(--emergency-bg) 0%, #fefefe 50%, #fff7ed 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: var(--primary-red);
  transition: var(--transition);
}

a:hover {
  color: var(--fire-orange);
}

button, .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: linear-gradient(45deg, var(--primary-red), var(--fire-orange));
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

button:hover, .btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-effect);
  background: linear-gradient(45deg, var(--fire-orange), var(--warning-yellow));
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-charcoal);
}

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

section {
  padding: 100px 0;
}

/* Header with Emergency Bar Design */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--primary-red);
}

.emergency-bar {
  background: linear-gradient(90deg, var(--primary-red), var(--fire-orange), var(--primary-red));
  height: 4px;
  width: 100%;
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% { opacity: 0.8; }
  100% { opacity: 1; box-shadow: 0 0 10px var(--fire-orange); }
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(45deg, var(--primary-red), var(--fire-orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.logo h1 {
  font-size: 1.8rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 35px;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 0;
  position: relative;
  font-size: 0.9rem;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--fire-orange);
  transition: var(--transition);
}

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

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--fire-orange);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

/* Hero Section with Emergency Theme */
.hero {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(220, 38, 38, 0.8)), url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  padding: 180px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/emergency-pattern.svg');
  opacity: 0.1;
  z-index: 1;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid var(--fire-orange);
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 25px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 25px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  background: linear-gradient(45deg, white, var(--warning-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 35px;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--fire-orange);
  color: var(--fire-orange);
}

.btn-secondary:hover {
  background: var(--fire-orange);
  color: white;
}

/* About Section */
.about {
  background: white;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  font-size: 3rem;
  margin-bottom: 25px;
  color: var(--dark-charcoal);
}

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--smoke-gray);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: var(--emergency-bg);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-red);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-red);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--smoke-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.about-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(249, 115, 22, 0.1));
}

/* Features Section with Emergency Cards */
.features {
  background: var(--emergency-bg);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--dark-charcoal);
}

.section-header p {
  font-size: 1.2rem;
  color: var(--smoke-gray);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: var(--transition);
  border-top: 4px solid var(--primary-red);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(220, 38, 38, 0.2);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(45deg, var(--primary-red), var(--fire-orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 1.8rem;
  color: white;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-charcoal);
}

.feature-card p {
  color: var(--smoke-gray);
  line-height: 1.6;
}

/* Game Section */
.game-section {
  background: white;
  position: relative;
}

.game-container {
  max-width: 1000px;
  margin: 0 auto;
}

.game-disclaimer {
  background: linear-gradient(135deg, #fef3cd, #fde68a);
  border: 1px solid var(--warning-yellow);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 30px;
  text-align: center;
}

.game-disclaimer strong {
  color: var(--dark-charcoal);
  font-weight: 600;
}

.game-frame {
  width: 100%;
  height: 700px;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  background: var(--emergency-bg);
}

/* Reviews Section */
.reviews {
  background: var(--emergency-bg);
  position: relative;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  position: relative;
  border-left: 4px solid var(--fire-orange);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.reviewer-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--fire-orange);
}

.reviewer-name {
  font-weight: 600;
  color: var(--dark-charcoal);
  margin-bottom: 5px;
}

.reviewer-role {
  font-size: 0.9rem;
  color: var(--smoke-gray);
}

.review-stars {
  color: var(--warning-yellow);
  font-size: 1.1rem;
  margin-top: 5px;
}

.review-text {
  font-style: italic;
  color: var(--smoke-gray);
  line-height: 1.6;
}

/* Contact Section */
.contact {
  background: white;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  color: var(--dark-charcoal);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--emergency-bg);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-red);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, var(--primary-red), var(--fire-orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.contact-form {
  background: var(--emergency-bg);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-charcoal);
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-family: inherit;
  transition: var(--transition);
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

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

/* Emergency-Style Footer */
footer {
  background: var(--dark-charcoal);
  color: white;
  padding: 60px 0 30px;
  position: relative;
}

.footer-emergency-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-red), var(--fire-orange), var(--warning-yellow), var(--fire-orange), var(--primary-red));
  animation: emergency-flash 3s ease-in-out infinite;
}

@keyframes emergency-flash {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 25px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid var(--fire-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fire-orange);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--fire-orange);
  color: white;
  transform: translateY(-3px);
}

.footer-section h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--fire-orange);
  padding-left: 5px;
}

.footer-disclaimer {
  background: rgba(220, 38, 38, 0.1);
  padding: 20px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-red);
  margin: 30px 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
}

/* Age Verification Modal */
.age-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 24, 39, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.age-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.age-modal {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: all 0.4s ease;
  border-top: 6px solid var(--primary-red);
}

.age-modal-overlay.show .age-modal {
  transform: scale(1);
}

.age-modal-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, var(--primary-red), var(--fire-orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
  color: white;
}

.age-modal h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--dark-charcoal);
}

.age-modal p {
  margin-bottom: 30px;
  color: var(--smoke-gray);
  line-height: 1.6;
}

.age-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-confirm {
  background: linear-gradient(45deg, var(--primary-red), var(--fire-orange));
}

.btn-exit {
  background: var(--smoke-gray);
}

/* Legal Pages */
.legal-content {
  background: white;
  padding: 50px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  color: var(--dark-charcoal);
  margin: 30px 0 15px;
  font-size: 1.8rem;
}

.legal-content h3 {
  color: var(--smoke-gray);
  margin: 20px 0 10px;
  font-size: 1.3rem;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  margin-bottom: 15px;
  line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
  padding-left: 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 71px;
    right: -100%;
    background: var(--dark-charcoal);
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 71px);
    flex-direction: column;
    padding: 40px 30px;
    gap: 20px;
    transition: var(--transition);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .hero {
    padding: 150px 0 100px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
  
  section {
    padding: 80px 0;
  }
  
  .section-header h2 {
    font-size: 2.5rem;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .age-buttons {
    flex-direction: column;
  }
  
  .age-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  
  .contact-methods {
    gap: 15px;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

/* Performance and Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}