/* Page structure */
html,
body {
  min-height: 100vh;
  margin: 0;
}

body {
  position: relative;
  margin: 0;

  background-color: black; /* fallback */
}

/* Main content grows to fill space */
/* Stop vertical centering */
.MainContent {
  display: flex;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.LogoTopRight {
  position: absolute;
  height: 80px;
  top: 10px;
  right: 0;
}

.ButtonContainer {
  position: fixed; /* pins it to the viewport */
  top: 5px;
  margin: 0 0 0 20vw;
}
.Button {
  position: relative; /* makes text position relative to this box */
  width: 100px; /* button size */
}

.ButtonContainer {
  position: fixed;
  top: 5px;
  margin: 0 0 0 20vw;
  z-index: 9999;
}

.ButtonText {
  display: flex;
  font-family: "Calibri", Arial, sans-serif;
  font-size: 20px;
  color: white;
  font-weight: normal;
  text-shadow: 1px 1px 3px black;
}

.ButtonText a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
}

.ButtonText a:hover {
  color: red;
}

.Page1Title {
  font-family: "Corbel Light", "Corbel", Arial, sans-serif;
  font-size: 80px;
  color: white;
  font-weight: normal;
  margin: 0 0 10px 10vw; /* spacing instead of absolute positioning */
  text-align: left;
  text-shadow: 6px 6px 6px rgba(0, 0, 0, 0.6);
}

.Page1SubTitle {
  font-family: "Calibri", Arial, sans-serif;
  font-size: 40px;
  color: red;
  font-weight: bold;
  margin: 0 0 20px 10vw; /* spacing below title */
  text-align: left;
  max-width: 80ch;
  text-shadow: 3px 3px 3px rgba(2, 2, 3, 1);
}

.Page1TopText {
  position: relative;
  z-index: 2;
  margin: 0 0 20px 10vw;
  font-family: "Calibri", Arial, sans-serif;
  font-size: 25px;
  color: white;
  font-weight: normal;
  text-align: justify;
  max-width: 50ch;
  text-shadow: 6px 6px 6px rgba(2, 2, 3, 1);
}

.Page1Copy {
  position: relative;
  z-index: 2;
  margin: 40px 0 40px 20vw; /* add 20vw left margin */
  font-family: "Calibri", Arial, sans-serif;
  font-size: 25px;
  color: rgb(226, 228, 228);
  font-weight: normal;
  text-align: justify;
  max-width: 50ch;
}

.CyanText {
  color: cyan;
  text-shadow: 5px 5px 6px rgba(0, 0, 0, 0.6);
  font-weight: bold;
  font-size: 30px;
}

.FooterContainer {
  left: 0;
  width: 100%;
  background-image: url("../images/FooterBackground.png");
  background-size: contain;
  background-repeat: no-repeat;
  font-size: 30px;
  line-height: 1.1;
  color: white;
  padding: 10px;
}

.FooterContainer h2 {
  margin: 0;
  font-size: 24px;
  text-align: center;
}

.FooterContainer p {
  font-size: 25px;
  text-align: left;
  margin-left: 10vw;
}

.fly-in {
  opacity: 0;
  transform: translateY(50px); /* start below */
  animation: flyIn 1s ease-out forwards;
}

@keyframes flyIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.Page1Title.fly-in {
  animation-delay: 0.6s;
}

.Page1SubTitle.fly-in {
  animation-delay: 0.8s;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 3s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.Page1Copy.fade-in {
  animation-delay: 1s; /* adjust to taste */
}

.bg-fade {
  opacity: 0;
  animation: bgFadeIn 1.5s ease-out forwards;
}

@keyframes bgFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.HeroSection {
  position: relative;
  height: 100vh;
  overflow: visible; /* allow content to extend below background */
}

.HeroSection .MainContent {
  position: relative;
  top: 10vh;
  left: 0;
  right: 0;
}

.HeroSection::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/BackgroundWWD.png");
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: bgFadeIn 1.5s ease-out forwards;
  z-index: -1; /* background behind content */
}

@keyframes bgFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.scroll-fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s ease-out,
    transform 1s ease-out;
}

.scroll-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.CardContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  align-items: stretch; /* makes all cards in a row equal height */
  margin: 30px 30px 20px 30px;
}

/* Base card styling */
.Card {
  position: relative; /* needed for z-index to work */
  border: 2px solid Gray;
  border-radius: 30%;
  background-color: rgb(10, 10, 10, 0.5);
  color: white;
  text-align: center;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.725);
  transform-origin: center center; /* default */
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  z-index: 0; /* baseline */
}

.Card:hover {
  transform: scale(1.15); /* enlarge */
  z-index: 10; /* bring above neighbors */
  box-shadow: 0 8px px rgba(6, 6, 55, 0.6);
}
.Card:first-child:hover {
  transform-origin: left center; /* grow inward from left edge */
}

.Card:last-child:hover {
  transform-origin: right center; /* grow inward from right edge */
}

/* Important: allow enlarged cards to overflow */
.CardContainer {
  position: relative;
  overflow: visible; /* prevents clipping */
}

/* Different hover enlargements */
.Card.enlarge-small:hover {
  transform: scale(1.05); /* subtle zoom */
  box-shadow: 0 6px 16px rgba(0, 255, 255, 0.6);
}

.Card.enlarge-medium:hover {
  transform: scale(1.3); /* bigger zoom */
  box-shadow: 0 10px 24px red;
}

.Card.enlarge-large:hover {
  transform: scale(1.5); /* dramatic zoom */
  box-shadow: 0 10px 24px rgb(12, 6, 52);
}

.Card.enlarge-rotate:hover {
  transform: scale(1.1) rotate(2deg); /* zoom + slight tilt */
  box-shadow: 0 10px 24px cyan;
}

/* Apply full width only to normal card images, not icons */
.Card img:not(.CardImage),
.Card video {
  width: 100%;
  height: auto;
  display: block;
}

/* Specific styling for your circular icon image */
.CardImage {
  width: 100px;
  height: 100px;
  border: 2px solid gray;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block; /* keeps it from collapsing */
}

/* Full overlay */
/* Overlay background stays the same */
.Overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* black with 60% transparency */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.Card:hover .Overlay {
  opacity: 1; /* fade in on hover */
}

.OverlayText {
  font-size: 16px;
  color: white; /* readable against cyan background */
  padding: 20px;
}

/* Overlay text color variations */
.OverlayTextWhite {
  color: white;
}

.OverlayTextCyan {
  color: cyan;
}

.OverlayTextYellow {
  color: yellow;
}

.OverlayTextMagenta {
  color: magenta;
}

.Title {
  font-size: 28px;
  font-weight: bold;
  margin: 5px 0;
  color: red;
  text-shadow: 6px 6px 6px rgba(0, 0, 0, 1);
}

.Subtitle {
  font-size: 20px;
  color: white;
  margin: 0;
}
