/* ============================================================
 * home-scroll-reveal.css
 * Otomatik olarak home-platform.css dosyasından ayrıştırıldı.
 * Kaynak satırlar: L7412 – L7808
 * ============================================================ */

/* Branch groups */
.projects-branch {
  --branch-accent: #0e9faa;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.projects-branch:last-child {
  margin-bottom: 0;
}

.projects-branch--teal {
  --branch-accent: #0e9faa;
}

.projects-branch--orange {
  --branch-accent: #f28b3c;
}

.projects-branch--purple {
  --branch-accent: #635bff;
}

.projects-branch--rose {
  --branch-accent: #df4b88;
}

.projects-branch__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f0f4f9;
  position: relative;
}

.projects-branch__head::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--branch-accent);
  border-radius: 1px;
}

.projects-branch__index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--branch-accent) 12%, #f0f8fb);
  color: var(--branch-accent);
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .04em;
  flex-shrink: 0;
}

.projects-branch__title {
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: #0a2540;
  flex: 1;
}

.projects-branch__count {
  font-size: .7rem;
  font-weight: 600;
  color: var(--branch-accent);
  background: color-mix(in srgb, var(--branch-accent) 10%, transparent);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.projects-branch__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #e4ebf3;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  transition: transform var(--transition-ui), box-shadow var(--transition-ui), border-color var(--transition-ui);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 152, 162, .22);
  box-shadow: 0 20px 48px rgba(10, 37, 64, .09);
}

.project-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0f4f8;
}

.project-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms ease;
}

.project-card:hover .project-card__img img {
  transform: scale(1.04);
}

.project-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .6rem;
  font-weight: 750;
  backdrop-filter: blur(6px);
}

.project-card__badge--teal {
  background: rgba(14, 159, 170, .88);
  color: #fff;
}

.project-card__badge--orange {
  background: rgba(242, 139, 60, .88);
  color: #fff;
}

.project-card__badge--purple {
  background: rgba(99, 91, 255, .88);
  color: #fff;
}

.project-card__badge--rose {
  background: rgba(223, 75, 136, .88);
  color: #fff;
}

.project-card__badge--blue {
  background: rgba(73, 120, 232, .88);
  color: #fff;
}

.project-card__body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 5px;
  flex: 1;
}

.project-card__cat {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.project-card__title {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: #0a2540;
  line-height: 1.28;
}

.project-card__desc {
  font-size: .76rem;
  line-height: 1.54;
  color: #6b7f92;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.project-card__tags span {
  padding: 2px 7px;
  border: 1px solid #e4ebf3;
  border-radius: 4px;
  font-size: .6rem;
  font-weight: 600;
  color: #7a8fa3;
  background: #f8fafc;
}

.project-card__link {
  position: absolute;
  inset: 0;
}

.project-card.is-hidden {
  display: none;
}

@media (max-width: 1100px) {
  .home-announcements__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-grid,
  .projects-branch__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .home-announcements__head {
    align-items: start;
    flex-direction: column;
  }

  .projects-grid,
  .projects-branch__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .home-announcements__grid {
    grid-template-columns: 1fr;
  }

  .home-ann-card {
    padding: 18px;
  }

  .projects-grid,
  .projects-branch__grid {
    grid-template-columns: 1fr;
  }
}


/* === SCROLL REVEAL + STAGGER ====================================== */

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

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

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(.96) translateY(16px);
  }

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

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .72s cubic-bezier(.2, .7, .2, 1), transform .72s cubic-bezier(.2, .7, .2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal].is-visible .ab-tab {
  animation: fade-up .52s cubic-bezier(.2, .7, .2, 1) both;
}

[data-reveal].is-visible .ab-tab:nth-child(1) {
  animation-delay: .06s;
}

[data-reveal].is-visible .ab-tab:nth-child(2) {
  animation-delay: .14s;
}

[data-reveal].is-visible .ab-tab:nth-child(3) {
  animation-delay: .22s;
}

[data-reveal].is-visible .ab-tab:nth-child(4) {
  animation-delay: .30s;
}

[data-reveal].is-visible .ab-panel.is-active {
  animation: fade-up .6s cubic-bezier(.2, .7, .2, 1) .18s both;
}

[data-reveal].is-visible .uc-card {
  animation: scale-in .58s cubic-bezier(.2, .7, .2, 1) both;
}

[data-reveal].is-visible .uc-card:nth-child(1) {
  animation-delay: .06s;
}

[data-reveal].is-visible .uc-card:nth-child(2) {
  animation-delay: .16s;
}

[data-reveal].is-visible .uc-card:nth-child(3) {
  animation-delay: .26s;
}

[data-reveal].is-visible .uc-card:nth-child(4) {
  animation-delay: .36s;
}

[data-reveal].is-visible .projects-branch {
  animation: fade-up .6s cubic-bezier(.2, .7, .2, 1) both;
}

[data-reveal].is-visible .projects-branch:nth-child(1) {
  animation-delay: .04s;
}

[data-reveal].is-visible .projects-branch:nth-child(2) {
  animation-delay: .14s;
}

[data-reveal].is-visible .projects-branch:nth-child(3) {
  animation-delay: .24s;
}

[data-reveal].is-visible .projects-branch:nth-child(4) {
  animation-delay: .34s;
}

[data-reveal].is-visible .project-card {
  animation: scale-in .5s cubic-bezier(.2, .7, .2, 1) both;
}

[data-reveal].is-visible .project-card:nth-child(1) {
  animation-delay: .08s;
}

[data-reveal].is-visible .project-card:nth-child(2) {
  animation-delay: .16s;
}

[data-reveal].is-visible .project-card:nth-child(3) {
  animation-delay: .24s;
}

[data-reveal].is-visible .project-card:nth-child(4) {
  animation-delay: .32s;
}

.ref-marquee[data-reveal].is-visible .ref-marquee__head {
  animation: fade-up .52s cubic-bezier(.2, .7, .2, 1) both;
}

@media (prefers-reduced-motion: reduce) {

  [data-reveal],
  [data-reveal] * {
    animation: none !important;
    transition: opacity .01ms !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


