/* =====================================================
    ROOT & GLOBAL STYLES
    ===================================================== */
:root { 
  /*box-sizing: border-box;  */
  box-sizing: border-box;
  --glassBkg: radial-gradient(ellipse at center, rgba(50,50,50,.10) 0%, rgba(50,50,50,.30) 50%, rgba(50,50,50,.80) 100%);
  --glassBkgLinear: linear-gradient( rgba(50,50,50,.10) 0%, rgba(50,50,50,.30) 50%, rgba(50,50,50,.80) 100%);
  --nonshinyyellowborder: rgba(255,255,0,.60);
  --cp-accent: #eefe00;
  --cp-cyan:   #00e5ff;
  --cp-mag:    #ff00c8;
  --cp-surface: rgba(20,22,26,.45);
  --cp-surface-2: rgba(20,22,26,.30);
  --cp-grid: rgba(255,255,255,.06);
}
*, *::before, *::after { box-sizing: inherit; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden; /* prevent horizontal scroll */
  font-family: Oxanium, sans-serif;
  /*background: url("http://www.nexusstudios.site/wp-content/uploads/2025/08/sep09-scaled.jpg") center top no-repeat;*/
  background-size: cover;
  background-attachment: fixed;
  scrollbar-width: none;
  display: block !important;
}

/* Make sure body takes full size */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

/* Video container */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

/* Video */
#bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay on top of video */
.video-background .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px); /* glass blur */
  background: rgba(10, 10, 10, 0.8); /* slight dark tint */
  z-index: 0;
}

/* Actual content */
.content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  padding-top: 20vh;
}


/* Optional: extra styling for your content on top */
.site-content {
  position: relative;
  z-index: 0;    /* above the video/overlay */
  color: #fff;
}

/* ===== Accessibility: respect reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .bg-video__media {
    animation: none;
    transform: translate(-50%, -50%); /* keep centered */
  }
  /* Pause video for reduced motion users (works cross-browser) */
  /*.bg-video__media {
    /* Some browsers ignore CSS pause; JS enhancement below helps */
  /*}*/
}

/* ===== Low-power / mobile tweaks ===== */
@media (max-width: 768px) {
  .bg-video__overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(10, 10, 10, 0.3);
  }
}


/* =====================================================
    HERO SECTION
    ===================================================== */
.heroSection {
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  padding: 50px;
  user-select: none;
  transform-origin: top;
  animation: heroSection linear;
  animation-timeline: scroll();
  transition: height 0.3s ease;
  overflow: hidden;
  opacity: 1;
}


/* =====================================================
    HEADER
    ===================================================== */
#siteHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 5000;
  background: radial-gradient(ellipse at center, rgba(50,50,50,.10) 0%, rgba(50,50,50,.30) 50%, rgba(50,50,50,.80) 100%);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-120%);
  animation: headerIn 1 both;
  animation-timeline: scroll();
  animation-range: 12vh 36vh;
}

#siteHeader .brand {
  font-family: 'Audiowide', sans-serif;
  letter-spacing: .25rem;
  font-size: 1.1rem;
  color: #fff;
  text-shadow: 0 0 4px #fff;
}

#siteHeader .nav {
  display: flex;
  gap: 18px;
  font-family: 'Oxanium', sans-serif;
  font-weight: 600;
}

#siteHeader .nav a {
  color: #fff;
  opacity: .9;
  padding: 6px 10px;
  text-decoration: none;
  transition: transform .15s ease, opacity .15s ease, border-color .15s ease;
}

#siteHeader .nav a:hover {
  opacity: 1;
  color: var(--cp-accent);
}
.heroImage{
  width: 100px;
}



/* ==================================================
    Cards
    ================================================ */

.flex-container-cards{
  position: relative;
  display:flex;
  flex-wrap:wrap;
  align-items:stretch;
  justify-content:space-around;
  gap: 10px;
  overflow: visible; 
  margin-top: 150vh;
  padding: 5vw;
  min-height: 100vh;
  min-height: 30vh;
}

.flex-container-cards .card{
  background: var(--glassBkgLinear);
  -webkit-clip-path: polygon(0 0, 200px 0, 210px 10px, 280px 10px, 290px 0, 100% 0, 100% 150px, 290px 160px, 290px 300px, 100% 310px, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 400px, 10px 390px, 10px 100px, 0 90px);
          clip-path: polygon(0 0, 200px 0, 210px 10px, 280px 10px, 290px 0, 100% 0, 100% 150px, 290px 160px, 290px 300px, 100% 310px, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 400px, 10px 390px, 10px 100px, 0 90px);
  transition: all 0.2s linear;
  position: relative;
  width: 10vw;
  min-width: 280px;
  min-height: 5vh;
  margin: 30px;
  padding: 22px 22px 24px;
  filter: drop-shadow(rgb(0, 153, 255) 0px 0px 4px);
  box-shadow: inset -1px 0px 20px 15px rgb(0 206 255 / 16%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: center;
}

.flex-container-cards .card:hover {
  cursor: pointer;
  color: var(--cp-accent);
  box-shadow: inset -1px 0px 0px 6px rgb(158 255 0);
}

.flex-container-cards .card .button-shadow .card-button:hover {
  color: var(--cp-accent);
}

.card h1{
  margin-bottom: 20%;
  font-family: 'Oxanium', sans-serif;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 600;
  color: #fff;
}

.card span{
  color: white;
  margin: 10px 0px;
  font-family: 'Oxanium', sans-serif;
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 20%;
}

/*.flex-container-cards {

}*/
.flex-container-cards .card .card-content {
  margin: 0px 30px;
}


.flex-container-cards .card .card-button:hover {
  background: var(--cp-accent);
  color: black;
}
.flex-container-cards .card .button-shadow {
  filter: drop-shadow(rgb(0, 247, 255) 0px 0px 5px);
  transition: all 0.2s ease-in;
}
.flex-container-cards .card .button-shadow:hover {
  filter: drop-shadow(rgb(0, 255, 251) 0px 0px 200px);
}
.flex-container-cards .card .button-shadow .card-button {
  text-align: center;
  margin: 20px 0px;
  padding: 10px 0px;
  -webkit-clip-path: polygon(0 0, 100% 0%, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
          clip-path: polygon(0 0, 100% 0%, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
  color: black;
  font-weight: 600;
  transition: all 0.2s ease-in;
}


/* =====================================================
    COLUMN 2&3
    ===================================================== */

/* Base state: off-screen to the right, smaller, transparent */
.col2, .col3 {
  /*transform: translateX(50px) scale(0.95);*/
  opacity: 1;
  min-height: 50vh;
  padding: 5vw;
  color: white;
  font-family: Oxanium, sans-serif;
  background-color: rgba(10, 10, 10, 0.8);
  letter-spacing: 3px;
  transition: transform 0.8s ease, opacity 0.8s ease;
  will-change: transform, opacity;
}

/* When visible: back to normal */
.col2.visible, .col3.visible {
  transform: translateX(0) scale(1);
  opacity: 1;
}

.col3{
  display: flex;
}

.globeimage{
  width: 40%;
}


/* =====================================================
    PRELOADER
    ===================================================== */
.preload-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000;
  z-index: 100000;
  transition: opacity 2s ease;
}
.preload-overlay.hide { opacity: 0; pointer-events: none; }

.preload-panel {
  position: relative;
  padding: 48px 62px;
  border: 1px solid rgba(238,255,0,.85);
  background: radial-gradient(ellipse at center, rgba(50,50,50,.10) 0%, rgba(50,50,50,.30) 50%, rgba(50,50,50,.80) 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 18px rgba(238,255,0,.25);
  text-align: center;
  user-select: none;
}

.preload-title {
  font-family: 'Audiowide', sans-serif;
  letter-spacing: .4rem;
  font-size: clamp(1.6rem, 6vw, 3rem);
  color: #fff;
  text-shadow: 0 0 6px #fff, 0 0 12px #fff, 0 0 18px #ffffffa8;
  animation: neonPulse 1.8s ease-in-out infinite;
}

.preload-title span {
  font-weight: 300;
  letter-spacing: .1rem;
  font-size: .6em;
  margin-left: .5ch;
  text-shadow: 0 0 3px #fff, 0 0 6px #fff;
}

.scanline {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  background: rgba(238,255,0,.9);
  filter: drop-shadow(0 0 6px rgba(238,255,0,.7));
  animation: scan 1.6s linear infinite;
}



/* =====================================================
    ================= KEYFRAMES =========================
    ===================================================== */
@keyframes heroSection {
  0% { scale: 1; }
  50% {opacity: 0;}
  60% { scale: 0.02 0.02;opacity: 0; }
  100% { scale: 0 0;opacity: 0; }
}

@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 8px rgba(238,255,0,.35); }
  50% { box-shadow: 0 0 14px rgba(238,255,0,.65); }
}

@keyframes scan {
  0% { top: 18%; }
  100% { top: 82%; }
}

@keyframes neonPulse {
  0%, 100% { text-shadow: 0 0 6px #fff, 0 0 12px #fff, 0 0 18px #ffffffa8; }
  50% { text-shadow: 0 0 3px #fff, 0 0 8px #fff, 0 0 14px #ffffff66; }
}

@keyframes headerIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scanMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}


#bgvid{
  height: fit-content;
}

.out-video video {
  width: 100%;
  height: auto;
  display: block;
}


#scrollbar {
  position: fixed; /* stays relative to viewport */
  left: 100; 
  top:10;        /* or wherever you want it */
  min-width: 0.3rem;
  opacity: 1;
  height: 10px;
  background: yellow;
}
