/**
 * DECOFIX — Kurumsal özel stiller
 */

/* Header scroll state */
#site-header {
  background-color: transparent;
}

#site-header.header-scrolled {
  background-color: rgba(7, 26, 45, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* Active nav link */
.nav-link-active {
  color: #f5f5f5;
}
.nav-link-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background-color: #b86316;
}

.nav-link {
  position: relative;
}

/* Stats dividers */
.stat-divider {
  width: 1px;
  align-self: stretch;
  min-height: 2.5rem;
  background-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 767px) {
  .stat-divider {
    display: none;
  }
  .stat-divider-h {
    height: 1px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.15);
  }
}

/* Project progress bar */
.project-progress-track {
  height: 4px;
  width: 100%;
  background-color: rgba(30, 30, 30, 0.12);
  border-radius: 9999px;
  overflow: hidden;
}

.project-progress-fill {
  height: 100%;
  background-color: #b86316;
  border-radius: 9999px;
  transition: width 0.6s ease;
}

/* Activity area icons */
.activity-item {
  cursor: default;
  padding: 1rem;
  border-radius: 0.75rem;
  transition: transform 0.25s ease;
}

.activity-item:hover .activity-icon-wrap {
  color: #cc7625;
  border-color: #b86316;
}

.activity-item:hover .activity-label {
  color: #b86316;
}

.activity-icon-wrap {
  transition: color 0.3s ease, border-color 0.3s ease;
}

.activity-label {
  transition: color 0.3s ease;
}

/* Contact info list */
.contact-info-item:focus-within .rounded-full {
  border-color: rgba(184, 99, 22, 0.4);
}

/* Contact rail — desktop vertical */
.contact-rail {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: 52px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s ease, opacity 0.5s ease;
  will-change: transform;
}

@media (min-width: 1024px) {
  .contact-rail.contact-rail--receded {
    transform: translate(calc(100% + 8px), -50%);
    opacity: 0;
    pointer-events: none;
  }
}

.contact-rail__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f5f5f5;
  text-align: center;
  line-height: 1.2;
  transition: background-color 0.2s ease, filter 0.2s ease;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  min-height: 100px;
}

.contact-rail__btn i {
  font-size: 18px;
  transform: rotate(180deg);
}

.contact-rail__btn:hover {
  filter: brightness(1.1);
}

.contact-rail__btn--night {
  background-color: #071a2d;
}

.contact-rail__btn--copper {
  background-color: #b86316;
}

.contact-rail__btn--copper:hover {
  background-color: #cc7625;
}

/* Mobile contact rail */
@media (max-width: 1023px) {
  .contact-rail {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: row;
    width: 100%;
    height: 56px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  }

  .contact-rail__btn {
    flex: 1;
    min-height: auto;
    padding: 8px 4px;
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 8px;
    gap: 4px;
  }

  .contact-rail__btn i {
    transform: none;
    font-size: 16px;
  }

  .contact-rail.contact-rail--receded {
    transform: translateY(calc(100% + 8px));
    opacity: 0;
    pointer-events: none;
  }
}

/* WhatsApp floating action button */
.whatsapp-fab {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.2s ease, bottom 0.3s ease, right 0.3s ease;
  transform: scale(0.9);
}

.whatsapp-fab.whatsapp-fab--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.whatsapp-fab.whatsapp-fab--raised {
  bottom: 6.5rem;
}

@media (max-width: 1023px) {
  .whatsapp-fab {
    bottom: 5rem;
  }

  .whatsapp-fab.whatsapp-fab--raised {
    bottom: 7rem;
  }
}

@media (min-width: 1024px) {
  .whatsapp-fab.whatsapp-fab--raised {
    bottom: 2rem;
    right: 2rem;
  }
}

/* Hero overlay */
.hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(7, 26, 45, 0.92) 0%,
    rgba(7, 26, 45, 0.65) 45%,
    rgba(7, 26, 45, 0.2) 100%
  );
}

/* Faaliyet background */
.faaliyet-bg {
  z-index: 0;
  background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?q=80&w=2076&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.45) contrast(1.15) saturate(0.9);
}

.faaliyet-overlay {
  z-index: 10;
  background: linear-gradient(
    90deg,
    rgba(7, 26, 45, 0.95) 0%,
    rgba(7, 26, 45, 0.85) 50%,
    rgba(7, 26, 45, 0.75) 100%
  );
}

@media (max-width: 768px) {
  .faaliyet-bg {
    background-attachment: scroll;
  }

  .faaliyet-overlay {
    background: linear-gradient(
      180deg,
      rgba(7, 26, 45, 0.95) 0%,
      rgba(7, 26, 45, 0.85) 50%,
      rgba(7, 26, 45, 0.75) 100%
    );
  }
}

/* Neden Decofix list alignment */
.why-decofix-item i {
  flex-shrink: 0;
}

/* Body padding for contact rail */
@media (max-width: 1023px) {
  body.has-contact-rail {
    padding-bottom: 56px;
  }
}

/* Project card shadow */
.project-card-shadow {
  box-shadow: 0 4px 20px rgba(3, 40, 69, 0.08);
}

.project-card-shadow:hover {
  box-shadow: 0 8px 30px rgba(3, 40, 69, 0.14);
}

/* Reference logos — infinite marquee */
@keyframes reference-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.reference-marquee-track {
  display: flex;
  width: max-content;
  animation: reference-scroll 35s linear infinite;
}

.reference-marquee:hover .reference-marquee-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .reference-marquee-track {
    animation: none;
  }
}

/* Reference logos on dark band */
.reference-logo {
  opacity: 0.6;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.reference-logo:hover {
  opacity: 1;
  filter: none;
}
