@import url("fonts.css");

/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #3B6BF5;
  --blue-light: #EEF2FF;
  --blue-mid:   #6B8EF8;
  --dark:       #0F1117;
  --mid:        #3D3D3D;
  --muted:      #71717A;
  --bg:         #FFFFFF;
  --bg-alt:     #F8F9FF;
  --card-bg:    #F5F6FF;
  --border:     #E4E7F5;
  --yellow:     #FFC82C;
  --radius:     16px;
  --radius-sm:  8px;
  --nav-h:      64px;
  --content-max: 1100px;
  --cards-max: 1000px;
  --page-gutter: 40px;
  --transition: 0.25s ease;
  --shadow:     0 4px 24px rgba(59,107,245,0.08);
  --shadow-lg:  0 12px 48px rgba(59,107,245,0.14);
}

html {
  overflow-x: hidden;
  scrollbar-width: none;
}
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #0F1117;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.4s ease;
}
.intro-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.intro-overlay.intro-hidden {
  opacity: 0;
  pointer-events: none;
}
body.intro-loading {
  overflow: hidden;
}
html.has-seen-intro #introOverlay {
  display: none !important;
}
html.has-seen-intro body.intro-loading {
  overflow: auto !important;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
}

::-webkit-scrollbar { display: none; }

/* ─── NAV ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, background 0.3s ease;
  will-change: transform, opacity;
  opacity: 1;
}

.nav.nav-hidden {
  transform: translateY(-100%) !important;
}

.nav.nav-idle {
  opacity: 0;
  pointer-events: none;
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  height: 48px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: normal;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--dark); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 16px var(--page-gutter) 24px;
}
.mobile-menu a {
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--mid);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: flex; }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}
.hero-wave-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-dither-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
}
.hero-centered {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) var(--page-gutter) 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 0 auto 28px;
  width: 100%;
  max-width: 700px;
}

.hero-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.hero-avatar-img {
  width: 216px;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}
.hero-avatar-shimmer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  transform: scale(0.3) rotate(90deg);
}
.hero-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 6px;
}
.hero-greet {
  font-size: 16px;
  color: var(--mid);
  margin: 0;
  text-align: left;
}
.hero-role-loader {
  --bg-color: #FFFFFF;
  color: var(--mid);
  font-family: inherit;
  font-weight: 500;
  font-size: 1.6rem;
  box-sizing: content-box;
  height: 1.3em;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
}
.hero-role-loader p { margin: 0; }
.hero-role-words {
  overflow: hidden;
  position: relative;
  height: 100%;
}
.hero-role-word {
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 6px;
  color: #C89A1E;
  font-weight: 700;
  white-space: nowrap;
  animation: heroRoleSpin 5s ease-in-out infinite;
}
@keyframes heroRoleSpin {
  0%   { transform: translateY(0%); }
  17%  { transform: translateY(0%); }
  25%  { transform: translateY(-100%); }
  42%  { transform: translateY(-100%); }
  50%  { transform: translateY(-200%); }
  67%  { transform: translateY(-200%); }
  75%  { transform: translateY(-300%); }
  100% { transform: translateY(-300%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-role-word { animation: none; }
  .hero-role-word:not(:first-child) { display: none; }
}
.hero-name-tag {
  position: absolute;
  top: 4px;
  left: 100%;
  margin-left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: var(--muted);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-size: 1.1rem;
  font-weight: 500;
}
.hero-name-arrow {
  width: 26px;
  height: 26px;
  color: var(--muted);
  transform: scaleX(-1);
}

.hero-quote {
  font-family: 'Rajdhani', 'Fraunces', serif;
  font-style: normal;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--mid);
  max-width: 460px;
  margin: 4px 0 0;
  text-align: left;
}

.hero-tagline-row {
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 28px;
}
.hero-wave-emoji {
  display: inline-block;
  font-size: 1.15rem;
  line-height: 1;
  transform-origin: 70% 70%;
  animation: heroWave 2s ease-in-out infinite;
}
@keyframes heroWave {
  0%, 100% { transform: rotate(0deg); }
  10%       { transform: rotate(14deg); }
  20%       { transform: rotate(-8deg); }
  30%       { transform: rotate(14deg); }
  40%       { transform: rotate(-4deg); }
  50%       { transform: rotate(10deg); }
  60%, 100% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-wave-emoji { animation: none; }
}
.hero-bio {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.9;
  margin: 0 auto 14px;
  max-width: 600px;
  text-align: justify;
}
.hero-highlight {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath d='M4,26 C14,10 34,7 62,12 C122,20 176,5 238,13 C298,21 356,9 396,24 L397,39 C358,53 298,42 240,49 C178,57 122,45 62,50 C34,54 14,45 4,37 Z' fill='%23FFC82C' fill-opacity='0.45'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 68%;
  padding: 2px 5px;
  margin: 0 -2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero-scrolldown-link {
  display: block;
  align-self: center;
}
.hero-scrolldown {
  width: 56px;
  height: auto;
  margin-top: 28px;
  opacity: 0.7;
}

/* ─── ORG LOGOS MARQUEE ──────────────────────────────────────── */
.org-marquee {
  max-width: calc(var(--cards-max) + 2 * var(--page-gutter));
  margin: 0 auto;
  padding: 28px var(--page-gutter) 8px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.org-marquee-hero {
  max-width: 600px;
  width: 600px;
  margin: 20px auto 0;
  padding: 0;
}
.org-marquee-track {
  display: flex;
  width: max-content;
  animation: orgMarquee 11s linear infinite;
}
.org-marquee:hover .org-marquee-track {
  animation-play-state: paused;
}
.org-marquee-set {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  flex-shrink: 0;
}
.org-marquee-set img {
  height: 42px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: center;
  opacity: 0.6;
  transform-origin: center center;
  transition: opacity var(--transition), transform 0.4s ease;
  cursor: default;
}
.org-marquee-set img:hover {
  opacity: 1;
  transform: scale(1.12);
}
@keyframes orgMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .org-marquee-track { animation: none; }
}

.hero-socials {
  display: flex;
  gap: 10px;
}
.hero-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: background var(--transition), transform var(--transition);
}
.hero-socials a:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}
.hero-socials img { width: 18px; height: 18px; object-fit: contain; }
.hero-socials .resume-btn {
  width: auto;
  height: 38px;
  border-radius: 99px;
  padding: 0 26px;
}

/* ─── SECTION TITLES ─────────────────────────────────────────── */
.sec-title {
  text-align: center;
  font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 36px;
  max-width: calc(var(--content-max) + 2 * var(--page-gutter));
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--page-gutter);
}
.sec-title-left {
  font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 28px;
  text-align: center;
}

/* ─── SHARED CARD LIST ───────────────────────────────────────── */
.cards-list {
  max-width: calc(var(--cards-max) + 2 * var(--page-gutter));
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.projects .sec-title,
.publications .sec-title {
  max-width: calc(var(--cards-max) + 2 * var(--page-gutter));
}

/* ─── HORIZONTAL CARD ────────────────────────────────────────── */
.hcard {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  align-items: stretch;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 320px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.hcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.hcard-text {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hcard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.htag {
  background: var(--bg);
  color: var(--mid);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 500;
}

.hcard-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.4px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.hcard-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 18px;
  flex: 1;
}

.hcard-metrics {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}
.hcard-metric {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  text-align: center;
  transition: transform var(--transition);
}
.hcard:hover .hcard-metric:nth-child(odd) { transform: rotate(-3deg); }
.hcard:hover .hcard-metric:nth-child(even) { transform: rotate(3deg); }
.hcard-metric-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #1E8E4E;
  letter-spacing: -0.3px;
}
.hcard-metric-value small {
  font-size: 0.85rem;
  font-weight: 600;
}
.hcard-metric-label {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 2px;
}

.hcard-meta {
  display: flex;
  gap: 16px;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: auto;
}

.hcard-img {
  position: relative;
  overflow: hidden;
  background: transparent;
  min-height: 0;
}
.hcard-img img {
  position: absolute;
  inset: 0 20px 0 0;
  width: calc(100% - 20px);
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}
.hcard:hover .hcard-img img { transform: scale(1.12); }
.hcard-img-contain { object-fit: contain !important; }
.hcard:hover .hcard-img .hcard-img-contain { transform: none; }

/* ─── PROJECTS ───────────────────────────────────────────────── */
.projects {
  position: relative;
  padding: 80px 0;
  background-color: #ffffff;
}
.projects::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(45deg, transparent 14%, #F0F0F0 15%, #F0F0F0 20%, transparent 21%, transparent 79%, #F0F0F0 80%, #F0F0F0 85%, transparent 86%),
    linear-gradient(135deg, transparent 14%, #F0F0F0 15%, #F0F0F0 20%, transparent 21%, transparent 79%, #F0F0F0 80%, #F0F0F0 85%, transparent 86%),
    radial-gradient(transparent 14%, #F0F0F0 15%, #F0F0F0 25%, transparent 26%);
  background-size: 2em 2em;
  background-color: #ffffff;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 140px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 140px);
}
.projects > .sec-title,
.projects > .cards-list {
  position: relative;
  z-index: 1;
}

/* ─── PUBLICATIONS ───────────────────────────────────────────── */
.publications {
  position: relative;
  padding: 80px 0;
  background-color: #ffffff;
}
.publications::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(45deg, transparent 14%, #F0F0F0 15%, #F0F0F0 20%, transparent 21%, transparent 79%, #F0F0F0 80%, #F0F0F0 85%, transparent 86%),
    linear-gradient(135deg, transparent 14%, #F0F0F0 15%, #F0F0F0 20%, transparent 21%, transparent 79%, #F0F0F0 80%, #F0F0F0 85%, transparent 86%),
    radial-gradient(transparent 14%, #F0F0F0 15%, #F0F0F0 25%, transparent 26%);
  background-size: 2em 2em;
  background-color: #ffffff;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 140px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 140px), transparent 100%);
}
.publications > .sec-title,
.publications > .cards-list {
  position: relative;
  z-index: 1;
}

.pub-large .hcard-title {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
}

/* Two vertical publication cards */
.pub-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 94%;
  margin: 0 auto;
}

.pub-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.pub-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.pub-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(90deg, #FFE0C7, #FFC9D4);
}
.pub-card-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8A5A3A;
  flex-shrink: 0;
}
.pub-card-icon-svg {
  width: 26px;
  height: 26px;
}
.pub-card-venue {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4A3226;
  line-height: 1.4;
}

.pub-card-media {
  background: var(--bg-alt);
}
.pub-card-media .ph {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
}
.pub-card-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  border: none;
}

.pub-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 26px;
}
.pub-card-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

.pub-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pub-card-tags span {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--mid);
}

.pub-card-body p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
}

.pub-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: auto;
}

/* ─── Placeholder utility ────────────────────────────────────── */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}
.ph-img { min-height: 160px; }

/* ─── ABOUT ──────────────────────────────────────────────────── */
.about {
  padding: 80px 0 0;
  background: var(--bg);
}
.about-inner {
  max-width: calc(var(--content-max) + 2 * var(--page-gutter));
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 80px;
  align-items: stretch;
}
.about-img-col {
  display: flex;
  min-height: 0;
}
.about-photo {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow-lg);
}
.about-text-col h2 {
  font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.wink { font-style: normal; }
.about-text-col p {
  color: var(--mid);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 14px;
}
.about-text-col strong { color: var(--dark); }
.about-last { color: var(--muted) !important; font-style: italic; }

/* ─── JOURNEY ────────────────────────────────────────────────── */
.journey {
  padding: 80px 0 0;
  background: #ffffff;
}
.journey-inner {
  max-width: calc(var(--content-max) + 2 * var(--page-gutter));
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}
.journey-img {
  width: 100%;
  border-radius: var(--radius);
}

/* ─── HOBBIES ────────────────────────────────────────────────── */
.hobbies {
  padding: 80px 0 100px;
  background: var(--bg);
  overflow: visible;
}
.hobbies-inner {
  max-width: calc(var(--content-max) + 2 * var(--page-gutter));
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  overflow: visible;
}
.hobbies-header {
  margin-bottom: 56px;
  text-align: center;
}
.hobbies-header h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
  color: var(--dark);
}
.hobbies-header p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto;
}

.hobbies-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 4px;
  padding-top: 130px;
  margin-top: -90px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hobbies-row::-webkit-scrollbar { display: none; }

.hobby-chip {
  position: relative;
  flex: 1 1 0;
  min-width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 4px 0;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  z-index: 1;
  transition: z-index 0s;
}
.hobby-chip:hover,
.hobby-chip:focus-visible,
.hobby-chip.is-active {
  z-index: 20;
  outline: none;
}

.hobby-emoji {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hobby-chip:hover .hobby-emoji,
.hobby-chip:focus-visible .hobby-emoji,
.hobby-chip.is-active .hobby-emoji {
  transform: scale(1.1) translateY(-2px);
}

.hobby-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.hobby-popouts {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}
.hobby-popouts img {
  position: absolute;
  left: 50%;
  top: 0;
  width: 68px;
  height: 90px;
  margin-left: -34px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--dark);
  background: var(--bg);
  box-shadow: 0 8px 24px rgba(15, 17, 23, 0.14);
  opacity: 0;
  transform: translateY(36px) scale(0.45);
  transform-origin: center bottom;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease;
}
.hobby-popouts img:nth-child(1) { z-index: 1; }
.hobby-popouts img:nth-child(2) { z-index: 2; }
.hobby-popouts img:nth-child(3) { z-index: 3; }

.hobby-chip:hover .hobby-popouts img,
.hobby-chip:focus-visible .hobby-popouts img,
.hobby-chip.is-active .hobby-popouts img {
  opacity: 1;
}
.hobby-chip:hover .hobby-popouts img:nth-child(1),
.hobby-chip:focus-visible .hobby-popouts img:nth-child(1),
.hobby-chip.is-active .hobby-popouts img:nth-child(1) {
  transform: translate(-26px, -4px) scale(1) rotate(-20deg);
  transition-delay: 0s;
}
.hobby-chip:hover .hobby-popouts img:nth-child(2),
.hobby-chip:focus-visible .hobby-popouts img:nth-child(2),
.hobby-chip.is-active .hobby-popouts img:nth-child(2) {
  transform: translate(0, -12px) scale(1) rotate(0deg);
  transition-delay: 0.05s;
}
.hobby-chip:hover .hobby-popouts img:nth-child(3),
.hobby-chip:focus-visible .hobby-popouts img:nth-child(3),
.hobby-chip.is-active .hobby-popouts img:nth-child(3) {
  transform: translate(26px, -4px) scale(1) rotate(20deg);
  transition-delay: 0.1s;
}

@media (prefers-reduced-motion: reduce) {
  .hobby-emoji,
  .hobby-popouts img {
    transition: none;
  }
  .hobby-chip:hover .hobby-emoji,
  .hobby-chip:focus-visible .hobby-emoji {
    transform: none;
  }
  .hobby-chip:hover .hobby-popouts img,
  .hobby-chip:focus-visible .hobby-popouts img,
  .hobby-chip.is-active .hobby-popouts img {
    opacity: 0;
  }
}

/* ─── CONTACT ────────────────────────────────────────────────── */
.contact {
  position: relative;
  padding: 100px 0 150px;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 100%);
}
.contact-bees {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.contact-bee {
  position: absolute;
  font-size: 18px;
  opacity: 0.8;
  pointer-events: auto;
  cursor: pointer;
}
.contact-bee:hover {
  filter: drop-shadow(0 0 6px rgba(255, 200, 44, 0.9));
}
.contact-bee.falling {
  animation: contactBeeFall 1.1s cubic-bezier(0.5, 0, 1, 0.5) forwards !important;
}
@keyframes contactBeeFall {
  to { transform: translateY(260px) rotate(70deg); opacity: 0; }
}
.contact-bee-1 { top: 12%; left: 8%; animation: contactBeeFly1 9s ease-in-out infinite; }
.contact-bee-2 { top: 55%; right: 10%; animation: contactBeeFly2 11s ease-in-out infinite; animation-delay: 1.2s; }
.contact-bee-3 { top: 30%; left: 45%; animation: contactBeeFly3 7.5s ease-in-out infinite; animation-delay: 2.4s; }
@keyframes contactBeeFly1 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(60px, -30px) rotate(15deg); }
  50%  { transform: translate(120px, 10px) rotate(-10deg); }
  75%  { transform: translate(50px, 40px) rotate(8deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes contactBeeFly2 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  30%  { transform: translate(-70px, -25px) rotate(-12deg); }
  60%  { transform: translate(-30px, 30px) rotate(10deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes contactBeeFly3 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  20%  { transform: translate(40px, 20px) rotate(10deg); }
  50%  { transform: translate(-40px, -20px) rotate(-15deg); }
  80%  { transform: translate(20px, -35px) rotate(5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-bee { animation: none; }
}
.contact-bee-notice {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--muted);
  z-index: 1;
  margin: 0;
}
.contact-flowers {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  overflow: hidden;
  pointer-events: auto;
  opacity: 0.7;
  z-index: 1;
}
.contact-inner {
  max-width: calc(var(--content-max) + 2 * var(--page-gutter));
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  position: relative;
  text-align: center;
}
.contact-bolt {
  font-size: 0.85em;
  line-height: 1;
}
.contact h2 {
  font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  padding-top: 40px;
}
.contact-body {
  display: block;
  padding-bottom: 40px;
}
.contact-fields {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.contact-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(15,17,23,0.55);
  min-width: 56px;
}
.contact-val {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}
.contact-val:hover { color: var(--blue); }
.contact-icon {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition: transform var(--transition);
}
.contact-val:hover .contact-icon { animation: contactIconBounce 0.6s ease; }
@keyframes contactIconBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-3px) rotate(-8deg); }
  50%      { transform: translateY(0) rotate(8deg); }
  75%      { transform: translateY(-2px) rotate(-4deg); }
}
.contact-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--transition), transform var(--transition), color var(--transition);
  padding: 2px;
}
.contact-copy-btn svg {
  width: 15px;
  height: 15px;
}
.contact-copy-btn:hover { color: var(--blue); }
.contact-row:hover .contact-copy-btn {
  opacity: 0.6;
  transform: translateX(0);
}
.contact-copy-btn:hover { opacity: 1 !important; }

.contact-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--dark);
  border: 1px solid rgba(15,17,23,0.18);
  padding: 11px 30px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.resume-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.contact-socials {
  display: flex;
  gap: 10px;
}
.contact-socials a {
  width: 44px; height: 44px;
  background: #fff;
  border: 1px solid rgba(15,17,23,0.18);
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.contact-socials a:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}
.contact-socials img { width: 18px; height: 18px; object-fit: contain; }

/* ─── HOBBY WAVE ─────────────────────────────────────────────── */
.hobby-wave {
  display: none;
  background: var(--bg);
  overflow: hidden;
}
.hobby-wave-track {
  width: 100%;
  height: 140px;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
  position: relative;
  background: #eef1f4;
  padding: 24px 0 28px;
  border-top: 1px solid rgba(15,17,23,0.1);
  overflow: hidden;
}
.footer-inner {
  position: relative;
  z-index: 2;
  max-width: calc(var(--content-max) + 2 * var(--page-gutter));
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.footer-links a {
  font-size: 0.82rem;
  color: rgba(15,17,23,0.55);
  font-weight: 500;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--dark); }
.footer > span {
  font-size: 0.82rem;
  color: rgba(15,17,23,0.4);
}

/* ─── FADE-UP SCROLL ANIMATION ───────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-img-col { justify-content: center; }
  .about-photo {
    width: 100%;
    max-width: 260px;
    height: auto;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-illus-col { min-height: 55vw; max-height: 60vh; }
  .hero-illus-img { width: 70%; }
  .hero-text-col { padding: 36px 0 56px; }

  .hero-top {
    flex-direction: column;
    text-align: center;
  }
  .hero-intro {
    align-items: center;
    text-align: center;
  }
  .hero-greet,
  .hero-role,
  .hero-quote {
    text-align: center;
  }

  .hcard { grid-template-columns: 1fr; }
  .hcard-img { min-height: 180px; }

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

  .hobbies-row {
    justify-content: flex-start;
    gap: 12px;
    padding-top: 120px;
  }
  .hobby-chip {
    flex: 0 0 auto;
    min-width: 72px;
  }
  .hobby-popouts img {
    width: 58px;
    height: 78px;
    margin-left: -29px;
  }
  .hobby-chip:hover .hobby-popouts img:nth-child(1),
  .hobby-chip:focus-visible .hobby-popouts img:nth-child(1),
  .hobby-chip.is-active .hobby-popouts img:nth-child(1) {
    transform: translate(-22px, -4px) scale(1) rotate(-18deg);
  }
  .hobby-chip:hover .hobby-popouts img:nth-child(2),
  .hobby-chip:focus-visible .hobby-popouts img:nth-child(2),
  .hobby-chip.is-active .hobby-popouts img:nth-child(2) {
    transform: translate(0, -10px) scale(1) rotate(0deg);
  }
  .hobby-chip:hover .hobby-popouts img:nth-child(3),
  .hobby-chip:focus-visible .hobby-popouts img:nth-child(3),
  .hobby-chip.is-active .hobby-popouts img:nth-child(3) {
    transform: translate(22px, -4px) scale(1) rotate(18deg);
  }

  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

@media (max-width: 480px) {
  :root { --page-gutter: 20px; }

  .journey { padding: 60px 0; }
  .contact { padding: 56px 0; }
}
