/**
 * Aktim - Full Page Scroll Styles
 * Body lock + section sizing for translateY-based navigation.
 *
 * Uses --app-vh custom property (set by JS from window.innerHeight)
 * for pixel-perfect section sizing across all mobile browsers.
 * Fallback: 100svh → 100vh for pre-JS render.
 *
 * @package    Aktim
 * @author     Mustafa Erdinc <mustafaerdinc@me.com>
 * @copyright  2024-2026 Bilgicler Yapi
 * @link       https://mustafaerdinc.com.tr
 */

/* ============================================
   Body Lock
   position: fixed is more reliable than
   overflow: hidden alone on iOS Safari.
   Dark bg prevents white flash below last section.
   ============================================ */
html.fp-enabled,
html.fp-enabled body {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background-color: var(--color-bg-dark, #1a1a1a);
}

/* ============================================
   Full Page Wrapper
   ============================================ */
.fullpage-wrapper {
  position: relative;
  width: 100%;
  will-change: transform;
}

/* ============================================
   Section Base Styles
   --app-vh is set by JS (1% of innerHeight).
   Fallback chain: --app-vh → svh → vh
   ============================================ */
[data-fullpage-section] {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: calc(var(--app-vh) * 100);
  overflow: hidden;
}

[data-fullpage-section].is-active {
  z-index: 1;
}

/* ============================================
   Reduced Motion - skip Anime.js transitions
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .fullpage-wrapper {
    transition: none !important;
    animation: none !important;
  }
}
