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

:root {
  --bg: #0c0c0c;
  --bg-alt: #0f0f0f;
  --surface: #141414;
  --border: #202020;
  --accent: #c8a97e;
  --accent-dim: #a8896e;
  --accent-glow: rgba(200, 169, 126, 0.14);
  --accent-soft: rgba(200, 169, 126, 0.06);
  --white: #f2f0ec;
  --gray: #969490;
  --gray-light: #d0ceca;
  --gray-dark: #888682;
  --text: #d8d6d2;
}

/* ===== Light Theme ===== */
[data-theme="light"] {
  --bg: #f7f5f1;
  --bg-alt: #f0ede8;
  --surface: #e8e4de;
  --border: #d8d4ce;
  --accent: #96663a;
  --accent-dim: #7a5230;
  --accent-glow: rgba(150, 102, 58, 0.12);
  --accent-soft: rgba(150, 102, 58, 0.06);
  --white: #1a1816;
  --gray: #6a6864;
  --gray-light: #4a4440;
  --gray-dark: #aaa8a4;
  --text: #282420;
}

[data-theme="light"] #navbar {
  background: rgba(247, 245, 241, 0.88);
}

[data-theme="light"] .photo-overlay {
  background: linear-gradient(
    180deg,
    transparent 65%,
    rgba(247, 245, 241, 0.2) 85%,
    rgba(247, 245, 241, 0.45) 100%
  );
}

[data-theme="light"] #navbar ul {
  background: rgba(247, 245, 241, 0.97) !important;
}

/* ===== Custom Cursor ===== */
@media (hover: hover) {
  body,
  a, button, .skill-item, .project-item, .learning-tag, .highlight {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='20' viewBox='0 0 16 20'%3E%3Cfilter id='s'%3E%3CfeDropShadow dx='0' dy='1' stdDeviation='1' flood-opacity='0.4'/%3E%3C/filter%3E%3Cpath d='M2 1 L2 15.5 L5.5 12 L8 18 L10.5 17 L8 11.5 L13 11.5 Z' fill='white' filter='url(%23s)' stroke='%231a1a1a' stroke-width='0.8' stroke-linejoin='round'/%3E%3C/svg%3E") 2 1, auto;
  }
  a, button, .skill-item, .project-item, .learning-tag, .highlight {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='20' viewBox='0 0 16 20'%3E%3Cfilter id='s'%3E%3CfeDropShadow dx='0' dy='1' stdDeviation='1' flood-opacity='0.4'/%3E%3C/filter%3E%3Cpath d='M2 1 L2 15.5 L5.5 12 L8 18 L10.5 17 L8 11.5 L13 11.5 Z' fill='white' filter='url(%23s)' stroke='%231a1a1a' stroke-width='0.8' stroke-linejoin='round'/%3E%3C/svg%3E") 2 1, pointer;
  }
}

.cursor-dot { display: none; }

.cursor-ring { display: none; }

@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 860px; margin: 0 auto; }

/* ===== Scroll Progress ===== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 2000;
  transition: width 0.1s linear;
}

/* ===== Loader ===== */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.loader-initial {
  font-family: "Inter", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -2px;
  animation: loader-pulse 0.85s ease-in-out infinite;
}

@keyframes loader-pulse {
  0%, 100% { opacity: 0.12; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1); }
}

/* ===== Toast ===== */
#toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 100px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 3000;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

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

/* ===== Spotlight ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    380px circle at var(--mouse-x, -200%) var(--mouse-y, -200%),
    rgba(200, 169, 126, 0.04),
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* ===== Dust Canvas ===== */
#dust-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===== Navbar ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7%;
  background: rgba(12, 12, 12, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(200, 169, 126, 0.06);
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: baseline;
  font-family: "Inter", sans-serif;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

#navbar ul {
  display: flex;
  gap: 2.5rem;
}

#navbar ul li a {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--gray);
  transition: color 0.3s;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
}

#navbar ul li a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}

#navbar ul li a:hover::after,
#navbar ul li a.active::after { width: 100%; }
#navbar ul li a:hover,
#navbar ul li a.active { color: var(--white); }

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: color 0.3s, border-color 0.3s;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--accent);
  transition: all 0.3s;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}
.menu-toggle.active span:nth-child(2) {
  transform: rotate(-45deg) translate(0, 0);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 7% 80px;
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 5rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-photo {
  flex-shrink: 0;
}

.photo-frame {
  width: 420px;
  height: 520px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(200, 169, 126, 0.12);
  box-shadow:
    0 0 60px rgba(200, 169, 126, 0.05),
    0 20px 40px rgba(0, 0, 0, 0.4);
}

.photo-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.95);
  transition: filter 0.6s ease, transform 0.6s ease;
}

.photo-frame:hover img {
  filter: contrast(1.08) brightness(1.05);
  transform: scale(1.04);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 65%,
    rgba(12, 12, 12, 0.2) 85%,
    rgba(12, 12, 12, 0.45) 100%
  );
  pointer-events: none;
}

.hero-content {
  flex: 1;
  max-width: 460px;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #7dba8c;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  padding: 5px 14px;
  border: 1px solid rgba(125, 186, 140, 0.15);
  border-radius: 100px;
  background: rgba(125, 186, 140, 0.06);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7dba8c;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(125, 186, 140, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(125, 186, 140, 0); }
}

.hero-content h1 {
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 200;
  line-height: 1.2;
  color: var(--gray);
  margin-bottom: 1.5rem;
  letter-spacing: -1.5px;
}

.hero-content h1 .greeting {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--gray);
  letter-spacing: 0;
  margin-bottom: 0.3rem;
}

.hero-content h1 .name {
  color: var(--white);
  font-weight: 800;
}

.cursor-blink {
  color: var(--accent);
  font-weight: 100;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  border-radius: 6px;
}

.btn-primary {
  padding: 13px 28px;
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: #dbbf96;
  box-shadow: 0 0 30px rgba(200, 169, 126, 0.2);
  transform: translateY(-1px);
}

.btn-primary i {
  font-size: 0.65rem;
  transition: transform 0.3s;
}

.btn-primary:hover i { transform: translateX(3px); }

.btn-outline {
  padding: 12px 28px;
  background: none;
  color: var(--gray-light);
  border: 1px solid var(--border);
}

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

.btn-ghost {
  padding: 12px 16px;
  background: none;
  color: var(--gray);
  border: none;
}

.btn-ghost:hover {
  color: var(--accent);
}

.btn-ghost i {
  font-size: 0.8rem;
}

.btn-lg { padding: 15px 34px; font-size: 0.85rem; }

/* Hero links */
.hero-links {
  display: flex;
  gap: 1.5rem;
}

.hero-links a {
  font-size: 1.2rem;
  color: var(--gray-dark);
  transition: all 0.3s;
}

.hero-links a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* ===== Sections ===== */
.section {
  padding: 80px 7%;
  position: relative;
  z-index: 1;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section-header.center {
  justify-content: center;
}

.section-number {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.7;
  letter-spacing: 2px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

/* ===== About ===== */
.about {
  border-top: 1px solid var(--border);
}

.about-content p {
  color: var(--gray);
  font-size: 1.08rem;
  margin-bottom: 1rem;
  line-height: 1.9;
  font-weight: 400;
  max-width: 600px;
}

.about-content strong {
  color: var(--gray-light);
  font-weight: 600;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.highlight:first-child {
  border-top: 1px solid var(--border);
}

.highlight i {
  font-size: 0.9rem;
  color: var(--accent);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.8;
}

.highlight div {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.highlight strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-light);
}

.highlight span {
  font-size: 0.82rem;
  color: var(--gray-dark);
}

/* ===== Skills ===== */
.skills {
  border-top: 1px solid var(--border);
}

.skills .section-header {
  margin-bottom: 1rem;
}

.skills-subtitle {
  color: var(--gray);
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: background 0.35s, border-color 0.35s;
}

.skill-item:hover {
  background: var(--accent-soft);
  border-color: rgba(200, 169, 126, 0.2);
}

.skill-item i {
  font-size: 1.6rem;
  color: var(--gray-dark);
  transition: all 0.35s;
}

.skill-item:hover i,
.skill-item:hover .skill-svg-icon {
  color: var(--brand, var(--accent));
  transform: scale(1.1);
}

.skill-svg-icon {
  width: 26px;
  height: 26px;
  color: var(--gray-dark);
  transition: all 0.35s;
}

.skill-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skill-item:hover .skill-name { color: var(--gray-light); }

/* Learning */
.skills-learning-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.skills-learning {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.learning-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray);
  padding: 6px 14px;
  border: 1px dashed var(--border);
  border-radius: 100px;
  letter-spacing: 0.5px;
  transition: all 0.3s;
}

.learning-tag i {
  font-size: 0.75rem;
  color: var(--gray-dark);
}

.learning-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  border-style: solid;
}

.learning-tag:hover i {
  color: var(--accent);
}

/* ===== Projects ===== */
.projects {
  border-top: 1px solid var(--border);
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.project-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 2rem;
  padding: 28px 32px;
  background: var(--bg);
  transition: background 0.35s;
}

.project-item:hover {
  background: var(--accent-soft);
}

.project-index {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-dark);
  font-family: "Courier New", monospace;
  transition: color 0.3s;
}

.project-item:hover .project-index { color: var(--accent); }

.project-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-light);
  transition: color 0.3s;
}

.project-item:hover .project-info h3 { color: var(--white); }

.project-info p {
  font-size: 0.95rem;
  color: var(--gray);
  margin-top: 4px;
}

.project-tags {
  display: flex;
  gap: 6px;
}

.project-tags span {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 100px;
  background: transparent;
  color: var(--gray-dark);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.project-item:hover .project-tags span {
  border-color: rgba(200, 169, 126, 0.15);
  color: var(--gray);
}

.project-links {
  display: flex;
  gap: 14px;
}

.project-links a {
  font-size: 0.95rem;
  color: var(--gray-dark);
  transition: all 0.3s;
}

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

/* ===== Project Preview ===== */
.project-preview {
  position: fixed;
  width: 220px;
  border-radius: 8px;
  pointer-events: none;
  z-index: 500;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.2s, transform 0.2s;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  padding: 18px;
  overflow: hidden;
}

.project-preview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.6;
}

.project-preview.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.preview-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  opacity: 0.7;
}

.preview-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.preview-tags span {
  font-size: 0.6rem;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--gray-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Contact ===== */
.contact {
  border-top: 1px solid var(--border);
  text-align: center;
}

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

.contact-text {
  font-size: 1.15rem;
  color: var(--gray);
  margin-bottom: 2rem;
  font-weight: 400;
}

.local-time {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--gray-dark);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}

.local-time strong {
  color: var(--gray);
  font-weight: 600;
}

.time-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7dba8c;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.contact-form {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.contact-form .btn { align-self: center; }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.contact-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-links a {
  font-size: 0.82rem;
  color: var(--gray-dark);
  transition: color 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gray-dark);
}

/* ===== Footer ===== */
footer {
  padding: 2rem 7%;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 860px;
  margin: 0 auto;
}

footer p {
  font-size: 0.8rem;
  color: var(--gray-dark);
  letter-spacing: 0.5px;
}

/* ===== Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.hero-photo {
  opacity: 0;
  animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-content > * {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.3s; }
.hero-content > *:nth-child(2) { animation-delay: 0.45s; }
.hero-content > *:nth-child(3) { animation-delay: 0.6s; }
.hero-content > *:nth-child(4) { animation-delay: 0.75s; }
.hero-content > *:nth-child(5) { animation-delay: 0.9s; }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gray-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ===== Selection ===== */
::selection { background: var(--accent); color: var(--bg); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-photo { order: -1; }

  .photo-frame {
    width: 300px;
    height: 370px;
  }

  .hero-content { max-width: 100%; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-links { justify-content: center; }
  .skills-learning { justify-content: center; }

  #navbar ul {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: rgba(12, 12, 12, 0.97);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
  }

  #navbar ul.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  #navbar ul li a { display: block; padding: 0.7rem 0; }
  .menu-toggle { display: flex; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }

  .project-item {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 20px 24px;
  }

  .project-index { display: none; }
  .contact-links { flex-wrap: wrap; justify-content: center; }
  .footer-inner { flex-direction: column; gap: 0.6rem; text-align: center; }
  .section { padding: 60px 6%; }
}

@media (max-width: 480px) {
  .photo-frame {
    width: 260px;
    height: 320px;
  }

  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Accessibility: Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body::before { display: none; }
  #dust-canvas { display: none; }
  html { scroll-behavior: auto; }
}
