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; }

/* ========== Gallery / Lightbox ========== */
.gallery-container {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
  height: auto;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
  padding-bottom: 20px;
  max-width: 100%;
  justify-content: center;
  background: transparent;
}

.gallery-item { text-align: center; width: 200px; }

.gallery-item img {
  width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.3s;
}
.gallery-item img:hover { transform: scale(1.15); cursor: zoom-in; }

.gallery-item .thumbnail-title {
  margin-top: 0px;
  font-size: 0.9em;
  color: black;
  font-weight: bold;
}

#lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center; align-items: center;
  flex-direction: column;
  z-index: 11000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
#lightbox.show { opacity: 1; display: flex; z-index: 11000; }

.lightbox-image-container { position: relative; }
#lightbox-img { max-height: 60vh; border-radius: 8px; display: block; }

#watermark {
  position: absolute;
  bottom: 25px; left: 50%; transform: translateX(-50%);
  width: 180px; height: auto; opacity: 1; z-index: 1;
}

.controls {
  position: absolute; top: 50%; width: 100%;
  display: flex; justify-content: space-between;
  color: white; font-size: 2.5rem; cursor: pointer; z-index: 2;
  pointer-events: none;
}
.controls span { pointer-events: all; padding: 15px; text-shadow: 2px 2px 5px rgba(0,0,0,0.8); }

@media (max-width: 768px) {
  .controls { font-size: 2rem; top: 45%; }
  .controls span { padding: 20px; }
}

.close-btn { position: absolute; top: 10px; right: 20px; font-size: 2rem; color: white; cursor: pointer; }

/* ========== 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-image: url('../images/bottombackground.png');
  background-repeat: repeat-y;
  background-position: top center;
  background-size: 100% auto;
}

.topA {
  width: 100%; height: 28vh;
  background: url('../images/backgroundheader.png') top center no-repeat;
  background-size: 100% auto;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

.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;
}

/* ========== 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: 0px 16px 32px rgba(0, 0, 0, 0.75);
  border-radius: 0px; 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; }

.menu-spacer { width: 100%; height: 5vh; }

/* 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;
}

/* ========== Cards / Layout Blocks (used by contact form wrapper) ========== */
.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, .cardSpace3 { width: 2%; height: auto; }

.Card1, .Card2, .Card3, .Card4 {
  width: 15%; 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; cursor: pointer;
}
.Card1 { animation: slideFromLeft 0.8s ease-out 0.4s forwards; transform: translateX(-100px); }
.Card2 { animation: riseFromBottom 0.8s ease-out 0.6s forwards; transform: translateY(100px); }
.Card3 { animation: riseFromBottom 0.8s ease-out 0.6s forwards; transform: translateY(100px); }
.Card4 {
  animation: slideFromRight 0.8s ease-out 0.8s forwards; transform: translateX(100px);
  display: flex; justify-content: center; align-items: center;
}
.Card1:hover, .Card2:hover, .Card3:hover, .Card4:hover {
  transform: translateX(0) scale(1.1) !important; z-index: 2; transition: transform 0.3s ease;
  cursor: pointer;
}
.Card1, .Card2, .Card3, .Card4 { display: flex; flex-direction: column; }
.Card1Top, .Card2Top, .Card3Top, .Card4Top {
  width: 100%; height: 50%; display: flex; justify-content: center; align-items: center; background: transparent;
}
.Card1Bottom, .Card2Bottom, .Card3Bottom, .Card4Bottom {
  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: 90%; height: 90%; object-fit: contain; display: block; }

.transition {
  width: 100%; height: 10vh;
  background: url('../images/transition.png') no-repeat center center;
  background-size: cover; position: relative;
}

/* 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: 3vh; background: transparent; margin: 0; padding: 0;
  flex-shrink: 0; min-height: 1vh; position: relative;
}

/* (TextCell blocks kept in case other pages use them) */
.TextCell1 { display: flex; flex-direction: column; width: 100%; height: auto; background: white; margin: 0; padding: 0; }
.TextCell1Fill {
  max-width: 500px; width: 100%; height: auto; display: flex; justify-content: center; align-items: center;
  margin: 0 auto; padding: 0; overflow: hidden;
}
.TextCell1Fill img { width: auto; height: 100%; max-height: 100px; display: block; padding: 20px; }
.TextCell1Space { width: 100%; height: auto; background: white; margin: 0; padding: 25px; padding-top: 0; text-align: center; }
.TextCell1Space p { color: black; font-size: 18px; font-weight: bold; margin: 0; text-align: center; }

.TextCellSpacer { width: 100%; height: 30px; background: transparent; margin: 0; padding: 0; }
.TextCell2 { width: 100%; height: auto; min-height: 200px; 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; }

#backToTopBtn {
  display: none; position: fixed; right: 50px; top: 50%;
  transform: translateY(-50%); width: 130px; height: auto;
  cursor: pointer; pointer-events: auto; z-index: 10000;
}

body * { position: relative; z-index: auto; }

/* ========== Contact Form block (replaces cards) ========== */
.cards-replacement .container {
  width: 100%; display: flex; gap: 24px;
  background-color: rgba(255,255,255,0.92); border-radius: 12px;
  padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); box-sizing: border-box;
}
.cards-replacement .left-pane, .cards-replacement .right-pane { flex: 1; }
.cards-replacement .right-pane {
  background: rgba(0,0,0,0.6); color: #fff; border-radius: 10px; padding: 16px; text-align: center;
}
.cards-replacement .right-pane a { color: #fff; text-decoration: underline; }
.cards-replacement .form-group { margin-bottom: 16px; }
.cards-replacement .form-group label { display:block; margin-bottom:6px; font-weight:600; color:#000; }
.cards-replacement h1 { color:#000; }
.cards-replacement .form-group input,
.cards-replacement .form-group textarea {
  width:100%; padding:12px; box-sizing:border-box;
  border:1px solid #d1d5db; border-radius:8px; background:#fff; font-size:1rem; color:#000;
}
.cards-replacement .submit-button {
  background-color:#45B6fe; color:#fff; border:0; border-radius:10px;
  padding:12px 16px; font-weight:700; cursor:pointer; width:100%;
  transition: background-color .2s ease-in-out;
}
.cards-replacement .submit-button:hover { background-color:#305F95; }

@media (max-width: 900px) {
  .cards-replacement .container { flex-direction: column; }
}

/* ========== Mobile Nav: collapse into button + panel, click-to-open dropdowns ========== */
@media (max-width: 900px) {
  .link-menu {
    width: 80% !important;        /* your mobile width preference */
  }
  .link-menu {                    /* ensure mobile behavior */
    min-width: 0 !important;
    height: auto !important;
    padding: 10px 12px;
    justify-content: space-between;
    gap: 12px;
  }
  .link-menu .menu-toggle {
    display: inline-flex;
    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;
    position: absolute; top: 100%; left: 0; right: 0;   /* within the 80% bar */
    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);
    z-index: 10000;

    flex-direction: column; gap: 8px;
    max-height: 75vh; overflow-y: auto;
  }
  .link-menu.open .menu-items { display: flex; }

  .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%; position: static !important; }
  .link-menu .dropbtn { width: 100% !important; text-align: left; }

  .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; }

  /* disable hover-open to prevent flicker on touch */
  .dropdown:hover .dropdown-content { display: none !important; }
}

/* Desktop: ensure toggle is hidden and items are inline row */
@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;
  }
}
