* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Poppins", sans-serif;
  background: #131724;
  color: #fff;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ===============================
   Navigation Dropdown & Navbar
   =============================== */

/* Ensure dropdowns appear above devices */
header nav {
  position: relative;
  z-index: 50; /* above any device container */
}

.dropdown {
  position: relative;
  z-index: 50; /* dropdown must be above other content */
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  background: #111;
  padding: 0.75rem 0; /* increased padding for spacing */
  min-width: 220px;   /* wider dropdown */
  border-radius: 6px;
  z-index: 60;         /* above other elements */
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1.5rem; /* more spacing for easier clicking */
  color: #fff;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background-color: #333;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Navbar */
nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5rem; /* increased horizontal padding */
  position: relative;
  z-index: 10;
}

nav .logo {
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

/* Navbar Links */
nav ul {
  list-style: none;
  display: flex;
  gap: 3.5rem; /* more space between main links */
  align-items: center;
  margin: 0;
  padding: 0;
}

nav ul li {
  position: relative; /* for dropdowns */
}

nav ul li a {
  font-size: 1.15rem;
  font-weight: 500;
  opacity: 0.85;
  text-decoration: none;
  position: relative;
  transition: 0.25s ease;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

nav ul li a:hover {
  opacity: 1;
}

nav ul li a:hover::after {
  width: 100%;
}

/* Contact Button */
nav ul li .contact-btn {
  padding: 0.65rem 1.25rem; /* bigger click area */
  border: 1px solid currentColor;
  border-radius: 10px;
  font-weight: 600;
  opacity: 0.95;
  transition: 0.25s ease;
}

nav ul li .contact-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

/* Navigation Menu */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 2.5rem; /* more spacing for secondary nav items */
  margin: 0;
  padding: 0;
  align-items: center;
  position: relative;
}

/* ===============================
   Footer
   =============================== */
.footer {
  background: #121212;
  max-width: 1400px;
  margin: 3rem auto 6rem;
  padding: 70px 60px; /* increased padding for spacing */
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.65);
  color: #fff;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem; /* more gap between columns */
  flex-wrap: wrap;
}

.footer-left {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  max-width: 130px; /* slightly bigger */
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: transform 0.6s ease;
}

#footer-hourglass {
  transition: transform 0.6s ease;
  cursor: pointer;
}

#footer-hourglass.spinning {
  transform: rotate(180deg);
}

.footer-left h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.footer-right {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1;
  min-width: 160px;
}

.footer-col h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin: 0.6rem 0;
}

.footer-col ul li a {
  color: #fff;
  opacity: 0.85;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-col ul li a:hover {
  opacity: 1;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 1rem;
  opacity: 0.85;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 2.5rem; /* extra spacing from divider */
  margin-top: 3rem;
}

.footer-bottom a:hover {
  opacity: 1;
}

/* Back to Top Button */
.back-to-top {
  font-weight: 600;
}

/* ===============================
   Responsive Adjustments
   =============================== */
@media (max-width: 900px) {
  nav {
    padding: 1.25rem 2rem;
  }

  nav ul {
    gap: 2rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
  }

  .footer-left,
  .footer-right {
    width: 100%;
  }

  .footer-columns {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
