html,
body {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
header, footer {
  position: fixed; /* Stays on top */
  width: 100%;
  z-index: 1000; /* Ensures it stays above the 3D object */
}

header {
  top: 0;
}

footer {
  bottom: 0;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgb(196, 214, 242) 50%, rgb(76, 92, 150) 100%); */
  z-index: -1;
  pointer-events: none;
}

/* body.dark-mode::before {
  background: radial-gradient(circle, rgb(25, 31, 47, 1) 0%, rgb(12, 17, 28, 1) 50%, rgb(0, 0, 10, 1) 100%);
} */

#circleMenu {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

#circleMenu::before {
  content: "";
  display: block;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.3);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

#circleMenu.open::before {
  opacity: 1;
}

#circleMenu input {
  display: none;
}

#circleMenu nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  visibility: hidden;
}

#circleMenu input:checked+nav {
  visibility: inherit;
}

#circleMenu nav>div,
#circleMenu nav>a {
  --c: #ff0035;
  position: absolute;
  transform: translate(-50%, -50%);
  background: var(--c);
  width: 65px;
  height: 65px;
  border-radius: 50%;
  transition: all 0.15s ease;
  will-change: transform, opacity;
  opacity: 1;
  border: 3px solid rgb(0, 0, 0);
  box-sizing: border-box;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#circleMenu:not(.open) nav>div,
#circleMenu:not(.open) nav>a {
  opacity: 0;
  transform: translate(-50%, -50%) !important;
}

#circleMenu span {
  font-size: 32px;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.2);
  transition: transform 0.1s;
  will-change: transform;
}

#circleMenu nav>div:hover,
#circleMenu nav>a:hover {
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

#circleMenu nav>div:hover span,
#circleMenu nav>a:hover span {
  transform: translate(-50%, -50%) scale(1);
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.orbit {
  fill: none;
  stroke: rgba(0, 0, 0, 0.3);
  stroke-width: 2;
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-mode .orbit {
  stroke: rgba(255, 255, 255, 0.3);
}

body.dark-mode #circleMenu nav>div,
body.dark-mode #circleMenu nav>a {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

body.dark-mode #circleMenu span {
  color: #fff;
  /* Ensure icons remain white */
}

/* Drop-down Menu Styles */
#dropdownMenu {
  position: absolute;
  top: 55px;
  /* Adjust this value as needed */
  right: 10px;
  /* Adjust this value as needed */
  background: rgba(0, 0, 0, 0.192);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgb(255, 255, 255);
  padding: 10px;
  display: none;
  /* Initially hidden */
  flex-direction: column;
  z-index: 1000;
}

/* Trigger Button Styles */
#menuTrigger {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.735);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.493);
  padding: 12px;
  cursor: pointer;
  z-index: 1001;
}

/* Open Dropdown */
#dropdownMenu.open {
  display: flex;
}

/* Dropdown Menu Links */
#dropdownMenu a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--c, #333);
  /* Use the custom property for color */
  padding: 10px;
  border-radius: 5px;
  transition: background 0.3s, color 0.3s;
  background: var(--c, #eee);
  /* Use the custom property for background */
}

#dropdownMenu a:hover {
  background: rgba(0, 0, 0, 0.146);
  color: #fff;
  /* Change text color on hover if needed */
}

#dropdownMenu a img {
  margin-right: 10px;
}

#dropdownMenu a span {
  margin-left: 10px;
  font-size: 14px;
}

/* General Icon Styles */
#circleMenu nav>div a span,
#dropdownMenu a span {
  color: #ffffff;
  /* Default color for icons */
}

/* Dark Mode Icon Colors */
body.dark-mode #circleMenu nav>div a span,
body.dark-mode #dropdownMenu a span {
  color: #ffffff;
  /* White color for icons in dark mode */
}

/* Button Styles */
#circleMenu nav>div,
#circleMenu nav>a {
  --c: #ff0035;
  position: absolute;
  transform: translate(-50%, -50%);
  background: var(--c);
  width: 65px;
  height: 65px;
  border-radius: 50%;
  transition: all 0.15s ease;
  will-change: transform, opacity;
  opacity: 1;
  border: 3px solid rgb(0, 0, 0);
  box-sizing: border-box;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Dark Mode Button Styles */
body.dark-mode #circleMenu nav>div,
body.dark-mode #circleMenu nav>a {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Media Query for Mobile */
@media (max-width: 768px) {

  /* Adjust dropdown menu for mobile */
  #dropdownMenu {
    position: fixed;
    top: 60px;
    /* Below the trigger button */
    right: 10px;
    width: calc(100% - 20px);
    border-radius: 10px;
    padding: 10px 5px;
    z-index: 1000;
  }

  /* Adjust trigger button for mobile */
  #menuTrigger {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1001;
  }

  /* Make dropdown links more mobile-friendly */
  #dropdownMenu a {
    font-size: 16px;
    padding: 10px 15px;
  }

  #dropdownMenu a img {
    margin-right: 10px;
  }

  #dropdownMenu a span {
    margin-left: 10px;
    font-size: 16px;
  }
}

/* Custom Colors for Dropdown Menu Items */
#dropdownMenu a[href$="https://travelexpert360.com"] {
  --c: #575dba;
  /* YouTube */
}

#dropdownMenu a[href$="youtube.html"] {
  --c: #c93a3a;
  /* YouTube */
}

#dropdownMenu a[href$="insta.html"] {
  --c: #ae07e4;
  /* Instagram */
}

#dropdownMenu a[href$="landing video.html"] {
  --c: #168686;
  /* 360° video tour */
}

#dropdownMenu a[href$="photo.html"] {
  --c: #F05454;
  /* 360° Photo tour */
}

#dropdownMenu a[href$="about/about.html"] {
  --c: #0D63A5;
  /* About us */
}

#dropdownMenu a[href$="https://mag.travelexpert360.com"] {
  --c: #919191;
  /* Default color */
}

#dropdownMenu a[href$="#"] {
  --c: #000000;
  /* Default color */
}
#dropdownMenu a[href$="robot.html"] {
  --c: #0Da3A5;
  /* About us */
}

/* ---- particles.js container ---- */

#particles-js{
  width: 100%;
  height: 100%;
  background-color: #3b54d1;
  background-image: url('');
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}

#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgb(82, 158, 236) 0%, rgb(24, 139, 211) 20%, rgb(0, 54, 201) 100%);
  z-index: -1; /* Background behind everything */
}

canvas { /* For Three.js rendering canvas */
  position: relative;
  z-index: 1; /* Ensure the canvas is above particles */
}

/* Dark Mode Styles */
body.dark-mode #particles-js {
  background: radial-gradient(circle, rgb(6, 67, 236) 0%, rgb(4, 15, 97) 50%, rgb(2, 0, 16) 100%); /* Match dark particles background */
}