/* AurvixLabs.click - Modern Gaming Website Stylesheet */
:root {
  --primary-color: #0c1e3a;
  --secondary-color: #1f3450;
  --accent-color: #00b4d8;
  --highlight-color: #00ffe5;
  --text-color: #e9ecef;
  --dark-color: #0a111f;
  --light-color: #f8f9fa;
  --border-radius: 10px;
  --box-shadow: 0 5px 20px rgba(0, 180, 216, 0.3);
  --transition: all 0.3s ease-in-out;
  --gradient: linear-gradient(135deg, var(--accent-color), var(--highlight-color));
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: radial-gradient(ellipse at center, var(--secondary-color), var(--primary-color));
  min-height: 100vh;
  display: flex;
  flex-direction: column;

/* Game iframe and container: hide native scrollbars and prevent overflow */
.game-container {
  position: relative;
  overflow: hidden; /* hide any overflow from iframe */
  border-radius: 12px;
}

.game-wrapper {
  position: relative;
  width: 100%;
  height: 520px; /* fixed height matching game frame area */
}

.game-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  overflow: hidden;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.game-frame::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
  position: relative;
}

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

a:hover {
  color: var(--highlight-color);
}

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles */
.header {
  background: rgba(15, 30, 58, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

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

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--highlight-color);
  position: relative;
  overflow: hidden;
}

.logo-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.logo:hover .logo-text::after {
  transform: translateX(0);
}

.nav-menu {
  display: flex;
  gap: 1.8rem;
}

.nav-menu a {
  color: var(--light-color);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-menu a:hover {
  color: var(--highlight-color);
}

.nav-menu a:hover::before {
  width: 100%;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(rgba(12, 30, 58, 0.7), rgba(12, 30, 58, 0.8)), url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  padding: 12rem 0 8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 0;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--primary-color) 90%);
  opacity: 0.7;
  z-index: 1;
}

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

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--light-color);
  font-weight: 800;
  text-shadow: 0 3px 10px rgba(0, 180, 216, 0.5);
  position: relative;
}

.hero-title span {
  color: var(--accent-color);
}

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

.btn {
  display: inline-block;
  background: var(--accent-color);
  color: var(--light-color);
  padding: 0.8rem 2.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--highlight-color);
  z-index: -1;
  transition: width 0.3s ease;
}

.btn:hover {
  color: var(--dark-color);
}

.btn:hover::before {
  width: 100%;
}

/* Game Section */
.game-section {
  padding: 6rem 0;
  background: rgba(10, 17, 31, 0.8);
  position: relative;
}

.game-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(0, 180, 216, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 80% 70%, rgba(0, 255, 229, 0.1) 0%, transparent 20%);
  opacity: 0.5;
  pointer-events: none;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.4rem;
  color: var(--highlight-color);
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.game-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--light-color);
  font-size: 1.1rem;
  line-height: 1.6;
}

.game-container {
  background: rgba(31, 52, 80, 0.7);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 180, 216, 0.4), 0 0 15px rgba(0, 255, 229, 0.2);
  border: 2px solid var(--accent-color);
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  transition: var(--transition);
}

.game-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 180, 216, 0.5), 0 0 20px rgba(0, 255, 229, 0.3);
}

.game-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent-color), transparent, var(--highlight-color));
  z-index: -1;
  border-radius: calc(var(--border-radius) + 2px);
  animation: borderGlow 3s linear infinite;
}

.game-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.game-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
  z-index: 2;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.game-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--highlight-color);
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

.loader-text {
  color: var(--highlight-color);
  font-weight: 600;
  font-size: 1rem;
  animation: pulse 1.5s infinite;
}

.game-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.game-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.game-btn {
  background: rgba(0, 180, 216, 0.8);
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.game-btn:hover {
  background: var(--accent-color);
}

/* About Section */
.about {
  padding: 6rem 0;
  background: rgba(31, 52, 80, 0.3);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 70% 20%, rgba(0, 180, 216, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 30% 70%, rgba(0, 255, 229, 0.1) 0%, transparent 30%);
  opacity: 0.5;
  pointer-events: none;
}

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

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  position: relative;
  display: flex;
  height: 100%;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-text {
  padding: 2rem;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--highlight-color);
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Features Section */
.features {
  padding: 6rem 0;
  background: rgba(10, 17, 31, 0.8);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: rgba(31, 52, 80, 0.7);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  color: var(--highlight-color);
  transform: scale(1.1);
}

.feature-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--light-color);
}

.feature-description {
  color: var(--text-color);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--dark-color);
  padding: 4rem 0 2rem;
  color: var(--text-color);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
}

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

.footer-disclaimer-center {
  grid-column: 1 / -1;
  margin-bottom: 2rem;
}

.footer-disclaimer {
  background: rgba(31, 52, 80, 0.5);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border-left: 4px solid var(--accent-color);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--highlight-color);
  position: relative;
  display: inline-block;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient);
}

.footer-column p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: var(--text-color);
  transition: var(--transition);
  position: relative;
  padding-left: 15px;
}

.footer-links a::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--highlight-color);
}

.footer-links a:hover::before {
  transform: translateX(3px);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Disclaimer Popup */
.disclaimer-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 17, 31, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.disclaimer-popup.show {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: linear-gradient(145deg, var(--secondary-color), var(--primary-color));
  border-radius: var(--border-radius);
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
  border: 1px solid var(--accent-color);
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.popup-close:hover {
  color: var(--highlight-color);
  transform: rotate(90deg);
}

.popup-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--highlight-color);
}

.popup-text {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.popup-btn, .popup-exit-btn {
  margin-top: 1rem;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.popup-btn {
  background: var(--accent-color);
  color: var(--light-color);
  margin-right: 10px;
}

.popup-btn:hover {
  background: var(--highlight-color);
  color: var(--dark-color);
}

.popup-exit-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
}

.popup-exit-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Legal Pages */
.legal-section {
  padding: 10rem 0 6rem;
  min-height: 80vh;
}

.legal-content {
  background: rgba(31, 52, 80, 0.5);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--box-shadow);
}

.legal-title {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--highlight-color);
  text-align: center;
}

.legal-content p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.legal-content h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1.5rem;
  color: var(--accent-color);
}

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

.legal-content ul li {
  margin-bottom: 0.7rem;
  position: relative;
}

.legal-content ul li::before {
  content: '•';
  color: var(--accent-color);
  position: absolute;
  left: -1.5rem;
}

/* Contact Form */
.contact-form {
  background: rgba(31, 52, 80, 0.5);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--box-shadow);
  margin-top: 2rem;
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--light-color);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  background: rgba(10, 17, 31, 0.5);
  color: var(--text-color);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
}

.contact-info {
  background: rgba(31, 52, 80, 0.5);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--box-shadow);
  margin-top: 2rem;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--highlight-color);
}

.contact-info p {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info i {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

/* Animation Keyframes */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

@keyframes borderGlow {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

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

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--secondary-color);
    padding: 2rem;
    gap: 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
  }
  
  .nav-menu.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .hero {
    padding: 9rem 0 6rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-text {
    padding: 0;
  }
  
  .game-intro {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .game-container::before {
    opacity: 0.7;
  }
  
  .game-controls {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  
  .game-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
  
  .game-info {
    padding: 1.5rem;
    margin-top: 3rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 8rem 0 5rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .game-container {
    border-width: 1px;
    margin: 0 1rem;
  }
  
  .game-container::before {
    display: none;
  }
  
  .loader {
    width: 40px;
    height: 40px;
    border-width: 3px;
  }
  
  .loader-text {
    font-size: 0.9rem;
  }
  
  .game-controls {
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
  }
  
  .game-btn {
    width: 100%;
    justify-content: center;
  }
  
  .legal-content {
    padding: 1.5rem;
  }
  
  .legal-title {
    font-size: 1.8rem;
  }
}