/* Only custom CSS that Tailwind can't handle */
html {
  scroll-behavior: smooth;
}
body {
  -webkit-font-smoothing: antialiased;
}

/* Noise texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* Nav link underline on hover */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #b85c38;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Hero photo ring dot */
.photo-ring::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9a96e;
}

/* Experience accent bars */
.exp-accent {
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  border-radius: 0 4px 4px 0;
}

/* Experience bullet dots */
.exp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* Flavor colors */
.flavor-paradise .exp-accent {
  background: #b85c38;
}
.flavor-paradise .exp-list li::before {
  background: #b85c38;
}
.flavor-alliance .exp-accent {
  background: #9e6b7b;
}
.flavor-alliance .exp-list li::before {
  background: #9e6b7b;
}
.flavor-sph .exp-accent {
  background: #2c3e50;
}
.flavor-sph .exp-list li::before {
  background: #2c3e50;
}
.flavor-fjbenjamin .exp-accent {
  background: #6d5d7e;
}
.flavor-fjbenjamin .exp-list li::before {
  background: #6d5d7e;
}
.flavor-jobsquare .exp-accent {
  background: #4a7c69;
}
.flavor-jobsquare .exp-list li::before {
  background: #4a7c69;
}

/* Loading dots animation delay */
.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Education card top accent */
.edu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #b85c38, #c9a96e);
}

/* Fit section glow */
.fit-glow::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 92, 56, 0.15), transparent 70%);
  pointer-events: none;
}

/* Decorative background accents per role */
.flavor-paradise::after {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 92, 56, 0.12), transparent 70%);
  pointer-events: none;
}

.flavor-alliance::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(158, 107, 123, 0.063) 40px,
    rgba(158, 107, 123, 0.063) 41px
  );
  pointer-events: none;
}

.flavor-sph::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(44, 62, 80, 0.056) 60px,
      rgba(44, 62, 80, 0.056) 61px
    );
  pointer-events: none;
}

.flavor-fjbenjamin::after {
  content: "";
  position: absolute;
  top: -20%;
  right: 5%;
  width: 200px;
  height: 400px;
  background: linear-gradient(
    135deg,
    transparent 45%,
    rgba(109, 93, 126, 0.1) 45%,
    rgba(109, 93, 126, 0.1) 55%,
    transparent 55%
  );
  pointer-events: none;
}

.flavor-jobsquare::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 5%;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(74, 124, 105, 0.12) 2px,
    transparent 2px
  );
  background-size: 20px 20px;
  pointer-events: none;
}

/* Key metric callout cards */
.metric-callout {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid;
  margin-bottom: 1.25rem;
}

.metric-callout .metric-number {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.metric-callout .metric-label {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.7;
}

/* Chat FAB steam Easter egg */
#chatFab::before,
#chatFab::after {
  content: "";
  position: absolute;
  bottom: 100%;
  width: 2px;
  height: 0;
  background: rgba(184, 92, 56, 0.3);
  border-radius: 2px;
  opacity: 0;
  transition: height 0.4s ease, opacity 0.4s ease;
}

#chatFab::before {
  left: 40%;
  transform: rotate(-8deg);
}

#chatFab::after {
  left: 55%;
  transform: rotate(8deg);
}

#chatFab:hover::before {
  height: 28px;
  opacity: 1;
  animation: steam 1.5s ease-in-out infinite;
}

#chatFab:hover::after {
  height: 20px;
  opacity: 1;
  animation: steam 1.5s ease-in-out infinite 0.3s;
}

@keyframes steam {
  0% {
    transform: translateY(0) rotate(-8deg) scaleX(1);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-12px) rotate(-4deg) scaleX(1.3);
    opacity: 0.3;
  }
  100% {
    transform: translateY(-24px) rotate(0deg) scaleX(0.8);
    opacity: 0;
  }
}

/* ====== SECTION HOVER MICRO-INTERACTIONS ====== */

/* Experience role blocks: accent bar widens + bg accent intensifies on hover */
.flavor-paradise,
.flavor-alliance,
.flavor-sph,
.flavor-fjbenjamin,
.flavor-jobsquare {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.flavor-paradise:hover .exp-accent,
.flavor-alliance:hover .exp-accent,
.flavor-sph:hover .exp-accent,
.flavor-fjbenjamin:hover .exp-accent,
.flavor-jobsquare:hover .exp-accent {
  width: 6px;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.exp-accent {
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Icon badge pulse on role hover */
.flavor-paradise:hover .bg-paradise\/\[0\.08\],
.flavor-alliance:hover .bg-alliance\/\[0\.08\],
.flavor-sph:hover .bg-sph\/\[0\.08\],
.flavor-fjbenjamin:hover .bg-fjbenjamin\/\[0\.08\],
.flavor-jobsquare:hover .bg-jobsquare\/\[0\.08\] {
  animation: iconPulse 0.6s ease-out;
}

@keyframes iconPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Metric callout number scale on hover */
.metric-callout {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-callout:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.metric-callout:hover .metric-number {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transform: scale(1.1);
}

.metric-callout .metric-number {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Stats bar individual stat hover */
#statsBar > div {
  transition: transform 0.3s ease;
  cursor: default;
}

#statsBar > div:hover {
  transform: translateY(-3px);
}

#statsBar > div:hover .stat-counter {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), letter-spacing 0.3s ease;
  transform: scale(1.08);
}

.stat-counter {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Education cards: shimmer accent bar on hover */
.edu-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.edu-card:hover::before {
  background: linear-gradient(90deg, #b85c38, #c9a96e, #b85c38);
  background-size: 200% 100%;
  animation: shimmerBar 1.5s ease infinite;
}

@keyframes shimmerBar {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Language cards hover glow */
#about ~ section .flex-1.min-w-\[200px\] {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Market tags: stagger ripple on hover within container */
.market-tag {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Fit assessment textarea glow on focus */
#fitTextarea:focus {
  box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.1), 0 0 30px rgba(184, 92, 56, 0.05);
}

/* Expand/Learn more button hover polish */
.expand-btn {
  transition: all 0.25s ease;
}

.expand-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(184, 92, 56, 0.15);
}

/* Footer leaf hover spin */
footer svg {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

footer:hover svg {
  transform: rotate(15deg) scale(1.15);
}

