/* =========================================
   DESIGN SYSTEM — CSS CUSTOM PROPERTIES
   ========================================= */
:root {
  /* Brand Colors */
  --primary: #ff4b2b;
  --primary-light: #ffe7e2;
  --primary-dark: #e63e20;
  --secondary: #1f2937;
  --secondary-light: #e5e7eb;
  --secondary-dark: #111827;

  /* Surface */
  --bg: #fafafa;
  --bg-alt: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --border: #e5e7eb;
  --border-dark: #d1d5db;

  /* Text */
  --text: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;

  /* Typography */
  --font-display: "Syne", "Be Vietnam Pro", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "DM Sans", sans-serif;

  /* Spacing */
  --gap-xs: 0.5rem;
  --gap-sm: 1rem;
  --gap-md: 1.5rem;
  --gap-lg: 2.5rem;
  --gap-xl: 4rem;
  --gap-2xl: 6rem;

  /* Radii */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 36px;
  --r-full: 999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-red: 0 8px 30px rgba(255, 75, 43, 0.25);

  --header-h: 72px;
}

[data-theme="dark"] {
  --bg: #0d1117;
  --bg-alt: #161b22;
  --surface: #1c2128;
  --surface-2: #21262d;
  --border: #30363d;
  --border-dark: #3d444e;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-light: #656d76;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

body {
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition:
    background 0.3s,
    color 0.3s;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  background: transparent;
}
input,
textarea {
  font-family: inherit;
  outline: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.1;
}

/* =========================================
   CONTAINER & LAYOUT
   ========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.4rem;
}

.section {
  padding: var(--gap-2xl) 0;
}

/* =========================================
   UTILITY
   ========================================= */
.hero__buttons {
  display: flex;
  gap: 16px;
  margin-top: 30px;
}

.hero-btn {
  position: relative;
  height: 46px;
  padding-left: 24px;
  padding-right: 54px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-btn.primary {
  background: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-red);
}

.hero-btn.outline {
  background: transparent;
  border: 2px solid var(--border-dark);
}

.hero-btn__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.hero-btn.primary .hero-btn__text {
  color: #fff;
}

.hero-btn.outline .hero-btn__text {
  color: var(--text);
}

.hero-btn__icon {
  position: absolute;
  right: 6px;
  height: 34px;
  width: 34px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
}

.hero-btn.primary .hero-btn__icon {
  color: #fff;
}

.hero-btn.outline .hero-btn__icon {
  color: var(--primary);
}

.hero-btn:hover .hero-btn__text {
  color: transparent;
}

.hero-btn.primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 12px 40px rgba(255, 75, 43, 0.35);
}

.hero-btn.outline:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

[data-theme="dark"] .hero-btn.outline:hover {
  background: rgba(255, 75, 43, 0.1);
}

.hero-btn:hover .hero-btn__icon {
  width: calc(100% - 12px);
  border-radius: 22px;
  background: var(--primary);
  color: #fff;
}

.hero-btn:active {
  transform: translate(2px, 2px);
}

@media (max-width: 768px) {
  .hero__buttons {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .hero-btn {
    width: 190px;
  }
}
.section-label {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

.section-title {
  font-size: clamp(3.2rem, 5vw, 5.6rem);
  font-weight: 800;
  margin-bottom: 1.6rem;
  color: var(--text);
}

.section-sub {
  font-size: 1.8rem;
  color: var(--text-muted);
  max-width: 60rem;
  margin-bottom: var(--gap-xl);
}

.tag-chip {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  margin-bottom: 1.2rem;
}
[data-theme="dark"] .tag-chip {
  background: rgba(255, 75, 43, 0.15);
  color: var(--primary);
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.reveal-up,
.reveal-timeline,
.reveal-split,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-split {
  transform: translateX(-50px);
}
.reveal-split.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-split--reverse {
  transform: translateX(50px);
}
.reveal-split--reverse.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-left {
  transform: translateX(-60px);
}
.reveal-left.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-right {
  transform: translateX(60px);
}
.reveal-right.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-timeline {
  opacity: 0;
  transform: translateX(-30px);
}
.reveal-timeline.is-visible {
  opacity: 1;
  transform: none;
}
.timeline__item--right .reveal-timeline,
.timeline__item--right.reveal-timeline {
  transform: translateX(30px);
}
.timeline__item--right.reveal-timeline.is-visible {
  opacity: 1;
  transform: none;
}

[class*="reveal-"] {
  transition-delay: var(--delay, 0s);
}

/* =========================================
   NAVBAR
========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  transition:
    background 0.3s,
    backdrop-filter 0.3s,
    box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(13, 17, 23, 0.9);
}

.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.6rem;
  height: 100%;
  display: flex;
  align-items: center;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.navbar__logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
}

.navbar__logo-text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
}

.navbar__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.navbar__list {
  display: flex;
  gap: 0.4rem;
}

.navbar__link {
  display: block;
  padding: 0.7rem 1.4rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--r-full);
  transition:
    color 0.2s,
    background 0.2s;
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--primary);
  background: var(--primary-light);
}

[data-theme="dark"] .navbar__link:hover,
[data-theme="dark"] .navbar__link.active {
  background: rgba(255, 75, 43, 0.1);
}

.navbar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1002;
}

.icon-btn {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  color: var(--text-muted);
  font-size: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    color 0.2s,
    background 0.2s,
    transform 0.2s;
}

.icon-btn:hover {
  color: var(--primary);
  transform: scale(1.08);
  background: var(--primary-light);
}

[data-theme="dark"] .icon-btn:hover {
  background: rgba(255, 75, 43, 0.1);
}

.lang-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
}

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

.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);
}

.nav-overlay {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-h));
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 998;
}

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

@media (max-width: 768px) {
  .navbar__inner {
    padding: 0 1.2rem;
  }

  .navbar__nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: 100%;
    height: calc(100vh - var(--header-h));
    background: var(--bg);
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 2rem;
  }

  .navbar__nav.open {
    transform: translateY(0);
  }

  .navbar__list {
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
  }

  .navbar__link {
    font-size: 1.8rem;
    padding: 1rem 2rem;
  }

  .hamburger {
    display: flex;
  }
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 75, 43, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 75, 43, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}
.hero__orb--1 {
  width: 600px;
  height: 600px;
  background: rgba(255, 75, 43, 0.12);
  top: -200px;
  right: -100px;
}
.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: rgba(31, 41, 55, 0.08);
  bottom: -100px;
  left: -150px;
}
[data-theme="dark"] .hero__orb--1 {
  background: rgba(255, 75, 43, 0.18);
}
[data-theme="dark"] .hero__orb--2 {
  background: rgba(255, 75, 43, 0.06);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.4rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero__name {
  font-size: clamp(4.8rem, 6vw, 7.2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}
.hero__name--accent {
  color: var(--primary);
  display: block;
}

.hero__role {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.blink-cursor {
  display: inline-block;
  color: var(--primary);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hero__desc {
  font-size: 1.7rem;
  color: var(--text-muted);
  max-width: 48rem;
  line-height: 1.75;
}

.hero__ctas {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 2.8rem;
  margin-top: 1.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: 1.3rem;
  color: var(--text-muted);
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero visual */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__mascot-wrap {
  position: relative;
  width: 520px;
  max-width: 100%;
}

.hero__mascot {
  width: 100%;
  filter: drop-shadow(0 20px 60px rgba(255, 75, 43, 0.2));
  animation: floatMascot 6s ease-in-out infinite;
}
@keyframes floatMascot {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-12px) rotate(0.5deg);
  }
  66% {
    transform: translateY(-6px) rotate(-0.5deg);
  }
}

.hero__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  animation: floatBadge 4s ease-in-out infinite;
  color: var(--text);
}
.hero__badge i {
  color: var(--primary);
  font-size: 1.4rem;
}
.hero__badge--1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}
.hero__badge--2 {
  top: 50%;
  right: -8%;
  animation-delay: 1.5s;
}
.hero__badge--3 {
  bottom: 15%;
  left: 0;
  animation-delay: 0.8s;
}
@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero__big-bg-text {
  position: absolute;
  bottom: 1rem;
  left: 0;
  width: 100%;
  font-family: var(--font-display);
  font-size: 6vw;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
  color: rgba(0, 0, 0, 0.04);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .hero__big-bg-text {
  color: rgba(255, 255, 255, 0.03);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  animation: fadeInUp 1s 2s both;
}
.scroll-hint__mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--border-dark);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-hint__wheel {
  width: 3px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollWheel 1.5s ease-in-out infinite;
}
@keyframes scrollWheel {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(8px);
    opacity: 0.4;
  }
}

/* =========================================
   ABOUT
   ========================================= */
.about {
  background: var(--bg-alt);
}
[data-theme="dark"] .about {
  background: var(--bg-alt);
}

.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 6rem;
}
.about-block--goals {
}

.about-block__text h3 {
  font-size: clamp(2.4rem, 3vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text);
}
.about-block__text p {
  font-size: 1.7rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.6rem;
}

.about-block__visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.about-block__visual img {
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 10px 40px rgba(255, 75, 43, 0.15));
  animation: floatMascot 7s ease-in-out infinite;
}

/* GPA bar */
.gpa-bar {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 0.8rem;
}
.gpa-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}
.gpa-track {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
}
.gpa-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: var(--r-full);
  width: 0;
  transition: width 1.4s 0.3s var(--ease-out);
}
.gpa-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

/* Goals cards */
.about-block__visual--goals {
  flex-direction: column;
  gap: 1.6rem;
  align-items: stretch;
}
.goals-card {
  padding: 2rem 2.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.goals-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  border-radius: 2px 0 0 2px;
}
.goals-card--alt::before {
  background: var(--secondary);
}
.goals-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.goals-card__icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.6rem;
}
.goals-card--alt .goals-card__icon {
  color: var(--text-muted);
}
.goals-card__label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.goals-card--alt .goals-card__label {
  color: var(--text-muted);
}
.goals-card__text {
  font-size: 1.5rem;
  color: var(--text);
  line-height: 1.6;
}

/* Hobbies — large horizontal rows */
.hobbies-block {
  padding-top: 2rem;
}

.hobby-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.hobby-row:last-child {
  border-bottom: none;
}

.hobby-row--img-right .hobby-row__text {
  order: 1;
}
.hobby-row--img-right .hobby-row__img {
  order: 2;
}
.hobby-row--img-left .hobby-row__img {
  order: 1;
}
.hobby-row--img-left .hobby-row__text {
  order: 2;
}

.hobby-row__num {
  display: block;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
  color: var(--primary);
  opacity: 0.15;
  margin-bottom: -0.5rem;
}
.hobby-row__text h3 {
  font-size: clamp(3.2rem, 4vw, 5rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.hobby-row__text p {
  font-size: 1.7rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 42rem;
}
.hobby-row__img {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hobby-row__img img {
  width: 100%;
  max-width: 168px;
  filter: drop-shadow(0 10px 40px rgba(255, 75, 43, 0.18));
  animation: floatMascot 6s ease-in-out infinite;
}
.hobby-row:nth-child(2) .hobby-row__img img {
  animation-delay: -2s;
}
.hobby-row:nth-child(3) .hobby-row__img img {
  animation-delay: -4s;
}

/* =========================================
   JOURNEY / TIMELINE
   ========================================= */
.journey {
  position: relative;
  overflow: hidden;
}
.journey__bg-accent {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 75, 43, 0.03) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.timeline {
  position: relative;
  margin-top: var(--gap-xl);
}
.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent,
    var(--primary) 10%,
    var(--primary) 90%,
    transparent
  );
  transform: translateX(-50%);
}

.timeline__item {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  gap: 1.6rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline__item > * {
  grid-row: 1;
}

.timeline__item:not(.timeline__item--right) .timeline__card {
  grid-column: 1;
  justify-self: end;
  text-align: right;
}

.timeline__item--right .timeline__card {
  grid-column: 3;
  justify-self: start;
  text-align: left;
}

.timeline__dot {
  grid-column: 2;
  justify-self: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  box-shadow:
    0 0 0 6px var(--bg),
    var(--shadow-sm);
  z-index: 1;
  transition:
    transform 0.3s var(--ease-bounce),
    box-shadow 0.3s;
}

.timeline__dot--final {
  background: var(--primary);
  color: #fff;
  box-shadow:
    0 0 0 6px var(--bg),
    var(--shadow-red);
}

.timeline__item:not(.timeline__item--right) .timeline__mascot {
  grid-column: 3;
  justify-self: start;
  align-self: center;
}

.timeline__item--right .timeline__mascot {
  grid-column: 1;
  justify-self: end;
  align-self: center;
}

.timeline__mascot img {
  width: 140px;
  filter: drop-shadow(0 4px 12px rgba(255, 75, 43, 0.2));
  animation: floatMascot 5s ease-in-out infinite;
}

.timeline__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 2.4rem;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s,
    border-color 0.3s;
  position: relative;
}

.timeline__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.timeline__card:hover + .timeline__dot,
.timeline__item:hover .timeline__dot {
  transform: scale(1.15);
  box-shadow:
    0 0 0 6px var(--bg),
    var(--shadow-red);
}

.timeline__card--final {
  border-color: var(--primary);
}

.timeline__num {
  position: absolute;
  top: -1.2rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--surface);
  padding: 0.2rem 0.8rem;
  border: 1px solid var(--primary);
  border-radius: var(--r-full);
}

.timeline__item:not(.timeline__item--right) .timeline__num {
  right: 2rem;
}

.timeline__item--right .timeline__num {
  left: 2rem;
}

.timeline__date {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.timeline__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.timeline__list {
  margin: 0;
}

.timeline__list li {
  font-size: 1.4rem;
  color: var(--text-muted);
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.timeline__list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--primary);
}

@media (max-width: 1200px) {
  .timeline__item {
    gap: 1rem;
  }
  
  .timeline__card {
    padding: 1.6rem 2rem;
  }
  
  .timeline__mascot img {
    width: 110px;
  }
}

@media (max-width: 992px) {
  .timeline__line {
    left: 32px;
  }

  .timeline__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 3rem;
    position: relative;
    padding-left: 72px;
    width: 100%;
  }

  .timeline__dot {
    position: absolute;
    left: 8px;
    top: 0;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    margin: 0;
  }

  .timeline__card {
    width: 100%;
    margin: 0;
    padding: 1.6rem 2rem;
    text-align: left;
  }

  .timeline__num {
    position: absolute;
    top: -1rem;
    right: 1.6rem;
    left: auto;
    font-size: 1rem;
    padding: 0.2rem 0.8rem;
  }

  .timeline__mascot {
    margin-top: 1rem;
    margin-bottom: 0;
    width: 100%;
  }

  .timeline__mascot img {
    width: 80px;
    margin-left: 0;
  }

  .timeline__title {
    font-size: 1.6rem;
  }

  .timeline__list li {
    font-size: 1.3rem;
  }

  .timeline__item:not(.timeline__item--right) .timeline__card,
  .timeline__item--right .timeline__card {
    text-align: left;
  }
  
  .timeline__item:not(.timeline__item--right) .timeline__num,
  .timeline__item--right .timeline__num {
    right: 1.6rem;
    left: auto;
  }
}

@media (max-width: 768px) {
  .timeline__item {
    padding-left: 68px;
    margin-bottom: 2.5rem;
  }
  
  .timeline__dot {
    width: 42px;
    height: 42px;
    left: 6px;
    font-size: 1.5rem;
  }
  
  .timeline__card {
    padding: 1.4rem 1.8rem;
  }
  
  .timeline__num {
    font-size: 0.95rem;
    right: 1.4rem;
    top: -0.9rem;
    padding: 0.15rem 0.7rem;
  }
  
  .timeline__title {
    font-size: 1.5rem;
  }
  
  .timeline__list li {
    font-size: 1.25rem;
  }
  
  .timeline__mascot img {
    width: 70px;
  }
}

@media (max-width: 576px) {
  .timeline__item {
    padding-left: 60px;
  }
  
  .timeline__dot {
    left: 4px;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
  
  .timeline__card {
    padding: 1.2rem 1.6rem;
  }
  
  .timeline__num {
    font-size: 0.9rem;
    right: 1.2rem;
    top: -0.8rem;
    padding: 0.1rem 0.6rem;
  }
  
  .timeline__title {
    font-size: 1.4rem;
  }
  
  .timeline__list li {
    font-size: 1.2rem;
  }
  
  .timeline__mascot img {
    width: 60px;
  }
}

@media (max-width: 480px) {
  .timeline__item {
    padding-left: 56px;
  }
  
  .timeline__dot {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }
  
  .timeline__card {
    padding: 1rem 1.4rem;
  }
  
  .timeline__num {
    font-size: 0.85rem;
    right: 1rem;
    top: -0.75rem;
    padding: 0.1rem 0.5rem;
  }
  
  .timeline__title {
    font-size: 1.35rem;
  }
  
  .timeline__list li {
    font-size: 1.15rem;
  }
  
  .timeline__mascot img {
    width: 55px;
  }
}

@media (max-width: 375px) {
  .timeline__item {
    padding-left: 52px;
  }
  
  .timeline__dot {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
  
  .timeline__card {
    padding: 0.9rem 1.2rem;
  }
  
  .timeline__num {
    font-size: 0.8rem;
    right: 0.8rem;
    top: -0.7rem;
    padding: 0.1rem 0.5rem;
  }
  
  .timeline__title {
    font-size: 1.3rem;
  }
  
  .timeline__list li {
    font-size: 1.1rem;
  }
  
  .timeline__mascot img {
    width: 50px;
  }
}

/* =========================================
   SKILLS
   ========================================= */
.skills {
  background: var(--bg-alt);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  margin-bottom: 3.2rem;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.8rem;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s;
}
.skill-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.skill-category__header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}
.skill-category__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  flex-shrink: 0;
}
[data-theme="dark"] .skill-category__icon {
  background: rgba(255, 75, 43, 0.15);
}

.skill-category__header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.skill-bar__info {
  display: flex;
  justify-content: space-between;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.skill-bar__track {
  height: 8px;
  background: var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
}
.skill-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: var(--r-full);
  width: 0;
  transition: width 1.2s 0.3s var(--ease-out);
}

/* Soft tags */
.soft-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.soft-tag {
  padding: 0.6rem 1.4rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
  cursor: default;
}
.soft-tag:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: scale(1.05);
}
[data-theme="dark"] .soft-tag:hover {
  background: rgba(255, 75, 43, 0.15);
  color: var(--primary);
}

/* Tools row */
.tools-row {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.tool-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.tool-badge {
  padding: 0.6rem 1.4rem;
  background: var(--secondary-dark);
  color: #e5e7eb;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition:
    transform 0.2s,
    background 0.2s;
}
.tool-badge:hover {
  transform: scale(1.08);
  background: var(--primary);
}
[data-theme="dark"] .tool-badge {
  background: var(--surface-2);
  color: var(--text);
}
[data-theme="dark"] .tool-badge:hover {
  background: var(--primary);
  color: #fff;
}

/* =========================================
   PROJECTS
   ========================================= */
.project-card {
  margin-bottom: 4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}
.project-card:hover {
  box-shadow: var(--shadow-lg);
}

.project-card__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.project-card--reverse .project-card__media {
  order: 2;
}
.project-card--reverse .project-card__content {
  order: 1;
}

/* Content column */
.project-card__content {
  padding: 4.8rem 4.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.8rem;
}

.project-num {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--primary);
  text-transform: uppercase;
}

.project-name {
  font-size: clamp(2.8rem, 3vw, 3.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.project-role,
.project-date {
  font-size: 1.3rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.project-role i,
.project-date i {
  color: var(--primary);
}

.project-desc {
  font-size: 1.55rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.project-tags span {
  padding: 0.5rem 1.4rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.project-tags span:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}
[data-theme="dark"] .project-tags span:hover {
  background: rgba(255, 75, 43, 0.1);
  color: var(--primary);
}

/* Media column */
.project-card__media {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
}

/* Single hero image */
.project-card__hero-img {
  flex: 1;
  overflow: hidden;
  min-height: 280px;
}
.project-card__hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.project-card:hover .project-card__hero-img img {
  transform: scale(1.04);
}

/* Two images side by side */
.project-card__img-pair {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
}
.project-card__img-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.project-card__img-pair img:first-child {
  border-right: 3px solid var(--bg);
}
.project-card:hover .project-card__img-pair img {
  transform: scale(1.04);
}

/* Experience Zone */
.xp-zone {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  flex-shrink: 0;
}
.xp-zone__label {
  padding: 1.2rem 2rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.xp-zone__label span {
  font-family: var(--font-display);
  font-size: 1.6em;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--primary);
  text-transform: uppercase;
}
.xp-zone__label small {
  font-size: 1.6rem;
  color: var(--text-muted);
}

/* VR */
.vr-wrap {
  height: 240px;
  position: relative;
}
.vr-wrap a-scene {
  width: 100%;
  height: 100%;
  display: block;
}
.a-enter-vr,
.a-orientation-modal {
  display: none !important;
}

/* Customizer */
.customizer {
  display: grid;
  grid-template-columns: 80px 1fr 140px;
  height: 260px;
}
.customizer__products {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
}
.cust-product {
  width: 56px;
  height: 56px;
  object-fit: contain;
  cursor: pointer;
  border-radius: var(--r-sm);
  padding: 0.4rem;
  transition:
    background 0.2s,
    transform 0.2s;
}
.cust-product:hover {
  background: var(--primary-light);
  transform: scale(1.1);
}
.customizer__canvas-wrap {
  position: relative;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
[data-theme="dark"] .customizer__canvas-wrap {
  background: #1a1a2e;
}
.cust-base {
  max-width: 80%;
  max-height: 80%;
  pointer-events: none;
}
.cust-sticker {
  position: absolute;
  width: 80px;
  cursor: grab;
  user-select: none;
}
.cust-text-overlay {
  position: absolute;
  font-weight: bold;
  cursor: grab;
  user-select: none;
}

.customizer__controls {
  padding: 0.8rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--surface);
  border-left: 1px solid var(--border);
}
.cust-stickers {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.cust-stickers img {
  width: 36px;
  height: 36px;
  cursor: pointer;
  object-fit: contain;
  transition: transform 0.2s;
}
.cust-stickers img:hover {
  transform: scale(1.2);
}
.customizer__controls label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.customizer__controls input[type="range"] {
  width: 100%;
  height: 4px;
  appearance: none;
  background: var(--border);
  border-radius: var(--r-full);
}
.customizer__controls input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
}
.customizer__controls input[type="color"] {
  width: 100%;
  height: 28px;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  background: none;
  padding: 0;
}
.cust-text-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cust-text-row input {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 1.1rem;
  background: var(--surface);
  color: var(--text);
}

.cust-text-row button {
  width: 100%;
  padding: 0.4rem 0.8rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 1.1rem;
  font-weight: 600;
}

/* Leaf zone */
.leaf-zone {
  padding: 1.2rem 2rem 2rem;
}
.leaf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.leaf-btn-new {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition:
    border-color 0.2s,
    transform 0.25s var(--ease-out),
    box-shadow 0.2s;
}
.leaf-btn-new:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.leaf-btn-new img {
  width: 100%;
  height: 90px;
  object-fit: cover;
}
.leaf-btn-new span {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.6rem;
  color: var(--text);
  text-align: center;
}
.leaf-btn-new.active {
  border-color: var(--primary);
  background: var(--primary-light);
}
[data-theme="dark"] .leaf-btn-new.active {
  background: rgba(255, 75, 43, 0.1);
}

.leaf-result-new {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.4rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 56px;
}
.leaf-result-new i {
  font-size: 2rem;
  color: var(--primary);
  flex-shrink: 0;
}
.leaf-result-new p {
  font-size: 1.4rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Fermentation zone */
.ferm-zone {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 1.6rem;
  align-items: center;
  padding: 1.2rem 2rem 2rem;
}
.ferm-chart-area {
  overflow: hidden;
}
.ferm-svg {
  width: 100%;
  height: 200px;
}
#fGridLines line {
  stroke: var(--border);
}
#fYAxis text,
#fXAxis text {
  font-size: 10px;
  fill: var(--text-muted);
}
#fDataLine {
  stroke: var(--primary);
}
#fDataDots circle {
  fill: var(--primary);
}
.ferm-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ferm-label {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
}
.ferm-controls input[type="number"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 1.5rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s;
}
.ferm-controls input:focus {
  border-color: var(--primary);
}
.ferm-btn {
  width: 100%;
  padding: 0.9rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.2s;
}
.ferm-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.03);
}
.ferm-result {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  min-height: 2rem;
  text-align: center;
}

@media (max-width: 768px) {
    /* Chuyển grid từ 2 cột thành 1 cột */
    .project-card__inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    /* Reverse order: trên mobile, media luôn ở trên */
    .project-card--reverse .project-card__media {
        order: 1;
    }
    .project-card--reverse .project-card__content {
        order: 2;
    }
    
    /* Giảm padding cho content */
    .project-card__content {
        padding: 2.4rem 1.8rem;
        gap: 1.2rem;
    }
    
    /* Giảm kích thước số thứ tự */
    .project-num {
        font-size: 3.2rem;
        letter-spacing: 0.2em;
    }
    
    /* Tên dự án */
    .project-name {
        font-size: clamp(2.2rem, 5vw, 2.8rem);
    }
    
    /* Meta info wrap tốt hơn */
    .project-meta {
        gap: 0.8rem;
    }
    .project-role,
    .project-date {
        font-size: 1.2rem;
    }
    
    /* Description xử lý wrap */
    .project-desc {
        font-size: 1.4rem;
        line-height: 1.6;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    /* Tags wrap xuống dòng */
    .project-tags {
        gap: 0.5rem;
    }
    .project-tags span {
        font-size: 1.1rem;
        padding: 0.4rem 1rem;
        white-space: normal;  /* QUAN TRỌNG: cho phép wrap */
        word-break: keep-all;
    }
    
    /* XỬ LÝ PHẦN MEDIA */
    .project-card__media {
        min-height: auto;
    }
    
    /* Pair images - chuyển thành 1 cột trên mobile */
    .project-card__img-pair {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .project-card__img-pair img:first-child {
        border-right: none;
        border-bottom: 3px solid var(--bg);
    }
    
    /* Hero image */
    .project-card__hero-img {
        min-height: 220px;
    }
    
    /* XỬ LÝ EXPERIENCE ZONE */
    .xp-zone__label {
        padding: 1rem 1.6rem 0.2rem;
    }
    .xp-zone__label span {
        font-size: 1.2rem;
        letter-spacing: 0.1em;
    }
    .xp-zone__label small {
        font-size: 1.3rem;
    }
    
    /* VR Zone */
    .vr-wrap {
        height: 200px;
    }
    
    /* Customizer - chuyển sang layout dọc */
    .customizer {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
    }
    
    .customizer__products {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0.6rem;
        gap: 0.8rem;
        overflow-x: auto;
    }
    
    .cust-product {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }
    
    .customizer__canvas-wrap {
        min-height: 200px;
    }
    
    .customizer__controls {
        border-left: none;
        border-top: 1px solid var(--border);
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.8rem;
        padding: 1rem;
    }
    
    .customizer__controls > * {
        flex: 1;
        min-width: 100px;
    }
    
    .cust-stickers {
        flex: 1;
        min-width: 120px;
    }
    
    .cust-text-row {
        flex: 1;
        min-width: 120px;
    }
}

/* Mobile nhỏ hơn (dưới 480px) */
@media (max-width: 480px) {
    .project-card__content {
        padding: 1.8rem 1.4rem;
    }
    
    .project-num {
        font-size: 2.4rem;
    }
    
    .project-name {
        font-size: 2rem;
    }
    
    .project-desc {
        font-size: 1.3rem;
    }
    
    .project-tags span {
        font-size: 1rem;
        padding: 0.3rem 0.8rem;
    }
    
    /* Customizer controls stack dọc */
    .customizer__controls {
        flex-direction: column;
    }
    
    .customizer__controls > * {
        width: 100%;
    }
}
/* =========================================
   CONTACT
   ========================================= */
.contact {
  background: var(--bg-alt);
  overflow: hidden;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.contact__desc {
  font-size: 1.7rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 0.8rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1.6rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition:
    border-color 0.2s,
    transform 0.3s var(--ease-out),
    box-shadow 0.3s;
  color: var(--text);
}
.contact-item:hover {
  border-color: var(--primary);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.contact-item__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: background 0.2s;
}
[data-theme="dark"] .contact-item__icon {
  background: rgba(255, 75, 43, 0.15);
}
.contact-item:hover .contact-item__icon {
  background: var(--primary);
  color: #fff;
}

.contact-item__label {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 500;
}
.contact-item__val {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

/* Mascot — no bubble */
.contact__mascot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.contact__mascot img {
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 10px 40px rgba(255, 75, 43, 0.2));
  animation: floatMascot 6s ease-in-out infinite;
}

/* =========================================
   FEEDBACK SECTION
========================================= */
.feedback-section {
  overflow: hidden;
}

.feedback-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.feedback-mascot {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.feedback-mascot img {
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(255, 75, 43, 0.15));
  animation: floatMascot 7s ease-in-out infinite;
}

.feedback-form-area {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.feedback-form-area p {
  font-size: 1.6rem;
  color: var(--text-muted);
}

.fb-step {
  display: none;
}
.fb-step.active {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.fb-step-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.fb-stars {
  display: flex;
  gap: 1rem;
}
.fb-star {
  font-size: 3.2rem;
  color: var(--border-dark);
  transition:
    color 0.2s,
    transform 0.2s var(--ease-bounce);
  line-height: 1;
}
.fb-star:hover,
.fb-star.active {
  color: #f59e0b;
  transform: scale(1.2);
}

#fbComment {
  width: 100%;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  font-size: 1.5rem;
  resize: none;
  transition: border-color 0.2s;
}
#fbComment:focus {
  border-color: var(--primary);
}

.fb-actions {
  display: flex;
  gap: 1rem;
}
.fb-skip {
  display: inline-flex;
  align-items: center;
  padding: 1.2rem 2.4rem;
  border: 2px solid var(--border-dark);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  border-radius: var(--r-full);
  transition:
    border-color 0.2s,
    color 0.2s;
  cursor: pointer;
  background: transparent;
}
.fb-skip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.fb-success {
  text-align: center;
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.fb-success__icon {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: #fff;
  animation: popIn 0.5s var(--ease-bounce);
}
@keyframes popIn {
  0% {
    transform: scale(0);
  }
  60% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}
.fb-success h3 {
  font-size: 2.4rem;
  color: var(--text);
}
.fb-success p {
  font-size: 1.5rem;
  color: var(--text-muted);
}

/* base button */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;

  padding: 0.9rem 1.6rem;
  font-size: 1.4rem;
  font-weight: 500;

  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;

  border: 1px solid transparent;

  min-width: 140px;
  max-width: 220px;
  width: 100%;
}

/* PRIMARY */
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
}

/* OUTLINE */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* DISABLED */
.btn-primary:disabled,
.btn-outline:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* responsive nhỏ lại trên mobile */
@media (max-width: 480px) {
  .btn-primary,
  .btn-outline {
    min-width: 120px;
    max-width: 100%;
    font-size: 1.3rem;
    padding: 0.8rem 1.4rem;
  }
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  padding: 3rem 0;
  background: var(--secondary-dark);
  color: #9ca3af;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.footer__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  opacity: 0.8;
}
.footer__brand p {
  font-size: 1.3rem;
}
.footer__nav {
  display: flex;
  gap: 2rem;
}
.footer__nav a {
  font-size: 1.3rem;
  color: #9ca3af;
  transition: color 0.2s;
}
.footer__nav a:hover {
  color: var(--primary);
}

/* =========================================
   BACK TO TOP
   ========================================= */
.back-top {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.3s,
    visibility 0.3s,
    transform 0.3s var(--ease-out);
  z-index: 999;
}
.back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* =========================================
   MOBILE NAVIGATION (full-screen overlay)
   ========================================= */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navbar__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease-out);
    z-index: 900;
  }
  .navbar__nav.open {
    transform: none;
  }

  .navbar__list {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .navbar__link {
    font-size: 2.4rem;
    padding: 1.2rem 3rem;
  }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1100px) {
  .project-card__inner,
  .project-card--reverse .project-card__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .project-card--reverse .project-card__media {
    order: 1;
  }
  .project-card--reverse .project-card__content {
    order: 2;
  }

  .project-card__hero-img {
    min-height: 280px;
  }
  .project-card__img-pair {
    min-height: 240px;
  }

  .customizer {
    grid-template-columns: 1fr;
    height: auto;
  }
  .customizer__products {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    justify-content: center;
  }
  .customizer__canvas-wrap {
    height: 220px;
  }
  .customizer__controls {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ferm-zone {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 6rem;
    gap: 3rem;
  }
  .hero__desc {
    margin: 0 auto;
  }
  .hero__ctas {
    justify-content: center;
  }
  .hero__stats {
    justify-content: center;
  }
  .hero__visual {
    order: -1;
  }
  .hero__mascot-wrap {
    width: 280px;
  }
  .hero__badge--1 {
    left: 0;
  }
  .hero__badge--3 {
    left: 0;
    bottom: 5%;
  }

  .about-block,
  .about-block--goals {
    grid-template-columns: 1fr;
  }
  .about-block__visual {
    order: -1;
  }
  .about-block__visual img {
    max-height: 200px;
  }
  .about-block__visual--goals {
    order: 2;
  }

  /* Hobbies responsive - stack rows */
  .hobby-row {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    text-align: center;
  }
  .hobby-row--img-right .hobby-row__text {
    order: 2;
  }
  .hobby-row--img-right .hobby-row__img {
    order: 1;
  }
  .hobby-row--img-left .hobby-row__img {
    order: 1;
  }
  .hobby-row--img-left .hobby-row__text {
    order: 2;
  }
  .hobby-row__text h3 {
    font-size: 3.2rem;
  }
  .hobby-row__text p {
    max-width: 100%;
  }
  .hobby-row__img img {
    max-width: 160px;
  }

  .timeline__line {
    left: 28px;
    transform: none;
  }
  .timeline__item,
  .timeline__item--right {
    grid-template-columns: 60px 1fr;
    gap: 1.6rem;
  }
  .timeline__item > .timeline__card,
  .timeline__item--right > .timeline__card {
    grid-column: 2;
    text-align: left;
  }
  .timeline__item > .timeline__dot,
  .timeline__item--right > .timeline__dot {
    grid-column: 1;
    justify-self: center;
  }
  .timeline__item > .timeline__mascot,
  .timeline__item--right > .timeline__mascot {
    display: none;
  }
  .timeline__item::after,
  .timeline__item--right::before,
  .timeline__item--right::after {
    display: none;
  }
  .timeline__item--right::before {
    display: none;
  }
  .timeline__card {
    text-align: left !important;
  }
  .timeline__item--right > .timeline__card .timeline__num {
    left: 2rem;
  }
  .timeline__item > .timeline__card .timeline__num {
    left: 2rem;
    right: auto;
  }
  .timeline__list li {
    text-align: left;
  }

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

  .contact__inner {
    grid-template-columns: 1fr;
  }
  .contact__mascot {
    order: -1;
  }
  .contact__mascot img {
    max-height: 220px;
  }

  .feedback-inner {
    grid-template-columns: 1fr;
  }
  .feedback-mascot {
    order: -1;
  }
  .feedback-mascot img {
    max-height: 200px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 5rem 0;
  }
  .section-title {
    font-size: 3.2rem;
  }

  .hero__badge {
    display: none;
  }
  .hero__name {
    font-size: 4.2rem;
  }

  .hobby-row {
    padding: 3rem 0;
  }
  .hobby-row__num {
    font-size: 4rem;
  }
  .hobby-row__text h3 {
    font-size: 2.8rem;
  }

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

  .project-card__content {
    padding: 2.8rem 2.4rem;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
  .footer__nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .back-top {
    bottom: 2rem;
    right: 2rem;
    width: 4.4rem;
    height: 4.4rem;
  }
}

@media (max-width: 400px) {
  .hero__stats {
    flex-direction: column;
    gap: 1.6rem;
  }
  .stat-divider {
    width: 40px;
    height: 1px;
  }
  .hero__ctas {
    flex-direction: column;
    align-items: center;
  }
}
