@font-face {
  font-family: "EternalsFont";
  src: url("../Fonts/Centauri/Centauri.otf") format("truetype");
}
@font-face {
  font-family: "Centauri";
  src: url("../Fonts/elements-eternals-futuristic-space-display-typeface-GK6TQUD-2019-09-23/Eternal.ttf")
    format("truetype");
}
@font-face {
  font-family: "MBF";
  src: url("../Fonts/font/MBFSpace.ttf") format("truetype");
}

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: url("../Images\ &\ Videos/Home.png") no-repeat center center fixed;
  background-size: cover;
  font-family: "EternalsFont", sans-serif;
  z-index: 1;
  overflow: hidden;
}

.menu-bar {
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  pointer-events: none;
}

.menu-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.menu-list li {
  margin: 0 30px;
}

.menu-button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  padding: 10px;
  transition: color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.menu-button a {
  color: #fff;
  text-decoration: none;
  position: relative;
  z-index: 1;
  font-family: "MBF";
  font-size: 23px;
}

.menu-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transition: all 0.5s ease;
  z-index: 0;
}

.menu-button:hover::before {
  left: 100%;
}

.menu-button:hover {
  color: #f0f0f0;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.7), 0 0 20px rgba(0, 255, 255, 0.5),
    0 0 40px rgba(0, 255, 255, 0.4);
}

.menu-button a:hover {
  color: #00ffff;
}

/* Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 2s ease;
}

#loader video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide main content initially */
.hidden-content {
  opacity: 0;
  visibility: hidden;
  transition: opacity 2s ease;
}

/* Fade in when ready */
.show-content {
  opacity: 1;
  visibility: visible;
}

.menu-button {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.show-content .menu-button {
  opacity: 1;
  transform: translateY(0);
}

/* Background image */
.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../Images\ &\ Videos/Home.png");
  background-size: cover;
  background-position: center;
  z-index: -1;
}

/* Futuristic Toggle Switch Styles */
.animation-control {
  position: fixed; /* Ensures it stays in place */
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column; /* Stack items vertically */
  align-items: center; /* Center items horizontally */
  gap: 2px; /* Reduced gap for closer text */
  z-index: 1001;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 45px; /* Smaller width */
  height: 22px; /* Smaller height */
  margin-bottom: 3px; /* Space between toggle and text */
}

.toggle-switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #333;
  border-radius: 22px; /* Adjusted border-radius for smaller size */
  transition: 0.4s;
  box-shadow: 0 0 4px rgba(0, 255, 255, 0.3); /* Smaller glow */
  border: 1px solid #00ffff;
}

.slider:before {
  content: "";
  height: 18px; /* Smaller thumb */
  width: 18px; /* Smaller thumb */
  position: absolute;
  left: 2px; /* Adjusted left position */
  bottom: 2px; /* Adjusted bottom position */
  background-color: #fff;
  border-radius: 50%;
  transition: 0.4s;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.7); /* Smaller glow for thumb */
}

input:checked + .slider {
  background-color: #00ffff;
  box-shadow: 0 0 8px #00ffff, 0 0 15px #00ffff; /* Adjusted glow when on */
}

input:checked + .slider:before {
  transform: translateX(23px); /* Adjusted transform for smaller size */
  background-color: #fff;
}

/* Animation Text Styles */
.animation-text-container {
  position: relative;
  width: 120px; /* Adjusted fixed width for smaller text */
  height: 20px; /* Adjusted fixed height for smaller text */
  overflow: hidden;
  text-align: center;
}

.animation-text {
  font-family: "Orbitron", sans-serif; /* A more futuristic-looking font */
  font-size: 14px; /* Smaller font size */
  color: #fff;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.5); /* Smaller text glow */
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  white-space: nowrap;
}

.animation-text.on {
  color: #00ffff;
  text-shadow: 0 0 6px #00ffff, 0 0 10px #00ffff; /* Adjusted glow for "On" */
  opacity: 0;
  transform: translateY(100%);
}

.animation-text.off {
  color: #ccc;
  text-shadow: 0 0 4px rgba(200, 200, 200, 0.5); /* Adjusted glow for "Off" */
  opacity: 1;
  transform: translateY(0);
}

/* When checkbox is checked, show 'on' text and hide 'off' text */
input:checked ~ .animation-text-container .animation-text.on {
  opacity: 1;
  transform: translateY(0);
}

input:checked ~ .animation-text-container .animation-text.off {
  opacity: 0;
  transform: translateY(-100%);
}

/* Warning Modal Overlay Styles */
.warning-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85); /* Darker, more opaque overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000; /* Higher than other elements */
  opacity: 0; /* Start hidden */
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.warning-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* System Error Modal Styles */
.warning-modal {
  background: #ececec; /* Light grey, typical system dialog background */
  color: #333; /* Dark text color */
  border: 1px solid #7a7a7a; /* Grey border */
  border-radius: 4px; /* Slightly rounded corners */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Standard shadow */
  text-align: left; /* Text alignment for system dialog */
  max-width: 400px; /* Max width for the modal */
  width: 90%; /* Responsive width */
  font-family: "Segoe UI", Arial, sans-serif; /* System-like font */
  overflow: hidden; /* For title bar */
  transform: scale(0.9); /* Start slightly smaller */
  transition: transform 0.3s ease-in-out;
}

.warning-overlay.active .warning-modal {
  transform: scale(1); /* Scale up when active */
}

.modal-title-bar {
  background: linear-gradient(
    to bottom,
    #0078d7 0%,
    #005a9e 100%
  ); /* Windows-like blue gradient title bar */
  color: white;
  padding: 8px 15px;
  font-size: 0.9em;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: default; /* Not draggable, but looks like it */
  border-bottom: 1px solid #004a80;
}

.modal-title-bar .close-button {
  background: #ff4d4d; /* Red close button */
  color: white;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 2px;
  font-size: 0.8em;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s ease;
}

.modal-title-bar .close-button:hover {
  background: #e60000;
}

.modal-content {
  padding: 20px 25px;
  display: flex;
  align-items: flex-start; /* Align icon and text */
  gap: 15px;
}

.modal-content .icon {
  font-size: 2.5em; /* Icon size */
  color: #ffcc00; /* Yellow warning icon */
  flex-shrink: 0; /* Prevent icon from shrinking */
}

.modal-text {
  flex-grow: 1;
}

.modal-text h3 {
  font-size: 1.1em;
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
  font-weight: bold;
}

.modal-text p {
  font-size: 0.9em;
  line-height: 1.4;
  margin-bottom: 15px;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end; /* Align buttons to the right */
  padding: 0 25px 15px 25px;
}

.modal-button {
  background: #0078d7; /* Blue button */
  color: white;
  border: 1px solid #005a9e;
  padding: 8px 20px;
  border-radius: 3px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.modal-button:hover {
  background: #005a9e;
  border-color: #004a80;
}

/* Media queries for responsiveness */
@media (max-width: 1024px) {
  /* No specific styles for warning message here as it's handled by JS display */
}

@media (max-width: 768px) {
  .social-nav {
    bottom: 15px;
    padding: 10px 15px;
    gap: 10px;
  }
  .social-icon-button {
    width: 48px;
    height: 48px;
  }
  .social-icon-button .fab,
  .social-icon-button .fas {
    font-size: 24px;
  }
  .warning-modal {
    padding: 0; /* Padding handled by internal elements */
  }
  .modal-content {
    flex-direction: column; /* Stack icon and text on small screens */
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 15px;
  }
  .modal-text h3 {
    font-size: 1em;
  }
  .modal-text p {
    font-size: 0.85em;
  }
  .modal-buttons {
    justify-content: center; /* Center buttons on small screens */
    padding: 0 15px 10px 15px;
  }
}
/*
.button {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  transition: top 1s ease-out, left 1s ease-out, margin-left 1s ease-out,
    margin-top 1s ease-out, opacity 1s ease-out, transform 1s ease-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  border-radius: 10rem;
  font-weight: bold;
  cursor: pointer;
  color: white;
  z-index: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.button.visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  animation: bounce 4s ease-in-out infinite 1s;
}
.button:active {
  transform: scale(0.97);
}*/

/* Promote & animate only compositor-friendly props */
.button {
  position: absolute;
  /* entrance state */
  transform: translate3d(-50%, -50%, 0) scale(0.5);
  opacity: 0;

  /* only transform & opacity transition (no top/left/margins) */
  transition: top 1s ease-out, left 1s ease-out, margin-left 1s ease-out,
    margin-top 1s ease-out, opacity 1s ease-out, transform 1s ease-out;
  will-change: transform, opacity;
  backface-visibility: hidden;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,0.3);
  overflow: hidden;
  border-radius: 10rem;
  font-weight: bold;
  cursor: pointer;
  color: white;
  z-index: 0;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.37);
}

/* Register a custom property for bounce so it doesn't collide with the entrance transform */
@property --bob {
  syntax: '<length>';
  initial-value: 0px;
  inherits: false;
}

.button {
  /* compose the bounce offset into the same transform safely */
  /* Use CSS vars for entrance translate (set by your JS/CSS) and the bounce (--bob) */
  --tx: -50%;  /* entrance X */
  --ty: -50%;  /* entrance Y */
  --scale: 0.5;
  transform: translate3d(var(--tx), calc(var(--ty) + var(--bob)), 0) scale(var(--scale));
}

.button.visible {
  opacity: 1;
  /* entrance completes smoothly */
  --tx: 0;
  --ty: 0;
  --scale: 1;
  /* start bounce after the entrance finishes */
  animation: bounce 4s ease-in-out infinite 0.5s;
}

/* Keep click scale without stomping the main transform */
.button:active {
  --scale: 0.97;   /* instead of transform: scale(...) */
}

/* Bounce only edits the custom property, not transform directly */
@keyframes bounce {
  0%, 100% { --bob: 0px; }
  50%      { --bob: -6px; }
}

/* Optional: reduce initial GPU jank on hover glow */
.hoverEffect div {
  /* unchanged visuals, but keep animations off until hover */
  will-change: transform, opacity;
}

.hoverEffect {
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
}

.hoverEffect div {
  background: linear-gradient(
    90deg,
    rgba(222, 0, 75, 1) 0%,
    rgba(191, 70, 255, 1) 49%,
    rgba(0, 212, 255, 1) 100%
  );
  border-radius: 40rem;
  width: 10rem;
  height: 10rem;
  transition: 0.4s;
  filter: blur(20px);
  animation: effect 3s linear infinite;
  opacity: 0; /* Start with opacity 0 */
  transform: scale(0.5); /* Start smaller */
}

.button:hover .hoverEffect div {
  opacity: 0.5; /* Fade in the effect on hover */
  transform: scale(1); /* Scale up to full size */
  width: 8rem;
  height: 8rem;
}

@keyframes effect {
  0% {
    transform: rotate(0deg) scale(1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

#b1.visible { margin-left: 60%; margin-top: 24%; }
      #b2.visible { margin-left: 34%; margin-top: 34%; }
      #b3.visible { margin-left: 82%; margin-top: 9%; }
      #b4.visible { margin-left: 48%; margin-top: 20%; }
      #b5.visible { margin-left: 95%; margin-top: 30%; }
      #b6.visible { margin-left: 86%; margin-top: 26%; }
      #b7.visible { margin-left: 58%; margin-top: 38%; }
      #b8.visible { margin-left: 93%; margin-top: 5%; }
      #b9.visible { margin-left: 90%; margin-top: 15%; }
      #b10.visible { margin-left: 40%; margin-top: 10%; width: 110px; }
      #b11.visible { margin-left: 55%; margin-top: 13%; }
      #b12.visible { margin-left: 68%; margin-top: 43%; }
      #b13.visible { margin-left: 78%; margin-top: 36%; }
      #b14.visible { margin-left: 78%; margin-top: 21%; }
      #b15.visible { margin-left: 46%; margin-top: 40%; }
