/*
  funexpanse.com - Main Stylesheet
  Theme: Electric Teal & Amber
  Font: Raleway (unique from previous sites)
  Year: 2025
*/

:root {
  --primary-color: #0369a1; /* Deep Blue */
  --accent-color: #dc2626; /* Vibrant Red */
  --background-color: #f8fafc; /* Light Gray */
  --card-bg: #ffffff;
  --text-color: #1e293b;
  --nav-bg: #ffffff;
  --nav-active: #dc2626;
  --footer-bg: #f1f5f9;
  --footer-accent: #0369a1;
  --button-bg: #dc2626;
  --button-hover: #0369a1;
  --disclaimer-bg: #fef2f2;
  --disclaimer-border: #dc2626;
  --review-bg: #f8fafc;
  --scroll-btn-bg: #0369a1;
  --scroll-btn-hover: #dc2626;
  --warning-bg: #fef3c7;
  --warning-text: #92400e;
}

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

body {
  font-family: 'Raleway', sans-serif;
  background: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
}

.header {
  background: var(--nav-bg);
  box-shadow: 0 4px 24px rgba(3,105,161,0.10);
  border-bottom: 3px solid var(--primary-color);
  border-radius: 24px;
  margin: 0 auto;
  max-width: 1280px;
  padding: 0 24px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
}

.logo {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent-color);
  text-decoration: none;
  letter-spacing: -1px;
  font-style: italic;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 32px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 4px;
  transition: transform 0.3s;
}

.nav-menu {
  display: flex;
}

.nav-menu ul {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 10px 4px;
  border-bottom: 3px solid transparent;
  transition: all 0.25s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-menu a.active {
  color: var(--nav-active);
  border-bottom: 3px solid var(--nav-active);
}

.nav-menu a:hover {
  color: var(--accent-color);
  border-bottom: 3px solid var(--accent-color);
}

@media (max-width: 900px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 92vw;
    max-width: 400px;
    background: #0f172a;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(3,105,161,0.18);
    border-radius: 18px;
    z-index: 9999;
    align-items: stretch;
    justify-content: flex-start;
    padding: 24px 0 12px 0;
    border-top: 3px solid var(--primary-color);
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .nav-menu li {
    border-bottom: 1px solid #1e293b;
    padding: 18px 0;
    text-align: center;
    width: 100%;
  }
  .nav-menu a {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0;
    border-bottom: none;
    transition: color 0.2s;
  }
  .nav-menu a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
  }
  .nav-menu a:hover {
    color: var(--accent-color);
  }
  
  .nav-menu ul {
    flex-direction: column;
    gap: 0;
  }
  
  .nav-menu li {
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0;
    text-align: center;
  }
  
  .hamburger {
    display: flex;
  }
}

.hero {
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  box-shadow: 0 10px 40px rgba(30,41,59,0.08);
  border-radius: 40px;
  margin: 40px auto 0 auto;
  max-width: 1300px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.15);
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(220,38,38,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(3,105,161,0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite reverse;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.hero-content {
  display: contents;
}

.hero-text {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-image-section {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.hero-image-section::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: movePattern 20s linear infinite;
}

@keyframes movePattern {
  0% {
    background-position: 0 0, 25px 25px;
  }
  100% {
    background-position: 50px 50px, 75px 75px;
  }
}

.hero-img {
  width: 100%;
  max-width: 380px;
  height: 380px;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);
  margin-bottom: 0;
  border: 8px solid rgba(255,255,255,0.95);
  background: #fff;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.hero-img:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 40px 90px rgba(0,0,0,0.5);
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: -2.5px;
  color: var(--text-color);
  line-height: 1.1;
  background: linear-gradient(135deg, #0369a1 0%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 40px;
  line-height: 1.8;
  color: #475569;
  max-width: 500px;
}

.hero .play-btn {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 1.25rem;
  font-weight: 800;
  padding: 20px 52px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(220,38,38,0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
}

.hero .play-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.hero .play-btn:hover::before {
  left: 100%;
}

.hero .play-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(220,38,38,0.4);
}

.disclaimer-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30,41,59,0.94);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.disclaimer-popup.active {
  display: flex;
}

.disclaimer-box {
  background: var(--disclaimer-bg);
  border: 5px solid var(--disclaimer-border);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 480px;
  text-align: center;
  color: var(--text-color);
  box-shadow: 0 12px 48px rgba(220,38,38,0.25);
}

.disclaimer-box h2 {
  color: var(--accent-color);
  font-size: 2.4rem;
  margin-bottom: 24px;
  font-weight: 900;
  text-transform: uppercase;
}

.disclaimer-box p {
  font-size: 1.2rem;
  margin-bottom: 32px;
  line-height: 1.8;
}

.disclaimer-box .confirm-btn {
  background: var(--button-bg);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 16px 40px;
  cursor: pointer;
  margin-top: 16px;
  transition: all 0.3s;
  text-transform: uppercase;
}

.disclaimer-box .confirm-btn:hover {
  background: var(--button-hover);
  color: #fff;
  transform: scale(1.08);
}

.disclaimer-box .read-btn {
  background: transparent;
  color: var(--accent-color);
  border: 3px solid var(--accent-color);
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 32px;
  cursor: pointer;
  margin-top: 14px;
  transition: all 0.3s;
  text-transform: uppercase;
}

.disclaimer-box .read-btn:hover {
  background: var(--accent-color);
  color: #ffffff;
}

.disclaimer-section {
  background: var(--disclaimer-bg);
  border: 4px solid var(--disclaimer-border);
  border-radius: 20px;
  padding: 40px 32px;
  margin: 48px 32px;
  text-align: center;
  color: var(--text-color);
  box-shadow: 0 8px 32px rgba(220,38,38,0.18);
}

.disclaimer-section h2 {
  color: var(--accent-color);
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.disclaimer-section p {
  font-size: 1.2rem;
  margin-bottom: 24px;
  line-height: 1.8;
}

.disclaimer-section .read-btn {
  background: var(--accent-color);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 14px 32px;
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.3s;
  text-transform: uppercase;
}

.disclaimer-section .read-btn:hover {
  background: var(--button-hover);
  color: #fff;
  transform: scale(1.06);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.game-section {
  margin: 56px 32px;
  text-align: center;
}

.game-section h2 {
  color: var(--accent-color);
  font-size: 2rem;
  margin-bottom: 28px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.game-frame {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  border: 5px solid var(--accent-color);
  border-radius: 16px;
  background: #000;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(3,105,161,0.25);
}

.about-section {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 44px 36px;
  margin: 48px 32px;
  text-align: center;
  color: var(--text-color);
  box-shadow: 0 8px 32px rgba(148,163,184,0.18);
  border-top: 5px solid var(--primary-color);
}

.about-section h2 {
  color: var(--primary-color);
  font-size: 1.9rem;
  margin-bottom: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.about-section p {
  font-size: 1.2rem;
  margin-bottom: 22px;
  line-height: 1.9;
}

.about-img {
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
  margin: 24px 0;
  box-shadow: 0 6px 28px rgba(3,105,161,0.18);
  border: 4px solid var(--primary-color);
}

.review-section {
  background: var(--review-bg);
  border-radius: 20px;
  padding: 44px 36px;
  margin: 48px 32px;
  text-align: left;
  color: var(--text-color);
  box-shadow: 0 8px 32px rgba(148,163,184,0.22);
  border: 2px solid #e2e8f0;
}

.review-section h2 {
  color: var(--accent-color);
  font-size: 1.8rem;
  margin-bottom: 28px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.review-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px 20px;
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 400;
  box-shadow: 0 6px 20px rgba(3,105,161,0.12);
  border-left: 5px solid var(--accent-color);
  font-style: italic;
  border: 1px solid #e2e8f0;
}

.features-section {
  margin: 56px 32px;
  text-align: center;
}

.features-section h2 {
  color: var(--primary-color);
  font-size: 1.9rem;
  margin-bottom: 32px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
}

.feature-item {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 32px 24px;
  color: var(--text-color);
  box-shadow: 0 6px 24px rgba(148,163,184,0.14);
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 5px solid var(--primary-color);
  transition: all 0.3s;
  flex: 1 1 240px;
  max-width: 280px;
  border: 1px solid #e2e8f0;
}

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(220,38,38,0.3);
  border-bottom: 5px solid var(--accent-color);
}

.scroll-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: var(--scroll-btn-bg);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(3,105,161,0.35);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 999;
  font-weight: 900;
}

.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-to-top:hover {
  background: var(--scroll-btn-hover);
  transform: scale(1.15);
}

.footer {
  background: var(--footer-bg);
  color: var(--text-color);
  padding: 64px 0 0 0;
  margin-top: 80px;
  border-top: 4px solid var(--primary-color);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 40px 32px;
}

.footer-column {
  flex: 1 1 220px;
}

.footer-column h3 {
  color: var(--accent-color);
  font-size: 1.4rem;
  margin-bottom: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s;
}

.footer-column a:hover {
  color: var(--accent-color);
  padding-left: 8px;
}

.footer-column p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.footer-notice {
  background: var(--disclaimer-bg);
  color: var(--text-color);
  border-top: 3px solid var(--accent-color);
  padding: 32px 32px;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
}

.footer-notice strong {
  color: var(--accent-color);
  font-weight: 800;
}

.footer-copyright {
  background: var(--card-bg);
  color: var(--primary-color);
  text-align: center;
  padding: 24px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  border-top: 1px solid #e2e8f0;
}

.contact-section {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 44px 36px;
  margin: 48px auto;
  color: var(--text-color);
  box-shadow: 0 8px 32px rgba(148,163,184,0.18);
  max-width: 680px;
  border-top: 5px solid var(--primary-color);
  border: 1px solid #e2e8f0;
}

.contact-section h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 24px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form input,
.contact-form textarea {
  background: #f8fafc;
  color: var(--text-color);
  border: 3px solid var(--primary-color);
  border-radius: 12px;
  padding: 16px;
  font-size: 1.1rem;
  font-family: inherit;
  transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 16px rgba(220,38,38,0.35);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  background: var(--button-bg);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 16px 40px;
  cursor: pointer;
  margin-top: 16px;
  transition: all 0.3s;
  text-transform: uppercase;
}

.contact-form button:hover {
  background: var(--button-hover);
  color: #fff;
  transform: scale(1.06);
}

.policy-content {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 48px 40px;
  margin: 48px auto;
  color: var(--text-color);
  box-shadow: 0 8px 32px rgba(148,163,184,0.18);
  max-width: 1000px;
  border-top: 5px solid var(--primary-color);
  border: 1px solid #e2e8f0;
}

.policy-content h1 {
  color: var(--accent-color);
  font-size: 2.4rem;
  margin-bottom: 32px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.policy-content h2 {
  color: var(--primary-color);
  font-size: 1.6rem;
  margin-bottom: 20px;
  margin-top: 36px;
  font-weight: 900;
  text-transform: uppercase;
}

.policy-content h3 {
  color: var(--accent-color);
  font-size: 1.3rem;
  margin-bottom: 16px;
  margin-top: 28px;
  font-weight: 800;
}

.policy-content ul {
  margin-bottom: 22px;
  padding-left: 32px;
}

.policy-content li {
  margin-bottom: 12px;
  line-height: 1.8;
}

.policy-content p {
  line-height: 1.9;
  margin-bottom: 20px;
}

.policy-content .highlight-box {
  background: var(--disclaimer-bg);
  border: 4px solid var(--accent-color);
  border-radius: 16px;
  padding: 32px;
  margin: 40px 0;
  text-align: center;
  color: var(--text-color);
  box-shadow: 0 6px 28px rgba(220,38,38,0.18);
}

.policy-content .highlight-box h2 {
  color: var(--accent-color);
  font-size: 1.6rem;
  margin-bottom: 16px;
  margin-top: 0;
}

.policy-content .highlight-box p {
  font-size: 1.1rem;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .nav-container {
    padding: 0 16px;
    height: 64px;
  }
  
  .logo {
    font-size: 1.9rem;
  }
  
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  
  .hero-text {
    padding: 48px 32px;
    order: 2;
  }
  
  .hero-image-section {
    padding: 48px 32px;
    order: 1;
    min-height: 400px;
  }
  
  .hero-img {
    max-width: 280px;
    height: 280px;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-desc {
    font-size: 1.2rem;
  }
  
  .footer-grid {
    flex-direction: column;
    gap: 28px;
    padding: 0 16px 32px 16px;
  }
  
  .policy-content {
    padding: 28px 16px;
  }
  
  .game-section,
  .about-section,
  .review-section,
  .features-section,
  .disclaimer-section {
    margin: 36px 16px;
  }

  .game-frame{
    height: auto;
  }
}
