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

:root {
  --bg-primary: #0a0e1a;
  --bg-card: #111827;
  --bg-card-hover: #1a2332;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-glow: rgba(59, 130, 246, 0.3);
  --blue-glow-strong: rgba(59, 130, 246, 0.5);
  --text-primary: #f0f4ff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(59, 130, 246, 0.15);
  --border-hover: rgba(59, 130, 246, 0.4);
  --radius: 16px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Playfair Display', Georgia, serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.nav__logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-400);
  cursor: pointer;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav__links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-500);
  transition: width 0.3s;
}

.nav__links a:hover {
  color: var(--blue-400);
}

.nav__links a:hover::after {
  width: 100%;
}

/* ===== Container ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
}

.hero__glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

.hero__subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  color: var(--blue-400);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.3s;
}

.hero__name {
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--blue-400) 50%, var(--blue-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.5s;
}

.hero__tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.7s;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  animation: fadeInUp 0.8s ease forwards 1.2s;
  opacity: 0;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--blue-400);
  border-bottom: 2px solid var(--blue-400);
  transform: rotate(45deg);
  animation: bounceDown 1.5s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

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

/* ===== Sections ===== */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}

.section__title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

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

.accent {
  color: var(--blue-400);
}

/* ===== About Cards ===== */
.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.about__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

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

.about__card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.12);
  background: var(--bg-card-hover);
}

.card__icon {
  margin-bottom: 0.75rem;
}

.card__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.card__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-400);
}

/* ===== Hobby Cards ===== */
.hobbies__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.hobby-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

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

.hobby-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(59, 130, 246, 0.12);
}

.hobby-card__visual {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.hobby-card__bg-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
}

.hobby-card__icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.hobby-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hobby-card__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

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

.tag {
  padding: 0.3rem 0.8rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--blue-400);
  white-space: nowrap;
}

/* ===== Guitar Section ===== */
.guitar-section {
  padding-bottom: 3rem;
}

.guitar-hint {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.guitar-wrapper {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  padding: 1rem 0;
}

#guitarCanvas {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #0c1018 0%, #111827 100%);
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(59, 130, 246, 0.08);
  transition: box-shadow 0.3s;
}

#guitarCanvas:hover {
  box-shadow: 0 12px 50px rgba(59, 130, 246, 0.15);
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav {
    padding: 0.75rem 1rem;
  }
  .nav__links {
    gap: 1rem;
  }
  .nav__links a {
    font-size: 0.75rem;
  }
  .about__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hobbies__grid {
    grid-template-columns: 1fr;
  }
  .guitar-wrapper {
    padding: 0.5rem;
  }
}

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

#guitarCanvas {
  max-width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border);
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav__links {
    gap: 1rem;
    font-size: 0.75rem;
  }

  .hobbies__grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 0.75rem 1rem;
  }

  .nav__links {
    gap: 0.6rem;
  }

  .about__grid {
    grid-template-columns: 1fr 1fr;
  }
}
