/* Navbar Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: #FFFFFF;
  color: #ffffff;
  overflow-x: hidden;
}

.navbar {
  position: relative;
  top: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  z-index: 999;
  box-shadow: 0 2px 10px rgba(37, 73, 255, 0.08);
  transition: background 0.3s ease;
}

.navbar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  gap: 3rem;
  position: relative;
}

.navbar-logo {
  background: linear-gradient(135deg, #1D38FF 0%, #000000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  text-decoration: none;
  font-size: 2.2rem;
  font-weight: bold;
  letter-spacing: 2px;
  position: absolute;
  left: 0;
  flex-shrink: 0;
}

.navbar-logo a {
  background: linear-gradient(135deg, #1D38FF 0%, #000000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.logo-text {
  background: linear-gradient(135deg, #1D38FF 0%, #000000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}

.nav-menu {
  display: flex;
  list-style: none;
  text-align: center;
  gap: 2rem;
  align-items: center;
  flex: 0;
  justify-content: center;
}

.nav-item {
  height: 80px;
  line-height: 80px;
}

.nav-links {
  color: #000000;
  text-decoration: none;
  padding: 0.5rem 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.nav-links.onboard-btn {
  background: linear-gradient(135deg, #1D38FF 0%, #000000 100%);
  border-radius: 25px;
  padding: 0.75rem 1.8rem;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
  color: #FFFFFF;
  font-size: 0.95rem;
  height: auto;
  line-height: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  position: absolute;
  right: 0;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(29, 56, 255, 0.4);
}

.nav-links.onboard-btn::after {
  display: none;
}

.nav-links.onboard-btn:hover {
  background: linear-gradient(135deg, #1520CC 0%, #1a1a1a 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(29, 56, 255, 0.6);
  color: #FFFFFF;
}

.mobile-onboard-item {
  display: none;
}

.onboard-btn-mobile {
  display: none !important;
}

/* Hide desktop onboard button on small screens */
@media screen and (max-width: 768px) {
  .nav-links.onboard-btn {
    display: none !important;
  }
}

.nav-links::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #2549FF;
  transition: width 0.3s ease;
}

.nav-links:hover::after {
  width: 100%;
}

.nav-links:hover {
  color: #000000;
  opacity: 0.9;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background: #000000;
}

/* Mobile Responsive */
@media screen and (max-width: 1024px) {
  .navbar-container {
    gap: 1.5rem;
  }

  .nav-menu {
    gap: 1.5rem;
  }

  .navbar-logo {
    font-size: 1.8rem;
  }

  .nav-links {
    padding: 0.3rem 0.7rem;
    font-size: 0.95rem;
  }

  .nav-links.onboard-btn {
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 768px) {
  .navbar {
    position: relative;
    height: 70px;
  }

  .navbar-container {
    width: 95%;
    justify-content: space-between;
    gap: 1rem;
  }

  .navbar-logo {
    font-size: 1.5rem;
    position: relative;
    left: 0;
  }

  .nav-menu {
    display: none !important;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 70px;
    left: 0;
    opacity: 0;
    transition: all 0.5s ease;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    gap: 0;
    justify-content: flex-start;
    box-shadow: 0 8px 20px rgba(37, 73, 255, 0.1);
    padding-top: 1rem;
    overflow-y: auto;
  }

  .nav-menu.active {
    display: flex !important;
    left: 0;
    opacity: 1;
    transition: all 0.5s ease;
    z-index: 999;
  }

  .nav-item {
    width: 100%;
    height: auto;
    line-height: 1.5;
    padding: 1rem;
    border-bottom: 1px solid rgba(37, 73, 255, 0.1);
  }

  .nav-links {
    padding: 1rem;
    width: 100%;
    font-size: 1rem;
  }

  .nav-links.onboard-btn {
    position: absolute;
    right: 50px;
    top: 15px;
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
    border-radius: 20px;
    display: flex;
  }

  .mobile-onboard-item {
    display: block;
  }

  .onboard-btn-mobile {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1D38FF 0%, #000000 100%);
    border-radius: 15px;
    padding: 0.8rem 1.2rem;
    font-weight: 600;
    color: #FFFFFF;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(29, 56, 255, 0.4);
    transition: all 0.3s ease;
  }

  .onboard-btn-mobile:hover {
    background: linear-gradient(135deg, #1520CC 0%, #1a1a1a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 56, 255, 0.6);
  }

  .onboard-btn-mobile::after {
    display: none;
  }

  .hamburger {
    display: flex;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
  }

  .hamburger .bar {
    width: 25px;
    height: 3px;
    margin: 5px 0;
    transition: all 0.3s ease;
    background: #1D38FF;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-8px, 8px);
    background: #1D38FF;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-8px, -8px);
    background: #1D38FF;
  }
}

/* Ultra-Small Devices (320px - 360px) */
@media screen and (max-width: 360px) {
  .navbar {
    height: 55px;
  }

  .navbar-container {
    width: 96%;
    gap: 0.3rem;
  }

  .navbar-logo {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
  }

  .nav-links.onboard-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.55rem;
    right: 40px;
    top: 8px;
  }

  .hamburger {
    right: 3px;
    width: 30px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
  }

  .bar {
    width: 18px;
    height: 2px;
    margin: 3px auto;
    background-color: #000000;
    transition: 0.3s;
  }

  .nav-item {
    height: auto;
    line-height: 1.5;
    padding: 0.7rem;
  }

  .nav-links {
    padding: 0.7rem;
    font-size: 0.9rem;
  }
}

/* Small Devices (361px - 375px) */
@media screen and (max-width: 375px) and (min-width: 361px) {
  .navbar {
    height: 57px;
  }

  .navbar-container {
    width: 96%;
    gap: 0.4rem;
  }

  .navbar-logo {
    font-size: 1.05rem;
    letter-spacing: 0.7px;
  }

  .nav-links.onboard-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.6rem;
    right: 43px;
    top: 9px;
  }

  .hamburger {
    right: 4px;
  }

  .bar {
    width: 19px;
    height: 2.2px;
    margin: 3.5px auto;
  }

  .nav-item {
    padding: 0.8rem;
  }

  .nav-links {
    padding: 0.8rem;
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 480px) {
  .navbar {
    height: 60px;
  }

  .navbar-container {
    width: 95%;
    gap: 0.5rem;
  }

  .navbar-logo {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  .nav-links.onboard-btn {
    padding: 0.5rem 1rem;
    font-size: 0.65rem;
    right: 45px;
    top: 10px;
  }

  .hamburger {
    right: 5px;
  }

  .bar {
    width: 20px;
    height: 2.5px;
    margin: 4px auto;
  }
}
