/* Doğuş Bektaş — shared site styles */
:root {
  --brand-navy: #1A2745;
  --header-height: 4.5rem;
}

body {
  font-family: Inter, sans-serif;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  height: var(--header-height);
  background: #1A2745;
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
}

.page-main {
  padding-top: var(--header-height);
}

.home-main {
  padding-top: var(--header-height);
  background: #1A2745;
}

.site-logo {
  display: block;
  height: 2.15rem;
  width: auto;
  max-width: min(14rem, 58vw);
  object-fit: contain;
}

@media (min-width: 768px) {
  .site-logo {
    height: 3.15rem;
    max-width: min(18rem, 72vw);
  }
}

.footer-logo {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: min(16rem, 80vw);
  object-fit: contain;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: #ffffff;
  transition: color 0.2s ease;
}

.header-social a:hover {
  color: #B3A965;
}

.header-social svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.header-social svg path {
  fill: currentColor;
}

.slider-container {
  position: relative;
  height: calc(100dvh - var(--header-height));
  min-height: 32rem;
  overflow: hidden;
  background: #1A2745;
  touch-action: pan-y;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
  pointer-events: none;
  background: #1A2745;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-layout {
  position: relative;
  height: 100%;
  width: 100%;
}

.slide-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.slide-media-frame {
  position: absolute;
  inset: 0;
}

.slide-media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
}

.slide-media-ring,
.slide-rings,
.slider-fx {
  display: none;
}

.slide-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(26, 39, 69, 0.78) 0%, rgba(26, 39, 69, 0.22) 42%, transparent 70%);
}

.slide-copy {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 2.7rem;
  z-index: 3;
  width: auto;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.slide-copy > div:first-child {
  width: 2.75rem;
  margin-bottom: 0.5rem;
}

.slide-copy h1 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 0;
}

.slide-copy h1 + a {
  margin-top: 0.7rem;
}

.slide-copy a {
  padding: 0.5rem 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.2;
}

.slide-counter,
.slide-navs {
  display: none;
}

.slide-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.slide-dots {
  display: flex;
  gap: 0.5rem;
}

.slide-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slide-dot.active {
  background: #B3A965;
  transform: scale(1.25);
}

@media (max-width: 767px) {
  .slider-container {
    height: min(88vw, 32rem);
    min-height: 22rem;
  }
}

@media (min-width: 768px) {
  body.home-page {
    height: 100dvh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .home-page .home-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .home-page .slider-container {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }

  .home-page > footer {
    flex: 0 0 auto;
  }

  .slider-container {
    --parx: 0;
    --pary: 0;
    cursor: default;
    background-color: #1A2745;
    background-image: linear-gradient(160deg, #15233c 0%, #1A2745 48%, #1e3258 100%);
  }

  .slide {
    background: transparent;
    z-index: 2;
    transition: opacity 0.5s ease;
  }

  .slider-fx {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
  }

  .slider-fx-waves-wrap,
  .slider-fx-chart-wrap {
    position: absolute;
    inset: 0;
    will-change: transform;
  }

  .slider-fx-waves-wrap {
    transform: translate3d(calc(var(--parx) * -22px), calc(var(--pary) * -12px), 0);
    transition: transform 0.5s ease-out;
  }

  .slider-fx-chart-wrap {
    transform: translate3d(calc(var(--parx) * 10px), calc(var(--pary) * 6px), 0);
    transition: transform 0.65s ease-out;
  }

  .slider-fx-waves {
    position: absolute;
    left: 30%;
    top: -18%;
    width: 82%;
    height: 130%;
    object-fit: contain;
    opacity: 0.42;
    animation: wavesDrift 36s ease-in-out infinite;
  }

  .slider-fx-chart {
    position: absolute;
    right: 0;
    bottom: 0;
    top: auto;
    width: 58%;
    height: 78%;
    object-fit: contain;
    object-position: right bottom;
    opacity: 0.11;
    animation: chartDrift 52s ease-in-out infinite;
  }

  .slide-layout {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 4.75rem 0 3.25rem;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
  }

  .slide-media {
    position: relative;
    inset: auto;
    flex: 0 0 44%;
    width: 44%;
    height: 100%;
    background: transparent;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    container-type: size;
  }

  .slide-media-frame {
    position: relative;
    inset: auto;
    width: min(100cqi, 94cqh);
    height: auto;
    aspect-ratio: 1;
    max-width: 100%;
  }

  .slide-media-img {
    position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    display: block;
    width: 77%;
    height: 77%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1.03);
    z-index: 1;
  }

  .slide.active .slide-media-img {
    animation: photoSettle 1.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .slide-rings {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(calc(var(--parx) * 14px), calc(var(--pary) * 10px), 0);
    transition: transform 0.55s ease-out;
  }

  .slide.active .slide-rings {
    animation: layerFade 0.95s ease-out 0.12s forwards;
  }

  .slide-media-ring {
    display: block;
    position: absolute;
    object-fit: contain;
    pointer-events: none;
    transform-origin: 50% 50%;
    animation-play-state: paused;
  }

  .slide.active .slide-media-ring {
    animation-play-state: running;
  }

  .ring-a {
    inset: 0;
    width: 100%;
    height: 100%;
    animation: ringSpin 88s linear infinite;
    animation-play-state: paused;
  }

  .ring-b {
    inset: -4%;
    width: 108%;
    height: 108%;
    opacity: 0.32;
    animation: ringSpin 136s linear infinite reverse;
    animation-play-state: paused;
  }

  .slide.active .ring-a,
  .slide.active .ring-b {
    animation-play-state: running;
  }

  .slide-media::after {
    display: none;
  }

  .slide-copy {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    flex: 1 1 auto;
    width: auto;
    max-width: 28rem;
    justify-content: center;
    padding: 0 1.25rem 0 3.25rem;
  }

  .slide-copy > div:first-child,
  .slide-copy h1,
  .slide-copy a {
    opacity: 0;
  }

  .slide.active .slide-copy > div:first-child {
    animation: barIn 0.7s ease-out 0.28s forwards;
  }

  .slide.active .slide-copy h1 {
    animation: copyIn 0.85s ease-out 0.38s forwards;
  }

  .slide.active .slide-copy a {
    animation: copyIn 0.8s ease-out 0.55s forwards;
  }

  .slide-copy > div:first-child {
    display: block;
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-80%);
    width: 3px !important;
    height: 3.6rem !important;
    margin: 0 !important;
    background: #B3A965;
  }

  .slide-copy h1 {
    color: #B3A965 !important;
    font-size: clamp(1.85rem, 2.5vw, 2.65rem);
    line-height: 1.18;
    max-width: 11.5ch;
    text-shadow: none;
  }

  .slide-copy h1 + a {
    margin-top: 1.35rem;
  }

  .slide-copy a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.05rem;
    font-size: 0.78rem;
    line-height: 1.2;
    font-weight: 600;
    background: transparent !important;
    color: #B3A965 !important;
    border: 1px solid #B3A965;
  }

  .slide-copy a:hover {
    background: #B3A965 !important;
    color: #1A2745 !important;
  }

  .slide-copy a::after {
    content: "→";
    font-size: 0.85em;
  }

  .slide-counter {
    display: block;
    position: absolute;
    left: 1.35rem;
    bottom: 1.35rem;
    z-index: 21;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    line-height: 1.2;
  }

  .slide-counter-current {
    display: block;
    color: #ffffff;
    font-size: 0.92rem;
    letter-spacing: 0.12em;
    padding-bottom: 0.35rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }

  .slide-controls {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 1.35rem;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .slide-dots {
    flex-direction: row;
    gap: 0.38rem;
  }

  .slide-dot {
    width: 0.4rem;
    height: 0.4rem;
  }

  @keyframes wavesDrift {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-6%, 3%, 0); }
  }

  @keyframes chartDrift {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-2.5%, -1%, 0); }
  }

  @keyframes ringSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  @keyframes photoSettle {
    from {
      transform: translate(-50%, -50%) scale(1.03);
      opacity: 0.88;
    }
    to {
      transform: translate(-50%, -50%) scale(1);
      opacity: 1;
    }
  }

  @keyframes layerFade {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes copyIn {
    from {
      opacity: 0;
      transform: translateX(-28px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes barIn {
    from {
      opacity: 0;
      transform: translateY(-80%) translateX(-14px);
    }
    to {
      opacity: 1;
      transform: translateY(-80%) translateX(0);
    }
  }
}

@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
  .slider-fx-waves,
  .slider-fx-chart,
  .slide-media-ring,
  .slide.active .slide-media-img,
  .slide.active .slide-rings,
  .slide.active .slide-copy > div:first-child,
  .slide.active .slide-copy h1,
  .slide.active .slide-copy a {
    animation: none !important;
  }

  .slide-media-img,
  .slide.active .slide-media-img {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
  }

  .slide-rings,
  .slide-copy > div:first-child,
  .slide-copy h1,
  .slide-copy a {
    opacity: 1 !important;
  }

  .slider-fx-waves-wrap,
  .slider-fx-chart-wrap,
  .slide-rings {
    transform: none !important;
    transition: none !important;
  }
}

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .slider-container {
    cursor: pointer;
  }
}

.detail-copy p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.detail-hero-img {
  min-height: 0;
}

.detail-hero-img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.45);
}

.text-shadow-sm {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #B3A965;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1A2745;
}
