:root {
  --bg: #FCFBF9;
  /* Warm off-white from images */
  --text-main: #111111;
  --text-muted: #888888;
  --text-light: #AAAAAA;
  --accent-blue: #3B82F6;
  --accent-orange: #C25E2D;
  --accent-green: #4ADE80;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-hand: 'Caveat', cursive;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 60px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.logo {
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 12px;
}

.pill-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 40px;
  border: 1px solid #ccc;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.pill-link:hover {
  background: #eee;
}

.pill-link.outline {
  background: white;
  border: 1px solid #e0e0e0;
  color: #888;
}

.pill-link.outline:hover {
  border-color: #bbb;
  color: #333;
}

.pill-link.solid {
  background: #111;
  color: white;
  border-color: #111;
}

.pill-link.solid:hover {
  background: #333;
}

main {
  padding-top: 30px;
  max-width: 1300px;
  margin: 0 auto;
}

/* Accessibility / SEO — visually hidden but exposed to screen readers and crawlers */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Typography */
h1,
.hero-h1 {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 800px;
  margin-bottom: 32px;
}

h2.sub-headline {
  font-family: var(--font-hand);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 16px;
  filter: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><filter id='r_sub'><feTurbulence baseFrequency='0.04' numOctaves='2' seed='14'/><feDisplacementMap scale='1.2' xChannelSelector='R' yChannelSelector='G' in='SourceGraphic'/></filter></svg>#r_sub");
}

h2.headline-large,
.massive-headline {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 1000px;
}

.hero-meta {
  font-family: var(--font-hand);
  font-size: 20px;
  color: #888;
  font-weight: 500;
  filter: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><filter id='r_meta'><feTurbulence baseFrequency='0.04' numOctaves='2' seed='16'/><feDisplacementMap scale='1' xChannelSelector='R' yChannelSelector='G' in='SourceGraphic'/></filter></svg>#r_meta");
}

.handwritten {
  font-family: var(--font-hand);
  color: var(--text-muted);
  font-size: 24px;
  transform: rotate(-5deg);
  display: inline-block;
}

.handwritten-label {
  font-family: var(--font-hand);
  color: var(--text-muted);
  font-size: 20px;
  position: absolute;
}

.meta-light {
  color: var(--text-muted);
  font-size: 16px;
}

/* Hero Section Bento */
.bento-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 40px;
  padding: 0 40px;
  margin-bottom: 150px;
}

.hero-left {
  grid-column: 1 / 2;
  align-self: center;
}

.hero-right {
  grid-column: 2 / 3;
  justify-self: end;
}

.hero-bottom-left {
  grid-column: 1 / 2;
  padding-top: 20px;
  align-self: center;
}

.hero-bottom-right {
  grid-column: 2 / 3;
  align-self: center;
  justify-self: start;
  padding-left: 40px;
}

.heres-how-sketch {
  animation: sketch-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes sketch-pop {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Cards */
.card {
  border-radius: 32px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-white {
  background: transparent;
  box-shadow: none;
  width: 580px;
  height: 420px;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
}

.friction-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 32px;
}

/* Clips confetti inside card while letting text overflow */
.friction-confetti-clip {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  overflow: hidden;
  pointer-events: none;
}


/* Random scattered confetti dots */
.friction-confetti span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: confetti-float 4s ease-in-out infinite;
  opacity: 0.5;
}

.friction-confetti span:nth-child(2) {
  animation-delay: 0.7s;
  animation-duration: 5s;
  width: 6px;
  height: 6px;
}

.friction-confetti span:nth-child(3) {
  animation-delay: 1.4s;
  animation-duration: 3.5s;
}

.friction-confetti span:nth-child(4) {
  animation-delay: 2s;
  animation-duration: 6s;
  width: 10px;
  height: 10px;
}

.friction-confetti span:nth-child(5) {
  animation-delay: 0.3s;
  animation-duration: 4.5s;
  width: 5px;
  height: 5px;
}

.friction-confetti span:nth-child(6) {
  animation-delay: 1.8s;
  animation-duration: 3s;
  width: 7px;
  height: 7px;
}

@keyframes confetti-float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.5;
  }

  50% {
    transform: translateY(-12px) rotate(180deg);
    opacity: 0.25;
  }
}

.friction-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  z-index: 1;
}

.friction-trophy {
  font-size: 40px;
  margin-bottom: 8px;
  animation: trophy-bounce 2s ease-in-out infinite;
}

@keyframes trophy-bounce {

  0%,
  100% {
    transform: rotate(-5deg);
  }

  50% {
    transform: rotate(5deg) scale(1.1);
  }
}

.friction-label {
  font-family: var(--font-hand);
  font-size: 15px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #aaa;
  font-weight: 600;
  filter: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><filter id='r'><feTurbulence baseFrequency='0.04' numOctaves='2' seed='3'/><feDisplacementMap scale='1' xChannelSelector='R' yChannelSelector='G' in='SourceGraphic'/></filter></svg>#r");
}

.friction-title {
  font-family: var(--font-sans);
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #F59E0B 0%, #EF4444 30%, #EC4899 50%, #3B82F6 70%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  white-space: nowrap;
  padding: 0 10px;
}

.friction-sub {
  font-family: var(--font-hand);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-orange);
  margin-top: 4px;
  filter: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><filter id='r3'><feTurbulence baseFrequency='0.04' numOctaves='2' seed='7'/><feDisplacementMap scale='1.2' xChannelSelector='R' yChannelSelector='G' in='SourceGraphic'/></filter></svg>#r3");
}

.friction-proj {
  font-family: var(--font-hand);
  font-size: 17px;
  color: #999;
  font-style: italic;
  filter: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><filter id='r4'><feTurbulence baseFrequency='0.04' numOctaves='2' seed='9'/><feDisplacementMap scale='1' xChannelSelector='R' yChannelSelector='G' in='SourceGraphic'/></filter></svg>#r4");
}




.card-outlined-orange {
  background: transparent;
  border: none;
  position: relative;
}

.card-content-center {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pink-dot {
  width: 12px;
  height: 12px;
  background: #E879F9;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 0 10px #E879F9;
}

.orange-star {
  position: absolute;
}

.star-1 {
  top: -20px;
  right: 40px;
  width: 30px;
  height: 30px;
}

.star-2 {
  top: -5px;
  right: 15px;
  width: 20px;
  height: 20px;
}

.pill-badge {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 40px;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 18px;
  margin-top: 24px;
  color: white;
  filter: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><filter id='r_pill'><feTurbulence baseFrequency='0.05' numOctaves='2' seed='18'/><feDisplacementMap scale='2' xChannelSelector='R' yChannelSelector='G' in='SourceGraphic'/></filter></svg>#r_pill");
}

.orange-bg {
  background: #D97706;
  /* Fallback for 7m read */
}

/* Story Section */
.story-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 100px 20px;
}

.pencil-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.pencil-note svg {
  margin-bottom: -10px;
}

.scribble-lines {
  margin-top: -10px;
  margin-left: 20px;
}

.blue-bubble {
  background: var(--accent-blue);
  color: white;
  padding: 6px 20px;
  border-radius: 40px;
  display: inline-block;
  position: relative;
}

.bubble-tail {
  position: absolute;
  bottom: -5px;
  left: 20px;
  width: 20px;
  height: 20px;
}

.tool-avatars {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 80px;
  position: relative;
}

.avatar-group {
  display: flex;
  position: relative;
}

.avatar {
  width: 100px;
  height: 100px;
  background: transparent;
  border-radius: 24px;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -20px;
  border: 4px solid transparent;
}

.avatar:first-child {
  margin-left: 0;
}

.avatar img {
  width: 60px;
}

.hand-bracket {
  position: absolute;
  width: 160px;
  bottom: -25px;
  left: 0;
}

.squiggly-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 100px;
}

.relative {
  position: relative;
  display: inline-block;
}

.hand-underline {
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
}

.red-scribble {
  position: absolute;
  top: -10px;
  right: -40px;
  width: 30px;
}

/* Philosophy Section */
.philosophy-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 150px 20px;
  position: relative;
}

.absolute-tl {
  position: absolute;
  top: -60px;
  left: -40px;
}

.absolute-br {
  position: absolute;
  bottom: -60px;
  right: -80px;
  text-align: right;
}

.brown-pill {
  background: var(--accent-orange);
  color: white;
  padding: 4px 20px;
  border-radius: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyes {
  background: white;
  border-radius: 40px;
  padding: 2px 8px;
  font-size: 20px;
}

.thinking-avatar {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.lines {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.lines span {
  width: 2px;
  height: 40px;
  background: #ccc;
  transform-origin: bottom center;
}

.lines span:nth-child(1) {
  transform: rotate(-45deg);
}

.lines span:nth-child(2) {
  transform: rotate(-15deg);
}

.lines span:nth-child(3) {
  transform: rotate(15deg);
}

.lines span:nth-child(4) {
  transform: rotate(45deg);
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  background: white;
  filter: grayscale(100%) contrast(130%) brightness(110%);
}

.cartoon-avatar {
  width: 320px;
  height: 320px;
  object-fit: contain;
  margin-top: 8px;
}

.avatar-text {
  position: absolute;
  right: 105%;
  top: 35%;
  margin-right: 10px;
  white-space: nowrap;
  transform: rotate(-6deg);
  font-size: 26px;
  color: #888;
}

@media (max-width: 768px) {
  .avatar-text {
    position: static;
    display: block;
    text-align: center;
    margin-right: 0;
    margin-bottom: 15px;
    transform: none;
  }
}

/* Timeline Section */
.process-section {
  padding: 100px 40px 200px;
  text-align: center;
}

.timeline-container {
  position: relative;
  max-width: 1000px;
  height: 400px;
  margin: 100px auto 0;
}

.timeline-curve {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.node {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.n-who {
  left: 5%;
  top: 200px;
}

.n-ai {
  left: 45%;
  top: 170px;
}

.n-what {
  left: 65%;
  top: 100px;
}

.n-why {
  left: 95%;
  top: 50px;
}

.label-top {
  margin-bottom: 10px;
}

.label-bottom {
  margin-top: 10px;
}

.green {
  color: var(--accent-green);
  fill: var(--accent-green);
}

.timeline-text {
  position: absolute;
  right: 15%;
  bottom: 0;
  text-align: left;
}

.bold-text {
  font-size: 20px;
  margin-top: 4px;
}

/* Animation utilities */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* My Philosophy Section */
.philosophy-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  gap: 40px;
}

.philosophy-text {
  flex: 1;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 500;
}

.hl-green {
  background-color: #65D142;
  color: white;
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1.5;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.philosophy-avatar {
  flex: 0 0 300px;
  position: relative;
  display: flex;
  justify-content: center;
}

.chat-wrapper {
  position: absolute;
  top: -30px;
  right: -50px;
}

.chat-name {
  font-size: 14px;
  color: #888;
  display: block;
  margin-bottom: 4px;
  margin-left: 12px;
}

.blue-chat-bubble {
  background: #2196F3;
  color: white;
  padding: 12px 20px;
  border-radius: 20px;
  font-size: 16px;
  position: relative;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.chat-tail {
  position: absolute;
  bottom: -8px;
  left: 20px;
  width: 16px;
  height: 16px;
  background: #2196F3;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.philosophy-links {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arrows-down {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.arrows-down svg {
  animation: bounce 2s infinite;
}

.arrows-down svg:nth-child(2) {
  animation-delay: 0.2s;
}

.arrows-down svg:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

.hand-drawn-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 3px solid #333;
  border-radius: 60px 40px 50px 70px / 40px 60px 70px 50px;
  background: white;
  color: #333;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s;
  font-family: inherit;
}

.hand-drawn-btn:hover {
  transform: scale(1.05) rotate(-2deg);
}

/* Details & Education Section */
.details-section {
  padding: 100px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.detail-card {
  background: transparent;
  /* Floats on floor */
  padding: 0;
  box-shadow: none;
}

.detail-card h3 {
  font-family: var(--font-hand);
  font-size: 32px;
  color: var(--accent-orange);
  margin-bottom: 24px;
}

.education-card .edu-title {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.5;
}

.education-card .edu-uni {
  font-size: 15px;
  line-height: 1.5;
}

.cgpa {
  display: inline-block;
  background: #f4f4f5;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: #111;
  margin: 16px 0 24px !important;
}

.cert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.contact-card .meta-light {
  margin-bottom: 32px;
  display: block;
}

.contact-links {
  display: flex;
  gap: 16px;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 14px;
  border-top: 1px solid #eaeaea;
}

/* =============================================
   PROJECTS STACK SHOWCASE
   ============================================= */
.projects-stack {
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 40px;
}

.stack-intro {
  margin-bottom: 60px;
}

.stack-item {
  position: sticky;
  top: 15vh;
  /* Responsive base top */
  min-height: 60vh;
  background-color: var(--bg);
  margin-bottom: 10vh;
  padding: 80px 0;
  display: flex;
  align-items: center;
}

/* Offsets for stacking */
.stack-item:nth-child(1) {
  z-index: 1;
}

.stack-item:nth-child(2) {
  z-index: 2;
  top: 17vh;
}

.stack-item:nth-child(3) {
  z-index: 3;
  top: 19vh;
}

.stack-item:nth-child(4) {
  z-index: 4;
  top: 21vh;
}

.stack-item:nth-child(5) {
  z-index: 5;
  top: 23vh;
}

.stack-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  width: 100%;
  align-items: center;
}

.stack-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stack-num {
  font-family: var(--font-hand);
  font-size: 32px;
  color: var(--accent-orange);
  opacity: 0.6;
}

.stack-title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--text-main);
}

.stack-desc {
  font-size: 1.4rem;
  color: #555;
  line-height: 1.5;
  max-width: 500px;
}

.stack-tags {
  display: flex;
  gap: 12px;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  background: #f4f4f5;
  color: #555;
  padding: 4px 10px;
  border-radius: 999px;
}

.gold-tag {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.orange-tag {
  background: #FFF0E8;
  color: #C25E2D;
}


.stack-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-img {
  width: 100%;
  height: auto;
  max-width: 550px;
  mix-blend-mode: multiply;
  /* Blends white bg images into cream floor */
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.03));
  animation: float 6s ease-in-out infinite;
}

.abstract-viz {
  width: 100%;
  max-width: 400px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 8s ease-in-out infinite;
  opacity: 0.9;
}


.abstract-viz.orange svg {
  stroke: var(--accent-orange);
}

.abstract-viz.green svg {
  stroke: var(--accent-green);
}

.abstract-viz.yellow svg {
  stroke: #F59E0B;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

/* Skills Section */
.skills-section {
  padding: 120px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.skill-group {
  padding: 0;
  /* Removed card padding */
}

.skill-group h4 {
  font-family: var(--font-hand);
  font-size: 32px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.skill-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.skill-icons img {
  height: 72px;
  transition: transform 0.3s ease;
}

.skill-icons img:hover {
  transform: scale(1.1);
}

/* GitHub Stats */
.github-section {
  padding: 120px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.gh-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 60px;
  align-items: start;
}

.gh-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: transparent;
}

.gh-stat-num {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-main);
  line-height: 1;
}

.gh-stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gh-stat-sub {
  font-family: var(--font-hand);
  font-size: 16px;
  color: var(--text-light);
}

/* Streak ring card */
.gh-streak-card {
  gap: 12px;
}

.gh-streak-ring {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gh-streak-ring svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.gh-streak-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-orange);
  position: relative;
  z-index: 1;
}

/* Languages card */
.gh-langs-card {
  grid-column: span 1;
  align-items: flex-start;
  text-align: left;
}

.gh-lang-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.gh-lang-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.gh-lang-row {
  display: grid;
  grid-template-columns: 90px 1fr 36px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #666;
}

.gh-bar-track {
  background: #f0ebe3;
  border-radius: 999px;
  height: 6px;
  width: 100%;
  overflow: hidden;
}

.gh-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 1s ease;
}

.gh-bar-pct {
  font-size: 11px;
  color: var(--text-light);
  text-align: right;
}

/* ── Active Nav ─────────────────────────────── */
.pill-link.active-nav {
  background: #111;
  color: white;
  border-color: #111;
}

/* ── Sticky Nav on scroll ───────────────────── */
.nav {
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.nav-scrolled {
  position: fixed !important;
  background: rgba(252, 251, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

/* ── Pill badges row ────────────────────────── */
.pill-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.pill-badges-row .pill-badge {
  margin-top: 0;
}

/* ── Hamburger (mobile only) ────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.2s;
}

.hamburger:hover {
  background: #f0ede8;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #333;
  border-radius: 4px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Mobile overlay ─────────────────────────── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-overlay.open {
  display: block;
  opacity: 1;
}

/* ── Mobile slide-in menu ───────────────────── */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100dvh;
  background: #FCFBF9;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  box-shadow: -4px 0 40px rgba(0, 0, 0, 0.12);
  transition: right 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  right: 0;
}

.mobile-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  color: #333;
  margin-bottom: 32px;
  transition: background 0.2s;
}

.mobile-close:hover {
  background: #f0ede8;
}

.mobile-nav-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 14px;
  transition: background 0.2s, color 0.2s;
  letter-spacing: -0.02em;
}

.mobile-nav-link:hover {
  background: #f0ede8;
}

.mobile-nav-link.mobile-cta {
  margin-top: 16px;
  background: #111;
  color: white;
  text-align: center;
  border-radius: 40px;
  font-size: 18px;
}

.mobile-nav-link.mobile-cta:hover {
  background: #333;
}

/* ══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════ */

/* ── Tablet (≤1024px) ───────────────────────── */
@media (max-width: 1024px) {
  h1,
  .hero-h1 {
    font-size: 48px;
  }

  h2.headline-large,
  .massive-headline {
    font-size: 48px;
  }

  .stack-title {
    font-size: 3rem;
  }

  .gh-stat-num {
    font-size: 3rem;
  }

  .bento-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 28px;
  }

  .hero-left,
  .hero-right,
  .hero-bottom-left,
  .hero-bottom-right {
    grid-column: 1 / 2;
    justify-self: center;
    text-align: center;
  }

  .hero-right {
    justify-self: center;
  }

  .hero-bottom-right {
    padding-left: 0;
  }

  .card-white {
    width: 100%;
    max-width: 420px;
    height: auto;
    min-height: 340px;
  }

  .philosophy-layout {
    flex-direction: column;
    text-align: center;
  }

  .philosophy-avatar {
    order: -1;
  }

  .philosophy-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .gh-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gh-langs-card {
    grid-column: span 2;
  }

  .details-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stack-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .stack-title {
    font-size: 2.6rem;
  }

  .stack-desc {
    font-size: 1.1rem;
  }
}

/* ── Mobile (≤768px) ────────────────────────── */
@media (max-width: 768px) {

  /* Nav */
  .nav {
    padding: 20px 24px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  main {
    padding-top: 70px;
  }

  /* Typography */
  h1,
  .hero-h1 {
    font-size: 36px;
    margin-bottom: 20px;
  }

  h2.headline-large,
  .massive-headline {
    font-size: 36px;
  }

  h2.sub-headline {
    font-size: 28px;
  }

  .stack-title {
    font-size: 2rem;
  }

  .stack-desc {
    font-size: 1rem;
    max-width: 100%;
  }

  .gh-stat-num {
    font-size: 2.8rem;
  }

  /* Hero bento - full single col */
  .bento-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 20px;
    margin-bottom: 80px;
  }

  .hero-left,
  .hero-right,
  .hero-bottom-left,
  .hero-bottom-right {
    grid-column: 1 / 2;
    justify-self: stretch;
    text-align: left;
  }

  .hero-right {
    justify-self: center;
  }

  .hero-bottom-right {
    padding-left: 0;
  }

  .pill-badges-row {
    gap: 8px;
  }

  .pill-badge {
    font-size: 14px;
    padding: 6px 16px;
  }

  /* Friction card */
  .card-white {
    width: 100%;
    max-width: 360px;
    height: auto;
    min-height: 300px;
  }

  /* Hero sketch SVG - scale down */
  .heres-how-sketch svg {
    width: 100%;
    height: auto;
    max-width: 320px;
  }

  /* Cartoon avatar */
  .cartoon-avatar {
    width: 200px;
    height: 200px;
  }

  /* Philosophy section */
  .philosophy-section {
    padding: 80px 20px;
  }

  .absolute-tl {
    position: static;
    display: block;
    margin-bottom: 12px;
    transform: none;
  }

  .absolute-br {
    position: static;
    display: block;
    margin-top: 24px;
    text-align: left;
    transform: none;
  }

  /* Philosophy layout */
  .my-philosophy {
    padding: 60px 20px !important;
  }

  .philosophy-layout {
    flex-direction: column;
    gap: 32px;
    text-align: left;
  }

  .philosophy-avatar {
    flex: none;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .philosophy-avatar img {
    width: 200px;
  }

  .chat-wrapper {
    position: static;
    margin-bottom: 12px;
  }

  .philosophy-links {
    flex: none;
    width: 100%;
    align-items: flex-start;
  }

  .philosophy-text {
    font-size: 16px;
  }

  /* Story section */
  .story-section {
    padding: 60px 20px;
  }

  .tool-avatars {
    flex-wrap: wrap;
    gap: 20px;
  }

  /* Process / Timeline — hide complex SVG layout, show stacked cards */
  .process-section {
    padding: 60px 20px 80px;
  }

  .timeline-container {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
    max-width: 100%;
  }

  .timeline-curve {
    display: none;
  }

  .node {
    position: static;
    flex-direction: row;
    gap: 16px;
    background: transparent;
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: none;
  }

  .label-top,
  .label-bottom {
    margin: 0;
    font-size: 20px;
  }

  .arrow-down,
  .arrow-up {
    display: none;
  }

  .timeline-text {
    position: static;
    text-align: left;
    background: transparent;
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: none;
  }

  /* Projects stack */
  .projects-stack {
    padding: 0 20px;
    margin: 60px auto;
  }

  .stack-item {
    position: static;
    padding: 40px 0;
    min-height: auto;
    margin-bottom: 40px;
  }

  .stack-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stack-visual {
    display: none;
  }

  /* hide decorative visuals on mobile */

  /* Skills */
  .skills-section {
    padding: 60px 20px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .skill-icons img {
    height: 56px;
  }

  /* GitHub stats */
  .github-section {
    padding: 60px 20px;
  }

  .gh-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .gh-langs-card {
    grid-column: span 2;
  }

  /* Details */
  .details-section {
    padding: 60px 20px;
  }

  .details-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  /* Hand-drawn btn */
  .hand-drawn-btn {
    font-size: 15px;
    padding: 10px 20px;
  }

  /* Squiggly divider */
  .squiggly-divider {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ── Small mobile (≤480px) ──────────────────── */
@media (max-width: 480px) {
  h1,
  .hero-h1 {
    font-size: 30px;
  }

  h2.headline-large,
  .massive-headline {
    font-size: 28px;
  }

  .friction-title {
    font-size: 2.2rem;
  }

  .card-white {
    max-width: 100%;
  }

  .heres-how-sketch svg {
    max-width: 280px;
  }

  .cartoon-avatar {
    width: 160px;
    height: 160px;
  }

  .philosophy-avatar img {
    width: 160px;
  }

  .gh-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .gh-stat-num {
    font-size: 2.2rem;
  }

  .nav {
    padding: 16px 20px;
  }
}


/* ══════════════════════════════════════════════
   TRANSITIONS & MICRO-ANIMATIONS — EVERY ELEMENT
   ══════════════════════════════════════════════ */

/* ── Custom cursor glow ─────────────────────── */
.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 94, 45, 0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: left 0.12s ease-out, top 0.12s ease-out, opacity 0.4s;
  mix-blend-mode: multiply;
}

/* ── Logo hover wiggle ──────────────────────── */
.logo {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover {
  transform: rotate(-8deg) scale(1.12);
}

.logo svg path {
  transition: stroke 0.3s;
}

.logo:hover svg path {
  stroke: var(--accent-orange);
}

/* ── Nav pill-link enhanced hover ───────────── */
.pill-link {
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.pill-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 40px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.2s;
}

.pill-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}

.pill-link.solid:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.25);
}

/* ── Massive headline word shimmer on hover ─── */
.massive-headline {
  transition: letter-spacing 0.4s ease;
}

.massive-headline:hover {
  letter-spacing: -0.03em;
}

/* ── Brown pill bounce ──────────────────────── */
.brown-pill {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}

.brown-pill:hover {
  transform: scale(1.06) rotate(-1deg);
  box-shadow: 0 8px 24px rgba(194, 94, 45, 0.30);
}

/* ── Cartoon avatar gentle rock ─────────────── */
.cartoon-avatar {
  animation: avatar-rock 6s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cartoon-avatar:hover {
  animation: none;
  transform: scale(1.05) rotate(3deg);
}

@keyframes avatar-rock {

  0%,
  100% {
    transform: rotate(-2deg);
  }

  50% {
    transform: rotate(2deg);
  }
}

/* ── Lines above avatar pulse ───────────────── */
.lines span {
  transition: transform 0.4s ease, background 0.3s;
  animation: line-pulse 3s ease-in-out infinite;
}

.lines span:nth-child(1) {
  animation-delay: 0s;
}

.lines span:nth-child(2) {
  animation-delay: 0.2s;
}

.lines span:nth-child(3) {
  animation-delay: 0.4s;
}

.lines span:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes line-pulse {

  0%,
  100% {
    opacity: 0.4;
    transform-origin: bottom center;
  }

  50% {
    opacity: 1;
    transform: scaleY(1.3) rotate(var(--r, 0deg));
  }
}

/* ── Friction card glow on hover ────────────── */
.friction-card {
  transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.friction-card:hover {
  /* Removed glow shadow */
}

/* ── Trophy SVG continuous wobble ───────────── */
.friction-trophy {
  animation: trophy-bounce 2s ease-in-out infinite;
  transition: transform 0.3s;
}

.friction-trophy:hover {
  animation: trophy-spin 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes trophy-spin {
  0% {
    transform: rotate(0deg) scale(1);
  }

  40% {
    transform: rotate(-15deg) scale(1.15);
  }

  70% {
    transform: rotate(10deg) scale(1.1);
  }

  100% {
    transform: rotate(-5deg) scale(1.05);
  }
}

/* ── FRICTION text gradient animate ─────────── */
.friction-title {
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ── Hero h1 slide-up entrance ──────────────── */
.hero-left h1 {
  animation: slide-up-fade 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-meta {
  animation: slide-up-fade 0.9s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slide-up-fade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Blue bubble heartbeat ──────────────────── */
.blue-bubble {
  animation: bubble-beat 3s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}

.blue-bubble:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.35);
}

@keyframes bubble-beat {

  0%,
  100% {
    transform: scale(1);
  }

  10% {
    transform: scale(1.04);
  }

  20% {
    transform: scale(1);
  }
}

/* ── Blue chat bubble bounce ────────────────── */
.blue-chat-bubble {
  animation: chat-bounce 4s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}

.blue-chat-bubble:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 12px 32px rgba(33, 150, 243, 0.4);
}

@keyframes chat-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* ── Avatar icons — lift + glow on hover ─────── */
.avatar {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.35s ease,
    border-color 0.35s ease;
}

.avatar:hover {
  transform: translateY(-10px) scale(1.1);
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.14));
  border-color: transparent;
  z-index: 10;
}

.avatar img {
  transition: transform 0.3s ease;
}

.avatar:hover img {
  transform: scale(1.15) rotate(-5deg);
}

/* ── Pencil note rotate on hover ────────────── */
.pencil-note svg {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pencil-note:hover svg:first-child {
  transform: rotate(-20deg) scale(1.1);
}

/* ── Stack items — 3D lift on hover ─────────── */
.stack-content {
  transition: transform 0.4s ease, filter 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.stack-item {
  transition: background 0.3s;
}

.stack-item:hover .stack-content {
  filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.08));
}

/* ── Stack title underline sweep ───────────── */
.stack-title {
  position: relative;
  display: inline-block;
}

.stack-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  background: var(--accent-orange);
  border-radius: 4px;
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.stack-item:hover .stack-title::after {
  width: 100%;
}

/* ── Tags — color pop on hover ──────────────── */
.tag {
  transition: background 0.2s, color 0.2s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

.tag:hover {
  background: #111;
  color: white;
  transform: scale(1.08);
}

.gold-tag:hover {
  background: #F59E0B;
  color: white;
}

/* ── Pill-link in projects — arrow slide ─────── */
.stack-info .pill-link {
  position: relative;
  overflow: hidden;
}

.stack-info .pill-link span.arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.stack-info .pill-link:hover {
  padding-right: 28px;
}

/* ── Skill icons — bounce on hover ──────────── */
.skill-icons img {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s;
}

.skill-icons img:hover {
  transform: translateY(-8px) scale(1.15) rotate(-5deg);
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.18));
}

/* ── Skill group heading — underline on hover ── */
.skill-group h4 {
  transition: color 0.3s;
  position: relative;
  display: inline-block;
}

.skill-group h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width 0.35s ease;
}

.skill-group:hover h4 {
  color: var(--accent-orange);
}

.skill-group:hover h4::after {
  width: 100%;
}

/* ── GitHub stat cards — lift on hover ─────── */
.gh-stat-card {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s;
  border-radius: 20px;
  padding: 20px;
}

.gh-stat-card:hover {
  transform: translateY(-8px);
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.09));
  background: transparent;
}

/* ── Stat number count-up pop ───────────────── */
.gh-stat-num {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s;
}

.gh-stat-card:hover .gh-stat-num {
  transform: scale(1.08);
  color: var(--accent-orange);
}

/* ── Streak ring spin on hover ──────────────── */
.gh-streak-ring svg circle:last-child {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gh-streak-card:hover .gh-streak-ring svg circle:last-child {
  stroke-dashoffset: 40;
}

.gh-streak-num {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s;
}

.gh-streak-card:hover .gh-streak-num {
  transform: scale(1.15);
  color: var(--accent-orange);
}

/* ── Language bars animate in ───────────────── */
.gh-bar-fill {
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gh-bar-track {
  transition: box-shadow 0.3s;
}

.gh-langs-card:hover .gh-bar-track {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* ── Detail cards — border glow ─────────────── */
.detail-card {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 20px;
  padding: 28px;
  background: transparent;
}

.detail-card:hover {
  transform: translateY(-6px);
}

.detail-card h3 {
  transition: letter-spacing 0.3s ease;
}

.detail-card:hover h3 {
  letter-spacing: 0.01em;
}

/* ── CGPA badge pulse ───────────────────────── */
.cgpa {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s, color 0.3s;
}

.cgpa:hover {
  transform: scale(1.08);
  background: var(--accent-orange);
  color: white;
}

/* ── Contact pill-links grow ─────────────────── */
.contact-links .pill-link {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}

.contact-links .pill-link:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* ── Hand-drawn button wibble ───────────────── */
.hand-drawn-btn {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s,
    background 0.3s,
    border-radius 0.4s ease;
}

.hand-drawn-btn:hover {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 4px 6px 0 #111;
  background: #f9f6f2;
}

.hand-drawn-btn:active {
  transform: scale(0.97) rotate(0deg);
  box-shadow: 1px 2px 0 #111;
}

/* ── Timeline nodes pop on hover ────────────── */
.node svg {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s;
}

.node:hover svg {
  transform: scale(1.2);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.node .handwritten {
  transition: color 0.3s, transform 0.3s;
}

.node:hover .handwritten {
  color: var(--accent-orange);
  transform: scale(1.08) rotate(-3deg);
}

/* ── Squiggly divider draw ───────────────────── */
.squiggly-divider svg path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw-path 2s ease forwards;
}

.squiggly-divider:nth-of-type(1) svg path {
  animation-delay: 0.2s;
}

.squiggly-divider:nth-of-type(2) svg path {
  animation-delay: 0.5s;
}

@keyframes draw-path {
  to {
    stroke-dashoffset: 0;
  }
}

/* ── Pill badge shimmer on hover ─────────────── */
.pill-badge {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s,
    filter 0.3s;
  cursor: default;
}

.pill-badge:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(194, 94, 45, 0.30);
  filter: brightness(1.1);
}

/* ── Footer fade in + link hover ────────────── */
.site-footer {
  animation: slide-up-fade 0.8s 0.2s ease both;
}

.site-footer p {
  transition: color 0.3s;
}

.site-footer:hover p {
  color: var(--accent-orange);
}

/* ── Reveal — staggered children ────────────── */
.skills-grid .skill-group:nth-child(1) {
  transition-delay: 0.05s;
}

.skills-grid .skill-group:nth-child(2) {
  transition-delay: 0.15s;
}

.skills-grid .skill-group:nth-child(3) {
  transition-delay: 0.25s;
}

.stack-item:nth-child(1) {
  transition-delay: 0s;
}

.stack-item:nth-child(2) {
  transition-delay: 0.08s;
}

.stack-item:nth-child(3) {
  transition-delay: 0.16s;
}

.stack-item:nth-child(4) {
  transition-delay: 0.24s;
}

/* ── hl-green highlight swipe-in ─────────────── */
.hl-green {
  background-size: 200% 100%;
  background-image: linear-gradient(90deg, #65D142 50%, transparent 50%);
  background-position: 100% 0;
  transition: background-position 0.5s ease;
}

.reveal.active .hl-green {
  background-position: 0% 0;
}

/* ── Scribble lines draw animation ───────────── */
.scribble-lines path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw-path 1.5s 0.5s ease forwards;
}

/* ── Hand underline draw ─────────────────────── */
.hand-underline path {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: draw-path 1s 0.3s ease forwards;
}

/* ── Red scribble spin ───────────────────────── */
.red-scribble {
  animation: scribble-spin 8s linear infinite;
}

@keyframes scribble-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ── Philosophy section text highlight ──────── */
.philosophy-text p {
  transition: transform 0.4s ease;
}

.philosophy-text:hover p {
  transform: translateX(4px);
}

/* ── Stack-num counter pulse ─────────────────── */
.stack-num {
  transition: color 0.3s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stack-item:hover .stack-num {
  color: var(--accent-orange);
  transform: scale(1.1);
  opacity: 1;
}

/* ── Confetti dots faster on hover ──────────── */
.friction-card:hover .friction-confetti span {
  animation-duration: 1.5s !important;
  opacity: 0.8 !important;
}

/* ── Abstract viz spin on hover ─────────────── */
.abstract-viz {
  transition: transform 0.5s ease;
}

.abstract-viz:hover {
  transform: rotate(6deg) scale(1.05);
}

/* ── Floating image tilt on hover ────────────── */
.floating-img {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.5s;
}

.floating-img:hover {
  transform: scale(1.04) rotate(-2deg);
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.10)) brightness(1.03);
}

/* ── Section headings entrance ───────────────── */
.stack-intro .massive-headline {
  animation: slide-up-fade 0.9s ease both;
}

.stack-intro .handwritten {
  animation: slide-up-fade 0.7s ease both;
  animation-delay: 0.1s;
}

/* ── Overall transition default ──────────────── */
a,
button,
input,
svg,
img {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════════════
   GLOBAL WINNER EFFECT (Friction Card)
   ══════════════════════════════════════════════ */
body {
  transition: background-color 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}


body.winner-mode .friction-card {
  z-index: 50;
  position: relative;
}

.winner-sketch-circle {
  position: absolute;
  top: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  pointer-events: none;
  z-index: 51;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.winner-mode .winner-sketch-circle {
  opacity: 1;
}

.winner-sketch-circle .circle-path {
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.winner-mode .winner-sketch-circle .circle-path {
  stroke-dashoffset: 0;
}

.global-confetti {
  position: fixed;
  top: -20px;
  width: 12px;
  height: 24px;
  border-radius: 4px;
  z-index: 9999;
  pointer-events: none;
  animation: global-fall linear forwards;
}

@keyframes global-fall {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateY(120vh) rotate(720deg) scale(0.6);
    opacity: 0;
  }
}