/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #12122a;
  --bg-card: #1a1a3e;
  --accent-red: #e74c3c;
  --accent-blue: #3498db;
  --accent-purple: #9b59b6;
  --accent-green: #2ecc71;
  --accent-orange: #f39c12;
  --text-primary: #ffffff;
  --text-secondary: #b0b0d0;
  --radius: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-icon {
  font-size: 28px;
}

.logo-text {
  font-family: 'Fredoka One', cursive;
  font-size: 22px;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.btn-play {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
  color: white;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-play:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  gap: 40px;
}

.hero-bg-shapes {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-red);
  top: -100px;
  right: -100px;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-blue);
  bottom: -50px;
  left: -50px;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--accent-purple);
  top: 50%;
  left: 40%;
}

.shape-4 {
  width: 250px;
  height: 250px;
  background: var(--accent-green);
  top: 20%;
  right: 30%;
}

.hero-content {
  flex: 1;
  z-index: 1;
  max-width: 600px;
}

.hero-title {
  font-family: 'Fredoka One', cursive;
  font-size: 52px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-orange), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(231, 76, 60, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid rgba(255,255,255,0.1);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: 'Fredoka One', cursive;
  font-size: 36px;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Hero Visual - Blocky Character */
.hero-visual {
  flex: 0 0 300px;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.roblox-character {
  position: relative;
  animation: float 3s ease-in-out infinite;
}

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

.character-body {
  position: relative;
  width: 160px;
  height: 260px;
}

.head {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f5c842, #f0a30a);
  border-radius: 8px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 30px rgba(245, 200, 66, 0.3);
}

.face {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.eye {
  width: 14px;
  height: 14px;
  background: #1a1a2e;
  border-radius: 3px;
  position: absolute;
}

.eye.left {
  left: -14px;
  top: -6px;
}

.eye.right {
  left: 8px;
  top: -6px;
}

.mouth {
  width: 24px;
  height: 6px;
  border-bottom: 3px solid #1a1a2e;
  border-radius: 0 0 8px 8px;
  position: absolute;
  left: -12px;
  top: 12px;
}

.torso {
  width: 90px;
  height: 80px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  border-radius: 6px;
  position: absolute;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

.arm {
  width: 28px;
  height: 80px;
  background: linear-gradient(135deg, #f5c842, #f0a30a);
  border-radius: 6px;
  position: absolute;
  top: 84px;
}

.left-arm {
  left: 8px;
  animation: wave-left 2s ease-in-out infinite;
}

.right-arm {
  right: 8px;
  animation: wave-right 2s ease-in-out infinite;
}

@keyframes wave-left {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-10deg); }
}

@keyframes wave-right {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(10deg); }
}

.leg {
  width: 36px;
  height: 70px;
  background: linear-gradient(135deg, #2c3e50, #34495e);
  border-radius: 6px;
  position: absolute;
  top: 164px;
}

.left-leg {
  left: 28px;
}

.right-leg {
  right: 28px;
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: 40px;
  text-align: center;
  margin-bottom: 16px;
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 56px;
}

/* About Cards */
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.about-card {
  background: var(--bg-card);
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.card-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ===== Games ===== */
.games-section {
  background: var(--bg-secondary);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.game-preview {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-icon-preview {
  font-size: 60px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.game-info {
  padding: 20px 24px;
}

.game-info h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.game-info p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 14px;
}

.game-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== Features ===== */
.features-section {
  background: var(--bg-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-item {
  text-align: center;
  padding: 32px 24px;
}

.feature-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
  background: rgba(255,255,255,0.03);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover .feature-circle {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255,255,255,0.1);
}

.feature-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ===== Tips ===== */
.tips-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tip-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg-card);
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.tip-card:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.tip-number {
  font-family: 'Fredoka One', cursive;
  font-size: 36px;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
  line-height: 1;
}

.tip-content h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.tip-content p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-secondary);
  padding: 60px 0 30px;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 12px;
  font-size: 14px;
}

.footer-links h4 {
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.3s;
}

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

.footer-bottom {
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    margin: 0 auto 24px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    flex: none;
  }

  .character-body {
    transform: scale(0.8);
  }

  .nav-links {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section-title {
    font-size: 28px;
  }

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