/* Nadya Tri-Persona Portfolio — pixel replica of base44 site */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background: #ffffff;
  color: #111827;
  -webkit-font-smoothing: antialiased;
}

/* A bouncier, rounded display face for headings — keeps body copy on the
   clean system font but gives titles a bit of playful character. */
.fun-heading,
.greeting,
.section-title,
.testi-title,
.about-h1,
.about-section h2,
.footer-title,
.post-title,
.work-title {
  font-family: "Baloo 2", ui-rounded, ui-sans-serif, system-ui, sans-serif;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

img {
  display: block;
}

/* Persona accent tokens — each role gets its own accent, card shape and
   border treatment so the three feel like distinct (but related) themes. */
:root,
[data-persona="designer"] {
  --accent: #1a1a1a;
  --accent-text: #ffffff;
  --dot-color: #d1d5db;
  --tag-bg: #f0f0f0;
  --tag-border: #d1d5db;
  --tag-color: #1a1a1a;
  --thumb-bg: #f0f0f0;
  --radius-card: 16px;
  --card-border-style: solid;
  --card-border-color: #f3f4f6;
  --sticker-rotate-1: -12deg;
  --sticker-rotate-2: 10deg;
}

[data-persona="traveller"] {
  --accent: #2563eb;
  --accent-text: #ffffff;
  --dot-color: #bfdbfe;
  --tag-bg: #dbeafe;
  --tag-border: #bfdbfe;
  --tag-color: #2563eb;
  --thumb-bg: #dbeafe;
  --radius-card: 20px;
  --card-border-style: dashed;
  --card-border-color: #bfdbfe;
  --sticker-rotate-1: -8deg;
  --sticker-rotate-2: 14deg;
}

[data-persona="mother"] {
  --accent: #be185d;
  --accent-text: #ffffff;
  --dot-color: #fbcfe8;
  --tag-bg: #fce7f3;
  --tag-border: #fbcfe8;
  --tag-color: #be185d;
  --thumb-bg: #fce7f3;
  --radius-card: 24px;
  --card-border-style: solid;
  --card-border-color: #fbcfe8;
  --sticker-rotate-1: -14deg;
  --sticker-rotate-2: 9deg;
}

/* Background dotted layer — two stacked layers crossfade between persona colors */
.bg-dots {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-size: 24px 24px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.bg-fade-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 96px;
  background: #ffffff;
  z-index: 40;
  pointer-events: none;
}

/* Nav */
.nav-wrap {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
}

.nav-pill {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  padding: 6px;
  gap: 2px;
}

.nav-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: 9999px;
  background: var(--accent);
  width: 0;
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.35s ease;
  z-index: 0;
}

.nav-btn {
  position: relative;
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  transition: color 0.25s ease;
  z-index: 1;
}

.nav-btn.active {
  color: #ffffff;
}

/* Page shell */
.page {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.page.is-hidden {
  opacity: 0;
  transform: translateY(8px);
}

.page.page-narrow {
  max-width: 36rem;
  padding-top: 96px;
  padding-bottom: 96px;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Per-post page width, chosen in the CMS editor (narrow is the default). */
.page.page-narrow.is-wide,
.page.page-narrow.is-full {
  max-width: 800px;
}

.card {
  position: relative;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 32px 32px 0 32px;
}

/* Profile */
.profile {
  background: #ffffff;
  padding-top: 96px;
  padding-bottom: 24px;
}

.avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  animation: avatar-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

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

.avatar-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: #ffffff;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  animation: avatar-pop 0.55s 0.12s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes avatar-pop {
  0% {
    transform: scale(0.5) rotate(-10deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.12) rotate(4deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Decorative persona stickers scattered near the top of the card */
.sticker {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  animation: sticker-float 4s ease-in-out infinite;
}

.sticker span {
  display: inline-block;
  font-size: 26px;
  color: var(--accent);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.sticker-1 {
  top: 112px;
  right: 24px;
}

.sticker-1 span {
  transform: rotate(var(--sticker-rotate-1));
}

.sticker-2 {
  top: 172px;
  right: 76px;
  animation-delay: 0.7s;
}

.sticker-2 span {
  font-size: 18px;
  transform: rotate(var(--sticker-rotate-2));
}

@keyframes sticker-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 480px) {
  .sticker-1 {
    top: 16px;
    right: 16px;
  }
  .sticker-2 {
    top: 60px;
    right: 52px;
  }
}

.greeting {
  color: #1f2937;
  margin: 0 0 2px 0;
  font-size: 20px;
  font-weight: 600;
}

.tagline {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px 0;
  max-width: 28rem;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-resume {
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}

.btn-resume:hover {
  opacity: 0.8;
}

.pill-unavailable {
  background: #f2f2f2;
  color: #9ca3af;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
}

.dot-gray {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #d1d5db;
  display: inline-block;
}

.pill-available {
  background: #ecfdf5;
  color: #059669;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #a7f3d0;
}

.dot-green {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #10b981;
  display: inline-block;
}

/* Marquee */
.marquee-outer {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 32px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(var(--marquee-shift, -33.333%)); }
}

.marquee-track {
  animation: marquee var(--marquee-duration, 22s) linear infinite;
  display: flex;
  width: max-content;
  gap: 16px;
}

.marquee-outer:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  flex-shrink: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #f3f4f6;
  width: 360px;
  height: 240px;
}

.marquee-item-inner {
  width: 100%;
  height: 100%;
  background: #e5e7eb;
}

/* Sections */
section.block {
  padding-bottom: 60px;
}

section.block.first {
  margin-top: 60px;
}

h2.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
}

.about-text {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.btn-see-more {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 20px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 14px;
  color: #4b5563;
  transition: background-color 0.2s;
}

.btn-see-more:hover {
  background: #f9fafb;
}

/* Works list */
.works-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-card {
  display: flex;
  gap: 16px;
  border-radius: var(--radius-card);
  border: 1.5px var(--card-border-style) var(--card-border-color);
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.3s, border-radius 0.35s ease;
}

.work-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.work-thumb {
  width: 160px;
  flex-shrink: 0;
  min-height: 140px;
  background: var(--thumb-bg);
}

@media (min-width: 768px) {
  .work-thumb {
    width: 192px;
  }
}

.work-body {
  padding: 20px 20px 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.work-title {
  font-weight: 700;
  color: #111827;
  font-size: 16px;
  line-height: 1.375;
  margin: 0;
}

.work-meta {
  font-size: 14px;
  color: #9ca3af;
  margin: 0;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid var(--tag-border);
  background: var(--tag-bg);
  color: var(--tag-color);
}

.works-see-more {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

/* Line between the Blog Posts section and whatever follows it (Contact Me) */
.section-divider {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 0 0 60px 0;
}

/* Countries Visited */
.country-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.country-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid var(--tag-border);
  background: var(--tag-bg);
  color: var(--tag-color);
}

/* Experience */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exp-row {
  display: flex;
  gap: 12px;
}

.exp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: #e5e7eb;
  color: #6b7280;
}

.exp-body {
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 16px;
  flex: 1;
}

.exp-company {
  font-weight: 600;
  font-size: 14px;
  color: #111827;
  margin: 0;
}

.exp-meta {
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
}

.exp-title {
  font-size: 12px;
  color: #6b7280;
  margin: 2px 0 0 0;
}

.exp-desc {
  font-size: 12px;
  color: #6b7280;
  margin: 6px 0 0 0;
  line-height: 1.6;
}

.exp-bullets {
  margin: 8px 0 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exp-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 12px;
  color: #4b5563;
}

.exp-bullets li svg {
  margin-top: 2px;
  flex-shrink: 0;
  color: #9ca3af;
}

/* Testimonials */
.testi-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #111827;
  margin: 0 0 24px 0;
}

.testi-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .testi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.testi-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  border: 1px solid #f3f4f6;
  padding: 20px;
}

.testi-quote {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.testi-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--tag-bg);
  color: var(--accent);
}

.testi-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.testi-role {
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
}

/* TikTok — plain 9:16 thumbnail cards (via TikTok's oEmbed) rather than
   their full embed widget, whose chrome doesn't shrink with width and made
   narrow columns look stretched/cropped. This way we control the box. */
.tiktok-grid {
  display: flex;
  gap: 10px;
}

.tiktok-card {
  position: relative;
  flex: 1;
  max-width: 180px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: #e5e7eb;
  display: block;
  text-decoration: none;
}

.tiktok-card-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.2s ease;
}

.tiktok-card:hover .tiktok-card-thumb {
  transform: scale(1.05);
}

.tiktok-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tiktok-card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 20px 8px 8px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #ffffff;
  font-size: 11px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Contact */
.contact-form {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
}

.form-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--tag-bg);
}

textarea.form-input {
  resize: vertical;
  line-height: 1.6;
}

.btn-send {
  align-self: flex-start;
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  transition: opacity 0.2s;
}

.btn-send:hover {
  opacity: 0.85;
}

.contact-hint {
  font-size: 12px;
  color: #9ca3af;
  margin: -8px 0 0 0;
}

.socials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tag-bg);
  color: var(--accent);
  transition: opacity 0.2s, transform 0.2s;
}

.social-link:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* Traveller ticker */
.traveller-ticker {
  display: block;
  overflow: hidden;
  background: var(--accent);
  color: #ffffff;
  padding: 14px 0;
  text-decoration: none;
  position: relative;
  z-index: 10;
}

.traveller-ticker-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  animation: ticker-scroll 22s linear infinite;
}

.traveller-ticker-track span {
  padding-right: 40px;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 10;
  background: #2b2b2b;
  padding: 48px 0;
  text-align: center;
  width: 100%;
}

.site-footer p {
  margin: 0;
}

.footer-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}

.footer-sub {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  margin-top: 4px !important;
}

/* About page */
.back-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: none;
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 24px;
  padding: 0;
  transition: color 0.2s;
}

.back-btn:hover {
  color: #374151;
}

.about-h1 {
  font-size: 30px;
  font-weight: 900;
  color: #111827;
  margin: 0 0 24px 0;
}

.about-intro {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
}

.about-intro p {
  margin: 0;
}

.about-hi {
  font-size: 16px;
  font-weight: 700;
}

.about-persona-text {
  color: #4b5563;
  white-space: pre-line;
}

.cv-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 32px;
}

.cv-links span {
  font-size: 14px;
  color: #9ca3af;
}

.about-section {
  margin-bottom: 32px;
}

.about-section h2 {
  font-size: 20px;
  font-weight: 900;
  color: #111827;
  margin: 0 0 16px 0;
}

.about-section h2.tight {
  margin-bottom: 12px;
}

.hr {
  height: 1px;
  background: #e5e7eb;
  margin-bottom: 12px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  row-gap: 4px;
}

.grid-2 p {
  font-size: 14px;
  color: #4b5563;
  margin: 0;
}

/* Post detail page */
.post-cover {
  margin: 20px 0 48px 0;
}

.post-cover img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 10px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.post-title {
  font-size: 28px;
  font-weight: 900;
  color: #111827;
  margin: 0 0 8px 0;
}

.post-meta {
  font-size: 14px;
  color: #9ca3af;
  margin: 0 0 24px 0;
}

.post-empty {
  font-size: 14px;
  color: #9ca3af;
}

.post-body-rich {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
}

.post-body-rich p {
  margin: 0 0 18px 0;
}

.post-body-rich p:last-child {
  margin-bottom: 0;
}

.post-body-rich h1 {
  font-size: 30px;
  font-weight: 800;
  color: #111827;
  margin: 8px 0 14px 0;
}

.post-body-rich h2 {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 8px 0 12px 0;
}

.post-body-rich h3 {
  font-size: 19px;
  font-weight: 700;
  color: #111827;
  margin: 8px 0 10px 0;
}

.post-body-rich ul,
.post-body-rich ol {
  margin: 0 0 18px 0;
  padding-left: 24px;
}

.post-body-rich li {
  margin-bottom: 6px;
}

.post-body-rich a {
  color: var(--accent);
  text-decoration: underline;
}

.post-body-rich blockquote {
  margin: 0 0 18px 0;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--accent);
  font-size: 17px;
  color: #111827;
}

.post-body-rich hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 28px 0;
}

.post-body-rich .pb-callout {
  display: flex;
  gap: 12px;
  background: #f6f5f3;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 18px 0;
}

.pb-callout-icon {
  font-size: 20px;
  line-height: 1.5;
}

.pb-callout-body {
  flex: 1;
  min-width: 0;
}

.post-body-rich .pb-image {
  margin: 0 0 20px 0;
}

.pb-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.pb-image figcaption {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 8px;
}

.pb-columns {
  display: grid;
  column-gap: 32px;
  align-items: start;
  margin: 0 0 18px 0;
}

.pb-col {
  min-width: 0;
}

.pb-col > :last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .pb-columns {
    grid-template-columns: 1fr !important;
    row-gap: 8px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 32px 20px 0 20px;
  }
  .marquee-outer {
    margin-bottom: 24px;
  }
}
