.version-frame {
  position: fixed;
  bottom: 0.1vh;
  /* 10px from the bottom */
  right: 10px;
  /* 10px from the left */
  z-index: 999999;
  /* Ensures it appears on top of other elements */
  /* No need for width, height, justify-items, or align-content here */
  opacity: 0.5;
  transition: 0.3s ease-in-out;
  /* Smooth opacity transition */
}

.version-text {
  background-color: rgb(0, 0, 0);
  padding: 0.5vh 1vh 1vh 1vh;
  font-size: 2vh;
  margin: 0;
  /* Remove any default margins */
  text-align: center;
  cursor: pointer;
  border-top-right-radius: 1vh;
  border-top-left-radius: 1vh;
  font-family: "Funnel Display";
  font-weight: 100
}

.version-text a {
  color: #fff;
  text-decoration: none;
}

.version-frame:hover {
  opacity: 1;
  transition: 0.3s ease-in-out;
  /* Smooth opacity transition */
}


/* Sofia Pro Black */
@font-face {
  font-family: 'Sofia Pro';
  src: url('../Assets/font/Sofia Pro Black Az.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Sofia Pro';
  src: url('../Assets/font/Sofia Pro Black Italic Az.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
}

/* Sofia Pro Bold */
@font-face {
  font-family: 'Sofia Pro';
  src: url('../Assets/font/Sofia Pro Bold Az.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Sofia Pro';
  src: url('../Assets/font/Sofia Pro Bold Italic Az.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
}

/* Sofia Pro ExtraLight */
@font-face {
  font-family: 'Sofia Pro';
  src: url('../Assets/font/Sofia Pro ExtraLight Az.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'Sofia Pro';
  src: url('../Assets/font/Sofia Pro ExtraLight Italic Az.otf') format('opentype');
  font-weight: 200;
  font-style: italic;
}

/* Sofia Pro Light */
@font-face {
  font-family: 'Sofia Pro';
  src: url('../Assets/font/Sofia Pro Light Az.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Sofia Pro';
  src: url('../Assets/font/Sofia Pro Light Italic Az.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
}

/* Sofia Pro Medium */
@font-face {
  font-family: 'Sofia Pro';
  src: url('../Assets/font/Sofia Pro Medium Az.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Sofia Pro';
  src: url('../Assets/font/Sofia Pro Medium Italic Az.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
}

/* Sofia Pro Regular */
@font-face {
  font-family: 'Sofia Pro';
  src: url('../Assets/font/Sofia Pro Regular Az.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Sofia Pro';
  src: url('../Assets/font/Sofia Pro Regular Italic Az.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}

/* Sofia Pro Semi Bold */
@font-face {
  font-family: 'Sofia Pro';
  src: url('../Assets/font/Sofia Pro Semi Bold Az.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Sofia Pro';
  src: url('../Assets/font/Sofia Pro Semi Bold Italic Az.otf') format('opentype');
  font-weight: 600;
  font-style: italic;
}

/* Sofia Pro UltraLight */
@font-face {
  font-family: 'Sofia Pro';
  src: url('../Assets/font/Sofia Pro UltraLight Az.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'Sofia Pro';
  src: url('../Assets/font/Sofia Pro UltraLight Italic Az.otf') format('opentype');
  font-weight: 100;
  font-style: italic;
}





html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
  width: 100vw;
  min-height: 100%;
  min-height: 100dvh;
  box-sizing: border-box;
}

html {
  background-color: #121212;
}

body {
  background-color: transparent;
}

/* Ensure the entire section fills the viewport height */
.video-section {
  position: relative;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
}

/* Container for positioning video and overlay */
.video-background-container {
  position: fixed;
  /* Fixed position to achieve the parallax effect */
  top: calc(-1 * env(safe-area-inset-top));
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  height: calc(100dvh + env(safe-area-inset-top) + env(safe-area-inset-bottom));
  overflow: hidden;
  z-index: -1;
  /* Place behind any content in the section */
  background-image: url(../Assets/Background-The-Rock-Church.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

}

/* Style for the video element */
.video-tag {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -4;
  /* Behind the overlay */

}

/* Color overlay with 40% opacity */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.344);
  /* Adjust color and opacity here */
  z-index: -3;
}

/*MENU HEADER*/

.header {
  width: 100vw;
  height: auto;
  margin: 0;
  padding: 2vh 0;
  position: fixed;
  z-index: 9999;
  transition: background-color 0.3s ease;

}

.header.scrolled {
  background-color: #121212;
}


.logo-img {
  width: 7%;
  height: auto;
  margin: 0;
  padding: 0;
}

.nav-list {
  gap: 10vh;
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.nav-item a {
  color: #fff;
  text-decoration: none;
  font-size: 3vh;
  font-family: 'Sofia Pro', sans-serif;
  font-weight: 500;
  transition: 0.3s ease-in-out;
  /* Smooth color transition */
}

.nav-item a:hover {
  font-size: 3.5vh;
  transition: 0.3s ease-in-out;
  /* Smooth font size transition */
}

.header-toggle {
  display: none;
  /* Hide by default */
  z-index: 999999;
}

.menu-toggle {
  display: none;
}

/* Hamburger menu button: hidden by default */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5em;
}

.menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 4px 0;
  background-color: #fff;
  transition: 0.3s ease;
}

.social-media-header-D {
  position: absolute;
  top: 42%;
  left: 5%;
  display: flex;
  flex-direction: row;
  list-style: none;
  gap: 5vh;
}

.social-media-header-D li {
  transition: 0.3s ease-in-out;
  /* Smooth color transition */
}

.social-media-header-D li a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s ease-in-out;
  /* Smooth color transition */
}

.social-media-header-D li:hover {
  color: #fff;
  transform: scale(1.2);
  text-decoration: none;
  transition: 0.3s ease-in-out;
  /* Smooth color transition */
}



/* Optional: Style for content on top of the video */
.content {
  position: fixed;
  /* Ensure it sits above the video background */
  z-index: 1;
  margin: 35vh 0 5vh 0;
  width: 100vw;
  height: auto;

  color: #fff;
  z-index: 0;

}

.section-global {
  overflow-x: hidden;
  box-sizing: border-box;
  gap: 0;
  padding: 0;
  margin: 0;
  z-index: 0;
  position: relative;
  background-color: #ffffff;
}



/* For screens 1024px or below */
@media screen and (max-width: 1024px) {
  .logo-img {
    width: 8%;
    height: auto;
  }

  .nav-list {
    gap: 7vh;
  }

  .nav-item a {
    font-size: 2vh;
  }

  .nav-item a:hover {
    font-size: 2.5vh;
  }


}

@media (max-width: 768px) {

  /* Mobile Header: Always interactive */
  .mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2301;
    /* Higher than overlay */
    width: 100%;
    /* Additional styling as needed */
    background-color: transparent;
    padding-top: env(safe-area-inset-top);
    min-height: calc(3.8rem + env(safe-area-inset-top));
    box-sizing: border-box;
    transition: background-color 0.25s ease;
  }

  .mobile-header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(-1 * env(safe-area-inset-top));
    height: env(safe-area-inset-top);
    background: #121212;
    pointer-events: none;
    z-index: 0;
    transition: background-color 0.25s ease;
  }

  .mobile-header.scrolled,
  .mobile-header.menu-open {
    background-color: #121212;
  }

  .mobile-header.scrolled::before,
  .mobile-header.menu-open::before {
    background: #121212;
  }

  /* Hamburger button styling */
  .menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5em;
    display: block;
    position: absolute;
    right: 2%;
    top: calc(env(safe-area-inset-top) + 0.35rem);
    z-index: 2;

  }

  .menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 4px 0;
    background-color: #fff;
    transition: 0.3s ease;

  }

  .header {
    display: none;
  }

  .header-toggle {
    position: fixed;
    display: inline;
    z-index: 9;
    width: 100vw;
    top: 0;
    height: 100vh;
    height: 100dvh;
    pointer-events: none;
  }

  .top-container.scrolled {
    background-color: #121212;
  }

  .top-container.active {
    background-color: transparent;
  }

  .header-toggle.active {
    z-index: 9;
    background-color: #121212;
    transition: 0.3s ease-out;
    /* Smooth background color transition */
    pointer-events: auto;
  }


  .top-container {
    display: flex;
    /* Show hamburger icon on mobile */
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    padding-top: env(safe-area-inset-top);
    min-height: calc(4.25rem + env(safe-area-inset-top));
    box-sizing: border-box;
    transition: background-color 0.3s ease-in;
    /* Smooth background color transition */
  }



  .logo-container-toggle {
    width: 100%;
    height: auto;

  }

  .logo-img-toggle {
    width: auto;
    height: 10vh;
    margin: 0 2vh;
    padding-bottom: 0.15rem;
    display: block;
  }

  .menu-toggle {
    position: absolute;
    right: 2%;
    top: calc(env(safe-area-inset-top) + 2.125rem);
    transform: translateY(-50%);
    display: block;
    justify-content: center;
    align-items: center;
    height: auto;
    margin: 0 2vh 0 0;
  }

  .menu-toggle .bar {
    display: block;
    width: 4vh;
    height: 0.4vh;
    margin: 0.8vh 0;
    background-color: #fff;
    transition: 0.3s ease;
  }

  /* Hide the nav list initially on mobile */
  .nav-list-toggle {
    display: flex;
    flex-direction: column;
    gap: 2vh;
    list-style: none;
    justify-items: center;

    padding: 2vh 0 3vh 0;
    margin: -1vh 0 0 0;


    width: 100%;
    transform: translateX(-100%);
    /* Start off-screen to the left */
    opacity: 0;
    transition: 0.2s ease-in-out;
    /* Smooth transition for slide-in effect */
  }

  /* When the menu is open, display the nav list */
  .nav-menu-toggle.active .nav-list-toggle {
    transform: translateX(0);
    opacity: 1;
    transition: 0.2s ease-in-out;
    /* Ensure it appears on top of other elements */
  }

  .nav-item-toggle {
    text-align: center;
  }

  .nav-item-toggle-img {
    position: absolute;
    left: 50%;
    top: 90%;
    transform: translateX(-50%);
    margin-top: 10vh;
  }

  .logo-img-toggle-title {
    width: 100%;
    height: auto;
  }

  .nav-item-toggle a {
    text-align: center;
    color: #ffffff;
    font-family: 'Sofia Pro';
    font-weight: 100;
    text-decoration: none;
  }

  /* Transformation when the button is active */
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }


}

@media (max-width: 768px) {
  .social-media-header {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    margin-top: 5vh;
    gap: 3vh;
    color: #fff;
  }

  .header-icon-media {
    color: #fff;
    font-size: 3vh;
    transition: 0.3s ease-in-out;
    /* Smooth color transition */
  }

  .header-icon-media:hover {
    transform: scale(0.97);
    transition: 0.3s ease-in-out;
    /* Smooth color transition */
  }


}

@media (max-height: 420px) {
  .logo-img-toggle-title {
    width: 20%;
    height: auto;
  }

  .nav-item-toggle-img {
    text-align: center;
    justify-items: center;
    align-content: end;
    margin-top: 5vh;
  }

  .social-media-header {
    margin-top: 2vh;
  }
}

.icons-white {
  width: 2.5vh;
  position: absolute;
}

@media (max-width: 1480px) {
  .social-media-header-D {
    position: absolute;
    top: 40%;
    left: 3%;
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 5vh;
  }

  .social-media-header-D li {
    transition: 0.3s ease-in-out;
    /* Smooth color transition */
  }

  .social-media-header-D li a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s ease-in-out;
    /* Smooth color transition */
    font-size: 1.8vh;
  }

  .social-media-header-D li:hover {
    color: #fff;
    transform: scale(1.2);
    text-decoration: none;
    transition: 0.3s ease-in-out;
    /* Smooth color transition */
  }
}

@media (max-width: 1070px) {
  .social-media-header-D {
    position: absolute;
    top: 40%;
    left: 3%;
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 3.5vh;
  }

  .icons-white {
    width: 2vh;
    position: absolute;
  }
}

.header-icon-media-sect3 {
  width: 4.5vh;
}




/* --- Toggle button (desktop only) --- */
.page-menu-toggle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 2%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 3.8vh;
  height: 3.8vh;
  background: transparent;
  border: none;
  cursor: pointer;
  margin: 0 1rem;
  padding: 0;
}

.page-menu-toggle .bar {
  width: 100%;
  height: 0.4vh;
  background-color: #ffffff;
  /* or match your header text color */
  border-radius: 0.2vh;
}

/* Hide toggle on small screens if you want */
@media (max-width: 768px) {
  .page-menu-toggle {
    display: none;
  }
}

/* ----------------------------
   Slide-in panel itself
   ---------------------------- */
.page-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 80%;
  /* mobile-friendly width */
  max-width: 20vw;
  /* cap on larger screens */
  background: #1b1b1b;
  /* dark base */
  transform: translateX(100%);
  transition: transform 0.4s ease;
  /* slightly slower for smoothness */
  z-index: 1000;

  /* Give it rounded left corners */
  border-top-left-radius: 1.2vh;
  border-bottom-left-radius: 1.2vh;

  /* Flex column so links stack vertically */
  display: flex;
  flex-direction: column;
  padding: 3vh 2vh;
  /* generous top/bottom & side padding */

  /* Stronger shadow for depth, tinted subtly by the dark background */
  box-shadow: -1vh 0 2.5vh rgba(0, 0, 0, 0.6);
}

/* When open, slide into view */
.page-menu.open {
  transform: translateX(0);
}


/* ----------------------------
   Optional: Close “×” Button
   (Place this inside your <ul> as the first child if desired)
   ---------------------------- */
.page-menu .close-btn {
  align-self: flex-end;
  font-size: 4.6vh;
  color: #ffffff;
  /* white “×” */
  background: transparent;
  border: none;
  cursor: pointer;
  margin-bottom: 1.8vh;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

.page-menu .close-btn:hover {
  color: #453a30;
  /* gold accent on hover */
}


/* ----------------------------
   Menu List & Items
   ---------------------------- */
.page-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  /* fill remaining space */
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  /* allow scrolling if too many items */
}

/* Style the custom scrollbar in WebKit browsers */
.page-menu ul::-webkit-scrollbar {
  width: 6px;
}

.page-menu ul::-webkit-scrollbar-thumb {
  background-color: #453a30;
  /* goldish thumb */
  border-radius: 2vh;
}

.page-menu ul::-webkit-scrollbar-track {
  background: #1b1b1b;
  /* match the panel background */
}


/* Each list item has no default spacing */
.page-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Separator between items uses the gold accent */
.page-menu li+li {
  border-top: 0.1vh solid #453a30;
  /* gold separator */
  margin-top: 0.6vh;
  /* small gap above separator */
  padding-top: 0.6vh;
  /* small gap below separator */
}


/* ----------------------------
   Link Styling
   ---------------------------- */
.page-menu a {
  display: block;
  padding: 2.5vh 1vh;
  /* generous vertical padding */
  color: #ffffff;
  /* white text */
  text-decoration: none;
  /* remove default list styling */
  font-family: 'Sofia Pro', sans-serif;
  /* use your custom font */
  font-size: 2vh;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3vh;
  border-radius: 1.5vh;
  /* slightly rounded “pill” shape */
  transition: 0.3s ease, color 0.3s ease;

}

/* Hover state: goldish background + white text */
.page-menu a:hover {
  background: rgba(69, 58, 48, 0.2);
  /* semi-transparent #453a30 */
  color: #ffffff;
  font-size: 2.3vh;
  transition: 0.3s ease, color 0.3s ease;
}

/* Active/current link: solid gold accent */
.page-menu a.active {
  background: #453a30;
  color: #ffffff;
}


/* ----------------------------
   Very Small Screen Adjustments
   ---------------------------- */
@media (max-width: 400px) {
  .page-menu {
    width: 100%;
    max-width: 100%;
    padding: 2vh 1vh;
  }

  .page-menu a {
    font-size: 0.95vh;
    padding: 0.9vh 0.6vh;
  }

  .page-menu li+li {
    margin-top: 0.5vh;
    padding-top: 0.5vh;
  }
}

/* --- Mobile overlay clickability + layering fixes --- */
@media (max-width: 768px) {

  /* Make sure the menu overlay sits above everything */
  .mobile-header {
    z-index: 1000;
  }

  /* hamburger bar */
  .header-toggle {
    z-index: 2001;
  }

  /* overlay root */
  .header-toggle.active {
    z-index: 2001;
    pointer-events: auto;
  }

  /* Put the logo area above other overlay content and definitely clickable */
  .top-container {
    position: relative;
    z-index: 2;
  }

  .logo-container-toggle {
    position: relative;
    z-index: 3;
  }

  .logo-container-toggle a {
    display: inline-block;
    pointer-events: auto;
  }

  /* Safety: when the menu is open, block clicks to the video beneath */
  .header-toggle.active~.video-section,
  .header-toggle.active~.video-section * {
    pointer-events: none !important;
  }
}

/* Keep hamburger above any overlay */
@media (max-width: 768px) {
  .mobile-header {
    position: fixed;
    z-index: 2505;
    /* keep header controls above mobile overlay */
    pointer-events: none;
  }

  /* Keep this layer transparent so it doesn't cover the centered logo */
  .mobile-header,
  .mobile-header.scrolled,
  .mobile-header.menu-open {
    background-color: transparent !important;
  }

  .mobile-header::before,
  .mobile-header.scrolled::before,
  .mobile-header.menu-open::before {
    background: transparent !important;
  }

  .menu-toggle {
    z-index: 2506;
    pointer-events: auto;
  }

  /* Overlay wrapper: inert/transparent when closed */
  .header-toggle {
    z-index: 2500;
    pointer-events: none;
  }

  .nav-menu-toggle {
    position: relative;
    /* NOT full-screen by default */
  }

  /* When the menu opens, then become full-screen & interactive */
  .header-toggle.active {
    z-index: 2500;
    pointer-events: auto;
  }

  .header-toggle.active .nav-menu-toggle {
    position: fixed;
    inset: 0;
    /* full-screen only while open */
  }

  /* Keep logo stack above header backgrounds inside the overlay layer */
  .top-container,
  .logo-container-toggle,
  .logo-img-toggle {
    position: relative;
    z-index: 2502;
  }

  body::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: env(safe-area-inset-bottom);
    background: #121212;
    z-index: 2300;
    pointer-events: none;
  }
}
