/* ============================================
   Huisiwei Education - Main Stylesheet
   Cartoon Style for Global Teenagers
   ============================================ */

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

:root {
  --primary-color: #FF6B9D;
  --secondary-color: #4ECDC4;
  --tertiary-color: #FFE66D;
  --success-color: #95E77D;
  --dark-color: #2C3E50;
  --light-color: #F7F7F7;
  --border-radius: 15px;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --cartoon-font: 'Comic Sans MS', 'Chalkboard SE', 'Arial Rounded MT Bold', cursive;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--cartoon-font), sans-serif;
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   Header & Navigation
   ============================================ */

header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: transform 0.3s ease;
}

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

.logo-icon {
  font-size: 2.5rem;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============================================
   Main Content Area
   ============================================ */

main {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

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

.page {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.page.active {
  display: block;
}

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

/* ============================================
   Hero Section
   ============================================ */

.hero {
  background: linear-gradient(135deg, #FF6B9D 0%, #4ECDC4 50%, #FFE66D 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  border-radius: 0 0 30px 30px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '🎮 🎨 📱 🌟 🎯';
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  font-size: 3rem;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

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

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.8s ease-out;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 2rem;
  font-size: 1rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  font-family: var(--cartoon-font);
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: white;
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--primary-color);
}

/* ============================================
   Sections
   ============================================ */

section {
  padding: 4rem 2rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--tertiary-color));
  border-radius: 2px;
}

/* ============================================
   Features/Business Cards
   ============================================ */

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

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
  border: 3px solid var(--light-color);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

.feature-icon:nth-child(1) { animation-delay: 0s; }
.feature-icon:nth-child(2) { animation-delay: 0.2s; }
.feature-icon:nth-child(3) { animation-delay: 0.4s; }

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

.feature-card h3 {
  color: var(--secondary-color);
  margin: 1rem 0;
  font-size: 1.5rem;
}

.feature-card p {
  color: #666;
  line-height: 1.8;
}

/* ============================================
   About Section
   ============================================ */

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

.about-text h3 {
  color: var(--secondary-color);
  font-size: 1.8rem;
  margin: 1.5rem 0 1rem 0;
}

.about-text p {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.9;
}

.team-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.team-item {
  background: linear-gradient(135deg, var(--tertiary-color) 0%, var(--success-color) 100%);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  color: var(--dark-color);
  font-weight: 600;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: var(--border-radius);
  min-height: 400px;
  font-size: 5rem;
  text-align: center;
}

/* ============================================
   Business Section
   ============================================ */

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

.business-item {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #2FC7B5 100%);
  padding: 2rem;
  border-radius: var(--border-radius);
  color: white;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.business-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

.business-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.business-item p {
  font-size: 1rem;
  line-height: 1.7;
}

/* ============================================
   Contact Form Section
   ============================================ */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #DDD;
  border-radius: 8px;
  font-family: var(--cartoon-font);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-card {
  background: linear-gradient(135deg, var(--tertiary-color) 0%, var(--success-color) 100%);
  padding: 2rem;
  border-radius: var(--border-radius);
  color: var(--dark-color);
}

.info-card h4 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  word-break: break-word;
}

/* ============================================
   Footer
   ============================================ */

footer {
  background: linear-gradient(135deg, var(--dark-color) 0%, #1A2734 100%);
  color: white;
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-section h3 {
  color: var(--tertiary-color);
  margin-bottom: 1rem;
}

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

.footer-section a {
  color: #DDD;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  padding: 0.3rem 0;
}

.footer-section a:hover {
  color: var(--tertiary-color);
}

.footer-bottom {
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  color: #AAA;
  font-size: 0.9rem;
}

/* ============================================
   Policy Pages Styling
   ============================================ */

.policy-content {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 2rem auto;
  line-height: 2;
}

.policy-content h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin: 2rem 0 1rem 0;
  border-bottom: 3px solid var(--secondary-color);
  padding-bottom: 0.5rem;
}

.policy-content h3 {
  color: var(--secondary-color);
  font-size: 1.3rem;
  margin: 1.5rem 0 1rem 0;
}

.policy-content p {
  color: #666;
  margin-bottom: 1rem;
}

.policy-content ul {
  margin: 1rem 0 1rem 2rem;
  color: #666;
}

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

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }

  nav {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav.active {
    max-height: 300px;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem;
  }

  nav a {
    padding: 0.5rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

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

  .policy-content {
    padding: 2rem 1.5rem;
  }

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

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

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

  .feature-card {
    padding: 1.5rem;
  }

  .cta-buttons {
    gap: 0.5rem;
  }

  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  section {
    padding: 2rem 1rem;
  }

  nav ul {
    gap: 0;
  }
}
