:root {
  --bg: #f7f4ee;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #6b7280;
  --accent: #65b96b;
  --accent-dark: #3f8f47;
  --line: #e5e1d8;
  --soft: #eef8ef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, #fffdf7 0, #f7f4ee 45%, #f3efe7 100%);
  color: var(--text);
  line-height: 1.6;
}

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

.page {
  width: min(1050px, calc(100% - 36px));
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 12px;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.35rem;
}

nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: center;
}

nav a:hover {
  color: var(--text);
}

.hero {
  text-align: center;
  padding: 44px 0 30px;
}

.photo-wrap {
  width: min(360px, 78vw);
  height: min(360px, 78vw);
  margin: 0 auto 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, #ffffff 0, #eaf8ec 42%, #cdeed1 100%);
  border: 1px solid rgba(63, 143, 71, 0.18);
  box-shadow: 0 24px 60px rgba(41, 68, 48, 0.14);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.photo-wrap img {
  width: 85%;
  max-height: 95%;
  object-fit: contain;
  display: block;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.95;
  margin: 0 0 18px;
  letter-spacing: -0.07em;
}

.hero-text {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: #374151;
}

.hero-text p {
  margin: 6px 0;
}

.buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 750;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 8px 20px rgba(35, 42, 35, 0.06);
}

.button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.button:hover,
.mini-button:hover {
  transform: translateY(-1px);
  transition: 0.18s ease;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.social-links a.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  height: auto;
  min-width: 0;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(35, 42, 35, 0.04);
}

.social-links a.social-icon:hover {
  color: var(--text);
  transform: translateY(-1px);
  transition: 0.18s ease;
}

.icon-badge {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  flex: 0 0 20px;
}

.linkedin .icon-badge {
  background: #0a66c2;
  font-family: Arial, sans-serif;
}

.instagram .icon-badge {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.instagram svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: white;
  stroke-width: 1.9;
}

section {
  padding: 34px 0;
}

.card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 18px 50px rgba(31, 41, 51, 0.06);
  backdrop-filter: blur(8px);
}

.section-title {
  font-size: 1.55rem;
  margin: 0 0 18px;
  letter-spacing: -0.04em;
}

.about-text {
  font-size: 1.08rem;
  color: #374151;
}

.about-text p {
  margin-top: 0;
}

.page-title {
  text-align: center;
  padding: 60px 0 28px;
}

.page-title h1 {
  margin-bottom: 14px;
}

.page-title p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.item-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 34px rgba(31, 41, 51, 0.05);
}

.item-card h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.item-card p {
  color: var(--muted);
  margin: 0 0 18px;
}

.tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 750;
  margin-bottom: 12px;
}

.card-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mini-button {
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 750;
  background: var(--soft);
  color: var(--accent-dark);
  border: 1px solid rgba(101, 185, 107, 0.25);
}

.mini-button.secondary {
  background: #fafafa;
  color: #4b5563;
  border-color: var(--line);
}

.medal-hero {
  width: min(520px, 100%);
  display: block;
  margin: 0 auto 26px;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(31, 41, 51, 0.10);
}

.highlight-list {
  display: grid;
  gap: 16px;
}

.highlight-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 24px;
  box-shadow: 0 12px 34px rgba(31, 41, 51, 0.05);
}

.highlight-card h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.highlight-card p {
  margin: 0;
  color: var(--muted);
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 36px 0 48px;
  font-size: 0.95rem;
}

footer a {
  font-weight: 750;
  color: #374151;
}

@media (max-width: 760px) {
  header {
    flex-direction: column;
    gap: 12px;
  }

  nav {
    gap: 12px;
  }

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

  .card {
    border-radius: 22px;
  }
}

/* Floating Baby Dragon mascot */
.baby-dragon-mascot {
  position: fixed;
  left: 0;
  top: 0;
  width: clamp(86px, 9vw, 135px);
  z-index: 80;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  will-change: transform;
}

.baby-dragon-mascot img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 12px 18px rgba(31, 41, 51, 0.22));
  transform-origin: center;
  animation: dragonWingBob 1.7s ease-in-out infinite;
  transition: opacity 0.12s ease;
}

.baby-dragon-mascot:hover img {
  filter: drop-shadow(0 16px 22px rgba(31, 41, 51, 0.28));
}

.dragon-speech {
  position: absolute;
  left: 50%;
  bottom: 96%;
  transform: translate(-50%, 8px) scale(0.95);
  min-width: 70px;
  max-width: 130px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  color: #374151;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.10);
  opacity: 0;
  pointer-events: none;
  transition: 0.18s ease;
  white-space: nowrap;
}

.dragon-speech.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.dragon-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.flame {
  position: absolute;
  left: -30px;
  top: 35%;
  font-size: 2.15rem;
  animation: flameBurst 0.78s ease-out forwards;
  filter: drop-shadow(0 6px 10px rgba(255, 130, 0, 0.35));
}

.heart {
  position: absolute;
  left: 45%;
  top: 6%;
  font-size: 1.45rem;
  animation: heartFloat 1.05s ease-out forwards;
}

.sparkle {
  position: absolute;
  left: 12%;
  top: 15%;
  font-size: 1.25rem;
  animation: heartFloat 1.05s ease-out forwards;
}

.baby-dragon-mascot.is-fire img {
  animation: dragonFire 0.82s ease-in-out;
}

.baby-dragon-mascot.is-dance img {
  animation: dragonDance 1.05s ease-in-out;
}

.baby-dragon-mascot.is-love img {
  animation: dragonLove 1.05s ease-in-out;
}

@keyframes dragonWingBob {
  0%, 100% {
    transform: translateY(0) rotate(-2deg) scale(1);
  }
  50% {
    transform: translateY(-7px) rotate(2deg) scale(1.025);
  }
}

@keyframes dragonFire {
  0% {
    opacity: 0.65;
    transform: scale(0.96) rotate(-4deg);
  }
  18% {
    opacity: 1;
    transform: scale(1.08) rotate(-7deg);
  }
  45% {
    transform: scale(1.13) translateX(-7px) rotate(4deg);
  }
  72% {
    transform: scale(1.03) translateX(4px) rotate(-2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes dragonDance {
  0% {
    opacity: 0.75;
    transform: scale(0.98) rotate(0deg);
  }
  18% {
    opacity: 1;
    transform: scale(1.08) rotate(-13deg) translateY(-6px);
  }
  38% {
    transform: scale(0.98) rotate(12deg) translateY(2px);
  }
  58% {
    transform: scale(1.09) rotate(-10deg) translateY(-8px);
  }
  78% {
    transform: scale(1.02) rotate(7deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes dragonLove {
  0% {
    opacity: 0.75;
    transform: scale(0.95) rotate(0deg);
  }
  28% {
    opacity: 1;
    transform: scale(1.14) rotate(-5deg);
  }
  60% {
    transform: scale(1.07) rotate(4deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes flameBurst {
  0% {
    opacity: 0;
    transform: translateX(18px) scale(0.35) rotate(-12deg);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-40px) scale(1.38) rotate(8deg);
  }
}

@keyframes heartFloat {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.5);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-46px) scale(1.25);
  }
}

@media (max-width: 760px) {
  .baby-dragon-mascot {
    width: 78px;
  }

  .dragon-speech {
    font-size: 0.7rem;
    min-width: 58px;
    max-width: 105px;
  }
}
