/* i dont know what 10% of this does */
/* maybe like 20% now */

/* ensure consistent box-sizing for carousel items */
.carousel-item {
  box-sizing: border-box;
}
/* Video hero styles (replaces carousel styles) */
.video-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: transparent;
  height: 85vh;
  min-height: 420px;
  display: block;
  --hero-scale: 1; /* default scale (can be overridden by JS on the container) */
}
.hero-video {
  /* normal document flow so the video appears in-place */
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* apply only scale so video doesn't shift horizontally */
  transform-origin: center center;
  transform: scale(var(--hero-scale));
  will-change: transform;
  transition: transform 160ms linear;
  z-index: 1;
}
/* Overlay video sits above the base video but below the content overlay */
.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  transform: scale(var(--hero-scale));
  will-change: transform;
  transition: transform 160ms linear;
  z-index: 2; /* sits above base video (1) */
  opacity: 0.4; /* subtle overlay by default */
  pointer-events: none; /* don't block clicks */
}

/* Optional blend mode variant you can toggle by adding .blend-screen */
.hero-video-overlay.blend-screen {
  mix-blend-mode: screen;
  opacity: 0.5;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3; /* moved above overlay video */
}
.video-hero .hero-content { width: 40%; }
.hero-content {
  pointer-events: auto;
  text-align: left;
  max-width: 900px;
  padding: 2rem;
}
.hero-content h1, .hero-content .lead, .hero-content .small-pill {
  color: #ffffff;
  /* subtle shadow for readability over video */
  text-shadow: 0 6px 18px rgba(0,0,0,0.55);
}
.hero-content h1 { font-size: 4.6rem; margin: 0 0 .5rem 0; line-height: 1.05; }
.hero-content .lead { opacity: 0.95; }
.hero-content .small-pill {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.95);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 10px;
}
.hero-content h1 { font-size: 2.4rem; margin: 0 0 .25rem 0; }
.hero-content h2 { font-size: 1.25rem; margin: 0 0 1rem 0; color: #10a3dd; }
.hero-content .lead { font-size: 1rem; color: rgba(230,247,255,0.95); }

/* Video control button */
.video-control-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ffffff;
  font-size: 1.2rem;
  padding: 0;
  z-index: 10;
}

.video-control-btn:hover,
.video-control-btn:focus {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
  outline: none;
}

.video-control-btn:focus-visible {
  outline: 2px solid #44B8FF;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  /* Mobile: reduce hero height so it doesn't push content off-screen */
  .video-hero { height: 55vh; min-height: 320px; }
  .hero-video { max-height: none; }
  .hero-overlay { align-items: center; justify-content: center; }
  .hero-content { 
    padding: 1rem; 
    text-align: center; 
    width: 100%; 
    max-width: 100%;
    margin: 0 auto;
  }
  .hero-content h1 { font-size: 1.6rem; }
  .video-hero .hero-content { width: 100%; }
}

/* Reduce overlay intensity on small screens for performance */
@media (max-width: 767px) {
  .hero-video-overlay { opacity: 0.25; }
}

/* Hide overlay video on mobile but add dark overlay for readability */
@media (max-width: 767px) {
  .hero-video-overlay { display: none !important; }
  
  /* Add dark overlay to maintain readability on mobile */
  .hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 16, 26, 0.6);
    z-index: -1;
  }
}

/* Respect users who prefer reduced motion: disable overlay video */
@media (prefers-reduced-motion: reduce) {
  .hero-video-overlay { display: none !important; }
}
@keyframes underwater {
    0% { background-position: 40% 40%; }
    100% { background-position: 80% 80%; }
}
/* Gigantic, cool hero typography for the video hero on index.html */
@media (min-width: 992px) {
  .video-hero .hero-content h1 {
    font-size: clamp(4.6rem, 6vw, 8.4rem); /* scalable between 4.6rem and 8.4rem */
    line-height: 1.12; /* further increase to avoid clipped descenders */
    letter-spacing: -0.5px;
    font-weight: 800;
    margin-bottom: 0.2rem;
    text-transform: none;
    /* gradient text */
    background: white;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* subtle glow */
    text-shadow: 0 6px 24px rgba(122,0,255,0.08), 0 2px 8px rgba(0,0,0,0.12);
    transform: translateZ(0);
  }
}

@media (max-width: 991.98px) {
  .video-hero .hero-content h1 {
    font-size: clamp(2rem, 6.5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.3px;
    text-shadow: 0 6px 18px rgba(0,0,0,0.06);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Disable headline float animation to prevent clipping on some videos/layouts */
  .video-hero .hero-content h1 {
    animation: none;
  }
  @keyframes hero-slow-float {
    0% { transform: translateY(0); }
    50% { transform: translateY(0); }
    100% { transform: translateY(0); }
  }
}

/* Give the hero content a touch more bottom padding on wide screens so large type doesn't touch the container edge */
@media (min-width: 992px) {
  .video-hero .hero-content { padding-bottom: 3.5rem; }
}

/* Hero CTA .hero-cta */
.hero-cta {
  font-size: 18px;
  color: #e1e1e1;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  border: none;
  background: none;
  text-transform: uppercase;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 400ms;
  transition-property: color;
}

.hero-cta:focus,
.hero-cta:hover {
  color: #fff;
}

.hero-cta:focus:after,
.hero-cta:hover:after {
  width: 100%;
  left: 0%;
}

.hero-cta:after {
  content: "";
  pointer-events: none;
  bottom: -2px;
  left: 50%;
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #fff;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 400ms;
  transition-property: width, left;
}
/* Gigantic shadowed typography styles 
https://codepen.io/juanbrujo/pen/DBKxxM
*/
.video-hero .hero-content .deepshadow h1 {
background: none !important;
-webkit-background-clip: border-box !important;
background-clip: border-box !important;
color: #e0dfdc !important;
-webkit-text-fill-color: #e0dfdc !important;
letter-spacing: .1em;
text-shadow:
  0 -1px 0 #fff,
  0 1px 0 #2e2e2e,
  0 2px 0 #2c2c2c,
  0 3px 0 #2a2a2a,
  0 4px 0 #282828,
  0 5px 0 #262626,
  0 6px 0 #242424,
  0 7px 0 #222,
  0 8px 0 #202020,
  0 9px 0 #1e1e1e,
  0 10px 0 #1c1c1c,
  0 11px 0 #1a1a1a,
  0 12px 0 #181818,
  0 13px 0 #161616,
  0 14px 0 #141414,
  0 15px 0 #121212,
  0 22px 30px rgba(0, 0, 0, 0.9);
}