/* RoamvikHub Click - Gaming Website Stylesheet */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #34495e;
  --accent-color: #4855e8;
  --highlight-color: #35ecd8;
  --text-color: #ecf0f1;
  --dark-color: #1a1a1a;
  --light-color: #f8f8f8;
  --border-radius: 8px;
  --box-shadow: 0 5px 15px rgba(72, 85, 232, 0.3);
  --transition: all 0.3s ease-in-out;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  z-index: -1;
  pointer-events: none;
}

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

a:hover {
  color: var(--accent-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(26, 26, 26, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

.logo-img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 5px var(--accent-color));
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--highlight-color);
  letter-spacing: 1px;
}

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

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

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

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

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

.nav-menu a.active::before {
  width: 100%;
  background: var(--highlight-color);
}

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

/* Hero Section */
.hero {
  background: url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 10rem 0 8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.452), rgba(26, 26, 26, 0.85));
  z-index: 1;
}

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

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--light-color);
  font-weight: 800;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 1s ease-out;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: var(--light-color);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.3s backwards;
}

.btn {
  display: inline-block;
  background: var(--accent-color);
  color: var(--light-color);
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(72, 85, 232, 0.4);
  animation: fadeIn 1s ease-out 0.6s backwards;
}

.btn:hover {
  background: var(--highlight-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(53, 236, 216, 0.5);
  color: var(--dark-color);
}

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

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.2rem;
  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: linear-gradient(to right, var(--accent-color), var(--highlight-color));
  border-radius: 2px;
}

.game-container {
  background: rgba(44, 62, 80, 0.7);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(72, 85, 232, 0.4), 0 0 15px rgba(53, 236, 216, 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(72, 85, 232, 0.5), 0 0 20px rgba(53, 236, 216, 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%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  background: #000;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  border-radius: var(--border-radius);
}

.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%;
  min-height: 300px;
  max-width: 100%;
  border: none;
  display: block;
  background: #000;
  border-radius: var(--border-radius);
}

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

.game-btn {
  background: rgba(72, 85, 232, 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);
}

.game-info {
  margin-top: 4rem;
  padding: 2rem;
  background: rgba(26, 26, 26, 0.3);
  border-radius: var(--border-radius);
  border: 1px solid rgba(72, 85, 232, 0.2);
}

.game-info-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

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

/* About Section */
.about {
  padding: 5rem 0;
  background: linear-gradient(rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.8));
  background-size: cover;
  background-position: center;
}

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

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  border: 2px solid var(--accent-color);
  height: auto;
  max-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 26, 0.3);
}

.about-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  display: block;
}

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

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

/* Features Section */
.features {
  padding: 5rem 0;
  background: rgba(26, 26, 26, 0.6);
}

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

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

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

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

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

.feature-description {
  color: var(--text-color);
  font-size: 0.95rem;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)), url('../img/contact-bg.jpg');
  background-size: cover;
  background-position: center;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(44, 62, 80, 0.7);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.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;
  border: 2px solid rgba(72, 85, 232, 0.3);
  border-radius: var(--border-radius);
  background: rgba(26, 26, 26, 0.5);
  color: var(--light-color);
  font-family: 'Montserrat', sans-serif;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
}

/* Legal Pages */
.legal-section {
  padding: 5rem 0;
  background: rgba(26, 26, 26, 0.7);
}

.legal-content {
  background: rgba(44, 62, 80, 0.7);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--box-shadow);
}

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

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

.legal-content p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  list-style-type: disc;
}

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

/* Footer */
.footer {
  background: var(--dark-color);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

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

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

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

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

.footer-disclaimer {
  margin-top: 1rem;
  padding: 1.2rem;
  background: rgba(44, 62, 80, 0.5);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  border: 1px solid rgba(72, 85, 232, 0.3);
}

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

.copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(236, 240, 241, 0.1);
  color: rgba(236, 240, 241, 0.6);
  font-size: 0.9rem;
}

/* Disclaimer Popup */
.disclaimer-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

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

.popup-content {
  background: var(--secondary-color);
  border-radius: var(--border-radius);
  max-width: 600px;
  width: 90%;
  padding: 2.5rem;
  position: relative;
  border: 2px solid var(--accent-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: popup-animation 0.5s forwards;
}

@keyframes popup-animation {
  0% { transform: translateY(-50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

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

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

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

.popup-text {
  margin-bottom: 2rem;
  line-height: 1.7;
}

.popup-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  border: none;
  background: var(--accent-color);
  color: var(--light-color);
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1rem;
}

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

.popup-exit-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--accent-color);
  background: transparent;
  color: var(--light-color);
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.popup-exit-btn:hover {
  background: rgba(72, 85, 232, 0.2);
  border-color: var(--highlight-color);
}

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

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-image {
    margin: 0 auto;
    max-width: 90%;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    transition: height 0.3s ease-in-out;
    padding: 0;
  }

  .nav-menu.active {
    height: calc(100vh - 72px);
    padding: 2rem 0;
  }

  .nav-menu a {
    margin: 1rem 0;
    font-size: 1.2rem;
  }

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

  .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;
  }

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

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

/* Animation Keyframes */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@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 (max-width: 576px) {
  .hero {
    padding: 8rem 0 6rem;
    min-height: 70vh;
    background-attachment: scroll;
  }
  
  .hero-title {
    font-size: 2rem;
  }

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

  .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;
  }

  .game-info {
    padding: 1rem;
    margin-top: 2rem;
  }

  .game-info-content p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .legal-content {
    padding: 1.5rem;
  }

  .legal-title {
    font-size: 1.8rem;
  }

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