/* Global base styles for responsive layout (non-breaking) */

/* Base: full-height, black background */
html {
  margin: 0;
  padding: 0;
  background-color: rgba(0, 0, 0, 1);
  height: auto;
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: rgba(0, 0, 0, 1);
  display: flex;
  flex-direction: column;
  /* Use dynamic viewport height var for mobile address bar changes */
  min-height: calc(var(--vh, 1vh) * 100);
  overflow-x: hidden; /* Prevent horizontal scroll */
  overflow-y: auto; /* Allow vertical scroll to grow/shrink after resize */
}

/* Content container used across pages */
.content,
.container {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding: 60px; /* requested */
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* Shared background layers: image + gradient overlay
   Positioned fixed, full viewport, with max width constraint. */
#background-image,
.gradient-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 1600px;
  height: 100vh;
  margin: 0 auto;
}

#background-image {
  background-image: url('app.images/background/background.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -2;
}

.gradient-background {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 1) 100%);
  opacity: 1;
  z-index: -1;
}

/* Grow the page container to fill available space */
#page-container {
  flex: 1 0 auto;
  position: relative;
  width: 100%;
  max-width: 67.5rem; /* 1080px */
  margin: 0 auto;
  padding: 1.25rem; /* 20px */
  box-sizing: border-box;
  z-index: 1;
  overflow-x: hidden; /* Prevent horizontal overflow */
  overflow-y: visible;
  min-height: 100%;
}

/* Semantic footer: simple copyright bar */
.page-footer {
  margin-top: auto;
  flex-shrink: 0;
  background-color: rgba(0, 0, 0, 0.8);
  border-top: 1px solid rgba(229, 228, 224, 0.15);
  width: 100%;
  position: relative;
  z-index: 1;
}

.page-footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 48px 40px;
  box-sizing: border-box;
  text-align: center;
}

.page-footer p {
  color: rgba(230, 228, 224, 0.6);
  font-family: 'NimbusSans-Regular', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

/* Mobile-first responsive content wrapper */
.page-content {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* 32px */
  width: 100%;
  padding-top: 20rem; /* doubled to avoid covering child's face (320px) */
  padding-bottom: 3rem; /* 48px - moderate spacing */
  /* Use dynamic viewport height instead of static 100vh to prevent frozen scroll after resize */
  min-height: calc(var(--vh, 1vh) * 100 - 3.75rem);
  min-width: 0;
}

/* Typography: Mobile-first with fluid scaling */
.page-subtitle {
  color: #C8C3BB;
  font-family: 'NimbusSansExtd-Regular', sans-serif;
  font-size: clamp(24px, 5vw, 80px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.9;
  margin: 0 0 24px 0;
}

.page-heading {
  color: rgba(255, 255, 255, 1);
  font-family: 'NimbusSansExtd-Regular', sans-serif;
  font-size: clamp(1.85rem, 7vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.9;
  margin: 0 0 24px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.page-intro {
  color: rgba(230, 228, 224, 1);
  font-family: 'NimbusSans-Bold', sans-serif;
  font-size: clamp(18px, 3.5vw, 31px);
  font-weight: 700;
  line-height: 1.23;
  margin: 0 0 32px 0;
}

.content-text {
  color: rgba(230, 228, 224, 1);
  font-family: 'NimbusSans-Regular', sans-serif;
  font-size: clamp(16px, 3vw, 28px);
  font-weight: 400;
  line-height: 1.14;
  margin: 0;
}

/* Content grid for 2-column layouts (mobile stacks, desktop side-by-side) */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
  min-width: 0;
}

/* Video frames - responsive with aspect ratio */
.video-container {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  min-width: 0; /* allow shrinking in grid/flex parents */
}

.video-frame {
  border: 1px solid rgba(229, 228, 224, 0.25);
  border-radius: 16px;
  background: rgba(0, 0, 0, 1);
  overflow: hidden;
  aspect-ratio: 460 / 315;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

  .close-overlay-btn {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 999999999 !important;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    border: none;
    border-radius: 0 0 0 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
  }

/* Tablet breakpoint: 2-column grid */
@media (min-width: 768px) {
  #page-container {
    padding: 2.5rem; /* 40px */
  }
  
  .page-content {
    gap: 3rem; /* 48px */
    padding-top: 24rem; /* 384px - doubled to avoid covering child's face */
    padding-bottom: 3.5rem; /* 56px - moderate spacing */
  }
  
  .content-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem; /* 40px */
    min-width: 0;
  }
  
  .content-grid-item {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* 24px */
  }
}

/* Desktop breakpoint */
@media (min-width: 1024px) {
  #page-container {
    padding: 3.75rem; /* 60px */
  }
  
  .page-content {
    gap: 3.75rem; /* 60px */
    padding-top: 28rem; /* 448px - doubled to avoid covering child's face */
    padding-bottom: 4rem; /* 64px - comfortable spacing */
  }
  
  .content-grid {
    gap: 60px;
    min-width: 0;
  }
}

/* Fallback for older browsers without object-fit */
@supports not (object-fit: cover) {
  .video-frame video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
  }
}

/* Floating navigation pointers - visible on all screen sizes */
.nav-pointer {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem; /* 40px - mobile default */
  height: 2.5rem;
  background-color: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(229, 228, 224, 0.2);
  border-radius: 50%;
  display: flex; /* Always visible */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.nav-pointer:hover {
  background-color: rgba(0, 0, 0, 0.8);
  border-color: rgba(229, 228, 224, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.nav-pointer:focus {
  outline: 2px solid rgba(230, 228, 224, 0.8);
  outline-offset: 4px;
}

.nav-pointer:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-pointer-prev {
  left: 0.625rem; /* 10px from left edge on mobile */
}

.nav-pointer-next {
  right: 0.625rem; /* 10px from right edge on mobile */
}

/* Arrow icons inside pointers */
.nav-pointer svg {
  width: 1rem; /* 16px - smaller on mobile */
  height: 1rem;
  stroke: rgba(230, 228, 224, 1);
  stroke-width: 2;
  fill: none;
}

/* Larger pointers on tablet and desktop */
@media (min-width: 768px) {
  .nav-pointer {
    width: 3rem; /* 48px */
    height: 3rem;
    background-color: rgba(0, 0, 0, 0.6);
    border-color: rgba(229, 228, 224, 0.25);
  }
  
  .nav-pointer-prev {
    left: 1rem; /* 16px */
  }
  
  .nav-pointer-next {
    right: 1rem; /* 16px */
  }
  
  .nav-pointer svg {
    width: 1.25rem; /* 20px */
    height: 1.25rem;
  }
  
  .close-overlay-btn {
      top: 65px; 
      right: 15px;
      padding: 8px 14px;
      font-size: 16px;
      border-radius: 4px;
    }
  
}

/* Even larger on desktop */
@media (min-width: 1024px) {
  .nav-pointer {
    width: 3.75rem; /* 60px */
    height: 3.75rem;
  }
  
  .nav-pointer-prev {
    left: 1.25rem; /* 20px */
  }
  
  .nav-pointer-next {
    right: 1.25rem; /* 20px */
  }
  
  .nav-pointer svg {
    width: 1.5rem; /* 24px */
    height: 1.5rem;
  }
}


