:root {
  --bg: #FDF6F0;
  --bg-alt: #F5EDE3;
  --card-bg: rgba(255, 255, 255, 0.7);
  --card-border: #E8DDD0;
  --text: #2C2416;
  --text-secondary: #8C7A6B;
  --accent: #B45309;
  --divider: #F5F0E8;
  --glass-blur: blur(12px);
  --font-serif: 'Noto Serif SC', Georgia, serif;
  --font-sans: 'Noto Sans SC', 'Inter', sans-serif;
  --max-width: 900px;
  --nav-height: 60px;
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Full-page fixed background image */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../images/hero-bg.png') center/cover no-repeat;
  z-index: -1;
  opacity: 0.35;
}

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(253, 246, 240, 0.7);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--card-border);
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 24px;
}

.nav-logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
}

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

@media (max-width: 640px) {
  .nav-links {
    gap: 12px;
  }
  .nav-links a {
    font-size: 0.78rem;
  }
}

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 50% 30%, rgba(180, 83, 9, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(180, 83, 9, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(140, 122, 107, 0.03) 0%, transparent 50%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 85%, rgba(180, 83, 9, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 85% 15%, rgba(140, 122, 107, 0.03) 1px, transparent 1px);
  background-size: 60px 60px, 40px 40px;
  opacity: 0.4;
}

/* Decorative ring behind hero text */
.hero-bg::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  border: 1px solid rgba(180, 83, 9, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 24px 60px;
}

.hero-ornament {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(180, 83, 9, 0.2);
  margin: 0 auto 24px;
  position: relative;
}
.hero-ornament::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.5;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 6px;
}

/* Typewriter cursor */
.hero-tagline.typing::after {
  content: '|';
  animation: blink 0.8s step-end infinite;
  color: var(--accent);
  opacity: 0.6;
}

.hero-tagline.typed::after {
  content: '|';
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.5s;
}

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

.hero-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.8;
}

.hero-skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-skill-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 8px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text);
  transition: all 0.25s;
  white-space: nowrap;
}

.hero-skill-tag:hover {
  background: rgba(255,255,255,0.9);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

@media (max-width: 480px) {
  .hero-skills {
    grid-template-columns: repeat(2, 1fr);
    max-width: 320px;
  }
  .hero-skill-tag {
    font-size: 0.78rem;
    padding: 8px 6px;
  }
}

.hero-scroll-hint {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.4;
}

.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 28px;
  background: var(--accent);
  border-radius: 1px;
  animation: scrollLine 2.5s ease-in-out infinite;
}

.hero-scroll-hint::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  animation: scrollChevron 2.5s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { height: 28px; opacity: 0.6; }
  50% { height: 14px; opacity: 1; }
}

@keyframes scrollChevron {
  0%, 100% { opacity: 0.6; transform: rotate(45deg) translateY(0); }
  50% { opacity: 1; transform: rotate(45deg) translateY(3px); }
}

/* ============================================
   Shared Section & Card Styles
   ============================================ */

.section {
  padding: 64px 24px;
}

/* Card background image layer */
.entry-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  z-index: 0;
  pointer-events: none;
}

.entry-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(253, 246, 240, 0.35);
  border-radius: inherit;
}

.entry-visual,
.entry-body,
.entry-accent-bar {
  position: relative;
  z-index: 1;
}

.entry-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 28px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 32px;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
}

.card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

/* ============================================
   About & Education
   ============================================ */

.about-content {
  max-width: 640px;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 2;
}

/* Education badge inside about section */
.about-edu {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 16px 24px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(180,83,9,0.15);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.03);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.about-edu:hover {
  border-color: rgba(180,83,9,0.3);
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  transform: translateY(-1px);
}

.about-edu-badge,
.about-edu-text {
  position: relative;
  z-index: 1;
}

.about-edu-badge {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(180,83,9,0.12), rgba(180,83,9,0.06));
  border: 1px solid rgba(180,83,9,0.15);
  border-radius: 10px;
  flex-shrink: 0;
}

/* CSS graduation cap icon */
.icon-graduation {
  width: 20px;
  height: 14px;
  position: relative;
}

.icon-graduation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 10px;
  border: 2px solid var(--accent);
  border-radius: 3px 3px 0 0;
  border-bottom: none;
}

.icon-graduation::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.about-edu-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.about-edu-text strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.about-edu-text span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #5c4a3b;
}
}

/* ============================================
   Skills
   ============================================ */

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.skill-group h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text);
  transition: all 0.2s;
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 640px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ============================================
   Works / Portfolio
   ============================================ */

.works-category {
  margin-bottom: 40px;
}

.works-category h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--divider);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.work-card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s;
}

.work-card:hover {
  transform: translateY(-4px);
}

.work-card video {
  width: 100%;
  display: block;
  background: #1a1a1a;
}

.work-card-info {
  padding: 16px;
}

.work-card-info h4 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.work-card-info .work-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ============================================
   Creative & Learning
   ============================================ */

.creative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.creative-card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
}

.creative-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: saturate(1) brightness(0.92);
  transition: filter 0.4s ease;
}

.creative-card:hover img {
  filter: saturate(1.15) brightness(1.03);
}

.creative-card-body {
  padding: 16px;
}

.creative-card-body h4 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.creative-card-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.learning-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.learning-item {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px 24px;
}

.learning-item .problem {
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 8px;
}

.learning-item .solution {
  color: var(--text);
  line-height: 1.8;
}

.learning-item .date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 12px;
}

/* ============================================
   Contact & Footer
   ============================================ */

.contact-content {
  text-align: center;
}

.contact-status {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(180, 83, 9, 0.08);
  border: 1px solid rgba(180, 83, 9, 0.15);
  border-radius: 20px;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-link {
  text-decoration: none;
  color: var(--text);
  padding: 10px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  transition: all 0.2s;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-link-icon {
  font-size: 1.1rem;
}

.contact-copy-hint {
  font-size: 0.72rem;
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity 0.2s;
  margin-left: 2px;
}

.contact-link:hover .contact-copy-hint {
  opacity: 0.7;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
  z-index: 200;
}

/* QR Code Modal */
.qr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.qr-overlay.qr-open {
  opacity: 1;
  pointer-events: auto;
}

.qr-modal {
  background: var(--bg);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  position: relative;
  max-width: 340px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.qr-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
}

.qr-close:hover { color: var(--text); }

.qr-modal h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text);
}

.qr-img {
  width: 240px;
  height: 240px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
}

.qr-hint {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.qr-copy-btn {
  margin-top: 10px;
  padding: 10px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.qr-copy-btn:hover {
  background: #92400e;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(180,83,9,0.3);
}

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

/* ============================================
   Sub-page styles
   ============================================ */

.sub-page {
  padding-top: var(--nav-height);
}

.sub-hero {
  padding: 48px 24px 24px;
  text-align: center;
}

.sub-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.sub-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.8;
}

.nav-back {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-back:hover {
  color: var(--accent);
}

.nav-spacer {
  width: 60px; /* balance the back link */
}

/* ============================================
   Section Entry Cards (gateway to sub-pages)
   ============================================ */

.section-entry {
  display: flex;
  align-items: center;
  gap: 28px;
  text-decoration: none;
  background-color: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 28px 30px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Subtle texture */
.section-entry::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(180,83,9,0.012) 50%, transparent 100%);
  pointer-events: none;
}

/* Hover glow */
.section-entry::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 50%, rgba(180,83,9,0.04) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.section-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  border-color: rgba(180,83,9,0.3);
}

.section-entry:hover::before {
  opacity: 1;
}

/* Featured (full-width) variant */
.entry-featured {
  padding: 32px 36px;
}

.entry-featured .entry-body h3 {
  font-size: 1.35rem;
  color: #1a1208;
}

.entry-accent-bar {
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  opacity: 0.4;
}

/* Icon area */
.entry-visual {
  flex-shrink: 0;
}

.entry-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(180,83,9,0.1) 0%, rgba(180,83,9,0.04) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.35s;
}

.entry-icon-lg {
  width: 68px;
  height: 68px;
}

.section-entry:hover .entry-icon-circle {
  background: linear-gradient(135deg, rgba(180,83,9,0.16) 0%, rgba(180,83,9,0.08) 100%);
  transform: scale(1.06);
}

/* CSS-only icons */
.entry-icon-shape {
  width: 24px;
  height: 24px;
  position: relative;
}

.icon-works {
  width: 24px;
  height: 24px;
  background: var(--accent);
  clip-path: polygon(20% 10%, 20% 90%, 85% 50%);
  margin-left: 3px;
}

.icon-creative {
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--accent);
  border-radius: 50%;
  position: relative;
}
.icon-creative::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.icon-learning {
  width: 20px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.icon-learning::before,
.icon-learning::after {
  content: '';
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--accent);
}
.icon-learning::before { width: 20px; }
.icon-learning::after  { width: 12px; }

/* Text body */
.entry-body {
  flex: 1;
  min-width: 0;
}

.entry-body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1208;
  margin-bottom: 4px;
}

.entry-body p {
  font-size: 0.88rem;
  font-weight: 500;
  color: #2C2416;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* Arrow link */
.entry-arrow {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s;
}

.entry-arrow .arrow {
  display: inline-block;
  transition: transform 0.3s;
}

.section-entry:hover .entry-arrow {
  gap: 10px;
}

.section-entry:hover .entry-arrow .arrow {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .entry-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .section-entry {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 26px 20px;
  }
  .entry-icon-circle {
    width: 48px;
    height: 48px;
  }
  .entry-icon-lg {
    width: 56px;
    height: 56px;
  }
  .entry-body h3 {
    font-size: 1.05rem;
  }
  .entry-accent-bar {
    display: none;
  }
}

/* Learning items always open on sub-page */
.learning-item-open .solution {
  display: block;
}

/* ============================================
   Footer
   ============================================ */

/* ============================================
   Scroll Entrance Animations
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

/* Stagger delays for grid children */
.works-grid .reveal:nth-child(1) { transition-delay: 0.00s; }
.works-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.works-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.works-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

.creative-grid .reveal:nth-child(1) { transition-delay: 0.00s; }
.creative-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.creative-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.creative-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

.learning-list .reveal:nth-child(1) { transition-delay: 0.00s; }
.learning-list .reveal:nth-child(2) { transition-delay: 0.08s; }
.learning-list .reveal:nth-child(3) { transition-delay: 0.16s; }
.learning-list .reveal:nth-child(4) { transition-delay: 0.24s; }

.hero-content > .reveal:nth-child(1) { transition-delay: 0.00s; }
.hero-content > .reveal:nth-child(2) { transition-delay: 0.10s; }
.hero-content > .reveal:nth-child(3) { transition-delay: 0.20s; }
.hero-content > .reveal:nth-child(4) { transition-delay: 0.30s; }
.hero-content > .reveal:nth-child(5) { transition-delay: 0.40s; }

.hero-skills .reveal:nth-child(1) { transition-delay: 0.50s; }
.hero-skills .reveal:nth-child(2) { transition-delay: 0.56s; }
.hero-skills .reveal:nth-child(3) { transition-delay: 0.62s; }
.hero-skills .reveal:nth-child(4) { transition-delay: 0.68s; }
.hero-skills .reveal:nth-child(5) { transition-delay: 0.74s; }
.hero-skills .reveal:nth-child(6) { transition-delay: 0.80s; }

.hero-tools-label.reveal { transition-delay: 0.84s; }

.hero-tools .reveal:nth-child(1) { transition-delay: 0.90s; }
.hero-tools .reveal:nth-child(2) { transition-delay: 0.90s; }
.hero-tools .reveal:nth-child(3) { transition-delay: 0.94s; }
.hero-tools .reveal:nth-child(4) { transition-delay: 0.98s; }
.hero-tools .reveal:nth-child(5) { transition-delay: 1.02s; }
.hero-tools .reveal:nth-child(6) { transition-delay: 1.06s; }
.hero-tools .reveal:nth-child(7) { transition-delay: 1.10s; }

/* ============================================
   Back to Top
   ============================================ */

#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

#back-to-top.btt-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.hero-tools-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 22px;
  margin-bottom: 10px;
  font-weight: 500;
  opacity: 0.7;
}

.hero-tools {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 0 auto;
}

.hero-tool-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s;
}

.hero-tool-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255,255,255,0.8);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   Footer
   ============================================ */

footer {
  text-align: center;
  padding: 48px 24px 32px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid var(--divider);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-tagline {
  font-family: var(--font-serif);
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 12px;
  opacity: 0.7;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-secondary);
  opacity: 0.6;
}
