#files {
  position: relative;
}

#files>.container {
  position: relative;
  z-index: 1;
}

#files::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
  mix-blend-mode: unset;
  /* relax mix-blend-mode on iOS to avoid artifacts */
  will-change: opacity;
  /* add will-change for smoother GPU compositing */
}

/* Tablet optimizations */
@media (max-width: 768px) {

  /* lighter overlay for readability but less dark */
  #files::before {
    display: block;
    background: radial-gradient(80% 60% at 50% 35%, rgba(0, 0, 0, .18), rgba(0, 0, 0, .38));
  }

  /* ensure 2 columns on tablets as well */
  .files-thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .files-thumbs .thumb {
    width: 100%;
    height: 120px;
    border-radius: 10px;
  }
}

/* Phone optimizations */
@media (max-width: 576px) {

  /* On phones center the background images horizontally to avoid showing only the right edge */
  .section-bg {
    background-position: center center !important;
  }

  #files {
    background-position: center center !important;
  }

  #kopanel {
    background-position: center center !important;
  }

  #files {
    padding-top: calc(var(--nav-h) + 8px);
  }

  #files::before {
    display: block;
    background: linear-gradient(120deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, .42));
  }

  #filesTitle {
    text-align: center;
    margin-bottom: .5rem;
    font-size: clamp(1.05rem, 4.2vw, 1.2rem);
  }

  /* Features: 5 satır ve yatay kaydırılabilir */
  .files-features {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(15, auto);
    /* her sütun görünür alana eşit genişlikte olsun -> tek seferde 1 sütun */
    grid-auto-columns: 100%;
    column-gap: 0;
    row-gap: .35rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    padding-bottom: 6px;
    font-size: .95rem;
    -webkit-overflow-scrolling: touch;
  }

  .files-features li {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* Görseller: 2 sütun x 2 satır (toplam 4) */
  .files-thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
  }

  .files-thumbs .thumb {
    width: 100%;
    height: 120px;
  }

  /* tighten CTAs */
  #files #filesThumbs+.d-flex {
    gap: .4rem !important;
    margin-top: .6rem !important;
  }

  /* Hide the slider image on mobile but keep the action buttons */
  .files-slider-card .files-slider {
    display: none !important;
  }
}

/* Tabs (Files) mobile: tek satır, yana kaydırmalı */
@media (max-width: 576px) {
  .tab-cards .nav-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: .35rem;
    -webkit-overflow-scrolling: touch;
  }

  .tab-cards .nav-pills .nav-link {
    flex: 0 0 auto;
    padding: .45rem .8rem;
    font-size: .85rem;
    line-height: 1;
    white-space: nowrap;
    border-radius: 999px;
  }
}

/* assets/css/style.css */
:root {
  --bg: #0f1116;
  --bg-soft: #141822;
  --text: #e5e7eb;
  --muted: #aeb3c2;
  --primary: #22c55e;
  /* green */
  --accent: #facc15;
  /* yellow */
  --nav-h: 72px;
  /* fixed navbar approx height on mobile */
}

/* Global: prevent horizontal scrolling on mobile */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.main-wrapper {
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
}


/* ===== Files Section ===== */
.files-features {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: .25rem;
  font-size: .925rem;
}

.files-features li {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  color: #fff;
  line-height: 1.25;
}

.files-features li::before {
  content: "✔";
  color: var(--accent);
  margin-top: .15rem;
  font-size: .9rem;
}

@media (max-width: 992px) {
  .files-features {
    grid-template-columns: 1fr;
  }
}

/* Features loading skeleton */
.files-features .ff-skeleton {
  align-items: center;
}

.files-features .ff-skeleton::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .12);
  box-shadow: none;
}

.files-features .ff-skeleton span {
  display: block;
  height: 12px;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .14), rgba(255, 255, 255, .06));
  background-size: 200% 100%;
  animation: ffShimmer 1.4s ease-in-out infinite;
}

@keyframes ffShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

#filesTitle {
  margin-bottom: .75rem;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
}

.files-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 150px);
  gap: 14px;
  justify-content: center;
}

.files-thumbs .thumb {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .2);
  box-shadow: 0 7px 16px rgba(0, 0, 0, .4);
  display: block;
}

.files-thumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.files-thumbs .thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .45);
}

/* Files thumbs container: remove panel background */
.files-layout .glass {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  border: 0 !important;
}

/* Files slider card: push down within Files section */
.files-slider-card {
  position: relative;
  margin-top: 12px;
}

@media (max-width: 576px) {
  .files-slider-card {
    margin-top: 12px;
  }

  /* tighten vertical gap between stacked cards */
  .files-layout {
    row-gap: 10px !important;
  }
}

/* Files CTA buttons: bring closer */
#files #filesThumbs+.d-flex {
  justify-content: center !important;
  gap: .5rem !important;
  /* tighten spacing */
}

/* Files single-image slider (desktop and general) */
.files-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  border: 0;
  box-shadow: 0 7px 16px rgba(0, 0, 0, .35);
  background: transparent;
  padding: 0;
}

.files-slider .slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: translateX(0);
  opacity: 1;
  transition: transform .45s ease, opacity .45s ease;
  background: transparent;
}

.files-slider .slide-img.next {
  transform: translateX(22px);
  opacity: 0;
}

.files-slider .slide-img.in {
  transform: translateX(0);
  opacity: 1;
}

.files-slider .slide-img.out {
  transform: translateX(-22px);
  opacity: 0;
}

@supports not (aspect-ratio: 16 / 9) {
  .files-slider {
    position: relative;
  }

  .files-slider::before {
    content: "";
    display: block;
    padding-top: 56.25%;
  }

  .files-slider>* {
    position: absolute;
    inset: 0;
  }
}

/* aspect-ratio handles responsive height; no explicit heights needed */

/* Navbar: mobile = transparent by default; dark ONLY when menu is open */
@media (max-width: 991.98px) {
  header .navbar {
    background: transparent !important;
  }

  /* Ensure mobile menu has background immediately on open (during .collapsing too) */
  header .navbar .navbar-collapse {
    background: rgba(10, 14, 22, .95);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 10px 14px;
    margin-top: 8px;
    transition: none;
    z-index: 1001;
  }

  header .navbar .navbar-collapse.collapsing,
  header .navbar .navbar-collapse.show {
    background: rgba(10, 14, 22, .95);
    backdrop-filter: blur(6px);
  }

  header .navbar .nav-link {
    color: #e5e7eb !important;
  }

  header .navbar .nav-link:hover {
    color: #fff !important;
  }
}

/* ===== References Section (Grid) ===== */
.refs-wrap {
  position: relative;
  padding: 24px 0;
}

.refs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: min(3vw, 28px);
}

.refs-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: min(2vw, 16px);
  align-content: start;
}

.refs-center-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.refs-center {
  width: 500px;
  height: 500px;
  border-radius: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .8);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  background: #0e1117;
}

.refs-center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.refs-version {
  color: #e5e7eb;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.refs-col .ref-dot {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .75);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.refs-col .ref-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.refs-col .ref-dot:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .45);
}

@media (max-width: 1200px) {
  .refs-center {
    width: 420px;
    height: 420px;
  }
}

@media (max-width: 992px) {
  .refs-grid {
    grid-template-columns: 1fr;
  }

  .refs-center {
    width: 360px;
    height: 360px;
    margin-inline: auto;
  }

  .refs-col {
    grid-template-columns: repeat(3, minmax(80px, 1fr));
    justify-items: center;
  }
}

/* Mobile layout: center square on top, icons below as 3x3 scrollable grid */
@media (max-width: 576px) {
  .refs-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .refs-center {
    width: min(92vw, 360px);
    height: auto;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
  }

  .refs-center-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .refs-col {
    /* Tam 3x3 görünür olacak şekilde boyutları hesapla */
    --gap: 0px;
    /* satırlar ve sütunlar arasında boşluk olmasın */
    --dot: calc((100% - (2 * var(--gap))) / 3);
    grid-template-columns: repeat(6, 1fr) !important;
    /* mobilde daireleri yarı boyuta indir (3 yerine 6 sütun) */
    grid-auto-rows: auto;
    /* yüksekliği içerik (aspect-ratio) belirleyecek */
    gap: 4px !important;
    /* küçük bir aralık */
    row-gap: 0 !important;
    column-gap: 0 !important;
    /* Yüksekliği tam 3 satır + 2 gap olacak şekilde sabitle */
    height: auto;
    /* içerik yüksekliği kadar; görünür satırları içeriğe göre hesapla */
    overflow-y: auto;
    padding: 0;
    /* iç boşluk yok: hizalama tam olsun */
    scroll-snap-type: y mandatory;
    /* satırların tam görünmesi için snap */
    scroll-padding-block: 0;
    /* üst/alt kaydırma ofsetini kaldır */
    align-content: start;
    /* grid satırları üstten başlasın */
    justify-items: stretch !important;
    /* ortalama kaynaklı boşlukları engelle */
    line-height: 0;
    /* inline boşlukları engelle */
    width: min(92vw, 360px);
    /* grid toplam genişliği */
    margin-inline: auto;
    /* ortala */
    align-self: center;
    /* flex içinde ortala */
  }

  .refs-col>* {
    margin: 0 !important;
  }

  .refs-col .ref-dot {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    scroll-snap-align: start;
    scroll-margin-block: 0;
    box-sizing: border-box;
    display: block;
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    border-radius: 50% !important;
    overflow: hidden;
  }

  .refs-col .ref-dot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
  }

  /* Kare alanın arka planını sayfa ile tutarlı yap */
  .refs-center {
    background: transparent;
  }

  .refs-version {
    text-align: center;
  }
}

/* ===== Section Background (shared) ===== */
.section-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .45));
}

.section-bg>.container {
  position: relative;
  z-index: 1;
}

/* Specific background for referans section */
#referans.section-bg {
  background-image: url('../img/ref.jpg');
}

/* ===== Fullscreen Lightbox ===== */
.kp-lightbox[hidden] {
  display: none !important;
}

.kp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1080;
  /* above modal */
  background: rgba(0, 0, 0, .85);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  align-items: center;
  justify-items: center;
}

.kpl-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1rem;
  color: #e5e7eb;
}

.kpl-counter {
  font-weight: 600;
  opacity: .9;
}

.kpl-actions {
  display: flex;
  gap: .5rem;
}

.kpl-btn {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.kpl-btn:hover {
  background: rgba(255, 255, 255, .12);
}

.kpl-figure {
  margin: 0;
  max-width: min(92vw, 1100px);
  max-height: 78vh;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: .6rem;
  align-items: center;
  justify-items: center;
  padding: .6rem;
  border-radius: 14px;
  background: #10131a;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 255, 255, .08);
  position: relative;
}

.kpl-figure img {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  transition: transform .2s ease;
  position: relative;
  z-index: 1;
}

.kpl-figure figcaption {
  color: #cbd5e1;
  font-size: .9rem;
  opacity: .85;
}

.kpl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  background: rgba(0, 0, 0, .35);
  display: grid;
  place-items: center;
  z-index: 3;
  backdrop-filter: blur(2px);
}

.kpl-nav:hover {
  background: rgba(255, 255, 255, .14);
}

.kpl-prev,
.fl-prev {
  left: 18px;
}

.kpl-next,
.fl-next {
  right: 18px;
}

@media (max-width: 576px) {
  .kpl-figure {
    max-width: 96vw;
    max-height: 70vh;
  }

  .kpl-figure img {
    max-height: 58vh;
  }

  .kpl-nav {
    width: 48px;
    height: 48px;
  }
}

/* ===== KoPanel Section ===== */
#kopanel .badge {
  box-shadow: 0 6px 16px rgba(250, 204, 21, .15);
}

.kopanel-left h2 {
  font-size: clamp(1.6rem, 4.2vw, 2.4rem);
}

.kopanel-left p {
  max-width: 60ch;
}

.kopanel-extreme {
  position: relative;
}

.kopanel-visual {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kopanel-visual .kv-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.kopanel-visual .kv-bg.fx-ring {
  background: none !important;
  opacity: 0 !important;
}

.kopanel-visual .kv-img {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45));
}

/* Extreme stage shapes */
.kopanel-visual .kv-shape {
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.kopanel-visual .kv-shape-1 {
  inset: -12% -10% auto -10%;
  height: 60%;
  border-radius: 40% 60% 40% 60% / 50% 45% 55% 50%;
  background: radial-gradient(60% 60% at 50% 40%, rgba(250, 204, 21, .12), rgba(250, 204, 21, .02) 60%, transparent 70%);
  filter: blur(18px);
}

.kopanel-visual .kv-shape-2 {
  inset: auto -18% -8% auto;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34, 197, 94, .14), rgba(34, 197, 94, 0));
  filter: blur(14px);
}

/* Floating active label on stage */
.kopanel-visual .kv-label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.kopanel-visual .kv-label span {
  display: inline-block;
  padding: .4rem .75rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .3px;
  color: #0b1220;
  background: linear-gradient(90deg, #facc15, #22c55e);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
}

/* Vertical tabs look */
.kp-tabs .nav-link {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kp-tabs.flex-lg-column .nav-link {
  width: 100%;
}

@media (max-width: 992px) {
  .kopanel-visual {
    height: 320px;
  }

  .kopanel-visual .kv-img {
    max-width: 440px;
  }
}

@media (max-width: 576px) {
  .kopanel-visual {
    height: 240px;
  }

  .kopanel-visual .kv-img {
    max-width: 320px;
  }
}

/* Make left column sticky on desktop so it doesn't shift with right visuals */
@media (min-width: 992px) {
  .kopanel-left {
    position: sticky;
    top: calc(var(--nav-h) + 16px);
  }
}

/* KoPanel: Clean Segmented Tabs */
#kopanel .nav-pills {
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .25rem;
  scrollbar-width: none;
}

#kopanel .nav-pills::-webkit-scrollbar {
  display: none;
}

#kopanel .nav-pills .nav-link {
  color: #f3f4f6;
  background: rgba(18, 22, 30, .42);
  /* increase base visibility */
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  padding: .6rem 1rem;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 6px 14px rgba(0, 0, 0, .25);
  backdrop-filter: blur(2px);
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

#kopanel .nav-pills .nav-link:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 8px 18px rgba(0, 0, 0, .32);
}

#kopanel .nav-pills .nav-link.active {
  background: #343b48;
  border-color: rgba(255, 255, 255, .42);
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12), 0 10px 22px rgba(0, 0, 0, .35);
}

#kopanel .nav-pills .nav-link:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, .25);
}

/* KoPanel: Action Buttons like reference */
.btn-kp-primary {
  color: #0b1220;
  /* dark text over teal */
  background: linear-gradient(180deg, #34d399, #10b981);
  /* emerald */
  border: 1px solid rgba(16, 185, 129, .6);
  box-shadow: 0 8px 18px rgba(16, 185, 129, .25), inset 0 0 0 1px rgba(255, 255, 255, .2);
}

.btn-kp-primary:hover {
  filter: brightness(.95);
  box-shadow: 0 10px 24px rgba(16, 185, 129, .32), inset 0 0 0 1px rgba(255, 255, 255, .22);
}

.btn-kp-primary:active {
  transform: translateY(1px);
}

.btn-kp-primary:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .35);
}

.btn-kp-secondary {
  color: #0f1116;
  /* dark text over gold */
  background: linear-gradient(180deg, #f3d17a, #d6a843);
  /* gold */
  border: 1px solid rgba(214, 168, 67, .7);
  box-shadow: 0 8px 18px rgba(214, 168, 67, .25), inset 0 0 0 1px rgba(255, 255, 255, .25);
}

.btn-kp-secondary:hover {
  filter: brightness(.96);
  box-shadow: 0 10px 24px rgba(214, 168, 67, .32), inset 0 0 0 1px rgba(255, 255, 255, .28);
}

.btn-kp-secondary:active {
  transform: translateY(1px);
}

.btn-kp-secondary:focus {
  box-shadow: 0 0 0 3px rgba(214, 168, 67, .35);
}

@media (max-width: 576px) {

  #kopanel .btn-kp-primary,
  #kopanel .btn-kp-secondary {
    flex: 1 1 auto;
  }
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ===== Floating Audio Player ===== */
.site-audio {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 1090;
  background: rgba(20, 24, 34, .8);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  padding: .5rem .6rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
}

.site-audio .sap-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  line-height: 1;
}

.site-audio .sap-btn:hover {
  background: rgba(255, 255, 255, .12);
}

.site-audio .sap-meta {
  min-width: 140px;
}

.site-audio .sap-title {
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.1;
}

.site-audio .sap-status {
  font-size: .75rem;
  opacity: .8;
}

.site-audio .sap-volume {
  width: 120px;
  accent-color: var(--accent);
}

@media (max-width: 576px) {

  /* Compact player: place next to logo in navbar on mobile */
  .site-audio {
    top: 10px;
    left: clamp(120px, 28vw, 180px);
    right: auto;
    bottom: auto;
    /* logo genişliğine göre uyumlu */
    padding: .25rem .35rem;
    gap: .25rem;
    border-radius: 10px;
    z-index: 1101;
    padding-inline-start: calc(env(safe-area-inset-left, 0px) + .35rem);
  }

  .site-audio .sap-meta,
  .site-audio .sap-volume {
    display: none !important;
  }

  .site-audio .sap-btn {
    width: 28px;
    height: 28px;
  }
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-grid .g-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #0e1117;
  border: 1px solid rgba(255, 255, 255, .08);
}

.gallery-grid .g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Scroll Snap fullpage */
.main-wrapper {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.section {
  min-height: 100vh;
  min-height: 100dvh;
  /* more reliable on mobile browsers */
  scroll-snap-align: start;
  display: flex;
  align-items: center;
}

/* Align content to top for specific sections */
.section-top {
  align-items: flex-start;
  padding-top: var(--nav-h);
}

@media (min-width: 992px) {
  :root {
    --nav-h: 88px;
  }
}

/* Hero */
.hero {
  /* Local image with base URL */
  background:
    linear-gradient(120deg, rgba(20, 24, 34, .7), rgba(20, 24, 34, .7)),
    url('../img/maradon.jpg') right center / cover no-repeat;
}

/* Section backgrounds similar to hero */
#files {
  background:
    linear-gradient(120deg, rgba(20, 24, 34, .45), rgba(20, 24, 34, .45)),
    url('../img/1.jpg') right center / cover no-repeat;
}

#about {
  background:
    linear-gradient(120deg, rgba(20, 24, 34, .7), rgba(20, 24, 34, .7)),
    url('../img/71.jpg') center center / cover no-repeat;
}

#kopanel {
  background:
    linear-gradient(120deg, rgba(20, 24, 34, .7), rgba(20, 24, 34, .7)),
    url('../img/2.png') right center / cover no-repeat;
}

.section#contact {
  background:
    linear-gradient(120deg, rgba(20, 24, 34, .7), rgba(20, 24, 34, .7)),
    url('../img/11.jpg') center center / cover no-repeat;
}

.contact-wrap {
  position: relative;
  z-index: 1;
}

.contact-card h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
}

.contact-card .form-label {
  font-weight: 600;
  color: #e5e7eb;
}

.contact-card .form-control {
  background: #1a1f2b !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  color: #e5e7eb !important;
}

.contact-card .form-control:focus {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .25);
  border-color: rgba(34, 197, 94, .5) !important;
}

.contact-logo {
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45));
}

.contact-side {
  text-align: center;
}

.btn-whatsapp {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #fff;
  background: #25D366;
  border: 0;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .35);
  font-size: 1.8rem;
}

.btn-whatsapp:hover {
  filter: brightness(.95);
  box-shadow: 0 12px 28px rgba(37, 211, 102, .45);
}

.btn-whatsapp i {
  line-height: 1;
}

.contact-social .btn-social {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.contact-social .btn-social:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .28);
}

.contact-social .btn-social i {
  font-size: 1.35rem;
}

@media (max-width: 576px) {
  .contact-logo {
    max-width: 150px;
  }
}

.hero-visual {
  width: clamp(200px, 32vw, 460px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  /* overflow must be visible so rings can sit outside */
  overflow: visible;
  transform: translateY(40px);
  /* shift the circle down reliably */
  position: relative;
  /* for the decorative rings */
  /* Outermost white ring using outline beyond gold rings */
  outline: 2px solid rgba(255, 140, 0, .95);
  /* orange */
  outline-offset: 28px;
  /* slightly smaller outer ring */
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  inset: -10px;
  /* distance between inner circle and ring */
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero-visual::before {
  border: 2px solid rgba(250, 204, 21, .55);
  /* primary gold ring */
}

.hero-visual::after {
  inset: -14px;
  /* second, wider ring (reduced) */
  border: 1px solid rgba(250, 204, 21, .25);
}

.hero-visual .mask {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(60% 60% at 50% 40%, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02) 60%, transparent 65%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  position: relative;
  z-index: 2;
  /* keep media above rings */
}

.hero-visual .mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* always fill the circle; no shrinking inside */
  object-position: center;
  padding: 0;
  /* avoid inner shrinking on small screens */
  display: block;
}

.hero-visual .mask video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #000;
  /* avoids transparency before first frame */
  border: 0;
  transform: scale(1.06);
  /* reduced zoom to match smaller circle */
  transform-origin: center;
}

/* fine tune zoom per breakpoint */
@media (min-width: 992px) {
  .hero-visual .mask video {
    transform: scale(1.04);
  }
}

@media (max-width: 576px) {
  .hero-visual .mask video {
    transform: scale(1.12) translateY(-2px);
  }
}

/* Optional fine-tuning for very small phones */
@media (max-width: 360px) {
  .hero-visual {
    width: clamp(220px, 78vw, 400px);
  }
}

/* Mobile refinements */
@media (max-width: 576px) {
  .hero {
    background-position: center top;
  }

  .hero .title-xl {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    margin-bottom: .5rem;
  }

  .hero h5 {
    font-size: 1rem;
    margin-bottom: .5rem;
    line-height: 1.3;
  }

  .hero-visual {
    width: min(240px, 70%);
  }

  .badge-accent {
    padding: .45rem .85rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(250, 204, 21, .15);
    margin-bottom: .5rem;
  }

  .hero .lead {
    font-size: .95rem;
    line-height: 1.45;
    margin-bottom: 1rem;
    max-width: 48ch !important;
  }

  .hero .d-flex.gap-3 {
    gap: .75rem !important;
  }

  .hero .btn {
    padding: .55rem 1rem;
    font-size: .95rem;
  }

  .fp-nav-btn {
    display: none !important;
  }

  /* Center texts and buttons in KoPanel on mobile */
  #kopanel .kopanel-left {
    text-align: center;
  }

  #kopanel .kopanel-left p {
    margin-left: auto;
    margin-right: auto;
  }

  #kopanel .kp-actions {
    justify-content: center !important;
  }

  /* Center KoPanel tab buttons on mobile */
  #kopanel .nav-pills {
    justify-content: center !important;
    gap: .5rem;
  }

  #kopanel .nav-pills .nav-link {
    flex: 0 0 auto;
  }
}

.hero .title-xl {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
}

.hero .lead {
  color: var(--muted);
}

.badge-accent {
  color: #111;
  background: var(--accent)
}

.btn-primary-soft {
  background: var(--primary);
  border: none
}

.btn-primary-soft:hover {
  filter: brightness(0.95)
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, .5)
}

.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .1)
}

/* Left side caret buttons */
.fp-nav-btn {
  position: fixed;
  inset-inline-start: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
}

.fp-nav-btn .btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

/* util */
.text-muted-70 {
  color: rgba(229, 231, 235, .7) !important
}

/* Navbar tweaks for dark bg */
.navbar-toggler {
  filter: invert(1) grayscale(1);
}

.navbar .nav-link {
  color: #fff !important;
  opacity: .85;
  transition: color .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #fff !important;
  opacity: 1;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.navbar .nav-link.active {
  color: #fff !important;
  opacity: 1;
  box-shadow: inset 0 -2px 0 var(--primary);
}

/* Tabs + Cards (files section) - improved visibility */
.tab-cards .nav-pills {
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tab-cards .nav-pills .nav-link {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: .6rem 1.25rem;
  font-weight: 600;
  letter-spacing: .2px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.tab-cards .nav-pills .nav-link:hover {
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .12);
  color: #fff;
}

.tab-cards .nav-pills .nav-link:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, .35), 0 8px 20px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.tab-cards .nav-pills .nav-link.active {
  background: #3a4050;
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12), 0 10px 24px rgba(0, 0, 0, .35);
}

/* Per-tab unique colors */
.tab-cards #v1098-tab {
  background: linear-gradient(180deg, #34d399, #10b981);
  border-color: rgba(16, 185, 129, .7);
  color: #0b1220;
  box-shadow: 0 8px 18px rgba(16, 185, 129, .25), inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.tab-cards #v1098-tab:hover {
  filter: brightness(.96);
  box-shadow: 0 12px 24px rgba(16, 185, 129, .32), inset 0 0 0 1px rgba(255, 255, 255, .22);
}

.tab-cards #v1098-tab.active {
  background: linear-gradient(180deg, #10b981, #059669);
  border-color: rgba(16, 185, 129, .9);
  color: #091017;
}

.tab-cards #v2383-tab {
  background: linear-gradient(180deg, #f3d17a, #d6a843);
  border-color: rgba(214, 168, 67, .8);
  color: #0f1116;
  box-shadow: 0 8px 18px rgba(214, 168, 67, .25), inset 0 0 0 1px rgba(255, 255, 255, .2);
}

.tab-cards #v2383-tab:hover {
  filter: brightness(.97);
  box-shadow: 0 12px 24px rgba(214, 168, 67, .32), inset 0 0 0 1px rgba(255, 255, 255, .24);
}

.tab-cards #v2383-tab.active {
  background: linear-gradient(180deg, #d6a843, #b78934);
  border-color: rgba(214, 168, 67, 1);
  color: #0d0f14;
}

.tab-cards #v25xx-tab {
  background: linear-gradient(180deg, #60a5fa, #3b82f6);
  border-color: rgba(59, 130, 246, .75);
  color: #0b1220;
  box-shadow: 0 8px 18px rgba(59, 130, 246, .28), inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.tab-cards #v25xx-tab:hover {
  filter: brightness(.97);
  box-shadow: 0 12px 24px rgba(59, 130, 246, .34), inset 0 0 0 1px rgba(255, 255, 255, .22);
}

.tab-cards #v25xx-tab.active {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border-color: rgba(59, 130, 246, 1);
  color: #091422;
}

.card-dark {
  background: #141822;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card-dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  border-color: rgba(255, 255, 255, .18);
}

.card-dark .icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(250, 204, 21, .15);
  color: var(--accent);
  font-size: 1.4rem;
}

/* ===== About Section ===== */
.about-wrap {
  position: relative;
}

.about-badge {
  background: rgba(34, 197, 94, .15);
  color: #d1fae5;
  font-weight: 600;
}

.glass {
  background: rgba(17, 19, 24, .55);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px) saturate(120%);
}

@supports not ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .glass {
    backdrop-filter: none;
    background: rgba(17, 19, 24, .75);
  }
}

.about-text p {
  color: rgba(229, 231, 235, .9);
}

.about-visual {
  max-width: 520px;
}

.about-visual-inner {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 38% 62% 40% 60% / 40% 42% 58% 60%;
  /* organic blob */
  overflow: hidden;
  background: radial-gradient(60% 60% at 50% 40%, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02) 60%, transparent 65%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .08);
  animation: floatY 6s ease-in-out infinite;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45)) drop-shadow(0 0 24px rgba(34, 197, 94, .15));
  will-change: transform;
}

.about-visual {
  perspective: 1000px;
}

.about-visual:hover .about-visual-inner {
  transform: translateY(-2px) rotateX(6deg) rotateY(-6deg) scale(1.02);
}

.about-visual-inner .about-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  mix-blend-mode: screen;
  opacity: .9;
  z-index: 1;
}

/* iOS Safari: blending can cause artifacts; relax it */
@supports (-webkit-touch-callout: none) {
  .about-visual-inner .about-canvas {
    mix-blend-mode: normal;
    opacity: .8;
  }
}

.about-visual-inner::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(from 0deg,
      rgba(34, 197, 94, .0) 0deg,
      rgba(34, 197, 94, .65) 90deg,
      rgba(250, 204, 21, .65) 180deg,
      rgba(255, 140, 0, .65) 270deg,
      rgba(34, 197, 94, .0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  /* Safari */
  mask-composite: exclude;
  /* Others */
  padding: 12px;
  /* thickness of the ring */
  animation: spin360 12s linear infinite;
  filter: blur(.3px) saturate(120%);
}

.about-visual-inner::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .18);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 10%;
}

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes spin360 {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .about-visual {
    max-width: 380px;
  }
}

@media (max-width: 576px) {
  .about-wrap {
    margin-top: -8px;
  }

  .about-wrap .row {
    row-gap: .75rem !important;
  }

  #about {
    padding-top: var(--nav-h);
  }

  .about-visual {
    max-width: 240px;
    margin-top: -12px;
  }

  .about-visual-inner::before {
    padding: 8px;
  }

  .about-visual img {
    padding: 4%;
  }

  .glass {
    padding: .85rem !important;
  }

  .glass .about-text p {
    font-size: .9rem;
    line-height: 1.4;
    margin-bottom: .5rem;
  }

  .about-badge {
    font-size: .78rem;
    margin-bottom: .4rem;
  }

  .glass h3 {
    font-size: 1.2rem;
    margin-bottom: .5rem;
  }
}