:root {
  --bg: #f9fafb;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #7c3aed;
  --card: #ffffff;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -20% -10%;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgb(124 58 237 / 16%), transparent 34%),
    radial-gradient(circle at 85% 12%, rgb(236 72 153 / 14%), transparent 32%),
    radial-gradient(circle at 70% 78%, rgb(59 130 246 / 12%), transparent 33%);
  animation: pulseBg 14s ease-in-out infinite alternate;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgb(255 255 255 / 85%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.header:hover {
  box-shadow: 0 8px 22px rgb(15 23 42 / 8%);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav a,
.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav a:hover,
.mobile-nav a:hover {
  color: var(--primary);
}

.nav a.active,
.mobile-nav a.active {
  color: var(--primary);
}

.menu-btn {
  display: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
}

.mobile-nav {
  display: none;
  padding-bottom: 12px;
  gap: 0.8rem;
}

.mobile-nav.open {
  display: grid;
}

.hero {
  padding: 4.5rem 0 3rem;
  text-align: center;
}

.hero-content {
  animation: fadeUp 0.9s ease both;
}

.hero-badge {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #ddd6fe;
  color: #5b21b6;
  background: #f5f3ff;
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-content h1 {
  margin: 0.9rem 0 0.3rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero-content h2 {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 600;
}

.hero-content p {
  max-width: 760px;
  margin: 1rem auto 0;
  font-size: 1.05rem;
}

.hero-meta {
  margin-top: 1rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-meta span {
  border: 1px solid #ddd6fe;
  background: #faf5ff;
  color: #5b21b6;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.school-brand {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  background: rgb(239 246 255 / 82%);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.school-brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgb(30 58 138 / 12%);
}

.school-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.school-brand p {
  margin: 0;
  font-size: 0.9rem;
  color: #1e3a8a;
  font-weight: 600;
  text-align: left;
}

.hero-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions a {
  text-decoration: none;
  padding: 0.62rem 1rem;
  border-radius: 11px;
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgb(124 58 237 / 25%);
}

.hero-actions .ghost {
  background: #fff;
  color: var(--primary);
  border-color: #d8b4fe;
}

.avatar {
  margin: 0 auto;
  width: 156px;
  height: 156px;
  border-radius: 999px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 14px 32px rgb(124 58 237 / 20%);
  animation: floatY 4.2s ease-in-out infinite;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section {
  padding: 2.7rem 0;
}

.section.alt {
  background: #f3f4f6;
}

.section h3 {
  margin-top: 0;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.timeline {
  display: grid;
  gap: 0.9rem;
  border-left: 2px solid #ddd6fe;
  margin-left: 0.4rem;
  padding-left: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: #d8b4fe;
  box-shadow: 0 16px 30px rgb(79 70 229 / 14%);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.64rem;
  top: 1.1rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px #ede9fe;
}

.card h4 {
  margin: 0 0 0.4rem;
  color: #374151;
}

.card ul {
  margin: 0.25rem 0 0.6rem 1.25rem;
}

.year {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.1rem;
}

.contact-item {
  background: rgb(255 255 255 / 75%);
  border: 1px solid #e6e6ef;
  border-radius: 18px;
  padding: 1.2rem 1rem;
  text-align: center;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.contact-item:hover {
  transform: translateY(-7px);
  border-color: #c7c9db;
  box-shadow: 0 16px 26px rgb(15 23 42 / 12%);
}

.contact-item h4 {
  margin: 0.7rem 0 0.2rem;
  font-size: 1.03rem;
}

.contact-item p {
  margin: 0;
  color: #5b6470;
  overflow-wrap: anywhere;
  font-weight: 500;
}

.contact-link {
  color: inherit;
  text-decoration: none;
}

.contact-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  color: #6b7280;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.contact-icon svg {
  width: 28px;
  height: 28px;
}

.contact-link:hover .contact-icon {
  color: #374151;
  background: #e5e7eb;
  border-color: #d1d5db;
}

.footer {
  padding: 1.2rem 0 2rem;
  text-align: center;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulseBg {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(0, -1%, 0) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: inline-grid;
    place-items: center;
  }

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

  .timeline {
    margin-left: 0.15rem;
    padding-left: 0.75rem;
  }

  .timeline-item::before {
    left: -1.35rem;
  }

  .school-brand {
    width: 100%;
    justify-content: center;
    padding: 0.55rem 0.7rem;
  }

  .school-brand p {
    font-size: 0.84rem;
  }
}
