/* Navigation */
.navbar,
.navbar .nav-link,
.navbar .dropdown-item,
.navbar .btn {
  font-family: 'Montserrat', 'Poppins', sans-serif;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0,0,0,0.6) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
/* Brand logo */
.navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;          /* centers vertically with nav links */
}

/* Wrapper for the stacked text */
.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;          /* centers both lines horizontally */
    justify-content: center;
    line-height: 1.1;
    color: #fff;
    text-decoration: none;
}

/* Top line: MELBOURNE INTERACTIVE */
.brand-main {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    font-size: clamp(13px, 1.1vw, 15px);
    white-space: nowrap;
}

/* Bottom line with rules: — ENTERTAINMENT — */
.brand-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;                   /* tighter gap */
    margin-top: 2px;
    opacity: .9;
}

/* the text */
.brand-sub > span {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;        /* less stretched */
    font-size: clamp(9px, .8vw, 11px);
    white-space: nowrap;
    line-height: 1.2;
}

/* the horizontal lines */
.brand-sub::before,
.brand-sub::after {
    content: "";
    height: 1.5px;                /* slightly slimmer */
    width: 18px;                  /* fixed length so they don’t over-stretch */
    background-color: currentColor;
    opacity: .7;
}

/* Fine-tune for mobile */
@media (max-width: 576px) {
    .brand-main { font-size: 13px; }
    .brand-sub > span { font-size: 9px; letter-spacing: .12em; }
    .brand-sub::before, .brand-sub::after { width: 14px; }
}


/* Container structure for proper centering */
.navbar .container-fluid {
  display: flex;
  align-items: center;
  position: relative;
}

/* Brand wrapper to maintain space */
.navbar-brand-wrapper {
  flex: 0 0 auto;
  width: 100px; /* Fixed width to balance the right side */
}

.navbar-brand {
  margin: 0;
}

/* Center navigation - this is the key fix */
.navbar-nav.mx-auto {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: row;
}

/* Right side actions */
.navbar-actions {
  flex: 0 0 auto;
  margin-left: auto;
}

/* Navigation links styling */
.nav-link {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
}

.navbar .btn {
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  border-width: 1px;
  white-space: nowrap;
}

.btn-outline-light:hover {
  background-color: white;
  color: black;
}

.navbar.scrolled {
  background-color: rgba(0,0,0,0.8) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}

.dropdown-menu-dark {
  background-color: rgba(0,0,0,0.9);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Smaller dropdown text for desktop */
.dropdown-item {
  font-size: 0.8rem;
}

/* Disable dropdown toggle clicking - hover only */
.navbar .dropdown-toggle {
  pointer-events: none;
}

.navbar .dropdown-toggle::after {
  display: none; /* Hide the dropdown arrow since it's hover only */
}

/* Re-enable hover functionality */
.navbar .dropdown {
  pointer-events: auto;
}

/* Hover dropdown for desktop */
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
  /* Re-enable clicking on mobile since hover doesn't work well */
  .navbar .dropdown-toggle {
    pointer-events: auto;
  }

  .navbar .dropdown-toggle::after {
    display: inline-block; /* Show dropdown arrow on mobile */
  }

  /* Black background when mobile menu is expanded */
  .navbar-collapse {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 0 0 10px 10px;
    margin-top: 10px;
    padding: 1rem;
  }

  .navbar-nav.mx-auto {
    position: static;
    transform: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    margin: 1rem 0;
  }

  .navbar-actions {
    margin-left: 0;
    justify-content: center;
    gap: 0.5rem;
  }

  .navbar-actions .btn {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }

  .navbar-brand-wrapper {
    width: auto;
  }

  /* Bigger font for mobile navigation links */
  .nav-link {
    font-size: 0.8rem;
  }

  /* Mobile dropdown styling - inline instead of overlay */
  .dropdown-menu {
    position: static !important;
    float: none !important;
    width: auto !important;
    margin-top: 0.5rem !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    transform: none !important;
    display: none;
    text-align: center;
  }

  .dropdown.show .dropdown-menu {
    display: block !important;
  }

  .dropdown-item {
    padding: 0.4rem 0 !important;
    background-color: transparent !important;
    border: none !important;
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.6rem !important; /* Smaller on mobile too */
    text-transform: uppercase;
    font-weight: 400;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
  }

  .dropdown-item:hover,
  .dropdown-item:focus {
    background-color: transparent !important;
    color: white !important;
  }
}

/* Tablet adjustments */
@media (max-width: 1200px) and (min-width: 992px) {
  .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.6rem;
  }

  .navbar .btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
  }

  .dropdown-item {
    font-size: 0.75rem; /* Smaller on tablet too */
  }
}

/* Large screen optimization */
@media (min-width: 1400px) {
  .navbar-brand-wrapper {
    width: 120px;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }

  .navbar .btn {
    font-size: 0.8rem;
    padding: 0.4rem 1.2rem;
  }

  .dropdown-item {
    font-size: 0.85rem; /* Slightly bigger on large screens but still smaller than before */
  }
}
/* End Navigation */

/* Footer */
footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px 0;
    background-color: #1a1a1a;
}

footer a {
    color: white;
    margin: 0 10px;
    font-size: 1.2rem;
}
/* End Footer */
