/* ===================================== VARIABLES ======================================== */
:root {
  --primary: #181818;
  --primary-bg: #444;
  --white: #fff;
  --yellow: #ffeb3b;
}


/* ===================================== NAVBAR STYLES ======================================== */

body {
  /* background-color: #ffeb3b; */
}


.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary);
  padding: 0.5rem 2rem;
  color: var(--white);
  border-bottom: 3px solid var(--primary-bg);
  position: fixed;
  top: 0;
  height: 60px;
  z-index: 1100;
  width: -webkit-fill-available;
  
  transition: all 0.3s ease;
}

.nav-inner-div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 94%;
}

.logo {
  width: auto;
  height: 1.5em;
  font-weight: 600;
  font-size: 1.5rem;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
}

a {
  text-decoration: none;
  cursor: pointer;
}

nav ul li i {
  margin-right: 0.5rem;
}

#navLinksDesktop {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

#navLinksDesktop li a,
#navLinksDesktop li span {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 2px;
  position: relative;
  transition: color 0.25s;
  font-size: 1.1rem;
}

#navLinksDesktop li a:hover,
#navLinksDesktop li span:hover {
  color: var(--yellow);
}

#navLinksDesktop li a::after,
#navLinksDesktop li span::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  background: var(--yellow);
  left: 50%;
  bottom: 0;
  transition: all 0.2s ease-in-out;
}

#navLinksDesktop li a:hover::after,
#navLinksDesktop li span:hover::after {
  width: 100%;
  left: 0;
}

/* Dropdown */
.dropdown {
  position: relative;
  cursor: pointer;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  background: #1f1f1f;
  border-radius: 8px;
  min-width: max-content;
  display: none;
  flex-direction: column;
  padding: 0.5rem 0;
  z-index: 100;
}

.dropdown-content a {
  color: #fff;
  padding: 15px 19px;
  display: block;
  border-top: 2px solid rgba(255, 255, 255, 0.08);
}

.dropdown-content a:hover {
  background: #333;
  color: var(--yellow);
}

.dropdown:hover .dropdown-content {
  display: flex;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5.5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger .bar {
  height: 4px;
  width: 2.6em;
  background: var(--white);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

/* Mobile dropdown */
.mobile-nav-dropdown {
  position: absolute;
  z-index: 1002;
  top: 60px;
  right: 20px;
  width: 260px;
  background: #1f1f1f;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition: all 0.3s ease;
}

.mobile-nav-dropdown.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.mobile-nav-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-dropdown ul li {
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);

}

.mobile-nav-dropdown a {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  color: #fff;
  font-size: 17px;
  transition: all 0.3s ease;
}

.mobile-nav-dropdown a:hover {
  color: var(--yellow);
  padding-left: 2.5em;
}

@media screen and (max-width: 820px) {
  #navLinksDesktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .navbar {
    padding: 0.28rem 1rem;
  }

  .logo {
  width: auto;
  height: 1em;
  }
}


.mobile-nav-dropdown ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateX(20px);
}

.mobile-nav-dropdown.active li {
  animation: bounceSlideIn 0.6s ease-out forwards;
}

.mobile-nav-dropdown.active li:nth-child(1) {
  animation-delay: 0.1s;
}

.mobile-nav-dropdown.active li:nth-child(2) {
  animation-delay: 0.2s;
}

.mobile-nav-dropdown.active li:nth-child(3) {
  animation-delay: 0.3s;
}

.mobile-nav-dropdown.active li:nth-child(4) {
  animation-delay: 0.4s;
}

.mobile-nav-dropdown.active li:nth-child(5) {
  animation-delay: 0.5s;
}

.mobile-nav-dropdown.active li:nth-child(6) {
  animation-delay: 0.6s;
}

.mobile-nav-dropdown.active li:nth-child(7) {
  animation-delay: 0.7s;
}

.mobile-nav-dropdown.active li:nth-child(8) {
  animation-delay: 0.8s;
}

.mobile-nav-dropdown.active li:nth-child(9) {
  animation-delay: 0.9s;
}



@keyframes bounceSlideIn {
  0% {
    opacity: 0;
    transform: translateX(30px) scale(0.95);
  }

  60% {
    transform: translateX(-5px) scale(1.02);
    opacity: 1;
  }

  80% {
    transform: translateX(2px) scale(0.99);
  }

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


/* ===================== Upper Nav ===================== */
.upper-nav {
  background: darkgray;
  color: #ffffff;
  width: 100%;
  font-size: 0.9rem;
  z-index: 1000;
  padding: 5px 20px;

  transition: transform 0.3s ease; /* smooth slide */
}



.upper-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info span {
  margin-right: 20px;
}

.contact-info i {
  margin-right: 6px;
  color: #ffeb3b;
}

.social-links a {
  color: #ffffff;
  margin-left: 14px;
  font-size: 1rem;
  transition: color 0.2s;
}

.social-links a:hover {
  color: #ffeb3b;
}












.banner {
  grid-area: banner;
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.banner img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.banner img.active {
  opacity: 1;
}

/* Buttons style */
.banner .prev,
.banner .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
}

.banner .prev { left: 15px; }
.banner .next { right: 15px; }

.banner .prev:hover,
.banner .next:hover {
  background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .contact-info span {
    display: none;
  }
  .contact-info span:first-child {
    display: inline-block;
  }
}


#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  font-size: 16px;
  background: gray;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: none; /* Default hidden */
  transition: opacity 0.3s ease;
}

#backToTop:hover {
  background: black;
}
