/* ===== Reset & Variables ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  :root {
    --gold: #c79b45;
    --gold-light: #e6c068;
    --dark-bg: #1b1b1b;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: #f4e3b2;
    line-height: 1.6;
    scroll-behavior: smooth;
  }
  
  /* ===== NAVBAR (Top fixed) ===== */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }
  
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    transition: background 0.4s ease;
  }
  
  .navbar.scrolled {
    background: #0f0f0f;
  }
  
  .navbar .logo {
    font-family: 'Pirata One', cursive;
    font-size: 2rem;
    color: var(--gold-light);
    letter-spacing: 2px;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
  }
  
  .nav-links li a {
    text-decoration: none;
    color: #f4e3b2;
    font-size: 1.1rem;
    transition: color 0.3s ease;
  }
  
  .nav-links li a:hover {
    color: var(--gold-light);
  }
  
  /* ===== HERO SECTION ===== */
  .hero {
    position: relative;
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1558980664-10ea0bba668c?fit=crop&w=1500&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    perspective: 1000px;
    overflow: hidden;
  }
  
  .hero .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
  }
  
  .hero-content {
    position: relative;
    z-index: 1;
    color: #f4e3b2;
    transform: translateZ(60px);
    transition: transform 0.2s ease;
  }
  
  .hero h1 {
    font-family: 'Pirata One', cursive;
    font-size: 4rem;
    color: var(--gold-light);
    text-shadow: 2px 2px 0 #000, 4px 4px 8px rgba(0,0,0,0.7);
    transform: perspective(500px) translateZ(30px);
  }
  
  .hero h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #f4e3b2;
    text-shadow: 1px 1px 0 #000, 3px 3px 6px rgba(0,0,0,0.5);
  }
  
  .hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }
  
  /* ===== BUTTONS ===== */
  .btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--gold);
    color: #1b1b1b;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 0 #8b6b2b, 0 6px 12px rgba(0,0,0,0.4);
  }
  
  .btn:hover {
    background: var(--gold-light);
    transform: translateY(-3px) rotateX(4deg) rotateY(-4deg);
    box-shadow: 0 6px 0 #8b6b2b, 0 12px 18px rgba(0,0,0,0.6);
  }
  
  /* ===== SECTIONS ===== */
  section {
    padding: 100px 20px 60px; /* 100px top to offset fixed nav */
    text-align: center;
  }
  
  h2 {
    font-family: 'Pirata One', cursive;
    font-size: 2.5rem;
    color: var(--gold-light);
    margin-bottom: 20px;
  }
  
  .about p,
  .register p {
    max-width: 800px;
    margin: 0 auto 20px;
  }
  
  /* ===== SCROLL CARDS (Format Section) ===== */
  .scroll-container {
    display: flex;
    justify-content: center;
  }
  
  .scroll {
    background: url('https://www.transparenttextures.com/patterns/aged-paper.png');
    background-color: #3a2f1d;
    color: #f4e3b2;
    padding: 30px;
    border: 4px solid var(--gold);
    width: 80%;
    max-width: 700px;
    text-align: left;
    border-radius: 10px;
    transform-style: preserve-3d;
    transform: perspective(600px) rotateY(0deg) translateY(50px);
    opacity: 0;
    transition: transform 0.6s ease, box-shadow 0.6s ease, opacity 0.6s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  }
  
  .scroll:hover {
    transform: perspective(600px) rotateY(3deg) rotateX(3deg) translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.7);
  }
  
  .scroll.visible {
    transform: perspective(600px) rotateY(0deg) translateY(0);
    opacity: 1;
  }
  
  /* ===== PREV / HOME / NEXT NAV BAR ===== */
  .page-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 0;
    backdrop-filter: blur(4px);
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
  }
  
  .nav-btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--gold);
    color: #1b1b1b;
    font-family: 'Pirata One', cursive;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 0 #8b6b2b, 0 8px 15px rgba(0,0,0,0.4);
  }
  
  .nav-btn:hover {
    background: var(--gold-light);
    transform: translateY(-3px) rotateX(5deg) rotateY(-5deg) scale(1.05);
    box-shadow: 0 8px 0 #8b6b2b, 0 12px 20px rgba(0,0,0,0.6);
  }
  
  .nav-btn.home {
    background: var(--gold-light);
  }
  
  /* ===== FOOTER ===== */
  footer {
    background: #0f0f0f;
    padding: 20px;
    text-align: center;
    color: #b4a27a;
  }
  /* ===== LOADER ===== */
/* Pirate Compass Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f0f0f;
    color: var(--gold-light, #c79b45);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Pirata One', cursive;
    font-size: 2rem;
    z-index: 2000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  
  #loader p {
    margin-top: 20px;
    font-size: 1.2rem;
    color: #f4e3b2;
  }
  
  /* Compass SVG spins */
  .compass {
    width: 150px;
    height: 150px;
  }
  
  .compass-svg {
    width: 100%;
    height: 100%;
    animation: spin 3s linear infinite;
  }
  
  /* Fade out loader */
  #loader.hidden {
    opacity: 0;
    visibility: hidden;
  }
  
  /* Spin animation */
  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  #sand-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind content */
    display: block;
  }