@keyframes floatDown {
  0% { transform: translateY(-40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}


.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/background.svg') no-repeat center center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center; /* center vertically */
  z-index: 50;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.8s ease;
}

/* Logo fall animation */
.intro-logo {
  width: 300px;
  transform: translateY(-300px); /* start off-screen */
  animation: floatDown 1.5s ease-out forwards; /* longer duration */
}

@keyframes fall {
  0% {
    transform: translateY(-300px);
  }
  60% {
    transform: translateY(20px); /* bounce effect */
  }
  80% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Fade overlay */
.intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}


/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Helvetica Neue', sans-serif;
}

body, html {
  height: 100%;
  overflow-x: hidden;
  color: black;
  background: url('assets/background.svg') no-repeat center center fixed;
  background-attachment: fixed;
  margin: 0;
  background-size: cover;
  color: #111;
  z-index: 0;
}

/* overlay that starts fully black and opens a transparent center */
#bg-fade-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  /* start fully black */
  background: linear-gradient(
    160deg, /* slight angle */
    rgba(31,33,36,1) 0%,   /* top color */
    rgba(45,47,50,1) 100%  /* bottom slightly lighter */
  );
  animation: squareFade 2.5s ease-out forwards;
}


/* keyframes: fully black -> transparent center expands -> gone */
@keyframes squareFade {
  0% {
    opacity: 1; /* fully visible */
  }
  100% {
    opacity: 0; /* fully transparent */
  }
}


header, footer {
  position: fixed;
  width: 100%;
  left: 0;
  background: rgba(30, 30, 30, 0.0);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: 10;
}

header {
  top: 0;
  height: 70px;
}

footer {
  bottom: 0;
  height: 50px;
}

.logo {
  height: 100px;
}

main {
  margin-top: 70px;
  margin-bottom: 50px;
  margin-left: 1rem;
  margin-right: 1rem;
  /* allow dynamic height instead of fixed 100vh */
  height: auto;
  min-height: 50vh; /* ensures minimum vertical space */
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.0) 0%, /* lower alpha = more see-through */
    rgba(255, 255, 255, 0.0) 0%
  );
  border-radius: 40px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 0 40px rgba(255, 255, 255, 0.1);
  
  backdrop-filter: blur(10px) saturate(2.3);
  border: 1px solid rgba(255, 255, 255, 0.2);

  /* allow smooth height animation */
  transition: height 0.5s ease, transform 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* top-align content */
  overflow: hidden;
}


.section-container {
  position: relative;
  width: 100%;
  /* let height adjust based on active section */
  height: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* top-align content */
  padding: 2rem 0;         /* spacing for min height */
  transition: height 0.5s ease; /* animate height changes */
  
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.50) 0%,
    rgba(255, 255, 255, 0.20) 100%
  );
  border-radius: 40px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 0 40px rgba(255, 255, 255, 0.1);
  
  backdrop-filter: blur(40px) saturate(2.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow-y: hidden;
  overflow-x: hidden;
  z-index: 1;
  min-height: 80vh; /* ensures minimum size */
}

.section {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.5s ease-in-out, opacity 0.2s ease 0.3s;
  opacity: 0;
  border-radius: 23%;
  z-index: 2;
}

.section.scale-up {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.section.scale-down {
  transform: scale(0.95);
  transition: transform 0.3s ease;
}


.section.active {
  transform: translateX(0);
  opacity: 1;
  z-index: 2;
}

/* Incoming section positions */
.section.slide-in-from-right {
  transform: translateX(100%);
  opacity: 1;
  z-index: 3;
}

.section.slide-in-from-left {
  transform: translateX(-100%);
  opacity: 1;
  z-index: 3;
}

/* Outgoing section leaves but fades at the end so it disappears cleanly */
.section.slide-out-to-left {
  transform: translateX(-100%);
  opacity: 0;
  z-index: 1;
}

.section.slide-out-to-right {
  transform: translateX(100%);
  opacity: 0;
  z-index: 1;
}


.section img {
  max-width: 97%;
  border-radius: 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.section h1 {
  margin-top: 30px;
  font-size: 3rem;
  color: #000;
}

/* Arrows */
.arrow {
  position: fixed;
  top: 1.2rem; /* or wherever you want vertically */
  display: flex;          /* make it a flex container */
  justify-content: center; /* horizontal center */
  align-items: center;     /* vertical center */
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 20;
}

.arrow svg {
  width: 40px;
  height: 40px;
  display: block;      /* remove inline spacing */
  margin: auto;        /* center inside button */
}



.arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.arrow.left {
  left: 1.2rem;
  width: 60px;
  height: 60px;
}

.arrow.left svg {
  position: relative;
  right: 1px;
}

.arrow.right svg {
  position: relative;
  left: 1px;
}

.arrow.right {
  right: 1.2rem;
  width: 60px;
  height: 60px;
}

.section.active {
  filter: blur(0);
  scale: 1;
}

.section.exit-left,
.section.exit-right {
  filter: blur(10px);
  scale: 0.95;
}

/* -------------------------
   FROSTED GLASS SECTION
   ------------------------- */
.frosted-section {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.15) 100%
  );
  border-radius: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              inset 0 0 40px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

/* -------------------------
   SLIGHTLY BIGGER ON HOVER
   ------------------------- */
.hover-grow {
  transition: transform 0.3s ease;
}

.hover-grow:hover {
  transform: scale(1.05);
}

/* -------------------------
   SLIGHT PULSE EFFECT
   ------------------------- */
.hover-pulse {
  display: inline-block;
  transition: transform 0.2s ease-in-out;
  animation: pulse 2s infinite alternate;
}

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.02); } /* very subtle */
  100% { transform: scale(1); }
}

/* -------------------------
   ROUNDED ELEMENTS
   ------------------------- */
.rounded {
  border-radius: 15px;
  overflow: hidden;
}

/* Fly-in animation for main content */
@keyframes flyInFromBottom {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  60% {
    transform: translateY(-10px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.main-fly-in {
  animation: flyInFromBottom 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Start main content off-screen and invisible */
main {
  opacity: 0;
  transform: translateY(50px);
  transition: none; /* prevent instant fade transition */
}

html, body {
  overflow-x: hidden;
  overflow-y: hidden; /* Prevent scrollbar during intro */
}

body.intro-done {
  overflow-y: auto; /* Restore scrolling after intro finishes */
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.fade-out {
  animation: fadeOut 1s ease forwards;
}

.imagecontroller {
  position: relative;
  min-height: 50%;
  height: auto;
  display: inline-block;
  border-radius: 40px;
  overflow: hidden;
  opacity: 0.9;
  width: 96.4%;
  margin: 0.5rem;
  object-fit: cover;
}

.bannerspacer {
	margin-top: 50px;
	width: 100%;
	min-height: 55%;
}

.scrollsection {
  padding-top: 5.5rem;
  width: 100%;
  height: 80vh;
  overflow-y: scroll;
  overflow-x: hidden;
    /* Hide scrollbar in all major browsers */
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE/Edge legacy */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* instead of center */
}

/* Hide scrollbar track, only show a thin floating thumb */
::-webkit-scrollbar {
  width: 6px;
  background: transparent; /* no background/track */
}

/* The draggable thumb itself */
::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.15); /* subtle */
  border-radius: 10px;
}

/* Slightly brighter when hovered */
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

/* Remove gutter — this is what caused the white edges */
html {
  scrollbar-gutter: auto;
}

.scrollsection::-webkit-scrollbar {
  display: none;               /* Chrome, Safari, Edge */
}