:root {
  --bg: #dce6cf;
  --bg-strong: #c7ddb5;
  --text: #111111;
  --muted: #334155;
  --accent: #2dbb63;
  --accent-soft: #9fd8b5;
  --card: #fdfdfb;
  --shadow: 0 20px 55px rgba(18, 43, 33, 0.12);
}

* { box-sizing: border-box; }

/* Global typography override */
body,
h1, h2, h3, h4, h5, h6,
button, input, select, textarea,
.nav-links a {
  font-family: "Times New Roman", serif !important;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 18%, rgba(159, 216, 181, 0.35), transparent 35%),
    radial-gradient(circle at 85% 8%, rgba(125, 184, 149, 0.28), transparent 38%),
    linear-gradient(180deg, var(--bg) 0%, #d6e0c8 35%, #d9e5d0 70%, #dbe7d2 100%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  letter-spacing: 0.01em;
}

main { position: relative; z-index: 1; }

.floral {
  position: fixed;
  width: 180px;
  height: 180px;
  background: center/contain no-repeat;
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.08));
  z-index: 0;
}

/* SVG hoa lá nhẹ, màu pastel */
.floral-hero {
  top: 120px;
  left: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cpath d='M88 12c9 22 6 42-10 60 26-9 46-5 60 10-22 8-38 24-46 46-14-20-30-32-50-36 18-14 26-32 24-54 12 8 22 8 22-26z' fill='%23c7ddb5' opacity='0.8'/%3E%3Cpath d='M140 40c-6 10-14 16-26 18 12 6 20 14 24 26-12-4-22-2-32 6-1-12-7-22-18-30 10-2 18-8 22-18 6 8 14 12 30 8z' fill='%232dbb63' opacity='0.45'/%3E%3C/svg%3E");
}

.floral-mid {
  top: 48%;
  right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cpath d='M120 20c-4 18-12 30-26 38 18 0 30 8 38 22-16-2-28 2-38 12-6-12-16-18-30-20 10-8 14-18 12-32 10 6 20 4 44-20z' fill='%232dbb63' opacity='0.35'/%3E%3Cpath d='M64 138c6-10 14-16 26-18-12-6-20-14-24-26 12 4 22 2 32-6 2 12 8 22 18 30-10 2-18 8-22 18-6-8-14-12-30-8z' fill='%23c7ddb5' opacity='0.7'/%3E%3C/svg%3E");
}

.floral-bottom {
  bottom: 140px;
  left: 40%;
  width: 220px;
  height: 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'%3E%3Cpath d='M88 30c14 18 16 36 6 54 20-10 38-10 54 2-18 6-30 20-36 40-14-16-32-24-54-24 14-12 22-28 20-48 10 6 18 4 10-24z' fill='%23c7ddb5' opacity='0.62'/%3E%3Cpath d='M160 140c-12-8-16-18-14-30-10 8-20 10-32 6 10-6 16-14 18-26 10 6 20 6 32 0-8 8-10 18-4 32z' fill='%232dbb63' opacity='0.42'/%3E%3C/svg%3E");
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(220, 230, 207, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 6px 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  border: 1.25px solid rgba(17, 17, 17, 0.75);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: none;
}

.nav-links a:hover {
  border-color: var(--text);
  background: #ffffffee;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.nav-links a.pill {
  border-color: var(--text);
  font-weight: 700;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.45;
  mix-blend-mode: multiply;
}

#overlay-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sparkle, .petal, .butterfly {
  position: absolute;
  will-change: transform, opacity;
  filter: drop-shadow(0 4px 10px rgba(255,255,255,0.35));
}

.sparkle {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.9) 0 55%, rgba(255,255,255,0) 70%);
  box-shadow: 0 0 16px rgba(255, 182, 193, 0.6);
  animation: sparkleFloat var(--dur, 12s) linear infinite;
  opacity: 0.7;
}

.petal {
  width: 12px;
  height: 24px;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.9) 0 30%, rgba(255,192,203,0.5) 60%, rgba(221,160,221,0.4) 100%);
  border-radius: 50% 50% 40% 40%;
  transform-origin: center;
  opacity: 0.55;
  filter: blur(0.3px);
  animation: petalDrift var(--dur, 16s) ease-in-out infinite;
}

.butterfly {
  width: 24px;
  height: 18px;
  background: radial-gradient(circle at 25% 50%, rgba(255, 182, 193, 0.85) 0 55%, rgba(255,182,193,0) 70%),
              radial-gradient(circle at 75% 50%, rgba(196, 181, 253, 0.85) 0 55%, rgba(196,181,253,0) 70%);
  border-radius: 40% 60% 50% 50%;
  opacity: 0.68;
  animation: butterflyFloat var(--dur, 18s) ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(173, 136, 255, 0.35));
}

@keyframes sparkleFloat {
  0%   { transform: translate3d(var(--x,0), var(--y,0), 0) scale(0.9); opacity: 0; }
  10%  { opacity: 0.75; }
  60%  { opacity: 0.8; }
  100% { transform: translate3d(calc(var(--x,0) + var(--dx, 0px)), calc(var(--y,0) - 60vh), 0) scale(1); opacity: 0; }
}

@keyframes petalDrift {
  0%   { transform: translate3d(var(--x,0), var(--y,0), 0) rotate(0deg) scale(1); opacity: 0; }
  15%  { opacity: 0.65; }
  60%  { opacity: 0.6; }
  100% { transform: translate3d(calc(var(--x,0) + var(--dx,0px)), calc(var(--y,0) - 70vh), 0) rotate(16deg) scale(0.96); opacity: 0; }
}

@keyframes butterflyFloat {
  0%   { transform: translate3d(var(--x,0), var(--y,0), 0) rotate(-4deg) scale(0.92); opacity: 0; }
  10%  { opacity: 0.75; }
  45%  { transform: translate3d(calc(var(--x,0) + 30px), calc(var(--y,0) - 30vh), 0) rotate(4deg) scale(1); }
  80%  { transform: translate3d(calc(var(--x,0) - 10px), calc(var(--y,0) - 55vh), 0) rotate(-6deg) scale(1.04); opacity: 0.7; }
  100% { transform: translate3d(calc(var(--x,0) + var(--dx, 0px)), calc(var(--y,0) - 70vh), 0) rotate(2deg) scale(1.02); opacity: 0; }
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 28px;
}

section { position: relative; }

.hero {
  padding-top: 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 700;
}

.lead {
  font-size: 18px;
  max-width: 640px;
  color: #1f2a36;
  line-height: 1.7;
  letter-spacing: 0.4px;
}

.eyebrow {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 600;
}

.btn {
  margin-top: 24px;
  padding: 14px 28px;
  border: 1.75px solid var(--text);
  background: linear-gradient(135deg, #ffffff, #f5fbf3);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.4px;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(17,17,17,0.08);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  background: linear-gradient(135deg, rgba(45,187,99,0.12), rgba(45,187,99,0.06), #ffffff);
  box-shadow: 0 18px 32px rgba(17,17,17,0.12);
}

.btn:active { transform: translateY(0); }

.section {
  padding-top: 40px;
}

.section-title {
  font-size: clamp(32px, 4vw, 50px);
  margin: 0 0 24px;
  position: relative;
  display: inline-block;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 12px;
  position: relative;
  display: inline-block;
  letter-spacing: -0.01em;
}

.highlight {
  padding-bottom: 6px;
}

.highlight::after {
  content: '';
  position: absolute;
  left: -6px;
  bottom: -6px;
  width: calc(100% + 12px);
  height: 14px;
  background: radial-gradient(circle at 15% 60%, rgba(45,187,99,0.6) 0 35%, transparent 60%),
              linear-gradient(90deg, rgba(45,187,99,0.15), rgba(45,187,99,0.28), rgba(45,187,99,0.15));
  border-radius: 999px;
  z-index: -1;
}

.scribble-underline {
  position: relative;
  display: inline-block;
}

.scribble-underline::after {
  content: '';
  position: absolute;
  left: -8px;
  bottom: -12px;
  width: calc(100% + 20px);
  height: 20px;
  background: radial-gradient(circle at 12% 60%, rgba(45,187,99,0.75) 0 30%, transparent 48%),
              radial-gradient(circle at 68% 70%, rgba(45,187,99,0.4) 0 34%, transparent 48%),
              linear-gradient(90deg, rgba(45,187,99,0.16), rgba(45,187,99,0.32), rgba(45,187,99,0.12));
  border-radius: 50% 50% 46% 54%;
  z-index: -1;
  transform: rotate(-2deg);
}

.oval {
  padding: 12px 18px;
}

.oval::before {
  content: '';
  position: absolute;
  inset: -8px -14px;
  border: 2px solid var(--accent-soft);
  border-radius: 50%;
  transform: rotate(-3deg);
  z-index: -1;
}

.split { padding-top: 20px; }

.split-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.split-grid.reverse { grid-template-columns: 1.1fr 0.9fr; }

.section-text p { margin: 0; font-size: 18px; color: var(--text); line-height: 1.75; letter-spacing: 0.4px; }
.section-text { max-width: 640px; }

.dot-list {
  padding-left: 18px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  letter-spacing: 0.35px;
  line-height: 1.7;
}

.dot-list li { margin-bottom: 8px; }

.dot-list.wide { font-size: 18px; }

.polaroid {
  background: var(--card);
  padding: 16px 16px 26px;
  box-shadow: 0 18px 38px rgba(17,17,17,0.08), 0 4px 16px rgba(17,17,17,0.05);
  border: 1.5px solid rgba(17,17,17,0.06);
  border-radius: 16px;
  position: relative;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  max-width: 100%;
}

.polaroid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.polaroid figcaption {
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #334155;
}

.polaroid:hover { transform: translateY(-6px) rotate(0deg); box-shadow: 0 26px 46px rgba(17,17,17,0.12); }

.tilt-left { transform: rotate(-2.2deg); }
.tilt-right { transform: rotate(2.2deg); }

.tall img { max-height: 420px; object-fit: cover; }
.tiny { width: 220px; }

.activity-grid { position: relative; }

.activity-content { max-width: 880px; }

.free-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.free-layout .polaroid {
  padding: 12px 12px 16px;
}
.free-layout .polaroid img {
  height: 220px;
  object-fit: cover;
}
.double-columns .polaroid img {
  height: 260px;
  object-fit: cover;
}

.double-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

.column-block { position: relative; }

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

.skills { position: relative; }

.contact {
  padding-bottom: 120px;
}

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

.contact-details {
  font-size: 20px;
  line-height: 1.9;
  margin-top: 18px;
  font-weight: 500;
}

.contact-details a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact-details a:hover { border-color: var(--text); }

.hero .star, .contact .star { pointer-events: none; }

.hero-copy .lead { margin: 0; }

.activity-grid .star { right: 18px; left: auto; top: -10px; }

/* Skeleton loading shimmer */
.skeleton { position: relative; overflow: hidden; }
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 45%, rgba(45,187,99,0.08) 60%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  animation: shimmer 1.6s infinite;
}

@keyframes shimmer { 100% { transform: translateX(100%); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Micro interactions */
.polaroid:hover::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px dashed rgba(0,0,0,0.08);
  border-radius: 16px;
}

.hero-copy h1 { letter-spacing: -0.02em; }

.activity-content .lead { color: var(--text); font-weight: 600; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { order: 2; }
  .hero figure { order: 1; justify-self: center; max-width: 360px; }
  .split-grid, .split-grid.reverse { grid-template-columns: 1fr; }
  .floral { opacity: 0.22; }
}

@media (max-width: 768px) {
  .container { padding: 64px 18px; }
  .tiny { width: 180px; }
  .polaroid { padding: 12px 12px 18px; }
  .nav-links { gap: 8px; }
  .nav-links a { padding: 8px 10px; font-size: 14px; }
  .floral { width: 120px; height: 120px; }
  .floral-bottom { width: 160px; height: 160px; left: 30%; }
}

@media (max-width: 560px) {
  body { line-height: 1.65; }
  .hero { padding-top: 100px; }
  .section-title { font-size: 30px; }
  .section-subtitle { font-size: 24px; }
  .lead { font-size: 17px; }
  .dot-list { font-size: 16px; }
  .btn { width: 100%; text-align: center; }
  .free-layout { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .nav-inner { flex-direction: column; align-items: flex-start; }
  .nav-links { width: 100%; row-gap: 8px; }
  .floral { display: none; }
}

/* Notes for editing:
- Đổi ảnh: thay đường dẫn trong thẻ <img src="assets/images/...">.
- Đổi nội dung: sửa trực tiếp text trong các <p>, <li>, <h1>-<h3>.
- Đổi thông tin liên hệ: chỉnh trong #contact .contact-details.
- Thêm section mới: sao chép khối <section class="section reveal"> ... </section> và thêm class .reveal để tự nhận animation.
*/
