html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  color: white;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

div {
  display: block;
}

/* =========================
   Top / Backgrounds
   ========================= */
.first-div {
  width: 100vw;
  height: 100vh;
  background: url('../images/topbackground.png') no-repeat center center;
  background-size: cover;
}

.second-div {
  width: 100vw;
  height: auto;
  background: url('../images/bottombackground.png') no-repeat center center;
  background-size: cover;
}

.topA {
  width: 100%;
  height: 18vh;
  background: url('../images/backgroundheader.png') no-repeat center center;
  background-size: cover;
  position: relative;

  /* center logo horizontally (and keep it in the header area) */
  display: flex;
  align-items: center;
  justify-content: center;
}

.topB {
  width: 100%;
  height: 100px;
}

/* =========================
   Link Menu (Desktop defaults)
   ========================= */
.link-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.75);
  padding: 10px 0;
  gap: 30px;
  color: #FFF;
  font-weight: bold;
  width: 66%;
  min-width: calc(840px + 6%);
  height: 5vh;
  margin: 0 auto;
  position: relative;
}

.link-menu a {
  color: #FFF;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
}

.link-menu a:hover {
  color: #ccc;
}

.dropdown {
  position: relative;
}

.dropbtn {
  background-color: transparent;
  color: #FFF;
  border: none;
  font-size: 1.1em;
  cursor: pointer;
  width: 33%;
  font-weight: bold;
}

.dropdown-content {
  display: none;
  position: absolute;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.9);
  width: max-content;
  min-width: 200px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.75);
  border-radius: 0;
  z-index: 9998;
}

.dropdown-content a {
  color: #FFF;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.9);
  font-weight: bold;
  color: black;
  font-style: italic;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* provide structure for new markup (desktop) */
.link-menu .menu-toggle {
  display: none;
}

.link-menu .menu-items {
  display: flex;
  align-items: center;
  gap: 30px;
  position: static;
}

.menu-spacer {
  width: 100%;
  height: 5vh;
}

/* =========================
   Cards / Layout
   ========================= */
.card-wrapper {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.row {
  display: flex;
  width: 100%;
  height: auto;
}

.mSpacerL,
.mSpacerR {
  width: 17%;
  height: auto;
}

.cardSpace1,
.cardSpace2 {
  width: 3%;
  height: auto;
}

.leftCard,
.midCard,
.rightCard {
  width: 20%;
  height: auto;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  will-change: transform;
  opacity: 0;
  min-width: 280px;
}

.leftCard {
  animation: slideFromLeft 0.8s ease-out 0.4s forwards;
  transform: translateX(-100px);
}

.midCard {
  animation: riseFromBottom 0.8s ease-out 0.6s forwards;
  transform: translateY(100px);
}

.rightCard {
  animation: slideFromRight 0.8s ease-out 0.8s forwards;
  transform: translateX(100px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.leftCard:hover,
.midCard:hover {
  transform: translateX(0) scale(1.1) !important;
  z-index: 2;
  transition: transform 0.3s ease;
}

.leftCard,
.midCard {
  display: flex;
  flex-direction: column;
}

.leftCardTop,
.midCardTop {
  width: 100%;
  height: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.leftCardBottom,
.midCardBottom {
  width: 100%;
  height: 50%;
  background: transparent;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card-text {
  font-size: 14px;
  line-height: 1.5;
  color: #000;
  font-family: Arial, sans-serif;
  margin-bottom: 15px;
}

.card-cta {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  color: #000;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.75);
}

.card-icon {
  width: 85%;
  height: 85%;
  object-fit: contain;
  display: block;
}

/* =========================
   Transition strip
   ========================= */
.transition {
  width: 100%;
  height: 10vh;
  background: url('../images/transition.png') no-repeat center center;
  background-size: cover;
  position: relative;
}

/* =========================
   Logo animation
   ========================= */
.floating-logo {
  height: 26vh;
  width: auto;
  max-height: 30vh;
  position: relative;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation: logoFade 1s ease-out 0.2s forwards;
}

/* Animations */
@keyframes logoFade {
  0% { transform: translateY(-100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideFromLeft { to { opacity: 1; transform: none; } }
@keyframes slideFromRight { to { opacity: 1; transform: none; } }
@keyframes riseFromBottom { to { opacity: 1; transform: none; } }

/* =========================
   Lower Section / Footer
   ========================= */
.second-content-wrapper {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
}

.BSpacerL,
.BSpacerR {
  width: 17%;
  height: auto;
  background: transparent;
  margin: 0;
  padding: 0;
}

.middle-section {
  width: 66%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin: 0;
  padding: 0;
  background: transparent;
}

.Spacer {
  width: 100%;
  height: 10vh;
  background: transparent;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  min-height: 10vh;
  position: relative;
}

.TextCell1 {
  width: 100%;
  height: auto;
  background: white;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.TextCell1Icon {
  width: 35%;
  height: 300px;
  background: transparent;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.TextCell1Icon img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  display: block;
}

.TextCell1FillWrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
}

.TextCell1Fill {
  width: 100%;
  height: auto;
  background: transparent;
  margin: 0;
  padding: 25px;
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 1.1;
  text-align: center;
  overflow-y: auto;
}

.TextCell1But {
  width: 100%;
  height: 65px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  background: transparent;
}

.button-img {
  max-width: 85%;
  max-height: 85%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.TextCellSpacer {
  width: 100%;
  height: 30px;
  background: transparent;
  margin: 0;
  padding: 0;
}

.TextCell2 {
  width: 100%;
  height: auto;
  background: white;
  margin: 0;
  padding: 0;
}

.TextCell2Row {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 300px;
  background: transparent;
  margin: 0;
  padding: 0;
}

.TextCell2Icon {
  width: 35%;
  height: auto;
  background: transparent;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.TextCell2Icon img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  display: block;
}

.TextCell2Column {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 300px;
  background: transparent;
  margin: 0;
  padding: 0;
}

.TextCell2Fill {
  position: relative;
  width: 100%;
  height: 225px;
  background: transparent;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.TextCell2Fill img {
  position: absolute;
  top: 75px;
  right: 75px;
  width: 60%;
  height: auto;
  object-fit: contain;
  display: block;
}

.TextCell2But {
  width: 100%;
  height: 75px;
  background: transparent;
  margin: 0;
  padding: 0;
}

.TextCell2Text {
  width: 100%;
  height: auto;
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  padding: 25px;
  overflow-y: auto;
}

.TextCell2Text strong { font-weight: 800; }

.TextCell2Text p { margin-bottom: 20px; }

.Footer {
  width: 100%;
  height: 10vh;
  background: transparent;
  margin: 20px;
  padding: 20px;
}

.Footer a { color: white; text-decoration: underline; }
.Footer a:visited { color: white; text-decoration: underline; }

/* =========================
   Mobile Nav (<= 900px)
   ========================= */
@media (max-width: 900px) {
  .link-menu {
    width: 80% !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 10px 12px;
    justify-content: space-between;
    gap: 12px;
    position: relative !important;
  }

  .link-menu .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #45B6fe;
    color: #45B6fe;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .link-menu .menu-items {
    display: none !important;
    position: absolute !important;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.95);
    padding: 12px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 20px 30px rgba(0,0,0,0.45);
    flex-direction: column;
    gap: 8px;
    max-height: 75vh;
    overflow-y: auto;
    z-index: 10000;
  }

  .link-menu.open .menu-items {
    display: flex !important;
  }

  .link-menu .menu-items > a,
  .link-menu .menu-items > .dropdown > .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 6px;
  }

  .link-menu .dropdown {
    width: 100% !important;
    position: static !important;
  }

  .link-menu .dropbtn {
    width: 100% !important;
    text-align: left !important;
  }

  .link-menu .dropdown .dropdown-content {
    display: none !important;
    position: static !important;
    background: transparent !important;
    min-width: 0 !important;
    width: 100%;
    box-shadow: none !important;
    padding-left: 12px !important;
  }

  .link-menu .dropdown.open > .dropdown-content {
    display: block !important;
  }

  /* prevent hover flicker on touch */
  .dropdown:hover .dropdown-content {
    display: none !important;
  }
}

/* =========================
   Desktop safeguard (>= 901px)
   ========================= */
@media (min-width: 901px) {
  .link-menu .menu-toggle { display: none !important; }

  .link-menu .menu-items {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    gap: 30px !important;
    background: transparent !important;
    padding: 0 !important;
    width: auto !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
}
