:root {
  --bg:        #0c0c10;
  --bg2:       #121218;
  --card:      #18181f;
  --border:    rgba(255,255,255,0.07);
  --text:      #eeeef2;
  --muted:     rgba(238,238,242,0.5);
  --accent:    #b8a4f8;
  --accent2:   #f4a8c7;
  --good:      #7dd4a8;
  --medium:    #f9d77e;
  --beginner:  #f4a8c7;
  --radius:    18px;
    --font-head: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
  --trans:     0.4s cubic-bezier(.25,.8,.25,1);
}

[data-theme="light"] {
  --bg:        #faf7f4;
  --bg2:       #f3eef8;
  --card:      #ffffff;
  --border:    rgba(0,0,0,0.07);
  --text:      #1a1025;
  --muted:     rgba(26,16,37,0.5);
  --accent:    #8b6dd6;
  --accent2:   #d4608f;
  --good:      #2e8f62;
  --medium:    #b87c00;
  --beginner:  #c24d7a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  transition: background var(--trans), color var(--trans);
  overflow-x: hidden;
  line-height: 1.65;
}

#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-ring {
  width: 42px;
  height: 42px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.logo-short { display: none; }

@media (max-width: 860px) {
  .logo-full  { display: none; }
  .logo-short { display: inline; }
}

@keyframes spin { to { transform: rotate(360deg); } }

#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 2rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(12,12,16,0.7);
  border-bottom: 1px solid var(--border);
  transition: background var(--trans);
}

[data-theme="light"] #navbar {
  background: rgba(250,247,244,0.8);
}

.nav-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.25s ease;
}

nav a:hover { color: var(--text); }
nav a:hover::after { width: 100%; }

#theme-toggle {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: transform 0.2s, background var(--trans);
}

.lang-dropdown {
  position: relative;
}

#lang-toggle {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  height: 38px;
  padding: 0 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-body);
  transition: transform 0.2s, background var(--trans);
}

#lang-toggle i {
  font-size: 0.6rem;
  transition: transform 0.2s;
}

.lang-dropdown.open #lang-toggle i {
  transform: rotate(180deg);
}

#lang-toggle:hover { transform: scale(1.05); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  min-width: 130px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  z-index: 200;
}

.lang-dropdown.open .lang-menu {
  display: flex;
}

.lang-menu button {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.lang-menu button:hover {
  background: rgba(184,164,248,0.1);
  color: var(--accent);
}

#theme-toggle:hover { transform: scale(1.08); }

section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem 2rem;
}

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

.section-header h2 {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.4rem;
}

.section-header p {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

#about {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 5rem;
  align-items: center;
  width: 100%;
}

.about-label {
  font-size: 1.5rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  letter-spacing: 0.3px;
}

.wave {
  display: inline-block;
  animation: wave 2.2s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0%,50%,100% { transform: rotate(0deg); }
  15%         { transform: rotate(18deg); }
  35%         { transform: rotate(-10deg); }
}

#about h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 1.4rem;
}

.about-bio {
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.socials {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}

.socials a {
  font-size: 1.4rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.socials a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  background: var(--accent);
  color: #0c0c10;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 30px rgba(184,164,248,0.3);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(184,164,248,0.45);
}

.about-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 1rem;
}

.avatar-wrap {
  width: 280px;
  height: 280px;
  border-radius: 60px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.4);
  background: var(--card);
  border: 1px solid var(--border);
  animation: float 6s ease-in-out infinite;
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--muted);
  background: var(--card);
}

.status-dot {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 4px solid var(--bg);
  transition: background 0.3s ease;
  z-index: 2;
}

.activity-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  width: 260px;
  margin-top: 0.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.activity-icon-wrap {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.activity-icon-wrap img#activity-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.activity-img-small {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--card);
}

.activity-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  overflow: hidden;
  min-width: 0;
}

.activity-type {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.activity-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-detail,
.activity-state {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-detail:empty,
.activity-state:empty { display: none; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--card);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.status-online  { background-color: #23a559; color: #23a559; }
.status-idle    { background-color: #f0b232; color: #f0b232; }
.status-dnd     { background-color: #f23f43; color: #f23f43; }
.status-offline { background-color: #80848e; color: #80848e; }

.status-dot.status-online  { background: #23a559; }
.status-dot.status-idle    { background: #f0b232; }
.status-dot.status-dnd     { background: #f23f43; }
.status-dot.status-offline { background: #80848e; }

.status-label {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
  margin-right: 0.2rem;
}

.status-badge.status-online  { border-color: rgba(35,165,89,0.3);  background: rgba(35,165,89,0.1);  color: #23a559; }
.status-badge.status-idle    { border-color: rgba(240,178,50,0.3);  background: rgba(240,178,50,0.1);  color: #f0b232; }
.status-badge.status-dnd     { border-color: rgba(242,63,67,0.3);   background: rgba(242,63,67,0.1);   color: #f23f43; }
.status-badge.status-offline { border-color: rgba(128,132,142,0.3); background: rgba(128,132,142,0.1); color: #80848e; }

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

.about-badge {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.badge-1 { top: 10%;  left: -12%; }
.badge-2 { bottom: 28%; left: -14%; }
.badge-3 { top: 15%;  right: -8%; }

#skills { background: transparent; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-category {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.skill-cat-header i {
  color: var(--accent);
  font-size: 1.1rem;
}

.skill-row span i {
  font-size: 1rem;
  color: var(--accent);
  margin-right: 0.3rem;
  vertical-align: middle;
}

.tools-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.tools-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--text);
}

.tools-list li i {
  color: var(--accent);
  width: 16px;
  text-align: center;
  font-size: 1rem;
}

.skill-cat-header h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
}

.skill-category ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.skill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.skill-level {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.skill-level.good     { background: rgba(125,212,168,0.15); color: var(--good); }
.skill-level.medium   { background: rgba(249,215,126,0.15); color: var(--medium); }
.skill-level.beginner { background: rgba(244,168,199,0.15); color: var(--beginner); }

.skill-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
}

[data-theme="light"] .skill-bar {
  background: rgba(0,0,0,0.06);
}

.skill-bar div {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 99px;
  animation: grow 1.6s ease forwards;
  animation-delay: 0.3s;
}

.gamemaker-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 0.3rem;
  filter: invert(73%) sepia(30%) saturate(1200%) hue-rotate(200deg) brightness(90%);
}

[data-theme="light"] .gamemaker-icon {
  filter: invert(73%) sepia(30%) saturate(1200%) hue-rotate(200deg) brightness(60%);
}

@keyframes grow { to { width: var(--w); } }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.show-more-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.show-more-btn i {
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.filter-btn {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s ease;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0c0c10;
  font-weight: 700;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}

.project-thumb {
  position: relative;
  height: 175px;
  background: linear-gradient(135deg, var(--bg2), var(--card));
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.project-thumb.no-img::after {
  content: 'No image yet';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.04);
}

.project-overlay {
  position: absolute;
  inset: 0 0 -3px 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  border-radius: var(--radius) var(--radius) 0 0;
}

.project-card:hover .project-overlay { opacity: 1; }

.overlay-btn {
  background: var(--accent);
  color: #0c0c10;
  padding: 0.65rem 1.3rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(8px);
  transition: transform 0.3s ease;
}

.project-card:hover .overlay-btn { transform: translateY(0); }

.project-body {
  padding: 1.3rem;
}

.project-body h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  margin: 0.5rem 0 0.4rem;
}

.project-body p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.project-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.status-done { background: rgba(125,212,168,0.15); color: var(--good); }
.status-wip  { background: rgba(249,215,126,0.15); color: var(--medium); }
.status-open { background: rgba(184,164,248,0.15); color: var(--accent); }
.status-abandoned { background: rgba(148,163,184,0.15); color: #94a3b8; }
.status-active { background: rgba(56,189,248,0.15); color: #38bdf8; }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags span {
  background: rgba(184,164,248,0.1);
  color: var(--accent);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

#contact {
  padding-bottom: 5rem;
}

.contact-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 3.5rem;
  max-width: 900px;
  margin: auto;
  box-shadow: 0 40px 100px rgba(0,0,0,0.25);
}

.contact-box > h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.5px;
  margin-bottom: 0.4rem;
}

.contact-box > p {
  text-align: center;
  color: var(--muted);
  margin-bottom: 3rem;
  font-size: 0.95rem;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.field { position: relative; }

.field input,
.field textarea {
  width: 100%;
  padding: 1.1rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}

[data-theme="light"] .field input,
[data-theme="light"] .field textarea {
  background: rgba(0,0,0,0.03);
}

.field label {
  position: absolute;
  top: 1.1rem;
  left: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  pointer-events: none;
  transition: 0.22s ease;
}

.field textarea + label { top: 1.1rem; }

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184,164,248,0.15);
}

.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  top: -0.55rem;
  left: 0.85rem;
  font-size: 0.72rem;
  background: var(--card);
  padding: 0 0.35rem;
  border-radius: 4px;
  color: var(--accent);
}

#submit-btn {
  padding: 1rem;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0c0c10;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
}

#submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(184,164,248,0.4);
}

.btn-loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(12,12,16,0.3);
  border-top-color: #0c0c10;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

#submit-btn.loading .btn-text { display: none; }
#submit-btn.loading .btn-loader { display: block; }

#form-status {
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: 0.3s ease;
}

#form-status.show { opacity: 1; transform: translateY(0); }
#form-status.success { color: var(--good); }
#form-status.error   { color: #f4788a; }

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-aside > i {
  font-size: 2.2rem;
  color: var(--accent);
}

.contact-email {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
}

.contact-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 0.4rem;
}

.contact-socials {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.contact-socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-socials a:hover { color: var(--accent); }

footer {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}

#hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 38px;
  height: 38px;
  padding: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

#hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu panel ── */
#mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 150;
  padding: 5rem 2rem 2rem;
  transition: right 0.35s cubic-bezier(.25,.8,.25,1);
  display: flex;
  flex-direction: column;
}

#mobile-menu.open { right: 0; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-head);
  padding: 0.75rem 1rem;
  border-radius: 14px;
  transition: background 0.2s, color 0.2s;
}

.mobile-nav a:hover {
  background: rgba(184,164,248,0.1);
  color: var(--accent);
}

#mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(4px);
}

#mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

@media (max-width: 860px) {
  .about-grid        { grid-template-columns: 1fr; text-align: center; }
  .about-visual      { display: flex; }
  .about-bio         { max-width: 100%; }
  .socials           { justify-content: center; }
  .contact-inner     { grid-template-columns: 1fr; }
  .contact-aside     { align-items: center; text-align: center; }
  .contact-socials   { align-items: center; }
  nav                { display: none; }
  #hamburger         { display: flex; }
  .contact-box       { padding: 2rem 1.4rem; }
  .badge-1, .badge-2, .badge-3 { display: none; }
  .about-grid        { gap: 2rem; }
  .avatar-wrap       { width: 220px; height: 220px; }
  .activity-card     { width: 220px; }
  .nav-inner         { gap: 0.5rem; }
}

@media (max-width: 540px) {
  section { padding: 5rem 1.2rem; }
  #about h1 { font-size: 2.6rem; }
}

#discord-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #5865f2;
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 9999;
}

#discord-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}