/* Sunumun yazı tipi: Aptos (Office ile gelen dosyalardan, WOFF2) */
@font-face {
  font-family: 'Aptos';
  src: url(fonts/Aptos.woff2) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Aptos';
  src: url(fonts/Aptos-Light.woff2) format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Aptos';
  src: url(fonts/Aptos-SemiBold.woff2) format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Aptos';
  src: url(fonts/Aptos-Bold.woff2) format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Aptos Light';
  src: url(fonts/Aptos-Light.woff2) format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Aptos Light';
  src: url(fonts/Aptos-Bold.woff2) format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Aptos SemiBold';
  src: url(fonts/Aptos-SemiBold.woff2) format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Aptos SemiBold';
  src: url(fonts/Aptos-Bold.woff2) format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

/* Akademi ek sayfaları (Canva): Be Vietnam Pro */
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url(fonts/BeVietnamPro-400-latin-ext.woff2) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url(fonts/BeVietnamPro-400-latin.woff2) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url(fonts/BeVietnamPro-500-latin-ext.woff2) format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: block;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url(fonts/BeVietnamPro-500-latin.woff2) format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url(fonts/BeVietnamPro-700-latin-ext.woff2) format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: block;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url(fonts/BeVietnamPro-700-latin.woff2) format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --yellow: #fece1f;
  --ink: #46433f;
  --page: #f1f1f1;
  --ease: cubic-bezier(.65, 0, .35, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: 'Aptos', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

#viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y;
}

/* 1920x1080 sahne, JS ile ekrana sığdırılır */
#stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: 0 0;
  overflow: hidden;
  background: #fff;
  user-select: none;
  -webkit-user-select: none;
}

.layer {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
}

.slide {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
}

.slide.nobg { background: none !important; }

/* --- slayt öğeleri ---------------------------------------------------- */
.el {
  position: absolute;
  transform-origin: 50% 50%;
}

.el.pic { overflow: hidden; }

/* köşeleri beyaz fotoğraflar: beyaz kısım zemine karışır */
.el.pic.knock { mix-blend-mode: multiply; }

.el.pic > img,
.el.pic > video {
  position: absolute;
  max-width: none;
  display: block;
  pointer-events: none;
}

.el > .bx, .el > .bd {
  position: absolute;
  inset: 0;
}

.el > .sv {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
}

.tx {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  line-height: 1.2;
  font-size: 36px;
}

.tx.nw { white-space: pre; }

.tx p {
  margin: 0;
  line-height: inherit;
}

.tx .bu {
  display: inline-block;
  text-indent: 0;
}

/* --- D ekranı (hub) -------------------------------------------------- */
.hub-hit {
  position: absolute;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 0 50% 50% 0 / 0 50% 50% 0;
  z-index: 50;
}

.hub-hit:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 6px;
}

.el.hub-glow {
  transition: filter .35s ease, translate .35s ease;
}

.hub-hover .el.hub-glow.on {
  filter: drop-shadow(0 18px 28px rgba(70, 67, 63, .22)) brightness(1.04);
  translate: 0 -6px;
}

.mini {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: 0 0;
  pointer-events: none;
}

/* --- kontroller ---------------------------------------------------- */
#controls {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(14px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .12), inset 0 0 0 1px rgba(255, 255, 255, .8);
  z-index: 100;
  opacity: 0;
  translate: 0 12px;
  pointer-events: none;
  transition: opacity .4s ease, translate .4s ease;
}

body.in-section #controls {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}

/* bir süre hareket olmazsa çubuk çekilir; dokunma, fare ya da tuşla geri gelir */
body.in-section.idle #controls {
  opacity: 0;
  translate: 0 12px;
  pointer-events: none;
}

#controls button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease;
}

#controls button:hover { background: rgba(254, 206, 31, .35); }
#controls button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; }

#controls svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#btn-home { background: var(--yellow) !important; }
#btn-home svg { fill: var(--ink); stroke: none; }

#progress {
  min-width: 52px;
  padding: 0 10px 0 4px;
  font: 600 13px/1 'Aptos', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
}

#hint {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  translate: -50% 0;
  font: 500 14px/1 'Aptos', system-ui, sans-serif;
  letter-spacing: .02em;
  color: var(--ink);
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
  z-index: 90;
}

body.show-hint #hint { opacity: 1; }

#rotate {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  top: max(16px, env(safe-area-inset-top));
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
  font: 500 14px/1.3 'Aptos', system-ui, sans-serif;
  color: var(--ink);
  z-index: 110;
}

#rotate svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
}

#rotate span { flex: 1; }

#rotate button {
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

@media (orientation: portrait) and (max-width: 820px) {
  #rotate { display: flex; }
  body.rotate-dismissed #rotate { display: none; }
}

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  font: 16px system-ui, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  .el.hub-glow, #controls, #hint { transition: none; }
}
