.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.28;
  pointer-events: none;
  z-index: -3;
}

.mesh {
  position: fixed;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  z-index: -2;
  pointer-events: none;
}

@media (max-width: 900px) {
  .grain {
    opacity: 0.18;
  }

  .mesh {
    width: 30rem;
    height: 30rem;
    filter: blur(56px);
    opacity: 0.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grain,
  .mesh {
    display: none;
  }
}

.mesh-a {
  background: #30011e;
  top: -12rem;
  right: -13rem;
}

.mesh-b {
  background: #4f5d75;
  bottom: -12rem;
  left: -14rem;
}

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.95rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.theme-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.72rem 1.08rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(125deg, var(--accent), #f5b090);
  box-shadow: 0 12px 32px rgba(239, 131, 84, 0.4);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-social svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.section-head {
  margin-top: 3.2rem;
}

.section-head h2,
.panel h2,
.reveal > h2,
.contact-title {
  margin-top: 3.2rem;
  margin-bottom: 0.38rem;
  font-size: clamp(1.4rem, 2.3vw, 2.05rem);
}

#about,
#education,
#skills {
  margin-top: 2.4rem;
}

.card {
  background: linear-gradient(145deg, var(--surface), rgba(20, 20, 20, 0.65));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.panel {
  margin-top: 2.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

#about > .panel,
#education > .panel,
#skills > .panel {
  margin-top: 0.75rem;
}

.muted {
  color: var(--muted);
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 1rem 2rem;
  color: var(--muted);
  font-size: 0.76rem;
}
