:root {
  --bg-start: #fdfbf7;
  --bg-end: #e2f0fb;
  --text-main: #2d3436;
  --text-subtle: #636e72;
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(45, 52, 54, 0.1);
  --accent: #0984e3;
  --accent-secondary: #fdcb6e;
  --accent-tertiary: #00b894;
  --accent-quaternary: #e17055;
  --shadow: 0 8px 24px rgba(45, 52, 54, 0.08);
  --font-heading: "ZCOOL KuaiLe", cursive;
  --font-body: "Nunito", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-main);
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Shapes */
.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
}

.bg-shape--one {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  background: var(--accent-secondary);
  animation: float 6s ease-in-out infinite;
}

.bg-shape--two {
  width: 300px;
  height: 300px;
  bottom: 10%;
  left: -50px;
  background: var(--accent);
  animation: float 8s ease-in-out infinite reverse;
}

.bg-shape--three {
  width: 200px;
  height: 200px;
  top: 40%;
  left: 60%;
  background: var(--accent-tertiary);
  animation: float 7s ease-in-out infinite 1s;
}

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

.container {
  width: min(1000px, 90vw);
  margin: 0 auto;
  padding: 0 16px;
}

/* Navigation */
.site-header {
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--accent);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(9, 132, 227, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px;
  cursor: pointer;
}

.nav-toggle__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 999px;
}

.nav-toggle__line + .nav-toggle__line {
  margin-top: 6px;
}

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

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

/* Hero Section */
.hero {
  padding: 72px 0 52px;
  text-align: center;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 40px;
}

@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    padding: 100px 0;
  }
  .hero-content {
    flex: 1;
  }
  .hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
  }
}

.tag {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(9, 132, 227, 0.1);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
  color: var(--text-main);
}

.intro {
  margin: 0 0 32px;
  color: var(--text-subtle);
  font-size: 1rem;
  max-width: 500px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 12px rgba(9, 132, 227, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #076aba;
}

.avatar-placeholder {
  font-size: clamp(4.5rem, 15vw, 8rem);
  background: white;
  width: clamp(150px, 40vw, 220px);
  height: clamp(150px, 40vw, 220px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  border: 4px solid white;
}

/* Section Common */
section {
  padding: 60px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-secondary);
  margin: 8px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-subtle);
  margin-top: -20px;
  margin-bottom: 40px;
}

/* Hobby Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.card {
  padding: 32px 24px;
  border-radius: 20px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border: 1px solid white;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.card .icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: inline-block;
}

.card h3 {
  font-family: var(--font-heading);
  margin: 0 0 12px;
  color: var(--text-main);
}

/* Specific Card Accents */
.hobby-cube .icon { text-shadow: 2px 2px 0px rgba(255, 107, 107, 0.2); }
.hobby-sport .icon { text-shadow: 2px 2px 0px rgba(78, 205, 196, 0.2); }
.hobby-music .icon { text-shadow: 2px 2px 0px rgba(255, 159, 243, 0.2); }
.hobby-tech .icon { text-shadow: 2px 2px 0px rgba(84, 160, 255, 0.2); }


/* Game Section */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.game-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  min-height: 200px;
  text-decoration: none;
  color: var(--text-main);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s;
  border: 2px solid transparent;
}

.game-card:hover {
  transform: scale(1.05);
  border-color: var(--accent);
}

.game-card.coming-soon {
  cursor: not-allowed;
}

.game-card.coming-soon:hover {
  transform: none;
  border-color: transparent;
}

.game-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.game-info {
  text-align: center;
}

.game-info h3 {
  margin: 0;
  font-size: 1.1rem;
}

.game-info p {
  margin: 4px 0 8px;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  background: #dfe6e9;
  color: #636e72;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
}

/* Gallery Placeholder */
.gallery-placeholder {
  background: rgba(255, 255, 255, 0.6);
  border: 2px dashed #b2bec3;
  border-radius: 20px;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-subtle);
}

.gallery-icons {
  font-size: 2rem;
  margin-top: 16px;
  opacity: 0.5;
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 40px 0;
  margin-top: 60px;
  color: var(--text-subtle);
  font-size: 0.9rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (max-width: 600px) {
  .bg-shape {
    opacity: 0.3;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.3s ease, opacity 0.2s ease, transform 0.3s ease;
    padding: 0;
  }

  .nav-links.is-open {
    max-height: 260px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 6px;
    padding-bottom: 6px;
  }

  .hero {
    padding-top: 56px;
  }

  .intro {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .section-title {
    font-size: 1.75rem;
  }

  .card {
    padding: 26px 20px;
  }

  .game-card {
    min-height: 180px;
  }
}
