/* Basic setup for full-page background */
html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  background-color: black;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Page Content Styling */
.content {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.logo {
  filter: invert(1);
}

/* COLOURS */
.folio-darkblue { color: rgb(48, 64, 68); }
.folio-lightblue { color: rgba(15, 157, 172, 1); }
.folio-lightgreen { color: rgba(135, 242, 228, 1); }
.folio-mid-blue {}

.green-gradient {
  background: linear-gradient(to bottom, black, rgb(76, 136, 128), rgba(135, 242, 228, 1)); 
  -webkit-background-clip: text; 
  color: transparent;
}

/* EFFECTS */
.text-shadow {
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.contour-shadow {
  filter: drop-shadow(0px 10px 10px rgba(0, 0, 0, 0.5));
}

/* Navbar Styling */
.navbar {
  box-shadow: none;
  background-color: transparent !important;
}

.navbar-light .navbar-nav .nav-link {
  color: #000;
}

.navbar-light .navbar-nav .nav-link:hover {
  color: rgb(96, 85, 44);
}

.navbar-light .navbar-nav .nav-link.active {
  color: rgb(96, 85, 44);
}

.navbar-nav {
  display: flex;
  justify-content: space-evenly; /* Distribute items evenly */
  align-items: center; /* Vertically align items */
  margin-left: auto;
  width: 100%; /* Ensures full width for equal distribution */
}

@media (min-width: 1400px) {
  .navbar-nav {
    width: 70%
  }
}

.navbar-nav .nav-link {
  margin: 0; /* Optional: Adjust spacing between items */
}

#overlayMenu .active a {
  color: rgba(135, 242, 228, 1);
}

/* Hamburger button styles */
.navbar-toggler {
  border: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10000;
  background: transparent;
  display: none;  /* Hide hamburger by default */
  flex-direction: column;
  justify-content: space-between;
  width: 55px;
  height: 35px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.navbar-toggler span {
  display: block;
  width: 100%;
  height: 5px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
  margin-bottom: 4px;
}

.navbar-toggler.open span:nth-child(1) {
  transform: rotate(45deg);
  position: absolute;
  top: 8px;
  width: 35px;
}

.navbar-toggler.open span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler.open span:nth-child(3) {
  transform: rotate(-45deg);
  position: absolute;
  top: 8px;
  width: 35px;
}

/* Show Hamburger on Mobile (<= 767px) */
@media (max-width: 992px) {
  .navbar-toggler {
    display: flex; /* Show hamburger on mobile */
  }
}

/* Dropdown Menu */
.dropdown-menu {
  background-color: transparent !important;
  border: none;
  padding: 0;
  display: none; /* Initially hide dropdown */
  opacity: 0; /* Initially hide dropdown items */
  transition: opacity 0.5s ease; /* Smooth fade-in effect */
}

/* Show dropdown when hovered */
.nav-item.dropdown:hover .dropdown-menu {
  display: block; /* Make dropdown menu visible on hover */
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Dropdown item styling for line-by-line "drop down" animation */
.nav-item .dropdown-menu .dropdown-item {
  opacity: 0; /* Start with all items hidden */
  transform: translateY(-10px); /* Start slightly above the normal position */
  transition: opacity 0.3s ease, transform 0.8s ease; /* Apply fade and slide effect */
}

/* Apply the drop-down animation with a delay to each item */
.nav-item .dropdown-menu .dropdown-item:nth-child(1) {
  animation: dropDown 0.3s ease forwards 0.1s; /* 0.1s delay for the first item */
}

.nav-item .dropdown-menu .dropdown-item:nth-child(2) {
  animation: dropDown 0.3s ease forwards 1s; /* 0.2s delay for the second item */
}

.nav-item .dropdown-menu .dropdown-item:nth-child(3) {
  animation: dropDown 0.3s ease forwards 1.5s; /* 0.3s delay for the third item */
}

/* More items can continue with increasing delays (e.g., 0.4s, 0.5s, etc.) */

/* ===============================
   ANIMATIONS & INTERACTIONS
   =============================== */

/* Keyframe animation for "dropping down" and fading in */
@keyframes dropDown {
  0% {
    opacity: 0;
    transform: translateY(-20px); /* Starts slightly above */
  }
  100% {
    opacity: 1;
    transform: translateY(0); /* Moves to its normal position */
  }
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%); /* Start off-screen to the left */
    opacity: 0;
  }
  100% {
    transform: translateX(0); /* End at the original position */
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100%); /* Start off-screen to the Right */
    opacity: 0;
  }
  100% {
    transform: translateX(0); /* End at the original position */
    opacity: 1;
  }
}

.leftSlide {
  opacity: 0;
  animation: slideInFromLeft 1s ease-out forwards; /* Adjust the timing and easing as needed */
  animation-delay: 3s;
}

.rightSlide {
  opacity: 0;
  animation: slideInFromRight 1s ease-out forwards; /* Adjust the timing and easing as needed */
  animation-delay: 3s;
}


/* Optional: Make dropdown items have a smooth transition when darkened */
.nav-item .dropdown-menu .dropdown-item:hover {
  background-color: transparent !important; /* Remove white background on hover */
  color: rgba(135, 242, 228, 1) !important; /* Change text color on hover */
}

/* Default dropdown item styling */
.dropdown-item {
  color: white !important;
  font-family: "Ethnocentric", sans-serif;
  font-weight: lighter; /* Lighter text weight */
  font-size: 0.8rem;
  line-height: 0.8;
}

/* Overlay Menu */
.overlay-menu {
  background-color: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
  pointer-events: none;
}

.overlay-menu.show {
  display: flex;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-in-out, visibility 0s linear 0s;
  pointer-events: auto;
}

.overlay-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.overlay-menu ul li {
  margin: 20px 0;
}

.overlay-menu ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
}

body.no-scroll {
  overflow: hidden;
}

/* Fade-in effect for elements */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Class to apply the fade-in effect */
.fade-in {
  opacity: 0;
  animation: fadeIn 2s ease-in-out forwards;
}

/* Footer Styling */
footer {
  background-color: #000;
  background: linear-gradient(to bottom, #000, #000);
  color: white;
  padding: 20px 0;
  text-align: center;
}

.wrapper {
  flex: 1;
}

[data-bs-toggle="collapse"] {
  cursor: pointer;
}

/* Section Divider */
.section-divider {
  border-top: 2px solid #333;
  margin: 20px 0;
  height: 0;
}

/* Optional: Smooth Transition for Collapse */
.collapse {
  transition: height 0.3s ease;
}

/* Mobile-specific styles */
@media (max-width: 767px) {
  .navbar-nav {
    display: block;
  }
}

/* POSITIONING */
.neg-top-lg {
  margin-top: -30px;
}

.neg-top-md {
  margin-top: -20px;
}

.neg-top-sm-md {
  margin-top: -15px;
}

.neg-top-sm {
  margin-top: -10px;
}

/* BUTTONS */

.main-button {
  background-color: rgba(135, 242, 228, 0.2);
  border: 2px solid rgba(135, 242, 228, 1);
  color: white;
  padding: 10px 10px;
  border-radius: 12px;
  font-family: "Ethnocentric", sans-serif;
  font-weight: 200;
  font-size: clamp(0.7rem, 0.7vw, 1.5rem);
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}

.main-button:hover {
  background-color: rgba(135, 242, 228, 1);
  border: 2px solid rgba(135, 242, 228, 1);
}

.main-button2 {
  background-color: rgba(135, 242, 228, 0.6);
  border: 2px solid rgba(135, 242, 228, 1);
  color: white;
  padding: 10px 10px;
  border-radius: 12px;
  font-family: "Ethnocentric", sans-serif;
  font-weight: 200;
  font-size: clamp(0.7rem, 0.7vw, 1.5rem);
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}

.main-button2:hover {
  background-color: rgba(135, 242, 228, 1);
  border: 2px solid rgba(135, 242, 228, 1);
}
