/* ================================
   GLOBAL NAVBAR STYLES
   ================================ */
/* Layout */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem;
}
/* HEADER WRAPPER */
/* HEADER */
.site-header {
  width: 100%;
  background: #151524;
  padding: 0.9rem 0;
  position: fixed;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.495);
  transition: box-shadow 0.3s ease;
}
.brand img {
  height: 10vh; /* Controls visible logo size */
  width: 10vw; /* Keep proportions */
  object-fit: cover;
}
.logo-text {
  display: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.4px;
  text-decoration: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* NAV LINKS */
.main-nav a {
  color: #d6dff0;
  margin: 0 0.6rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: bolder;
  font-family:Verdana, Geneva, Tahoma, sans-serif
}

.main-nav a:hover {
  color: #fff;
}

/* BUTTONS */
.header-cta {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.btn {
  border: 0;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}
.bookmark-icon a {
  color: #ffffff;
  font-size: 1.3rem;
  margin-right: 0.8rem;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.bookmark-icon a:hover {
  opacity: 0.8;
  transform: scale(1.05);
}
/* Thicker bookmark icon */
.bookmark-icon i {
  -webkit-text-stroke: 1px white;
  font-weight: 700;
}

.btn.primary {
  background: #2A3EFF;
  color: #fff;

}

/* MOBILE MENU TOGGLE */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.nav-toggle .bar {
  height: 3px;
  /* width: 100%; */
  background-color: #fff;
  border-radius: 10px;
}


/* ============ MOBILE MENU ============ */
@media (max-width: 768px) {
  .site-header {
    background: var(--bg);
    height: 8vh;
  }
  .header-inner {
    display: flex;
    flex-direction: row;
    /* align-items: baseline; */
    justify-content: space-between;
  }
  .nav-toggle {
    display: flex;
    align-self: self-start;
    position: relative;
    z-index: 1100;
    transition: transform 0.3s ease;
  }
  /* HAMBURGER ANIMATION */
  .nav-toggle .bar {
    transition: all 0.3s ease;
    }
    /* When menu is open, turn hamburger into an X */
  .nav-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translateY(8px) translateX(1px);
    }
  .nav-toggle.open .bar:nth-child(2) {
    transform: rotate(-45deg) translateX(-3px) translateY(-2.5px);
    
    }
  .nav-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
    }

  .brand img{
    display: none;
  }
  .logo-text {
    display: inline;
  }
  .header-cta .btn.primary {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 0;
    width: 100%;
    overflow: hidden;
    background: rgba(27, 27, 50, 0);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    transition: all 0.4s ease;
  }

  .main-nav.open {
    height: 100vh;
    background: #1b1b32;
  }

  .main-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
  }
  .main-nav.open a {
    opacity: 1;
    transform: translateX(0);
  }
  .mobile-btn {
    display: inline-block;
    margin-top: 1rem;
  }
}