/* Glass Header */
.glass-header {
  position: relative;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 80px;
  background: linear-gradient(to bottom, rgba(10, 17, 40, 0.8), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  animation: headerFadeDown 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes headerFadeDown {
  0% { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Preloader Styles */
#preloader {
    position: fixed;
    inset: 0;
    background: #0A1128; /* Deep Sapphire */
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.preloader-content {
    text-align: center;
    width: 200px;
}

.preloader-logo {
    width: 120px;
    margin-bottom: 30px;
    animation: logoPulse 2s ease-in-out infinite;
}

.preloader-bar-container {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.preloader-bar {
    width: 0%;
    height: 100%;
    background: var(--gold);
    position: absolute;
    top: 0;
    left: 0;
    animation: barLoading 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.7; }
}

@keyframes barLoading {
    0% { width: 0; left: 0; }
    50% { width: 100%; left: 0; }
    100% { width: 0; left: 100%; }
}

@media (max-width: 768px) {
    .preloader-content {
        width: 150px;
    }
    .preloader-logo {
        width: 80px;
        margin-bottom: 20px;
    }
    .preloader-bar-container {
        height: 1.5px;
    }
}


.header-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  z-index: 100;
  transition: opacity 0.5s ease;
  display: none; /* Hide by default, show only on mobile */
}

@media (max-width: 1024px) {
  .header-progress-container {
    display: block;
  }
}

.header-progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--gold), #fff);
  box-shadow: 0 0 15px var(--gold);
  animation: slideBorder 10s linear forwards;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-progress-bar i {
  color: #fff;
  font-size: 14px;
  transform: rotate(90deg);
  margin-right: -2px;
  filter: drop-shadow(0 0 5px var(--gold));
  text-shadow: 0 0 10px #fff;
}

@keyframes slideBorder {
  0% { width: 0; left: 0; }
  100% { width: 100%; left: 0; }
}

.main-logo {
  height: 65px;
  width: auto;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
  transition: transform 0.3s ease;
}

.main-logo:hover {
  transform: scale(1.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

nav a:hover, nav a.active {
  color: var(--gold);
}

/* Submenu Styling (Desktop) */
.has-submenu {
  position: relative;
}

.has-submenu > a i {
  font-size: 10px;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.has-submenu:hover > a i {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: 100%;
  left: -20px;
  background: rgba(10, 17, 40, 0.95);
  backdrop-filter: blur(20px);
  min-width: 220px;
  padding: 15px 0;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1000;
}

.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li {
  width: 100%;
}

.submenu a {
  padding: 12px 25px;
  font-size: 13px;
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.submenu a i {
  color: var(--gold);
  font-size: 14px;
  width: 18px;
  margin: 0;
  display: inline-block;
  transform: rotate(180deg); /* Normally upside-down */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

.submenu a::after { display: none; }

.submenu a:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  padding-left: 30px;
}

.submenu a:hover i {
  transform: rotate(0deg); /* Straight/Right-side-up on hover! */
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 28px;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  color: var(--gold);
}

.btn-icon {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  color: var(--gold);
  transform: scale(1.1);
}

.btn-primary {
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 30px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-block;
  text-align: center;
  text-decoration: none !important;
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--primary);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
}

/* Responsive Header */
@media (max-width: 1400px) {
  .glass-header { padding: 15px 50px; }
}

@media (max-width: 1200px) {
  .glass-header { padding: 15px 30px; }
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: block; }
}

/* Mobile Nav Overlay Styles */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: #0A1128; /* Solid background first */
  background: rgba(10, 17, 40, 0.99); /* Highly opaque sapphire */
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999999; /* Ultra high to be above EVERYTHING */
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  overflow-y: auto;
}

.mobile-nav-overlay.active {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
}

.mobile-logo {
  height: 45px;
}

.close-menu {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 25px;
  flex: 1;
}

.mobile-nav-links a {
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.mobile-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-item i {
  color: var(--gold);
  font-size: 18px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.mobile-menu-item i.active {
  transform: rotate(45deg);
}

.mobile-submenu {
  list-style: none;
  padding-left: 20px;
  margin-top: 15px;
  display: none;
  flex-direction: column;
  gap: 15px;
}

.mobile-submenu a {
  font-size: 16px;
  text-transform: none;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-submenu a i {
  color: var(--gold);
  font-size: 14px;
}

.mobile-nav-footer {
  margin-top: 30px;
}

.w-100 { width: 100%; }

@media (max-width: 768px) {
  .header-actions { display: none; }
  .main-logo { height: 50px; }
  .glass-header { padding: 15px 20px; }
}

/* ==========================================================================
   Luxury Login or Signup Button in Header
   ========================================================================== */
.header-login-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  font-family: 'Outfit', sans-serif;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  margin-right: 10px;
}

.login-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); /* Elegant translucent white circle */
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.login-icon-wrapper i {
  color: #ffffff; /* Bright white icon */
  font-size: 14px;
  transition: all 0.3s ease;
}

.login-text {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* Hover States */
.header-login-btn:hover .login-icon-wrapper {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.header-login-btn:hover .login-icon-wrapper i {
  color: #0A1128; /* High contrast dark invert */
}

.header-login-btn:hover .login-text {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Mobile Responsive Login Item in Navigation Drawer */
.mobile-login-item {
  margin-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 25px;
}

.mobile-login-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.mobile-login-link i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold); /* Gold icon on mobile drawer */
  font-size: 16px;
  transition: all 0.3s ease;
}

.mobile-login-link:hover {
  color: var(--gold) !important;
}

.mobile-login-link:hover i {
  background: var(--gold);
  color: #0A1128;
  transform: scale(1.05);
}

