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

:root {
  --bg: #0a0e1a;
  --bg-card: rgba(17, 21, 38, 0.7);
  --bg-card-hover: rgba(25, 32, 56, 0.9);
  --surface: #111526;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --text: #e8eaf0;
  --text-muted: #8b8fa8;
  --text-dim: #5c6080;
  --primary: #f97316;
  --primary-light: #fb923c;
  --primary-glow: rgba(249, 115, 22, 0.15);
  --accent-red: #ef4444;
  --accent-blue: #38bdf8;
  --gradient: linear-gradient(135deg, #f97316, #ef4444, #a855f7);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SECTION HEADERS ===== */
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--primary-light);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.4);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
}

.btn--lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

.nav--scrolled {
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 1.2rem;
  font-weight: 800;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav__links a:hover { color: var(--primary); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 640px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 85vw);
    height: 100vh;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: var(--transition);
    border-left: 1px solid var(--border);
  }
  .nav__links--open { right: 0; }
  .nav__links a { font-size: 1.15rem; }
}

/* ===== BODY OVERLAY ===== */
.body-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.body-overlay--active {
  opacity: 1;
  pointer-events: all;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  overflow: hidden;
}

.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: particleFloat linear infinite;
  opacity: 0;
}

@keyframes particleFloat {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero__glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
  top: -80px;
  right: -80px;
  pointer-events: none;
  animation: glowFloat 8s ease-in-out infinite;
}

.hero__glow--2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
  top: auto;
  right: auto;
  bottom: -60px;
  left: -60px;
  animation-delay: -4s;
}

@keyframes glowFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-25px, 15px) scale(1.08); }
}

.hero__inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ===== AVATAR ===== */
.hero__avatar {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 2rem;
}

.hero__avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--gradient);
  animation: ringSpin 6s linear infinite;
}

@keyframes ringSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero__avatar-img {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bg);
  z-index: 1;
}

.hero__avatar-img svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: var(--primary-light);
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero__stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

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

/* ===== ABOUT ===== */
.about {
  padding: 6rem 0;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .about__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .about__grid { grid-template-columns: 1fr; }
}

.about__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.about__card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.about__card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.about__card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.about__card p {
  font-size: 1.1rem;
  font-weight: 700;
}

.about__text {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  text-align: center;
}

.about__text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.about__text strong {
  color: var(--text);
}

/* ===== GAMES ===== */
.games {
  padding: 6rem 0;
  position: relative;
}

.games::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.games__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .games__grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--card-accent, var(--primary)), transparent);
  opacity: 0;
  transition: var(--transition);
}

.game-card:hover {
  border-color: var(--card-accent, var(--primary));
  transform: translateY(-6px);
  background: var(--bg-card-hover);
}

.game-card:hover::before { opacity: 1; }

.game-card__glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-accent, rgba(249,115,22,0.08)), transparent 70%);
  top: -60px;
  right: -60px;
  opacity: 0;
  transition: var(--transition);
}

.game-card:hover .game-card__glow { opacity: 1; }

.game-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.game-card__title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--card-accent, var(--text));
}

.game-card__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.game-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.game-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: var(--text-muted);
}

/* ===== HOBBIES ===== */
.hobbies {
  padding: 6rem 0;
  position: relative;
}

.hobbies::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hobbies__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .hobbies__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hobbies__grid { grid-template-columns: 1fr; }
}

.hobby-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.hobby-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.hobby-card__emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.hobby-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hobby-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer__logo {
  font-size: 1.1rem;
  font-weight: 800;
}

.footer__tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.footer__bottom {
  font-size: 0.82rem;
  color: var(--text-dim);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  width: 100%;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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