/* Start Page Specific */
#home,
#services,
#features,
#blog,
#contact {
  padding: 84px 0;
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.95;
  margin-bottom: 2.1rem !important;
  text-wrap: balance;
}

.hero-title .title-word {
  display: inline-block;
  opacity: 1;
  transform: none;
}

.hero-title .title-line:nth-child(1) .title-word:nth-child(1) {
  animation-delay: 0s;
}

.hero-title .title-line:nth-child(1) .title-word:nth-child(2) {
  animation-delay: 0.12s;
}

.hero-title .title-line:nth-child(2) .title-word:nth-child(1) {
  animation-delay: 0.24s;
}

.hero-title .title-line:nth-child(3) .title-word:nth-child(1) {
  animation-delay: 0.36s;
}

.hero-title .title-line:nth-child(3) .title-word:nth-child(2) {
  animation-delay: 0.48s;
}

.hero-subtitle {
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.hero-subtitle .word-fade {
  display: inline-block;
  opacity: 1;
  transform: none;
}

.hero-subtitle .word-fade:nth-child(1) {
  animation-delay: 0.5s;
}

.hero-subtitle .word-fade:nth-child(2) {
  animation-delay: 0.58s;
}

.hero-subtitle .word-fade:nth-child(3) {
  animation-delay: 0.66s;
}

.hero-subtitle .word-fade:nth-child(4) {
  animation-delay: 0.74s;
}

.hero-subtitle .word-fade:nth-child(5) {
  animation-delay: 0.82s;
}

.hero-subtitle .word-fade:nth-child(6) {
  animation-delay: 0.9s;
}

.hero-subtitle .word-fade:nth-child(7) {
  animation-delay: 0.98s;
}

.hero-subtitle .word-fade:nth-child(8) {
  animation-delay: 1.06s;
}

.hero-subtitle .word-fade:nth-child(9) {
  animation-delay: 1.14s;
}

.hero-subtitle .word-fade:nth-child(10) {
  animation-delay: 1.22s;
}

.hero-subtitle .word-fade:nth-child(11) {
  animation-delay: 1.3s;
}

@keyframes rise-word {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stage-side-copy {
  position: fixed;
  left: var(--content-rail);
  top: 50%;
  transform: translateY(-50%);
  width: min(360px, calc(100% - (var(--content-rail) * 2)));
  z-index: 1042;
  color: #ffffff;
  pointer-events: none;
  transition:
    opacity 420ms var(--ease-out),
    transform 420ms var(--ease-out),
    filter 420ms var(--ease-out);
}

.stage-side-copy__title {
  margin: 0 0 0.7rem;
  font-size: clamp(2.8rem, 3.9vw, 4.6rem);
  line-height: 0.95;
  color: #ffffff;
}

.stage-side-copy__text {
  margin: 0;
  max-width: 300px;
  color: rgba(var(--color-white-rgb), 0.96) !important;
  font-size: 1.05rem;
  line-height: 1.48;
}

.stage-side-copy.is-changing {
  opacity: 0.2;
  transform: translateY(-50%) scale(0.96);
  filter: blur(4px);
}

.stage-side-copy.is-hidden,
.portfolio-stage[data-active-section="home"] .stage-side-copy {
  opacity: 0;
  transform: translateY(-50%) scale(0.95);
  filter: blur(6px);
}

.portfolio-stage #contact .col-lg-10.stage-card {
  display: block;
}

.portfolio-stage #contact .col-lg-10.stage-card > .text-center {
  text-align: left !important;
  margin-bottom: 0 !important;
  align-self: center;
}

.portfolio-stage #contact .stage-card::before {
  display: none;
}

.project-logo-link {
  text-decoration: none !important;
  transition: none;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  box-shadow: none;
}

.project-logo-link:hover {
  text-decoration: none !important;
}

.project-logo {
  max-height: 48px;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.72;
  transition:
    opacity 0.2s,
    filter 0.25s,
    transform 0.25s;
}

@keyframes project-logo-highlight-in {
  0% {
    opacity: 0.58;
    filter: grayscale(0.85) brightness(0.95);
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 1;
    filter: saturate(1.25) brightness(1.05);
    transform: translateY(-10px) scale(1.08);
  }
}

@keyframes project-logo-fade-out {
  0% {
    opacity: 1;
    filter: saturate(1.25) brightness(1.05);
    transform: translateY(-10px) scale(1.08);
  }
  100% {
    opacity: 0.56;
    filter: grayscale(1) brightness(0.92) invert(1);
    transform: translateY(0) scale(1);
  }
}

.project-logo-link:hover .project-logo {
  opacity: 1 !important;
  filter: none;
  transform: translateY(-30px) scale(1.1);
}

.project-gallery-item {
  justify-content: flex-start;
  gap: 0.55rem;
  flex: 0 0 clamp(220px, 24vw, 320px);
}

.project-gallery-item .project-logo-link {
  width: 100%;
  min-height: 146px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.project-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

.project-marquee__track {
  gap: 1rem;
  width: max-content;
  animation: project-marquee var(--marquee-duration, 26s) linear infinite;
  will-change: transform;
}

.project-marquee:hover .project-marquee__track,
.project-marquee:focus-within .project-marquee__track {
  animation-play-state: paused;
}

@keyframes project-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

.stage-blog .card {
  /* background: rgba(var(--color-white-rgb), 0.05) !important; */
  background: transparent !important;
  border: none !important;
  color: var(--color-text-muted);
}

.stage-blog .card .h5,
.stage-blog .card h3,
.stage-blog .card h5,
.stage-blog .card strong,
.stage-blog .card a.text-dark,
.stage-blog .card .text-dark {
  color: #ffffff !important;
}

.stage-blog .card .text-muted {
  color: var(--color-text-subtle) !important;
}

.stage-blog .card .text-muted .fa-calendar-days,
.stage-blog .card .text-muted .fa-calendar-days::before {
  color: var(--color-text-subtle) !important;
}

.stage-blog .badge {
  border: 1px solid rgba(var(--color-white-rgb), 0.28) !important;
  background: transparent !important;
  color: rgba(var(--color-white-rgb), 0.92) !important;
}

.portfolio-stage #about .row {
  justify-content: center;
}

.portfolio-stage #about .col-lg-7 {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.portfolio-stage #about .col-lg-7 p {
  margin-left: auto;
  margin-right: auto;
  max-width: 920px;
}

.portfolio-stage #about .d-flex.flex-wrap.gap-2 {
  justify-content: center;
}

@media (max-width: 991px) {
  .stage-side-copy {
    display: none;
  }

  .portfolio-stage #contact.stage-section {
    padding-top: 70px;
  }
}

@media (max-width: 768px) {
  #home,
  #services,
  #features,
  #blog,
  #contact {
    padding: 58px 0;
  }

  .hero-title {
    font-size: clamp(2.05rem, 11vw, 2.95rem);
  }

  .hero-subtitle {
    font-size: 1.02rem;
  }

  .portfolio-stage #home.stage-section {
    padding-top: 76px;
  }

  .portfolio-stage #contact.stage-section {
    padding-top: 64px;
  }

  .portfolio-stage #contact .col-lg-10.stage-card {
    padding: 0.5rem 0;
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .portfolio-stage #contact .col-lg-10.stage-card > .text-center {
    text-align: center !important;
  }

  .project-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    min-height: auto;
  }

  .project-marquee::-webkit-scrollbar {
    display: none;
  }

  .project-marquee__track {
    width: max-content;
    position: static;
    min-height: auto;
    animation: none;
    padding-bottom: 0.2rem;
    display: flex;
    gap: 0.9rem;
  }

  .project-gallery-item {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    animation: none;
    filter: none;
    flex: 0 0 min(78vw, 320px);
    scroll-snap-align: start;
    width: auto;
  }

  .project-gallery-item .project-logo {
    opacity: 0.56;
    filter: grayscale(1) brightness(0.92) invert(1);
    transform: translateY(0) scale(1);
  }

  .project-gallery-item.is-mobile-active .project-logo {
    opacity: 1;
    filter: saturate(1.25) brightness(1.05);
    transform: translateY(-10px) scale(1.08);
    animation: project-logo-highlight-in 520ms var(--ease-out) both;
  }

  .project-gallery-item.is-mobile-dimmed .project-logo {
    animation: project-logo-fade-out 520ms var(--ease-out) both;
  }

  .project-gallery-item .project-logo-link {
    min-height: 140px;
  }
}
