/* Contact Us Esports Theme (scoped to body.contact-page) */
body.contact-page {
  --bg-1: #050505;
  --bg-2: #0A0A0A;
  --glass: rgba(255,255,255,0.07);
  --text-primary: #EDEDED;
  --text-secondary: #9CA3AF;
  --primary-neon: #39FF14;
  --accent-green: #00FF7F;
  --neon-glow: 0 0 18px #39FF14;
  --divider-gradient: linear-gradient(90deg,#00FF7F,#39FF14,#00FFBF);
  --card-border: rgba(57,255,20,0.28);
  background: var(--bg-1);
  color: var(--text-primary);
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden;
  touch-action: manipulation;
  will-change: auto;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-neon), var(--accent-green)) !important;
  color: #000 !important;
  padding: 2rem 0;
  position: relative;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

.page-header h1 {
  text-shadow: 0 0 10px rgba(0,0,0,0.3);
  font-weight: 800;
  color: #000;
  transform: translateZ(0);
}

.page-header .lead {
  color: rgba(0,0,0,0.8);
  font-weight: 500;
  transform: translateZ(0);
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--divider-gradient);
  box-shadow: 0 0 10px var(--primary-neon);
  transform: translateZ(0);
}

/* Contact Content */
.contact-content {
  padding: 2rem 0;
  background: var(--bg-2) !important;
}

/* Contact Cards */
.contact-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
  border: 1px solid var(--card-border);
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.1);
  transition: all 0.3s ease;
  transform: translateZ(0);
  will-change: transform, box-shadow;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.3);
}

.contact-card .card-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid var(--card-border);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.2);
  color: var(--primary-neon);
  font-size: 1.8rem;
  transform: translateZ(0);
  transition: all 0.3s ease;
}

.contact-card:hover .card-icon {
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.4);
}

.contact-card h5 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  transform: translateZ(0);
}

.contact-card p {
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  transform: translateZ(0);
}

/* Form Controls */
.form-control, .form-select {
  background: #050505;
  border: 1px solid rgba(57,255,20,0.35);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  transform: translateZ(0);
  will-change: transform, box-shadow;
  min-height: 44px;
}

.form-control:focus, .form-select:focus {
  background: #0a0a0a;
  border-color: var(--primary-neon);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.5);
  color: var(--text-primary);
  outline: none;
}

.form-control:disabled, .form-control[readonly] {
  background: rgba(10,10,10,0.5);
  color: var(--text-secondary);
}

.form-label {
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.5rem;
  transform: translateZ(0);
}

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

/* Buttons */
.btn-primary {
  background: linear-gradient(90deg,#00FF7F,#39FF14,#00FFBF);
  border: none;
  color: #000;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.4);
  transition: all 0.3s ease;
  transform: translateZ(0);
  will-change: transform, box-shadow;
  min-height: 44px;
  animation: pulseGlow 2s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(57, 255, 20, 0.6);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline-primary {
  background: transparent;
  border: 1px solid var(--primary-neon);
  color: var(--primary-neon);
  font-weight: 500;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.2);
  transition: all 0.3s ease;
  transform: translateZ(0);
  will-change: transform, box-shadow;
  min-height: 44px;
}

.btn-outline-primary:hover {
  background: rgba(57,255,20,0.1);
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
}

/* Cards */
.card {
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 15px;
  border: 1px solid var(--card-border);
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.1);
  transform: translateZ(0);
  will-change: transform;
  margin-bottom: 1.5rem;
}

.card-title {
  color: var(--primary-neon);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.3);
  transform: translateZ(0);
}

.card-body {
  padding: 1.5rem;
}

/* Contact Info Items */
.contact-info-item {
  margin-bottom: 1.5rem;
  transform: translateZ(0);
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-icon-container {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid var(--card-border);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.2);
  color: var(--primary-neon);
  font-size: 1.5rem;
  flex-shrink: 0;
  transform: translateZ(0);
}

.contact-info-content h5 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  transform: translateZ(0);
}

.contact-info-content p {
  color: var(--text-secondary);
  margin-bottom: 0.1rem;
  transform: translateZ(0);
}

/* Animations */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 18px rgba(57, 255, 20, 0.4);
  }
  50% {
    box-shadow: 0 0 26px rgba(57, 255, 20, 0.7);
  }
  100% {
    box-shadow: 0 0 18px rgba(57, 255, 20, 0.4);
  }
}

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

.contact-card {
  animation: fadeInUp 0.5s ease forwards;
  transform: translateZ(0);
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }
.contact-card:nth-child(4) { animation-delay: 0.4s; }

/* Mobile Optimization */
@media (max-width: 768px) {
  .page-header {
    padding: 1.5rem 0;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .contact-content {
    padding: 1rem 0;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .contact-card {
    padding: 1rem;
    margin-bottom: 1rem;
    min-height: 100px;
  }
  
  .contact-card .card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .form-control, .form-select {
    padding: 0.75rem;
    min-height: 44px;
  }
  
  textarea.form-control {
    min-height: 100px;
  }
  
  .btn-primary {
    width: 100%;
    margin-bottom: 0.5rem;
    min-height: 44px;
  }
  
  .contact-icon-container {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  /* Reduce glow intensity on small screens */
  .contact-card:hover {
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.2);
  }
  
  .btn-primary:hover {
    box-shadow: 0 0 18px rgba(57, 255, 20, 0.4);
  }
}

/* Navigation Glow */
.navbar-nav .nav-link[href="contact.html"] {
  color: #39FF14 !important;
  text-shadow: 0 0 8px rgba(57,255,20,0.6);
  box-shadow: 0 0 12px rgba(57,255,20,0.3), 0 0 22px rgba(57,255,20,0.2);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 2px;
  transition: all 0.3s ease;
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

/* Success/Error Messages */
.alert-success {
  background: rgba(57, 255, 20, 0.15);
  color: var(--primary-neon);
  border: 1px solid rgba(57, 255, 20, 0.3);
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.2);
  transform: translateZ(0);
}

.alert-danger {
  background: rgba(255, 68, 68, 0.15);
  color: #FF4444;
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 8px;
  transform: translateZ(0);
}

/* Floating Chat Button */
.floating-chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  transform: translateZ(0);
}

.floating-chat-button .btn-primary {
  background: linear-gradient(90deg,#00FF7F,#39FF14,#00FFBF);
  border: none;
  color: #000;
  font-weight: 600;
  border-radius: 30px;
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.4);
  transition: all 0.3s ease;
  transform: translateZ(0);
  will-change: transform, box-shadow;
  padding: 12px 20px;
  min-height: 44px;
  animation: pulseGlow 2s ease-in-out infinite;
}

.floating-chat-button .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(57, 255, 20, 0.6);
}

.floating-chat-button .btn-primary:active {
  transform: translateY(0);
}

/* Mobile Optimization for Floating Button */
@media (max-width: 768px) {
  .floating-chat-button {
    bottom: 15px;
    right: 15px;
  }
  
  .floating-chat-button .btn-primary {
    padding: 10px 16px;
    font-size: 0.9rem;
    min-height: 44px;
  }
}

/* Reduce motion for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .btn-primary {
    animation: none;
  }
  
  .contact-card {
    animation: none;
  }
  
  .page-header {
    animation: none;
  }
  
  .floating-chat-button .btn-primary {
    animation: none;
  }
}