/* Bloodbank folder uses the blue cover color from the Web Development certificate folder. */
#projects .project-folder-card[data-folder-theme="bloodbank-blue"] {
  --folder-panel: #43aee1;
  --project-text: #173f58;
  --project-muted: #e8f6fc;
  --project-chip: rgba(255, 255, 255, .22);
  --project-divider: rgba(23, 63, 88, .2);
}

#footer .footer-header-text {
  max-width: 720px;
  margin: 0 auto;
  padding: .4rem 0;
  font-family: var(--font-main, Inter, sans-serif);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.035em;
  text-wrap: balance;
}

#footer .footer-header-text .footer-copy-line {
  display: block;
}

#home .btn-contact-slide:hover .slide-text,
#home .btn-contact-slide.is-hovered .slide-text {
  transform: translateX(30px);
}

#home .results-letter-pop > span {
  display: inline-block;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  filter: blur(8px);
  text-shadow: inherit;
  font: inherit;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(.96);
  animation: results-letter-rise 1.08s cubic-bezier(.2, .75, .25, 1) both;
}

#home .hero-prefix-letter-pop {
  display: inline-block;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

#home .hero-prefix-letter-pop > span {
  display: inline-block;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  text-shadow: inherit;
  font: inherit;
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 0, 0) scale(.96);
  animation: results-letter-rise 1.08s cubic-bezier(.2, .75, .25, 1) both;
}

#home .hero-prefix-first > span:nth-child(1) { animation-delay: .28s; }
#home .hero-prefix-first > span:nth-child(2) { animation-delay: .36s; }
#home .hero-prefix-first > span:nth-child(3) { animation-delay: .44s; }
#home .hero-prefix-first > span:nth-child(4) { animation-delay: .52s; }
#home .hero-prefix-first > span:nth-child(5) { animation-delay: .60s; }
#home .hero-prefix-first > span:nth-child(6) { animation-delay: .68s; }
#home .hero-prefix-first > span:nth-child(7) { animation-delay: .76s; }
#home .hero-prefix-first > span:nth-child(8) { animation-delay: .84s; }
#home .hero-prefix-first > span:nth-child(9) { animation-delay: .92s; }
#home .hero-prefix-second > span:nth-child(1) { animation-delay: .40s; }
#home .hero-prefix-second > span:nth-child(2) { animation-delay: .48s; }
#home .hero-prefix-second > span:nth-child(3) { animation-delay: .56s; }
#home .hero-prefix-second > span:nth-child(4) { animation-delay: .64s; }
#home .hero-prefix-second > span:nth-child(5) { animation-delay: .72s; }
#home .hero-prefix-second > span:nth-child(6) { animation-delay: .80s; }
#home .hero-prefix-second > span:nth-child(7) { animation-delay: .88s; }

#home .results-letter-pop > span:nth-child(1) { animation-delay: .28s; }
#home .results-letter-pop > span:nth-child(2) { animation-delay: .41s; }
#home .results-letter-pop > span:nth-child(3) { animation-delay: .54s; }
#home .results-letter-pop > span:nth-child(4) { animation-delay: .67s; }
#home .results-letter-pop > span:nth-child(5) { animation-delay: .80s; }
#home .results-letter-pop > span:nth-child(6) { animation-delay: .93s; }
#home .results-letter-pop > span:nth-child(7) { animation-delay: 1.06s; }

@keyframes results-letter-rise {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(0, 15px, 0) scale(.96);
  }
  72% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, -1px, 0) scale(1.01);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

#footer .footer-socials {
  gap: clamp(16px, 2.1vw, 28px);
}

#footer .footer-social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: rgba(255, 255, 255, .84);
  font-family: var(--font-main, Inter, sans-serif);
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1;
  text-decoration: none;
  transition: color .25s ease, opacity .25s ease;
}

#footer .footer-social-link::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: currentColor;
  opacity: .5;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
  content: "";
}

#footer .footer-social-link:hover,
#footer .footer-social-link:focus-visible {
  color: #fff;
}

#footer .footer-social-link:hover::after,
#footer .footer-social-link:focus-visible::after {
  transform: scaleX(1);
}

body.light-mode #footer .footer-social-link {
  color: rgba(35, 42, 55, .78);
}

body.light-mode #footer .footer-social-link:hover,
body.light-mode #footer .footer-social-link:focus-visible {
  color: #141923;
}

#footer.footer-night-mode .footer-social-link {
  color: rgba(255, 255, 255, .84);
}

#footer.footer-night-mode .footer-social-link:hover,
#footer.footer-night-mode .footer-social-link:focus-visible {
  color: #fff;
}

#contact .contact-bento-whatsapp .whatsapp-card-heading {
  color: #000;
  transition: color .4s ease;
}

#contact .contact-bento-whatsapp:hover .whatsapp-card-heading,
#contact .contact-bento-whatsapp:has(.whatsapp-email-btn:focus-visible) .whatsapp-card-heading,
#contact .contact-bento-whatsapp:has(.whatsapp-email-btn:hover) .whatsapp-card-heading {
  color: #fff !important;
}

/* Keep the speaker control consistent with the muted, filled iOS playback icons. */
#about #bentoMusicCard #bentoMusicMute,
#about #bentoMusicCard.is-playing #bentoMusicMute,
#about #bentoMusicCard #bentoMusicMute:hover,
#about #bentoMusicCard.is-playing #bentoMusicMute:hover {
  color: #8e8e93 !important;
}

#about #bentoMusicCard #bentoMusicMute:hover,
#about #bentoMusicCard.is-playing #bentoMusicMute:hover {
  color: #62626a !important;
}

#about #bentoMusicCard #bentoMusicMute i {
  font-size: 19px;
  font-weight: 400;
}

/* Gallery controls reuse the hero glass-sweep interaction, sized to match Live. */
#projects .project-gallery-flow.flow-download {
  width: 110px;
  height: 38px;
  flex: 0 0 110px;
  font-size: .82rem;
  color: var(--project-text, #303640);
  z-index: 10;
  transition: border-radius .6s cubic-bezier(.23, 1, .32, 1), border-color .6s ease, background-color .6s ease, transform .2s ease;
}

#projects .project-gallery-flow.flow-download:hover,
#projects .project-gallery-flow.flow-download:focus-visible {
  color: #4775ff;
}

#projects .project-gallery-flow .flow-download-text {
  transform: translateX(-7px);
  transition: transform .8s ease, color .6s ease;
}

#projects .project-gallery-flow .flow-gallery-icon {
  position: absolute;
  z-index: 3;
  right: 12px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 1;
  transform: translateX(0);
  transition: transform .8s cubic-bezier(.34, 1.56, .64, 1), color .6s ease;
}

#projects .project-gallery-flow:hover .flow-gallery-icon,
#projects .project-gallery-flow:focus-visible .flow-gallery-icon {
  transform: translateX(-70px);
}

#projects .project-gallery-flow:hover .flow-download-text,
#projects .project-gallery-flow:focus-visible .flow-download-text {
  transform: translateX(12px);
}

#projects .project-folder-card[data-folder-theme="bloodbank-blue"] .project-gallery-flow {
  color: #fff !important;
}

#projects .project-folder-card[data-folder-theme="bloodbank-blue"] .project-gallery-flow:hover,
#projects .project-folder-card[data-folder-theme="bloodbank-blue"] .project-gallery-flow:focus-visible {
  color: #43aee1 !important;
}

#projects .project-folder-card[data-folder-theme="charcoal"] .project-gallery-flow:hover,
#projects .project-folder-card[data-folder-theme="charcoal"] .project-gallery-flow:focus-visible {
  color: #292b30 !important;
}

#projects .project-folder-card[data-folder-theme="bloodbank-blue"] .project-folder-number,
#projects .project-folder-card[data-folder-theme="bloodbank-blue"] .project-title,
#projects .project-folder-card[data-folder-theme="bloodbank-blue"]:hover .project-title {
  color: #fff !important;
  text-shadow: 0 1px 8px rgba(18, 57, 103, .16) !important;
}

#projects .project-folder-card[data-folder-theme="bloodbank-blue"] .project-folder-heading i {
  color: #fff !important;
}

/* Bloodbank Live button: white face, blue circle, white arrow; blue hover face. */
#projects .project-folder-card[data-folder-theme="bloodbank-blue"] .project-btn-slide {
  color: #43aee1 !important;
  background-color: #fff !important;
  border-color: rgba(67, 174, 225, .26) !important;
  box-shadow: 0 3px 10px rgba(21, 87, 128, .1) !important;
}

#projects .project-folder-card[data-folder-theme="bloodbank-blue"] .project-btn-slide .slide-text {
  color: #43aee1 !important;
}

#projects .project-folder-card[data-folder-theme="bloodbank-blue"] .project-btn-slide .slide-circle {
  color: #fff !important;
  background-color: #43aee1 !important;
}

#projects .project-folder-card[data-folder-theme="bloodbank-blue"] .project-btn-slide:hover,
#projects .project-folder-card[data-folder-theme="bloodbank-blue"] .project-btn-slide:focus-visible {
  color: #fff !important;
  background-color: #43aee1 !important;
  border-color: #43aee1 !important;
}

#projects .project-folder-card[data-folder-theme="bloodbank-blue"] .project-btn-slide:hover .slide-text,
#projects .project-folder-card[data-folder-theme="bloodbank-blue"] .project-btn-slide:focus-visible .slide-text {
  color: #fff !important;
}

#projects .project-folder-card[data-folder-theme="bloodbank-blue"] .project-btn-slide:hover .slide-circle,
#projects .project-folder-card[data-folder-theme="bloodbank-blue"] .project-btn-slide:focus-visible .slide-circle {
  color: #43aee1 !important;
  background-color: #fff !important;
}

@media (max-width: 768px) {
  #projects .project-gallery-flow.flow-download {
    width: 100px;
    height: 36px;
    flex-basis: 100px;
  }

  #projects .project-gallery-flow:hover .flow-gallery-icon,
  #projects .project-gallery-flow:focus-visible .flow-gallery-icon {
    transform: translateX(-60px);
  }
}

@media (max-width: 380px) {
  #projects .project-gallery-flow.flow-download {
    width: 94px;
    flex-basis: 94px;
  }

  #projects .project-gallery-flow:hover .flow-gallery-icon,
  #projects .project-gallery-flow:focus-visible .flow-gallery-icon {
    transform: translateX(-54px);
  }
}

@media (max-width: 480px) {
  #footer .footer-header-text {
    max-width: 360px;
    padding: .3rem 0;
    font-size: 1.05rem;
    line-height: 1.4;
  }

  #footer .footer-socials {
    gap: 14px;
  }

  #footer .footer-social-link {
    font-size: .78rem;
  }
}

@media (max-width: 768px) {
  #home .btn-contact-slide:hover .slide-text,
  #home .btn-contact-slide.is-hovered .slide-text {
    transform: translateX(32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #home .results-letter-pop > span,
  #home .hero-prefix-letter-pop > span {
    opacity: 1;
    animation: none;
    transform: none;
    filter: none;
  }
}

