/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

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

/* Header Styles */
header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  position: relative;
}

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

.logo-image {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease;
}

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

.logo:hover .logo-text {
  transform: translateX(2px);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links li a:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.nav-links li a.active {
  background: rgba(255,255,255,0.3);
  font-weight: 600;
}

.menu-icon {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: white;
}

.menu-toggle {
  display: none;
}

/* Hero Section */
#hero {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 50%, #6c5ce7 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  padding-top: 100px; /* Account for fixed header */
  text-align: center;
  color: white;
}

.hero-content {
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.iframe-wrapper {
  width: 95%;
  max-width: 1400px;
  margin: 2rem auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
  background: #000;
  padding: 15px;
}

.iframe-wrapper:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.iframe-wrapper iframe {
  width: 100%;
  height: 700px;
  border: none;
  display: block;
  border-radius: 15px;
}

.hero-btn {
  background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(232, 67, 147, 0.3);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(232, 67, 147, 0.4);
}

/* Section Styles */
section {
  padding: 4rem 0;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #2d3436;
  position: relative;
}

section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 1rem auto;
  border-radius: 2px;
}

/* Features Section */
#features {
  background: white;
  padding: 5rem 0;
}

.features-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.features-intro p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: #2d3436;
  font-weight: 600;
}

.feature-card p {
  color: #636e72;
  line-height: 1.7;
  font-size: 1rem;
}

/* What Is Section */
#what-is {
  background: #f8f9fa;
  padding: 5rem 0;
}

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

.what-is-text p {
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
  color: #555;
  line-height: 1.8;
}

.game-preview {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sand-particles {
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, #ff9a9e, #fecfef, #fecfef);
  border-radius: 50%;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.preview-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* How to Play Section */
#how-to-play {
  background: white;
  padding: 5rem 0;
}

.how-to-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.how-to-intro p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 2rem;
}

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

.step {
  text-align: center;
  padding: 2.5rem 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  border: 1px solid #e9ecef;
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.step-number {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.step h3 {
  margin-bottom: 1.5rem;
  color: #2d3436;
  font-size: 1.3rem;
  font-weight: 600;
}

.step p {
  color: #636e72;
  line-height: 1.7;
  font-size: 1rem;
}

/* Why Play Section */
#why-play {
  background: #f8f9fa;
  padding: 5rem 0;
}

.why-play-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.why-play-intro p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 2rem;
}

.why-play-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.benefit {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  border: 1px solid #e9ecef;
  text-align: center;
}

.benefit:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.benefit h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: #2d3436;
  font-weight: 600;
}

.benefit p {
  color: #636e72;
  line-height: 1.7;
  font-size: 1rem;
}

/* FAQ Section */
#faq {
  background: white;
  padding: 5rem 0;
}

.faq-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.faq-intro p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 2rem;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.faq-item {
  background: #f8f9fa;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.faq-question {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem 2rem;
  margin: 0;
}

.faq-question h3 {
  font-size: 1.2rem;
  color: white;
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

.faq-answer {
  padding: 2rem;
  background: white;
  border-top: 3px solid #667eea;
}

.faq-answer p {
  color: #555;
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
}

/* Footer */
footer {
  background: #2d3436;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  transform: scale(1.2);
}

.footer-section h3, .footer-section h4 {
  margin-bottom: 1rem;
  color: #ffd700;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #ffd700;
}

.footer-bottom {
  border-top: 1px solid #636e72;
  padding-top: 1rem;
  text-align: center;
  color: #ddd;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .logo {
    gap: 8px;
  }

  .logo-image {
    height: 35px;
  }

  .logo-text {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
  }

  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    gap: 0;
  }

  .nav-links li {
    margin: 0;
    text-align: center;
  }

  .nav-links li a {
    display: block;
    padding: 1rem;
    border-radius: 0;
  }

  .menu-icon {
    display: block;
  }

  .menu-toggle:checked + .menu-icon + .nav-links {
    max-height: 400px;
    padding-bottom: 1rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .iframe-wrapper iframe {
    height: 400px;
  }

  .what-is-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .game-preview {
    min-height: 200px;
    padding: 2rem 1rem;
  }

  .sand-particles {
    width: 60px;
    height: 60px;
  }

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

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

  .why-play-grid {
    grid-template-columns: 1fr;
  }

  section h2 {
    font-size: 2rem;
  }

  .feature-card, .benefit {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .iframe-wrapper iframe {
    height: 350px;
  }

  .container {
    padding: 0 0.5rem;
  }

  section {
    padding: 2rem 0;
  }
}

/* About Page Styles */
.about-page {
  padding-top: 80px; /* Account for fixed header */
}

.about-hero {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 50%, #6c5ce7 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.about-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.about-story {
  padding: 5rem 0;
  background: white;
}

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

.story-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #555;
}

.development-timeline {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 15px;
  border-left: 4px solid #667eea;
}

.timeline-item {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
}

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

.year {
  font-size: 1.2rem;
  font-weight: bold;
  color: #667eea;
}

.milestone {
  font-size: 1rem;
  color: #555;
  margin-top: 0.5rem;
}

.about-mission {
  padding: 5rem 0;
  background: #f8f9fa;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.mission-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-8px);
}

.mission-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.mission-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #2d3436;
}

.mission-card p {
  color: #555;
  line-height: 1.7;
}

.about-team {
  padding: 5rem 0;
  background: white;
}

.team-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #555;
}

.team-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-item {
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 15px;
  border-left: 4px solid #667eea;
}

.value-item h4 {
  color: #2d3436;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.value-item p {
  color: #555;
  font-size: 0.95rem;
  margin: 0;
}

.about-technology {
  padding: 5rem 0;
  background: #f8f9fa;
}

.tech-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #555;
}

.tech-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tech-feature {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tech-feature h4 {
  color: #2d3436;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.tech-feature p {
  color: #555;
  margin: 0;
  font-size: 0.95rem;
}

.about-future {
  padding: 5rem 0;
  background: white;
}

.future-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #555;
}

.about-cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.about-cta h2 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.about-cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(232, 67, 147, 0.4);
}

/* About Page Mobile Responsive */
@media (max-width: 768px) {
  .about-hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .story-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .mission-grid {
    grid-template-columns: 1fr;
  }
  
  .team-values {
    grid-template-columns: 1fr;
  }
  
  .tech-highlights {
    grid-template-columns: 1fr;
  }
  
  .about-cta h2 {
    font-size: 2rem;
  }
}

/* Legal Pages Styles */
.legal-page {
  padding-top: 80px;
}

.legal-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.legal-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.last-updated {
  font-size: 1rem;
  opacity: 0.9;
}

.legal-content {
  padding: 4rem 0;
  background: white;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.content-wrapper h2 {
  font-size: 1.8rem;
  color: #2d3436;
  margin: 2.5rem 0 1rem 0;
  border-bottom: 2px solid #667eea;
  padding-bottom: 0.5rem;
}

.content-wrapper h3 {
  font-size: 1.3rem;
  color: #555;
  margin: 1.5rem 0 0.8rem 0;
}

.content-wrapper p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  color: #555;
}

.content-wrapper ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

.content-wrapper li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  color: #555;
}

.contact-info {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid #667eea;
  margin: 1.5rem 0;
}

.contact-info p {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact-info a {
  color: #667eea;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Legal Pages Mobile Responsive */
@media (max-width: 768px) {
  .legal-hero h1 {
    font-size: 2rem;
  }
  
  .content-wrapper {
    padding: 0 1rem;
  }
  
  .content-wrapper h2 {
    font-size: 1.5rem;
  }
}
