/* ============================================
   Canvas Portfolio — Design System
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Solway:wght@400;500;700&family=Gaegu:wght@400;700&display=swap');

/* --- CSS Variables --- */
:root {
  --bg: #F5F5F7;
  --bg-dot: #c5ccd8;
  --text-primary: #1A1A1A;
  --text-secondary: #555;
  --text-muted: #888;

  /* Sticky note colors */
  --sticky-yellow: #FFF59D;
  --sticky-green: #A5D6A7;
  --sticky-pink: #F8BBD0;
  --sticky-purple: #CE93D8;
  --sticky-blue: #90CAF9;
  --sticky-beige: #F5E6C8;
  --sticky-orange: #FFE0B2;

  /* Typography */
  --font-heading: 'Solway', serif;
  --font-body: 'Gaegu', cursive;
  --font-handwritten: 'Gaegu', cursive;
  --font-mono: 'Gaegu', cursive;

  /* Sizes */
  --container-width: 1100px;
  --section-gap: 120px;
  --border-color: #1A1A1A;

  /* Nav dock */
  --dock-bg: rgba(240, 240, 245, 0.75);
  --dock-border: rgba(200, 200, 200, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
  /* Enough bottom space so floating nav dock never covers footer content */
  padding-bottom: 120px;

  /* Dotted grid background */
  background-image: radial-gradient(circle, var(--bg-dot) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

img {
  max-width: 100%;
  display: block;
}

/* --- Utility Classes --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Staggered children */
.reveal-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-children.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-children.visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-children.visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-children.visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-children.visible > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-children.visible > *:nth-child(7) { transition-delay: 0.47s; }
.reveal-children.visible > *:nth-child(8) { transition-delay: 0.54s; }

.reveal-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Pop-in animation for sticky notes */
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.6) rotate(0deg); }
  60% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

.sticky-pop {
  opacity: 0;
}

.sticky-pop.visible {
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
}

.section-title h2 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 400;
  white-space: nowrap;
}

.section-title .vector-line {
  width: 90px;
  height: auto;
  color: var(--text-primary);
  opacity: 0.8;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 80px 20px;
}

.hero-content {
  text-align: center;
  position: relative;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-content .subtitle {
  font-family: var(--font-handwritten);
  font-size: 1.5rem;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

/* Sticky notes in hero */
.hero-sticky-group {
  position: absolute;
  right: -160px;
  top: 80px;
  width: 240px;
  height: 240px;
  pointer-events: none; /* Let clicks pass through the container */
}

.hero-sticky-group .sticky-note {
  pointer-events: auto; /* Re-enable clicks on the notes */
}

.sticky-note {
  padding: 20px 24px;
  border-radius: 4px;
  font-family: var(--font-handwritten);
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  line-height: 1.4;
}

.sticky-note:hover {
  box-shadow: 3px 6px 18px rgba(0, 0, 0, 0.18);
  z-index: 10;
}

.sticky-note.yellow { background: var(--sticky-yellow); }
.sticky-note.green { background: var(--sticky-green); }
.sticky-note.pink { background: var(--sticky-pink); }
.sticky-note.purple { background: var(--sticky-purple); }
.sticky-note.blue { background: var(--sticky-blue); }
.sticky-note.beige { background: var(--sticky-beige); }
.sticky-note.orange { background: var(--sticky-orange); }

.hero-wave-note {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-family: 'Gaegu', cursive;
  transform: rotate(0deg) !important;
  z-index: 2;
  position: absolute;
  top: 0;
  right: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.hero-hire-note {
  width: 155px;
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Gaegu', cursive;
  font-weight: 700;
  transform: rotate(-12deg) !important;
  position: absolute;
  top: 110px;
  right: 110px;
  z-index: 1;
  font-size: 1.15rem;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.hero-sticky-group .sticky-note:hover {
  transform: scale(1.05) rotate(3deg) translateY(-5px) !important;
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  z-index: 3;
}

/* Wave animation */
.wave-emoji {
  display: inline-block;
  animation: wave 2.5s ease-in-out infinite;

  transform-origin: 70% 70%;
}

@keyframes wave {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: var(--section-gap) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: start;
}

/* Profile photo and sticky column */
.about-photo-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Push towards the center/info column */
  padding-right: 20px;
  position: relative;
}

.photo-container {
  position: relative;
  width: 200px;
  height: 200px;
}

.photo-container img {
  width: 200px;
  height: 200px;
  border-radius: 46% 54% 50% 50% / 54% 46% 50% 50%; /* hand-drawn organic circle */
  object-fit: cover;
  border: 4px solid var(--text-primary);
  filter: grayscale(100%);
  transition: filter 0.5s ease, transform 0.5s ease;
}

.photo-container:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Doodle accents SVG */
.doodle-accent {
  position: absolute;
  pointer-events: none;
}

.doodle-whiskers {
  top: -20px;
  left: 0px;
  width: 70px;
  height: 70px;
  animation: wiggle 1.2s infinite ease-in-out alternate;
  transform-origin: center;
}

.doodle-arrow {
  bottom: -60px;
  left: -40px;
  width: 120px;
  height: 120px;
  transform: rotate(-10deg);
}

.yours-truly {
  font-family: var(--font-handwritten);
  font-size: 1.3rem;
  margin-top: 12px;
  margin-right: 60px; /* offset slightly */
  color: var(--text-primary);
}

/* About info */
.about-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-info h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Social links */
.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: transparent;
}

.social-link:hover {
  background: var(--text-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-link svg {
  width: 22px;
  height: 22px;
}

/* Skill tags */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  padding: 8px 24px;
  border: 1.5px solid var(--border-color);
  border-radius: 50px;
  font-family: var(--font-handwritten);
  font-size: 1.05rem;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-tag:hover {
  background: var(--text-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ============================================
   ABOUT STICKY NOTES (staggered stack)
   ============================================ */
.about-stickies {
  position: relative;
  width: 100%;
  height: 520px; /* Give enough height for absolutely pos items */
  margin-top: 5px; /* Shifted down (away from photo) */
}

.about-stickies .sticky-note {
  position: absolute;
  padding: 14px 16px;
  max-width: 155px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1), z-index 0s;
  z-index: 1;
  font-family: var(--font-handwritten);
  line-height: 1.35;
  color: var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.05rem;
}

.about-stickies .sticky-note:hover {
  transform: scale(1.08) translateY(-4px) !important;
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
  z-index: 10;
}

/* tightly stacked zigzag imitating reference */
.about-stickies .sticky-note:nth-child(1) { /* Green - Top Left */
  top: 0px;
  left: 50%;
  margin-left: -80px; /* Shifted right */
  transform: rotate(-1deg);
  z-index: 5; 
  width: 125px;
  height: 125px;
}

.about-stickies .sticky-note:nth-child(2) { /* Pink - Top Right */
  top: 20px;
  left: 50%;
  margin-left: 40px; /* Shifted right */
  transform: rotate(1deg);
  z-index: 4; 
  width: 115px;
  height: 115px;
}

.about-stickies .sticky-note:nth-child(3) { /* Beige - Middle Left */
  top: 110px;
  left: 50%;
  margin-left: -100px; /* Shifted right */
  transform: rotate(-2deg);
  z-index: 6;
  height: 155px;
  width: 125px;
}

.about-stickies .sticky-note:nth-child(4) { /* Blue (Berlin/Bogor) - Middle Right */
  top: 150px;
  left: 50%;
  margin-left: 20px; /* Shifted right */
  transform: rotate(2deg);
  z-index: 4; /* Below Beige */
  width: 135px;
  height: 135px;
  border-radius: 4px; /* subtle round */
}

/* Add an icon to the Berlin/Bogor sticky note via CSS */
.about-stickies .sticky-note:nth-child(4)::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' width='26' height='26'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
  display: block;
  margin-bottom: 6px;
}

.about-stickies .sticky-note:nth-child(5) { /* Purple - Bottom Left */
  top: 290px;
  left: 50%;
  margin-left: -60px; /* Shifted right */
  transform: rotate(-1deg);
  z-index: 2; 
  width: 120px;
  height: 120px;
}

.about-stickies .sticky-note:nth-child(6) { /* Yellow - Bottom Right */
  top: 360px;
  left: 50%;
  margin-left: 40px; /* Shifted right */
  transform: rotate(1deg);
  z-index: 1; 
  width: 110px;
  height: 110px;
  justify-content: flex-end;
  padding-bottom: 20px;
}

/* ============================================
   MINIMAL EXPERIENCE SECTION inside About
   ============================================ */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.experience-list h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.experience-item-minimal h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.exp-role-date {
  font-family: var(--font-handwritten);
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
}

.exp-role-date .date {
  color: var(--text-muted);
}

.exp-desc-minimal {
  font-family: var(--font-handwritten);
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

/* Minimal Resume download link */
.minimal-resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-bottom: 5px;
  font-family: var(--font-handwritten);
  font-size: 1.3rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
  position: relative;
  width: fit-content;
}

.minimal-resume-btn:hover {
  color: var(--text-primary);
}

.minimal-resume-btn svg:not(.resume-decor):not(.resume-underline) {
  width: 22px;
  height: 22px;
}

@keyframes wiggle {
  0% { transform: rotate(0deg) scale(0.95); }
  100% { transform: rotate(8deg) scale(1.05); }
}

.resume-decor {
  color: var(--text-primary);
  animation: wiggle 1.2s infinite ease-in-out alternate;
  transform-origin: bottom left;
}

.resume-underline {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 15px;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  opacity: 0;
  transition: stroke-dashoffset 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

.minimal-resume-btn:hover .resume-underline {
  opacity: 1;
  stroke-dashoffset: 0;
}

.giant-doc-icon {
  align-self: flex-start;
  margin-left: 20px;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
  padding: var(--section-gap) 0;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: transparent;
  cursor: pointer;
  position: relative;
  min-height: 280px;
  /* Use padding for content inset so borders can sit outside */
  padding: 10px; 
}

/* Hand-drawn Outline (Stroke) */
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 2px solid var(--border-color);
  border-radius: 4px 8px 3px 6px; /* slightly irregular */
  pointer-events: none;
  filter: url('#hand-drawn');
  z-index: 1;
}

/* Hand-drawn Fill (Background) */
.project-card::after {
  content: '';
  position: absolute;
  top: 4px; left: 2px; right: 2px; bottom: 4px;
  background: white;
  border-radius: 6px 3px 8px 4px;
  pointer-events: none;
  filter: url('#hand-drawn');
  z-index: -1;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover::after {
  transform: translateY(-4px) translateX(2px);
  box-shadow: -4px 8px 0px rgba(0, 0, 0, 0.85); /* Hard shadow on the fill */
}

/* Container for layout inside the card, sits above backgrounds */
.project-card-inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  border-radius: 4px;
  overflow: hidden;
}

.project-card-image {
  width: 45%;
  border-right: 2px solid var(--border-color);
  position: relative;
  flex-shrink: 0;
  /* Apply hand-drawn filter to inner partition line */
  filter: url('#hand-drawn');
}

.project-card-image img,
.project-card-image .project-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-card-image img,
.project-card:hover .project-card-image .project-img-placeholder {
  transform: scale(1.08);
}

.project-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  background: white;
  border: 1.5px solid var(--border-color);
  border-radius: 50px;
  font-family: var(--font-handwritten);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.project-card-content {
  padding: 40px 48px;
  width: 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-card-content h3 {
  font-family: 'Solway', var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.project-card-content p {
  font-family: 'Gaegu', var(--font-handwritten);
  font-size: 1.35rem;
  color: var(--text-secondary);
  line-height: 1.5;
  letter-spacing: 0.5px;
}

/* View all projects */
.view-all-projects {
  text-align: center;
  margin-top: 48px;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1.8px solid var(--border-color);
  border-radius: 50px;
  font-family: var(--font-handwritten);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
}

.view-all-btn:hover {
  background: var(--text-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  padding: var(--section-gap) 0;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-handwritten);
  font-size: 1.8rem; /* slightly larger for handwritten readability */
  border-bottom: 2px solid var(--text-primary);
  padding-bottom: 4px;
  margin-bottom: 32px;
  transition: all 0.3s ease;
}

.contact-email:hover {
  color: var(--text-secondary);
  border-color: var(--text-secondary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 16px 20px;
  border: 1.8px solid #ddd;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: white;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}

.contact-form textarea {
  min-height: 120px;
}

.send-btn {
  align-self: flex-end;
  padding: 14px 40px;
  background: var(--text-primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: var(--font-handwritten);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.send-btn:hover {
  background: #333;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 0 120px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-handwritten);
}

.footer a {
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--text-primary);
}

/* ============================================
   BOTTOM NAVIGATION DOCK
   ============================================ */
.nav-dock {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: var(--dock-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--dock-border);
  border-radius: 22px;
  padding: 10px 14px 18px;
  display: flex;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
              0 1px 3px rgba(0, 0, 0, 0.04),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nav-dock-btn {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  /* bouncy transition */
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  color: var(--text-secondary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Pill/dot indicator OUTSIDE the box (below the button) */
.nav-dock-btn::after {
  content: '';
  position: absolute;
  bottom: -12px; /* outside the button, below it */
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 18px;
  height: 4px;
  border-radius: 4px;
  background: var(--text-primary);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-dock-btn svg {
  width: 22px;
  height: 22px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Bounce keyframes for a springy/elastic feel */
@keyframes navBounce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-10px); }
  50%  { transform: translateY(-4px); }
  70%  { transform: translateY(-8px); }
  85%  { transform: translateY(-5px); }
  100% { transform: translateY(-6px); }
}

.nav-dock-btn:hover {
  background: rgba(255, 255, 255, 0.85);
  animation: navBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
}

/* Show pill/dot outside the box */
.nav-dock-btn:hover::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.nav-dock-btn:hover svg {
  transform: translateY(-3px) scale(1.15);
}

.nav-dock-btn.active {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Tooltip */
.nav-dock-btn .tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--text-primary);
  color: white;
  font-family: var(--font-handwritten);
  font-size: 0.78rem;
  padding: 5px 14px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.nav-dock-btn:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   PARALLAX STICKY NOTES (scattered)
   ============================================ */
.parallax-note {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   PROJECT IMAGES (placeholder gradients)
   ============================================ */
.project-img-placeholder {
  width: 100%;
  height: 100%;
}

.project-img-placeholder.gradient-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-img-placeholder.gradient-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.project-img-placeholder.gradient-3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.project-img-placeholder.gradient-4 {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.thumb-novohotelier { 
  background: url('assets/images/novotel.webp') center/cover no-repeat; 
}
.thumb-communityapps { 
  background: url('assets/images/communityapps.webp') top/cover no-repeat; 
}

/* ============================================
   FLOATING ENTRANCE ANIMATION
   ============================================ */
@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(40px) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(var(--rotate, 0deg));
  }
}

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

.hero-sticky-group .sticky-note {
  animation: floatIdle 4s ease-in-out infinite;
}

.hero-wave-note {
  animation-delay: 0s;
}

.hero-hire-note {
  animation-delay: 1s;
}

/* ============================================
   PROJECT DETAILS PAGE (e.g., Paragon)
   ============================================ */
.project-detail-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 20px 120px;
}

.project-breadcrumb {
  font-family: var(--font-handwritten);
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.project-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-breadcrumb a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.project-breadcrumb .current {
  color: var(--text-primary);
}

.project-header h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.project-header p.project-lead {
  font-family: var(--font-handwritten);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 40px;
}

/* Base article block */
.project-article {
  margin: 50px 0;
}

.project-article h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.project-article p {
  font-family: var(--font-handwritten);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-primary);
}

/* Media placeholers */
.project-media.full-width {
  width: 100%;
  margin: 40px 0;
}

.project-media .media-placeholder {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  background-color: #eee;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* 3-Image Collage Grid */
.project-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  margin: 40px 0;
}

.project-media-grid .grid-top {
  grid-column: 1 / -1; /* span full width */
  height: 350px;
  border-radius: 12px;
  background-color: #eee;
}

.project-media-grid .grid-bottom-left,
.project-media-grid .grid-bottom-right {
  height: 250px;
  border-radius: 12px;
  background-color: #f5f5f5;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 900px) {
  :root {
    --section-gap: 80px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .about-photo-wrapper {
    order: -1;
  }

  .social-links {
    justify-content: center;
  }

  .skills-list {
    justify-content: center;
  }

  .project-card-inner {
    flex-direction: column;
  }
  
  .project-card-image {
    width: 100%;
    height: 280px;
    border-right: none;
    border-bottom: 2px solid var(--border-color);
  }
  
  .project-card-content {
    width: 100%;
    padding: 30px;
  }

  .hero-sticky-group {
    right: -160px;
    top: 40px;
    transform: scale(0.65);
  }

  .section-title h2 {
    font-size: 2.4rem;
  }
}

@media (max-width: 600px) {
  :root {
    --section-gap: 60px;
  }

  .container {
    padding: 0 20px;
  }

  .hero-content h1 {
    font-size: 2.6rem;
  }

  .hero-sticky-group {
    position: relative;
    right: auto;
    top: auto;
    display: flex;
    justify-content: center;
    margin-top: 30px;
    transform: scale(0.9);
    width: auto;
    height: auto;
  }

  .hero-wave-note,
  .hero-hire-note {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .section-title .line {
    width: 40px;
  }

  .about-stickies {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .about-stickies .sticky-note {
    position: relative !important; /* Override absolute targeting */
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    transform: rotate(0deg) !important;
    max-width: 140px;
    width: auto !important;
    height: auto !important;
    font-size: 0.8rem;
    padding: 12px 14px;
    z-index: 1 !important;
  }

  .project-card-image {
    height: 180px;
  }

  .nav-dock {
    bottom: 20px;
    padding: 12px 14px;
    gap: 12px;
    z-index: 9999;
  }

  .nav-dock-btn {
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }

  .nav-dock-btn svg {
    width: 28px;
    height: 28px;
  }

  .contact-email {
    font-size: 1.2rem;
  }

  /* Project detail pages: shrink horizontal padding on mobile */
  .project-header {
    padding: 40px 20px 20px;
  }

  .project-article,
  .project-media {
    padding: 0 20px;
    margin-bottom: 30px;
  }

  /* Stack the Figma mobile frame nicely on small screens */
  .mobile-frame-container {
    width: 240px !important;
    height: 510px !important;
  }

  .project-detail-main {
    padding: 0;
  }
}
