/* ======================================================================
   BACKGROUND / OVERLAY
   ====================================================================== */

   .static-background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url("../img/background.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
  }
  
  body.loaded .static-background { opacity: 1; }
  
  .background-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
    z-index: -1;
  }
  
  /* ======================================================================
     HEADER / NAV (layout)
     ====================================================================== */
  
  header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
  
    background-color: rgba(0,0,0,0.65);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  
    padding: 0.45rem 5%;
    min-height: 56px;
  }
  
  header.header-fixed {
    position: fixed;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
  }
  
  .logo { display: flex; align-items: center; }
  
  .logo img {
    height: auto;
    width: 128px;
    max-height: none;
    transform: none;
  }
  
  /* burger button base */
  .nav-toggle {
    display: none; /* desktop hidden */
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.28);
    backdrop-filter: blur(12px);
    cursor: pointer;
    padding: 0;
    position: relative;
    flex: 0 0 auto;
  }
  
  .nav-toggle span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: rgba(255,255,255,0.92);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease, top .2s ease;
  }
  
  .nav-toggle span:nth-child(1) { top: 14px; }
  .nav-toggle span:nth-child(2) { top: 21px; }
  .nav-toggle span:nth-child(3) { top: 28px; }
  
  /* burger -> X */
  header.is-nav-open .nav-toggle span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
  }
  header.is-nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  header.is-nav-open .nav-toggle span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
  }
  
  /* desktop nav list */
  header .nav ul,
  nav ul {
    display: flex;
  }
  
  nav ul li { margin-left: 2rem; }
  
  /* ======================================================================
     MAIN / PAGES LAYOUT
     ====================================================================== */
  
  main {
    padding-top: 80px;
    height: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
  }
  
  .page {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 10%;
  }
  
  .page-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
  
    padding: 2rem;
    background-color: rgba(34, 34, 34, 0.85);
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
  
    overflow-y: visible;
    max-height: none;
  }
  

  .reveal { opacity: 0; transform: translateY(14px); transition: .35s ease; }
  .reveal.is-in { opacity: 1; transform: translateY(0); }
  @media (prefers-reduced-motion: reduce) { .reveal { transition: none; } }
