/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0a0e1a;
  --bg-card: rgba(15, 23, 42, 0.8);
  --accent: #06b6d4;
  --accent2: #8b5cf6;
  --accent3: #f59e0b;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --gradient: linear-gradient(135deg, #06b6d4, #8b5cf6);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== PARTICLES CANVAS ===== */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== GLASS EFFECT ===== */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  z-index: 100;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

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

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInUp 1s ease;
}

.avatar-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--gradient);
  padding: 4px;
  margin: 0 auto 30px;
  animation: pulse-ring 2s infinite;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.greeting {
  display: block;
  font-size: 1.3rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 16px;
}

.name {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin-bottom: 50px;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.85rem;
  animation: bounce 2s infinite;
}

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

.section-alt {
  background: rgba(255, 255, 255, 0.02);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 50px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  text-align: center;
  color: var(--text-dim);
  margin-top: -30px;
  margin-bottom: 50px;
  font-size: 1.1rem;
}

/* ===== ABOUT GRID ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.about-card {
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.15);
}

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

.about-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--accent);
}

.about-card p {
  color: var(--text-dim);
  line-height: 1.7;
}

/* ===== HOBBIES ===== */
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.hobby-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px 30px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.hobby-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
}

.hobby-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.15);
}

.hobby-emoji {
  font-size: 4rem;
  margin-bottom: 16px;
}

.hobby-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--accent2);
}

.hobby-card p {
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.7;
}

.hobby-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent2);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress {
  height: 100%;
  width: var(--progress);
  background: var(--gradient);
  border-radius: 10px;
  animation: fillProgress 1.5s ease-out forwards;
  transform-origin: left;
}

.progress-label {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ===== GAMES ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.game-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 36px 30px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(6, 182, 212, 0.12);
}

.game-platform {
  flex-shrink: 0;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
}

.game-platform.pc {
  background: linear-gradient(135deg, #06b6d4, #0ea5e9);
  color: #fff;
}

.game-platform.mobile {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
}

.game-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.game-info p {
  color: var(--text-dim);
  margin-bottom: 16px;
  line-height: 1.6;
}

.game-icons {
  display: flex;
  gap: 12px;
  font-size: 1.8rem;
}

.game-icons span {
  transition: transform 0.3s;
  cursor: default;
}

.game-icons span:hover {
  transform: scale(1.4);
}

/* ===== HOBBY BADGE ===== */
.hobby-badge {
  display: inline-block;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

/* ===== GAME LIST ===== */
.game-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.game-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s, transform 0.3s;
}

.game-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.game-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.game-item strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.game-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ===== ACHIEVEMENTS ===== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.achievement-card {
  padding: 36px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.achievement-card.gold {
  border-color: rgba(245, 158, 11, 0.3);
}

.achievement-card.gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.achievement-card.gold:hover {
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.15);
}

.achievement-card.bronze {
  border-color: rgba(180, 120, 80, 0.3);
}

.achievement-card.bronze::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #b47850, #d4a574);
}

.achievement-card.bronze:hover {
  box-shadow: 0 20px 50px rgba(180, 120, 80, 0.15);
}

.medal {
  font-size: 3.5rem;
  margin-bottom: 12px;
  animation: heartbeat 2s infinite;
}

.achievement-badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.gold .achievement-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.bronze .achievement-badge {
  background: rgba(180, 120, 80, 0.2);
  color: #d4a574;
  border: 1px solid rgba(180, 120, 80, 0.4);
}

.achievement-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--text);
}

.achievement-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.achievement-count {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.achievement-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ===== ACHIEVEMENTS SUMMARY ===== */
.achievements-summary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 32px 40px;
  flex-wrap: wrap;
}

.summary-item {
  text-align: center;
}

.summary-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.summary-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.summary-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

/* ===== SCHOOL ===== */
.school-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: start;
}

.school-main {
  padding: 40px;
}

.school-main h3 {
  font-size: 1.6rem;
  margin-bottom: 30px;
  color: var(--accent);
}

.subjects {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 30px;
}

.subject {
  display: flex;
  align-items: center;
  gap: 16px;
}

.subject-icon {
  font-size: 2rem;
  width: 50px;
  text-align: center;
}

.subject-name {
  font-size: 1.15rem;
  font-weight: 600;
  min-width: 120px;
}

.love-meter {
  display: flex;
  gap: 4px;
}

.heart {
  animation: heartbeat 1.5s infinite;
  font-size: 1.2rem;
}

.heart:nth-child(2) { animation-delay: 0.1s; }
.heart:nth-child(3) { animation-delay: 0.2s; }
.heart:nth-child(4) { animation-delay: 0.3s; }
.heart:nth-child(5) { animation-delay: 0.4s; }

.school-quote {
  color: var(--text-dim);
  font-style: italic;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.school-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card {
  padding: 28px;
  text-align: center;
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: scale(1.05);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
}

.footer-content p {
  color: var(--text-dim);
  margin-bottom: 12px;
}

.footer-emoji {
  font-size: 2rem;
  letter-spacing: 12px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4); }
  50% { box-shadow: 0 0 0 20px rgba(6, 182, 212, 0); }
}

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

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes fillProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 20px;
  }
  .nav-links {
    gap: 14px;
  }
  .nav-links a {
    font-size: 0.8rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .hobbies-grid,
  .games-grid {
    grid-template-columns: 1fr;
  }
  .school-content {
    grid-template-columns: 1fr;
  }
  .achievements-grid {
    grid-template-columns: 1fr;
  }
  .achievements-summary {
    gap: 20px;
    padding: 24px;
  }
  .summary-divider {
    display: none;
  }
  .game-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .subject {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .avatar-ring {
    width: 120px;
    height: 120px;
  }
  .avatar {
    font-size: 3rem;
  }
}