/* HEADER STYLES */
#header {
  position: sticky;
  top: 12px;
  margin: 0 20px;
  border-radius: 16px;
  background: white;
  z-index: 2050;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-family: 'DM Sans', 'Poppins', sans-serif;
  transition: background 0.3s ease;
}

#header.scrolled {
  background: #FFF5F8;
}

.main-header {
  max-width: 1416px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 58px;
  height: 64px;
  padding: 5px 15px;
  margin: 0px auto;
}

/* Extra space after logo */
.logo {
  margin-right: 60px;
}

.logo img {
  height: 47px;
  width: auto;
  transition: transform 0.3s;
}

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

.navbar {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

.navbar ul {
  display: flex;
  gap: 14px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.navbar ul li {
  margin: 0;
}

.desktop-navbar-link {
  font-family: 'DM Sans', sans-serif;
  color: #333333;
  text-decoration: none;
  font-weight: 400;
  font-size: 16px;
  transition: all 0.3s;
  position: relative;
  white-space: nowrap;
  padding: 10px 20px;
  border-radius: 50px;
  line-height: 150%;
  letter-spacing: 0.5px;
}

.desktop-navbar-link:hover {
  color: #E91E63;
  background: #FFE8F0;
  text-shadow: 0.5px 0 0 currentColor, -0.5px 0 0 currentColor;
}

.desktop-navbar-link:after {
  display: none;
}

/* Header Buttons */
.header-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-create-account {
  background: #4CAF50;
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 400;
  font-size: 15px;
  transition: all 0.3s;
  border: 2px solid #4CAF50;
  white-space: nowrap;
}

.btn-create-account:hover {
  background: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-download-app {
  background: #E91E63;
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 400;
  font-size: 15px;
  transition: all 0.3s;
  border: 2px solid #E91E63;
  white-space: nowrap;
}

.btn-download-app:hover {
  background: #C2185B;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

/* Premium Link Styling */
.premium-link.desktop {
  background: linear-gradient(135deg, #E91E63 0%, #FF6B9D 100%);
  color: white !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
}

.premium-link.desktop:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.premium-link.desktop:after {
  display: none;
}

/* =============================================
   MOBILE MENU BUTTON
   ============================================= */
.mobile-menu-btn {
  display: none;
  cursor: pointer;
  padding: 6px;
  z-index: 2100;
  background: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn img {
  width: 28px;
  height: 28px;
  display: block;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.2s ease;
}

.mobile-menu-btn.active img {
  transform: scale(1.1);
}

/* =============================================
   MOBILE MENU — smooth reveal below header
   ============================================= */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  z-index: 2000;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  box-shadow: none;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    visibility 0s linear 0.4s,
    box-shadow 0.3s ease;
}

.mobile-menu.active {
  max-height: calc(100vh - 64px);
  opacity: 1;
  visibility: visible;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    visibility 0s linear 0s,
    box-shadow 0.3s ease;
}

/* Staggered link animations */
.mobile-menu ul li {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-menu.active ul li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active ul li:nth-child(1) {
  transition-delay: 0.08s;
}

.mobile-menu.active ul li:nth-child(2) {
  transition-delay: 0.12s;
}

.mobile-menu.active ul li:nth-child(3) {
  transition-delay: 0.16s;
}

.mobile-menu.active ul li:nth-child(4) {
  transition-delay: 0.2s;
}

.mobile-menu.active ul li:nth-child(5) {
  transition-delay: 0.24s;
}

.mobile-menu.active ul li:nth-child(6) {
  transition-delay: 0.28s;
}

.mobile-menu.active ul li:nth-child(7) {
  transition-delay: 0.32s;
}

.mobile-menu.active ul li:nth-child(8) {
  transition-delay: 0.36s;
}

/* Top bar inside mobile menu: logo + close button */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.mobile-menu-logo img {
  height: 40px;
  width: auto;
}

/* Close button */
.close-button {
  width: 40px;
  height: 40px;
  background: #FFF0F5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.close-button:hover {
  background: #FFD6E7;
}

.close-button img {
  width: 18px;
  height: 18px;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.close-button:hover img {
  transform: rotate(90deg);
}

/* Nav links list */
.mobile-menu ul {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
}

.mobile-menu ul li {
  margin: 0;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-menu ul li:last-child {
  border-bottom: none;
}

.mobile-menu ul li:has(.btn-create-account),
.mobile-menu ul li:has(.btn-download-app) {
  border-bottom: none;
}

.mobile-link {
  color: #2D2D2D;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  display: block;
  padding: 16px 20px;
  transition: color 0.2s ease, background 0.2s ease;
  letter-spacing: 0.2px;
}

.mobile-link:hover {
  color: #E91E63;
  background: #FFF5F8;
}

/* Mobile menu CTA buttons */
.mobile-menu .btn-create-account,
.mobile-menu .btn-download-app {
  display: block;
  text-align: center;
  margin: 8px 20px;
  padding: 14px 20px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
}

.mobile-menu .btn-create-account {
  background: #4CAF50;
  color: white !important;
  border: 2px solid #4CAF50;
}

.mobile-menu .btn-create-account:hover {
  background: #45a049;
  transform: none;
  box-shadow: none;
}

.mobile-menu .btn-download-app {
  background: #E91E63;
  color: white !important;
  border: 2px solid #E91E63;
}

.mobile-menu .btn-download-app:hover {
  background: #C2185B;
  transform: none;
  box-shadow: none;
}

/* =============================================
   MOBILE OVERLAY
   ============================================= */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1999;
  -webkit-tap-highlight-color: transparent;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 968px) {

  /* Full width header on mobile — remove floating pill effect */
  #header {
    top: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .navbar {
    display: none !important;
  }

  .main-header nav,
  .main-header .navbar ul {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 14px;
    right: 20px;
    margin: 0;
  }

  .logo {
    order: 1;
    margin-right: 0;
  }

  .main-header {
    padding: 12px 20px;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 36px;
  }
}