/* ========== GLOBAL BASE STYLES ========== */

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* prevent body scroll; main will scroll */
  overflow-y: auto;
  font-family: 'Montserrat', Arial, sans-serif;
  color: white;
  background-color: #000;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.bg-overlay {
  display: none; /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 0;
}


/* Background Image */
body {
  background-image: url("/img/bg_img.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

/* ===== 3-ZONE LAYOUT ===== */

.page-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  min-height: 0;
  position: relative;  /* 👈 required for z-index to work */
  z-index: 1;           /* 👈 sits above the overlay */
  overflow-y: auto;
}


.site-header {
  flex-shrink: 0;
  z-index: 1000;
}

/* Middle scrollable area */
.site-content,
#main {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden; /* 👈 block outer scroll */
  position: relative;
  z-index: 1;

  padding: 140px 20px 100px;
  opacity: 1;
  transition: opacity 0.7s ease-in-out;
}

/* Hide scrollbar in the scrollable middle area (works across browsers) */
.site-content,
#main {
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* Old IE/Edge */
}

.site-content::-webkit-scrollbar,
#main::-webkit-scrollbar {
  width: 0;
  height: 0;                    /* Chrome/Safari/Edge */
}

.page-inner {
  max-width: 100%;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-radius: 10px;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.page-inner::-webkit-scrollbar {
  display: none;
}

.site-footer {
  flex-shrink: 0;
  z-index: 1000;
}

/* Responsive: adjust padding if header is smaller on mobile */
@media (max-width: 768px) {
  header {
    height: 100px;
    padding: 20px;
  }

  .logo {
    width: 60px;
    height: 60px;
  }

  .menu-button {
    display: block;
  }

  .menu {
    display: none;
  }

  .social-icons {
    display: none;
  }

  .page-inner {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* Hide by default */
.mobile-sticky-footer {
  display: none;
}

/* Show only on small screens */
@media (max-width: 1108px) {
  .mobile-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    padding: 10px 20px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .mobile-footer-icons {
    display: flex;
    gap: 14px;
  }

  .mobile-footer-icons img {
    width: 36px;
    height: 36px;
    opacity: 0.85;
    transition: opacity 0.3s ease;
  }

  .mobile-footer-icons img:hover {
    opacity: 1;
  }
}