/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('/assets/banner.png') no-repeat center center/cover;
  position: relative;
  padding-top: 80px;
  padding-bottom: 0;
  color: var(--text-light);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(26, 23, 53, 0.3), rgba(26, 23, 53, 0.95));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.hero-content h1 {
  color: var(--text-light);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--spacing-lg);
  font-size: 3.5rem;
  line-height: 1.2;
  animation: fadeInDown 1s ease;
}

.tagline {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: var(--spacing-lg);
  color: var(--accent);
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
  margin-bottom: var(--spacing-xl);
  font-size: 1.1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  animation: fadeInUp 1s ease 0.6s both;
}

.magic-sparkles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: 
    radial-gradient(circle, rgba(255, 204, 51, 0.3) 2px, transparent 2px),
    radial-gradient(circle, rgba(126, 63, 242, 0.3) 1px, transparent 1px);
  background-size: 
    100px 100px,
    50px 50px;
  animation: sparkleFloat 60s linear infinite;
  z-index: 1;
}

@keyframes sparkleFloat {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 100px 100px, 50px 50px;
  }
}

/* About Section */
.about-section {
  background: linear-gradient(135deg, #f5f5f7 0%, #e9e8f8 100%);
  position: relative;
  overflow: hidden;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-xl);
}

.about-image {
  flex: 1;
  min-width: 300px;
  height: 400px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.magic-castle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/assets/about.jpg') no-repeat center center/cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(44, 42, 74, 0.2);
  transition: all 0.5s ease;
}

.magic-castle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(126, 63, 242, 0.3), rgba(44, 42, 74, 0.7));
  border-radius: var(--radius-lg);
}

.gallery-grid.center {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 30px;
}

.magic-castle:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(44, 42, 74, 0.3);
}

.about-text {
  flex: 1.5;
  min-width: 300px;
}

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

/* Games Section */
.games-section {
  background: linear-gradient(135deg, #2c2a4a 0%, #1a1735 100%);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.games-section .section-header h2 {
  color: var(--text-light);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.game-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.game-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s ease;
}

.game-card:hover .game-image img {
  transform: scale(1.1);
}

.game-details {
  padding: var(--spacing-lg);
  text-align: center;
  position: relative;
}

.game-details h3 {
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
  font-size: 1.5rem;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(126, 63, 242, 0) 0%, rgba(126, 63, 242, 0.2) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.game-card:hover::before {
  opacity: 1;
}

/* Gallery Section */
.gallery-section {
  background: var(--bg-light);
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  height: 200px;
  transition: all 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(44, 42, 74, 0.9), transparent);
  display: flex;
  align-items: flex-end;
  padding: var(--spacing-md);
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-text {
  color: var(--text-light);
  font-weight: 600;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-text {
  transform: translateY(0);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Why Choose Us Section */
.why-choose-section {
  background: linear-gradient(135deg, #1a1735 0%, #2c2a4a 100%);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.why-choose-section .section-header h2 {
  color: var(--text-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  transition: all 0.4s ease;
}

.feature-card[data-color="purple"]::before {
  background: var(--primary);
}

.feature-card[data-color="blue"]::before {
  background: #3b82f6;
}

.feature-card[data-color="teal"]::before {
  background: #14b8a6;
}

.feature-card[data-color="gold"]::before {
  background: var(--accent);
}

.feature-card[data-color="orange"]::before {
  background: #f97316;
}

.feature-card[data-color="pink"]::before {
  background: #ec4899;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  width: 100%;
  opacity: 0.1;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.1);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  margin-bottom: var(--spacing-lg);
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.feature-card h3 {
  color: var(--text-light);
  font-size: 1.4rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: var(--text-light);
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

/* Disclaimer Section */
.disclaimer-section {
  background: var(--bg-light);
  padding: var(--spacing-xl) 0;
}

.disclaimer-content {
  background: rgba(255, 204, 51, 0.1);
  border-left: 4px solid var(--accent);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
}

.disclaimer-content h3 {
  color: var(--secondary);
  margin-bottom: var(--spacing-md);
}

.disclaimer-content p {
  color: var(--text-dark);
  margin-bottom: 0;
}

/* Page Content Styles */
.page-content {
  padding-top: 120px;
  min-height: 80vh;
}

/* Privacy Policy Page */
.policy-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.policy-section {
  margin-bottom: var(--spacing-xl);
}

.policy-section h2 {
  color: var(--secondary);
  font-size: 1.6rem;
  margin-bottom: var(--spacing-md);
  border-bottom: 2px solid rgba(126, 63, 242, 0.2);
  padding-bottom: var(--spacing-sm);
}

.policy-section p {
  margin-bottom: var(--spacing-md);
}

.policy-section ul {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
}

.policy-section ul li {
  margin-bottom: var(--spacing-sm);
  list-style: disc;
}

.policy-section strong {
  color: var(--primary);
}

.policy-footer {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: right;
  font-style: italic;
  color: var(--text-dark);
  opacity: 0.7;
}

/* Contact Us Page */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xxl);
}

.contact-info {
  flex: 1;
  min-width: 300px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.contact-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

.contact-card h3 {
  margin-bottom: var(--spacing-md);
  color: var(--secondary);
}

.contact-card p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.contact-form-container {
  flex: 1;
  min-width: 300px;
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.contact-form-container h2 {
  margin-bottom: var(--spacing-lg);
  color: var(--secondary);
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-sm);
  color: var(--secondary);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  background: rgba(245, 245, 247, 0.5);
  font-family: var(--font-body);
  color: var(--text-dark);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(126, 63, 242, 0.1);
}

.magic-border {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  z-index: 0;
}

.form-group input:focus ~ .magic-border,
.form-group select:focus ~ .magic-border,
.form-group textarea:focus ~ .magic-border {
  width: 100%;
}

.contact-form button {
  margin-top: var(--spacing-md);
  align-self: center;
}

/* FAQ Section */
.faq-section {
  margin-top: var(--spacing-xxl);
}

.faq-section h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--secondary);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--spacing-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: rgba(245, 245, 247, 0.5);
  transition: all 0.3s ease;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--secondary);
}

.faq-toggle {
  color: var(--primary);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.faq-answer {
  padding: 0 var(--spacing-lg);
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer p {
  padding: var(--spacing-md) 0;
  margin: 0;
}

.faq-item.active .faq-question {
  background: rgba(126, 63, 242, 0.05);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

/* Media Queries */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .about-content {
    gap: var(--spacing-lg);
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .tagline {
    font-size: 1.1rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .about-image {
    height: 300px;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .contact-container {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .tagline {
    font-size: 1rem;
  }
  
  .about-image {
    height: 250px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .policy-content {
    padding: var(--spacing-lg);
  }
}