html {
  font-size: 14px;
}

/* Full-bleed figure images — the template's own `figure img` rule only
   sets max-width:100%, so on wide viewports an image narrower than the
   viewport renders at its native size instead of stretching, leaving a
   visible gap on one side inside a `.full` (100vw) row. Force cover
   fill for the common `<div class="... full ..."><figure class="has-cover">`
   pattern used throughout the site. Scoped to `.full` rows specifically
   so it doesn't touch figures elsewhere (zoom-gallery, portfolio grid,
   etc. already size their own images explicitly). */
.content-row.full > figure.has-cover img,
.content-row.full figure.has-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Footer contact line (phone/email) — see Pages/Shared/_Footer.cshtml.
   Lives here, not in a page @section, since the footer partial renders
   on every page and some of those pages already define @section Styles
   themselves. */
.footer-contact {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 13px;
}

.footer-contact a {
  color: inherit;
  opacity: .7;
  text-decoration: none;
}

.footer-contact a:hover {
  opacity: 1;
}

.socials .fa-brands {
  font-size: 15px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Index: full-bleed intro video — viewport-centered breakout + flex frame */
.intro-video-bleed {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  overflow: hidden;
}

.intro-video-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  min-height: 92vh;
  max-height: 92vh;
}

.intro-video {
  width: 100%;
  max-width: 100%;
  min-height: 92vh;
  height: 92vh;
  max-height: 92vh;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Anasayfa: video ikinci hero gibi tam viewport yüksekliği */
.intro-video-hero-fullscreen {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  display: block;
}

.intro-video-hero-fullscreen .intro-video-frame {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  width: 100%;
  align-items: stretch;
}

.intro-video-hero-fullscreen .intro-video {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  flex: 1 0 auto;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Hover-video figures: static image by default, video cross-fades in on
   hover (desktop) or tap (touch — see site.js for the tap-to-toggle
   behavior on devices with no hover). */
.has-hover-video {
  position: relative;
}

.has-hover-video img {
  transition: opacity .5s ease;
}

.has-hover-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}

.has-hover-video.is-playing img {
  opacity: 0;
}

.has-hover-video.is-playing video {
  opacity: 1;
}

.has-hover-video figcaption {
  position: absolute;
  z-index: 2;
}

/* Touch-only tap affordance: a small play glyph hints the tile is
   interactive, since there's no hover state to discover it otherwise.
   Fades out once the clip is playing. */
@media (hover: none) {
  .has-hover-video {
    cursor: pointer;
  }

  .has-hover-video::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 55% center;
    background-size: 20px;
    z-index: 2;
    opacity: 1;
    transition: opacity .3s ease;
    pointer-events: none;
  }

  .has-hover-video.is-playing::after {
    opacity: 0;
  }
}

/* Next Chapter — fixed bottom sheet shared across every page via
   Pages/Shared/_NextChapter.cshtml. Lives here (not in a page @section)
   because partial views can't safely define @section blocks when the
   host page already defines one of its own. */
.next-chapter-sheet {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: min(460px, 55vh);
  z-index: 9998;
  background: #171717;
  transform: translateY(105%);
  opacity: 0;
  visibility: hidden;
  transition: transform 1.1s cubic-bezier(.16,1,.3,1), opacity 1.1s cubic-bezier(.16,1,.3,1), visibility 1.1s;
  overflow: hidden;
}

.next-chapter-sheet.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.next-chapter-sheet-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  color: #fff;
  text-decoration: none;
}

.next-chapter-sheet-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.next-chapter-sheet-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.2s cubic-bezier(.19,1,.22,1);
}

.next-chapter-sheet-link:hover .next-chapter-sheet-image img {
  transform: scale(1);
}

.next-chapter-sheet-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 48%, rgba(0,0,0,.18) 100%);
}

.next-chapter-sheet-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  padding-left: 9vw;
  padding-right: 30px;
}

.next-chapter-small {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 14px;
  opacity: .75;
}

.next-chapter-title {
  font-size: clamp(54px, 7vw, 115px);
  line-height: .9;
  font-weight: 500;
  letter-spacing: -.045em;
  margin-bottom: 22px;
}

.next-chapter-description {
  max-width: 610px;
  font-size: 18px;
  line-height: 1.6;
  opacity: .88;
}

.next-chapter-action {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  font-size: 18px;
  font-weight: 500;
}

.next-chapter-action i {
  transition: transform .3s ease;
}

.next-chapter-sheet-link:hover .next-chapter-action i {
  transform: translateX(8px);
}

.next-chapter-close {
  position: absolute;
  right: 35px;
  top: 30px;
  width: 46px;
  height: 46px;
  z-index: 3;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  color: #fff;
  cursor: pointer;
  font-size: 17px;
}

/* Logo marquee — brand-partner strip built on the template's own
   .moving-gallery scroll component (see Certificates page), just
   re-sized: the template's default li is 40vw (tuned for full-bleed
   photography), way too large for a row of small logo marks. */
.logo-marquee.moving-gallery .wrapper-gallery {
  align-items: center;
}

.logo-marquee.moving-gallery li {
  width: 220px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-marquee.moving-gallery img {
  max-height: 36px;
  width: auto;
  max-width: 140px;
  filter: brightness(0) invert(1);
  opacity: .8;
  transition: opacity .3s ease;
}

.logo-marquee.moving-gallery img:hover {
  opacity: 1;
}

/* Same marquee, used on a light-section background (Index homepage) —
   drop the white-invert filter used for the dark nav so marks stay
   visible on white. */
.logo-marquee--onlight.moving-gallery img {
  filter: none;
  opacity: .75;
}

.logo-marquee--onlight.moving-gallery img:hover {
  opacity: 1;
}

/* Scattered logo grid — Index homepage "clients" section. Each tile
   drifts at its own scroll-linked rate (.vertical-parallax, same
   mechanism as the About page stat boxes) so the row reads as loosely
   scattered rather than a rigid line, and gently flows as you scroll. */
.logo-scatter-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  padding: 20px 20px 0;
}

.logo-scatter-item {
  width: 190px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f6f4;
  border-radius: 4px;
}

.logo-scatter-item:nth-child(odd) {
  margin-top: 0;
}

.logo-scatter-item:nth-child(even) {
  margin-top: 46px;
}

.logo-scatter-item img {
  max-height: 42px;
  width: auto;
  max-width: 130px;
  opacity: .85;
  transition: opacity .3s ease, transform .3s ease;
}

.logo-scatter-item:hover img {
  opacity: 1;
  transform: scale(1.06);
}

@media (max-width: 767px) {
  .logo-scatter-item:nth-child(even) {
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  .next-chapter-sheet {
    height: 60vh;
  }

  .next-chapter-sheet-content {
    padding: 55px 30px 35px 30px;
    justify-content: flex-end;
  }

  .next-chapter-title {
    font-size: 52px;
  }

  .next-chapter-description {
    font-size: 15px;
  }

  .next-chapter-close {
    right: 20px;
    top: 20px;
  }
}