/* General Styles */
html, body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

p {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

h1 {
  font-family: 'Montserrat', sans-serif;
}

h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

.text-spacing {
  letter-spacing: 3px;
}

.notification {
  font-family: monospace;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
  padding: 10px;
}

.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

.spinner {
  width: 80px;
  height: 80px;
  border: 10px solid rgba(255, 255, 255, 0.3);
  border-top: 10px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.full-width {
  width: 100%;
  overflow: hidden; /* Prevents overflow issues */
}

.main-content-overlay {
  position: relative;
  height: 100%;
}

.content-center {
  position: relative;
  z-index: 2; /* Place content above filter */
}


.presentation-title {
  font-size: 7em;
  font-weight: 700;
  margin: 0;
  width: max-content;
  /* You can keep or adjust the background gradient as needed */
  background: linear-gradient(to bottom, #FFFFFF 35%, #4e6773 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

  .presentation-title .letter {
    position: relative;
    display: inline-block;
    opacity: 0;
    /* Use a slightly transparent white */
    color: rgba(255, 255, 255, 0.8);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.3);
    animation: flyIn 0.5s forwards;
    animation-delay: calc(var(--i) * 0.1s);
  }

  .presentation-title .letter-core {
    display: inline-block;
  }

  .presentation-title .letter-particle {
    position: absolute;
    left: 50%;
    top: 50%;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.9);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.55);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.42));
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--px), var(--py)) scale(var(--scale));
  }

  .presentation-title.animate-out .letter {
    animation: flyOut 0.5s forwards;
    animation-fill-mode: forwards;
    animation-delay: calc((var(--letter-count) - 1 - var(--i)) * 0.1s);
  }




@keyframes flyIn {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes flyOut {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

.letter.particle-out {
  animation: none;
  opacity: 1;
}

.letter.particle-out .letter-core {
  animation: letterBlowAway 0.72s ease-out forwards;
}

.letter.particle-out .letter-particle {
  animation: letterParticleBlow 1.05s cubic-bezier(.16, .84, .42, 1) forwards;
  animation-delay: var(--delay);
}

@keyframes letterBlowAway {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }

  45% {
    opacity: 0.55;
    transform: translateX(18px) scale(0.94);
    filter: blur(1px);
  }

  100% {
    opacity: 0;
    transform: translateX(72px) scale(0.78);
    filter: blur(8px);
  }
}

@keyframes letterParticleBlow {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--px), var(--py)) scale(var(--scale)) rotate(0deg);
    filter: blur(0);
  }

  12% {
    opacity: 0.95;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(calc(var(--px) + var(--tx)), calc(var(--py) + var(--ty))) scale(calc(var(--scale) * 0.45)) rotate(var(--rot));
    filter: blur(7px);
  }
}




/* --- Title Animation: Fly Up and Fade Out --- */
@keyframes titleFlyUpFadeOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-50px) scale(1.5); /* Scale up while moving */
  }
}

/* Original class, now unused for VDMFE text */
.fly-up-fade-out {
  animation: titleFlyUpFadeOut 1.5s forwards;
}

/* --- Updated Title Animation: Fly Up and Scale Out (used by VDMFE text) --- */
@keyframes coolFadeOutTitle {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-50px) scale(1.5); /* Increase scale like fog */
  }
}

.cool-animation {
  animation: coolFadeOutTitle 1.5s forwards;
}


/* --- Fog Zoom Animation --- */
@keyframes fogZoomOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.5); /* Adjust zoom intensity as needed */
  }
}

.fog-zoom {
  animation: fogZoomOut 1.5s forwards;
}

/* --- Blinking Cursor for Text --- */
.blinking-cursor::after {
  content: "|";
  margin-left: 2px;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}






/* Realistic layered fog */
.moving-fog {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.52;
}

.moving-fog::before,
.moving-fog::after {
  content: "";
  position: absolute;
  left: -35%;
  width: 170%;
  pointer-events: none;
  background-repeat: no-repeat;
}

.moving-fog::before {
  bottom: -70px;
  height: 58%;
  filter: blur(20px);
  opacity: 0.74;
  background-image:
    radial-gradient(120% 88% at 8% 100%, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0) 65%),
    radial-gradient(132% 92% at 34% 100%, rgba(255, 255, 255, 0.27) 0%, rgba(255, 255, 255, 0) 68%),
    radial-gradient(124% 90% at 61% 100%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 66%),
    radial-gradient(136% 92% at 88% 100%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 68%);
  animation: fogLayerNear 78s linear infinite;
}

.moving-fog::after {
  bottom: -120px;
  height: 76%;
  filter: blur(34px);
  opacity: 0.5;
  background-image:
    radial-gradient(145% 98% at 18% 100%, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(138% 96% at 51% 100%, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(148% 100% at 84% 100%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 74%);
  animation: fogLayerFar 118s linear infinite;
}

@keyframes fogLayerNear {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-22%);
  }
}

@keyframes fogLayerFar {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-14%);
  }
}

.captcha-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; /* take all available space */
  max-width: 180px; /* match the cssWidth you chose in C# */
  height: 35px; /* match the cssHeight you chose in C# */
  border-radius: 8px;
  overflow: hidden; /* rounded corners clip the image nicely */
  border: 0px solid #ccc;
  background-color: #f5f5f5;
  opacity: 0.95;
  margin: 10px 0px;
}

  .captcha-box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill; /* since we rendered exact aspect, this fills neatly */
  }

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.envelope-open {
  animation: openEnvelope 1.5s forwards;
}

@keyframes openEnvelope {
  0% {
    transform: rotate(0deg); /* Start position */
  }

  20% {
    transform: rotate(72deg); /* Rotate to open position */
  }

  40% {
    transform: rotate(144deg); /* Rotate to open position */
  }

  60% {
    transform: rotate(216deg); /* Rotate to open position */
  }

  80% {
    transform: rotate(288deg); /* Rotate to open position */
  }

  100% {
    transform: rotate(360deg); /* Reset back to original */
  }
}

/* Apply the rotation animation to the icon */
.rotating-icon {
  animation: rotate 2s linear infinite; /* 2s for slower rotation */
}

.btn_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 16px;
  color: white;
  background-color: #151515;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; /* Added transition for shadow */
  position: relative;
  overflow: hidden;
}

  /* Hover Effect */
  .btn_button:hover {
    background-color: #333; /* Change to a lighter shade on hover */
    /*transform: scale(1.01);*/ /* Slightly increase the button size */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
  }

.captcha-input {
  margin-top: 0px;
  padding: 5px;
  width: 100%;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.pagecontent {
  padding: 50px;
  color: white;
}

/* === Contact / form fields ===
   Frosted dark fields against the light overlay panel, gold focus ring
   to match the rest of the site. Scoped to .pagecontent so other pages
   aren't affected. */
.pagecontent .form-control,
.pagecontent .captcha-input {
  background: rgba(20, 28, 38, 0.55);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
  font-size: 15px;
  line-height: 1.4;
  font-family: inherit;
  box-sizing: border-box;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

  .pagecontent .form-control::placeholder,
  .pagecontent .captcha-input::placeholder {
    color: rgba(241, 245, 249, 0.55);
  }

  .pagecontent .form-control:hover,
  .pagecontent .captcha-input:hover {
    border-color: rgba(255, 255, 255, 0.3);
  }

  .pagecontent .form-control:focus,
  .pagecontent .captcha-input:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.65);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    background: rgba(20, 28, 38, 0.7);
  }

.pagecontent textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.pagecontent .form-group {
  margin-bottom: 14px;
}

  .pagecontent .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.02em;
  }

/* Blazor's <ValidationMessage> renders this class. */
.pagecontent .validation-message {
  color: #ff8a8a;
  font-size: 13px;
  margin-top: 4px;
  display: block;
}

/* Captcha row keeps its flex layout; the input flexes into remaining width. */
.pagecontent .captcha-input {
  flex: 1;
  min-width: 0;
}

/* Browser autofill (Chrome/Safari/Edge) repaints fields white via :-webkit-autofill,
   ignoring background-color. The fix is a huge inset box-shadow that masks the
   browser's yellow/white fill, plus -webkit-text-fill-color for the typed text. */
.pagecontent .form-control:-webkit-autofill,
.pagecontent .form-control:-webkit-autofill:hover,
.pagecontent .form-control:-webkit-autofill:focus,
.pagecontent .form-control:-webkit-autofill:active,
.pagecontent .captcha-input:-webkit-autofill,
.pagecontent .captcha-input:-webkit-autofill:hover,
.pagecontent .captcha-input:-webkit-autofill:focus,
.pagecontent textarea.form-control:-webkit-autofill {
  -webkit-text-fill-color: #f1f5f9 !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(20, 28, 38, 0.92) inset !important;
  caret-color: #f1f5f9 !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  /* Long transition so the browser's autofill repaint can't briefly flash white. */
  transition: background-color 9999s ease-out 0s;
}

.pagecontent .form-control:-webkit-autofill:focus,
.pagecontent .captcha-input:-webkit-autofill:focus,
.pagecontent textarea.form-control:-webkit-autofill:focus {
  border-color: rgba(255, 215, 0, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2),
              0 0 0 1000px rgba(20, 28, 38, 0.92) inset !important;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.overlay-content {
  background-color: rgba(255, 255, 255, 0.3);
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  height: 80%;
  overflow-y: auto;
  position: relative;
  margin-top: 80px;
  margin-bottom: 60px;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  will-change: transform, opacity;
}

/* Slide in/out animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

/* Class for slide-in animation */
.slide-in {
  animation-name: slideInRight;
}

/* Class for slide-out animation */
.slide-out {
  animation-name: slideOutLeft;
}

.custom-link {
  color: #ffffff;
}

  .custom-link:hover {
    color: #151515;
    text-decoration: underline;
  }

/* Custom Navbar Styles */
.custom-navbar {
  border: 0;
  font-size: 14px;
  transition: all 0.4s;
  padding: 10px 40px;
  background: transparent !important;
  box-shadow: none;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1029;
}

.custom-navbar-translate {
  display: flex;
  align-items: center;
}

.custom-navbar-brand {
  font-weight: 600;
  margin: 5px 0;
  padding: 20px 15px;
  font-size: 14px;
  color: #FFFFFF;
  text-transform: uppercase;
  text-decoration: none;
}

  .custom-navbar-brand:hover {
    color: #FFFFFF;
    text-decoration: underline;
  }

.custom-navbar-toggler {
  border: none;
  background: transparent;
}

.custom-navbar-toggler-bar {
  background: #FFFFFF !important;
}

.custom-navbar-collapse {
  justify-content: flex-end !important;
}

.custom-navbar-nav {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.custom-nav-item {
  margin: 0 10px;
}

.custom-nav-link {
  padding: 10px 15px;
  font-size: 14px;
  color: #FFFFFF !important;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

  .custom-nav-link:hover {
    color: #cccccc !important;
  }

  /* Highlight the active menu item */
  .custom-nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFD700;
    border-radius: 5px;
  }

/* Ensure other elements do not interfere with navbar styles */
.custom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Page Header styles */
.page-header {
  background-size: cover;
  background-position: center;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  z-index: 1;
  margin: 0;
  padding: 0;
}

  .page-header .filter {
    background-color: rgba(0, 0, 0, 0.6);
    content: "";
    display: block;
    height: 100%;
    left: 0;
    top: 0;
    position: absolute;
    width: 100%;
    z-index: 1;
  }

  .page-header .content-center {
    margin-top: 10px;
    z-index: 2;
  }

.title-brand {
  max-width: 730px;
  margin: 0 auto;
  position: relative;
  text-align: center;
  color: #FFFFFF;
  z-index: 4;
}

.glow-text {
  transition: color 0.3s ease, text-shadow 1.1s ease; /* Smooth transitions for color and text-shadow */
  cursor: default; /* Keep the cursor as an arrow (default) */
}

  /* Hover effect for glowing text */
  .glow-text:hover {
    color: white; /* Change the text color to white on hover */
    text-shadow: 0 0 10px white, 0 0 20px white; /* Add glow effect */
  }

@keyframes fadeInSlideUp {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}


.presentation-subtitle {
  font-size: 18px;
  color: #FFFFFF;
  opacity: 0.8;
}

.presentation-subtitle .subtitle-icon {
  display: inline-block;
  margin: 0 0.45rem;
  font-size: 0.86em;
  opacity: 0.9;
  transform: translateY(-0.03em);
}

.category-absolute {
  position: absolute;
  text-align: center;
  top: 100vh;
  margin-top: -60px;
  padding: 0 15px;
  width: 100%;
  color: rgba(255, 255, 255, 0.5);
}

.fog-low {
  position: absolute;
  left: 0;
  bottom: 0;
  margin-left: -35%;
  margin-bottom: -75px;
  width: 110%;
  opacity: .85;
}

  .fog-low img {
    width: 100%;
  }

  .fog-low.right {
    margin-left: 30%;
    opacity: 1;
  }

/* Main content styles */
.main-content {
  margin-top: 60px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
}

.footer {
  color: #FFFFFF;
  padding: 20px 0;
  bottom: 0;
  width: 100%;
}

/* --- MODERN SCROLLBAR STYLES --- */
/* Your current code has some redundancy and is a bit dated. This
   version cleans it up and uses a more modern, minimal aesthetic. */

/* WebKit (Chrome, Safari, Edge, Opera) */
/* The scrollbar itself */
::-webkit-scrollbar {
  width: 10px; /* Adjust width as needed for a slimmer look */
}

/* The scrollbar track (the background) */
::-webkit-scrollbar-track {
  background: #222; /* A dark color that fits your layout */
  border-radius: 5px; /* Adds a slight curve */
}

/* The scrollbar thumb (the draggable part) */
::-webkit-scrollbar-thumb {
  background: #888; /* A lighter gray for visibility */
  border-radius: 5px; /* Fully rounded corners */
}

  /* Thumb on hover for better user experience */
  ::-webkit-scrollbar-thumb:hover {
    background: #bbb; /* Lighter on hover */
  }

/* Firefox */
/* The scrollbar itself (thin is modern) */
* {
  scrollbar-width: thin;
  scrollbar-color: #888 #222; /* thumb color track color */
}

/* --- END OF SCROLLBAR STYLES --- */

/* Apply styles to overlay-content if needed */
.overlay-content {
  scrollbar-width: thin;
  scrollbar-color: #888 #222; /* Apply the same modern style */
}

  /* Overlay-content specific WebKit scrollbar styles */
  .overlay-content::-webkit-scrollbar {
    width: 10px; /* Keep it consistent with the main scrollbar */
  }

  .overlay-content::-webkit-scrollbar-track {
    background: #222;
    border-radius: 5px;
  }

  .overlay-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
  }

    .overlay-content::-webkit-scrollbar-thumb:hover {
      background: #bbb;
    }

/* Media query for mobile devices */
@media (min-width: 769px) {
  /* Hide the mobile menu overlay */
  .mobile-menu-overlay {
    display: none;
  }

  /* Hide the breadcrumb icon */
  .breadcrumb-icon {
    display: none;
  }

  /* Show the desktop navbar by default */
  .custom-navbar-collapse {
    display: flex;
  }
}

/* Moving Clouds */
.moving-clouds {
  --cloud-tile-width: 4582.857px;
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  width: calc(100vw + var(--cloud-tile-width));
  height: 800px;
  background-image: url('../images/clouds.png');
  background-repeat: repeat-x;
  background-size: var(--cloud-tile-width) 800px;
  animation: cloudLoop 160s linear infinite;
  opacity: 1;
}

@keyframes cloudLoop {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-1 * var(--cloud-tile-width)));
  }
}

/* Mobile Styles */
@media (max-width: 768px) {

  .pagecontent {
    padding: 10px;
    color: white;
  }

  .moving-clouds {
    animation: cloudLoop 180s linear infinite;
  }

  .fog-low {
    position: absolute;
    left: 0; /* Keep the fog on the left side */
    bottom: 0;
    width: 100%; /* Change width to 100% */
    height: auto; /* Adjust height automatically */
    opacity: 0.85;
  }

    .fog-low.right {
    }

  .title-brand {
    max-width: 90vw; /* Adjust max-width for better responsiveness */
    margin: 0 auto;
    position: relative;
    text-align: center;
    color: #FFFFFF;
    padding: 0;
  }

  .presentation-title {
    font-size: 20vw;
  }

  .presentation-subtitle {
    font-size: 5vw;
  }

  .custom-navbar-collapse {
    display: none;
  }

  /* Show the breadcrumb icon */
  .breadcrumb-icon {
    display: block;
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 1030;
    cursor: pointer;
    color: #FFFFFF;
    font-size: 1.5em;
  }

  /* Mobile menu overlay styles */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
  }

    .mobile-menu-overlay.active {
      display: flex;
    }

    /* Centering menu items and removing bullet points */
    .mobile-menu-overlay ul {
      list-style-type: none;
      padding: 0;
      margin: 0;
      text-align: center;
    }

  .mobile-menu-item {
    margin: 20px 0;
    padding: 0px 0px;
    font-size: 3.0em;
    color: #FFFFFF;
    text-decoration: none;
    text-transform: uppercase;
  }

    .mobile-menu-item:hover {
      color: #FFD700;
    }
}
