:root {
  --navy-900: #0a1f33;
  --navy-800: #123054;
  --navy-700: #1b3f6b;
  --navy-600: #24507f;
  --gold: #c9a24b;
  --gold-light: #e6c87a;
  --text-main: #24313f;
  --text-muted: #5f6c7a;
  --bg-light: #f5f7fa;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(10, 31, 51, 0.08);
  --radius: 12px;
  --font-body: "Noto Sans SC", -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  line-height: 1.7;
  background: var(--white);
}

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

ul {
  list-style: none;
}

/* ---------- Header & Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 31, 51, 0.92);
  backdrop-filter: blur(8px);
  transition: background 0.3s;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.brand-text {
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-sub {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  padding: 6px 0;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 34px;
  height: 34px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(201, 162, 75, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, #0d2a47 100%);
  color: var(--white);
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-content {
  position: relative;
  max-width: 880px;
  text-align: center;
  z-index: 2;
}

.hero-eyebrow {
  color: var(--gold-light);
  letter-spacing: 3px;
  font-size: 14px;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 58px);
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-900);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(201, 162, 75, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.hero-stats {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 36px;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--gold-light);
  font-weight: 700;
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 22px;
  animation: bounce 2s infinite;
  z-index: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 24px;
}

.section-alt {
  background: var(--bg-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--navy-900);
}

.section-divider {
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 18px auto 0;
  border-radius: 2px;
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 680px;
  margin: -24px auto 48px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: start;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 30px;
  text-align: center;
}

.about-avatar {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  color: var(--gold-light);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar-fallback {
  font-size: 42px;
  font-weight: 700;
}

.about-avatar img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-card h3 {
  font-size: 24px;
  color: var(--navy-900);
}

.about-role {
  color: var(--text-muted);
  font-size: 14px;
  margin: 6px 0 22px;
}

.about-info {
  text-align: left;
  margin-top: 24px;
  border-top: 1px dashed var(--border);
  padding-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-info li {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.about-info li:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.info-key {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.info-val {
  display: block;
  font-size: 14.5px;
  color: var(--navy-800);
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

.about-info li.nowrap .info-val {
  white-space: nowrap;
}

.about-info .info-val a {
  color: var(--navy-800);
  text-decoration: none;
  border-bottom: 1px dashed var(--gold);
  transition: color 0.3s;
}

.about-info .info-val a:hover {
  color: var(--gold);
}

.about-education {
  margin-top: 24px;
  border-top: 1px dashed var(--border);
  padding-top: 22px;
}

.about-edu-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.about-edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-edu-grid li {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.about-edu-grid li:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.about-bio h3 {
  font-size: 26px;
  color: var(--navy-900);
  margin-bottom: 16px;
}

.about-bio > p {
  color: var(--text-muted);
  margin-bottom: 14px;
  text-align: justify;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.value-item {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.value-icon {
  color: var(--gold);
  font-size: 20px;
}

.value-item h4 {
  font-size: 16px;
  color: var(--navy-900);
  margin: 8px 0 6px;
}

.value-item p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: var(--tl-pad, 96px);
}

.timeline::before {
  content: "";
  position: absolute;
  left: var(--tl-line, 72px);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--gold), rgba(201, 162, 75, 0.2));
}

.timeline-item {
  position: relative;
  margin-bottom: 44px;
}

.timeline-dot {
  position: absolute;
  left: calc(-1 * (var(--tl-pad, 96px) - var(--tl-line, 72px) + 6px));
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.2);
}

.timeline-year {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--tl-line, 72px) - 14px);
  text-align: right;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  line-height: 1.3;
}

.timeline-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 30px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(10, 31, 51, 0.14);
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.timeline-period {
  background: var(--navy-800);
  color: var(--gold-light);
  font-size: 15px;
  font-weight: 500;
  padding: 5px 16px;
  border-radius: 20px;
}

.timeline-company {
  color: var(--gold);
  font-size: 16px;
  font-weight: 600;
}

.timeline-content h3 {
  font-size: 20px;
  color: var(--navy-900);
  margin-bottom: 10px;
}

.timeline-sub {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--navy-700);
  margin: 14px 0 4px;
  padding-left: 10px;
  border-left: 3px solid var(--gold);
}

.timeline-sub-gold {
  color: var(--gold);
}

.timeline-content ul {
  padding-left: 0;
}

.timeline-content li {
  position: relative;
  color: var(--text-muted);
  font-size: 14.5px;
  padding: 4px 0 4px 20px;
}

.timeline-content li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ---------- Early Experience Accordion ---------- */
.timeline-early {
  margin-top: 6px;
}

.timeline-early-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--white);
  border: 1px dashed var(--gold);
  border-radius: 50px;
  color: var(--navy-800);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.timeline-early-toggle:hover {
  background: rgba(201, 162, 75, 0.08);
  border-color: var(--gold);
}

.toggle-icon {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.35s;
}

.timeline-early-toggle.open .toggle-icon {
  transform: rotate(45deg);
}

.timeline-early-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease;
}

.timeline-early-body.open {
  grid-template-rows: 1fr;
}

.timeline-early-inner {
  overflow: hidden;
  margin-left: calc(-1 * var(--tl-pad, 96px));
  padding-left: var(--tl-pad, 96px);
}

/* ---------- Projects ---------- */
.projects {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 34px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(10, 31, 51, 0.14);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.project-period {
  background: var(--gold);
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 20px;
}

.project-role {
  color: var(--navy-700);
  font-size: 15px;
  font-weight: 600;
}

.project-card h3 {
  font-size: 21px;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.project-card ul {
  padding-left: 0;
}

.project-card li {
  position: relative;
  color: var(--text-muted);
  font-size: 14.5px;
  padding: 4px 0 4px 20px;
}

.project-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.skill-group-title {
  font-size: 20px;
  color: var(--navy-900);
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.skill-group-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 48px;
  height: 2px;
  background: var(--gold);
}

.skill-item {
  margin-bottom: 20px;
}

.skill-head {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 8px;
}

.skill-level {
  color: var(--gold);
  font-weight: 700;
}

.skill-bar {
  height: 8px;
  border-radius: 6px;
  background: var(--border);
  overflow: hidden;
}

.skill-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--navy-700), var(--gold));
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.skill-tags li {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy-800);
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(10, 31, 51, 0.05);
  transition: transform 0.3s, border-color 0.3s, color 0.3s;
}

.skill-tags li:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  color: var(--gold);
}

.qualification-group {
  margin-top: 48px;
}

.qualification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
}

.qualification-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.3s, border-color 0.3s;
}

.qualification-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.qualification-badge {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  color: var(--gold-light);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qualification-name {
  font-size: 15px;
  color: var(--navy-800);
  font-weight: 600;
}

/* ---------- Planning ---------- */
.planning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.plan-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(10, 31, 51, 0.14);
}

.plan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.plan-short::before { background: var(--gold); }
.plan-mid::before { background: var(--navy-700); }
.plan-long::before { background: linear-gradient(90deg, var(--navy-900), var(--gold)); }

.plan-phase {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--gold);
  background: rgba(201, 162, 75, 0.12);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.plan-card h3 {
  font-size: 19px;
  color: var(--navy-900);
  margin-bottom: 14px;
}

.plan-card li {
  position: relative;
  color: var(--text-muted);
  font-size: 14.5px;
  padding: 6px 0 6px 22px;
}

.plan-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.planning-note {
  margin-top: 40px;
  text-align: center;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.85);
  padding: 22px 30px;
  border-radius: var(--radius);
  font-size: 15px;
}

/* ---------- Resources ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.resource-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.resource-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(10, 31, 51, 0.12);
}

.resource-icon {
  font-size: 30px;
  display: block;
  margin-bottom: 14px;
}

.resource-card h3 {
  font-size: 17px;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.resource-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.resource-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--gold);
  background: rgba(201, 162, 75, 0.1);
  padding: 3px 12px;
  border-radius: 20px;
}

/* ---------- Contact ---------- */
.contact-form-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-800);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-light);
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.18);
  background: var(--white);
}

.form-tip {
  margin-top: 14px;
  font-size: 14px;
  color: #2e7d32;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 28px 24px;
  font-size: 14px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.icp-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.icp-link:hover {
  color: var(--gold-light);
}

/* ---------- Floating Back To Top ---------- */
.back-top-btn {
  position: fixed;
  right: 28px;
  bottom: 32px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-900);
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(201, 162, 75, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.back-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(201, 162, 75, 0.5);
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 768px) {
  .timeline {
    --tl-pad: 56px;
    --tl-line: 40px;
  }

  .timeline-year {
    font-size: 15px;
  }

  .section {
    padding: 68px 18px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .nav-links.open {
    max-height: 360px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-link {
    display: block;
    padding: 16px 24px;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .timeline-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 30px;
  }

  .section-title {
    font-size: 28px;
  }

  .contact-form {
    padding: 24px;
  }
}
