/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  font-family: "Segoe UI", sans-serif;
}

/* Header & Navbar */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1500px;
  width: 100%;
  padding: 12px 30px;
  border-radius: 60px;
  background-color: transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  opacity: 0.9;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
  z-index: 1000;
}

/* Scroll effects */
.navbar-container.scrolled {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.navbar-container.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  backdrop-filter: blur(20px);
}

.navbar-container.hidden {
  opacity: 0;
  transform: translateY(-60px);
  pointer-events: none;
}

.navbar-container.final {
  background-color: #14315d;
  color: white;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* Logo */
.nav-left {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Desktop Nav */
.main-nav {
  display: flex;
  gap: 25px;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 16px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar-container.scrolled .main-nav a {
  color: #14315d;
}

.main-nav a:hover {
  background-color: #14315d;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #4f46e5;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: left center;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(1px, -1px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(1px, 1px);
}

/* Mobile Nav */
.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
  list-style: none; /* Remove bullet points if used with <ul> */
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 12px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 8px;
}

/* Modern hover effect */
.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: width 0.3s ease;
}

.nav-links a:hover::before {
  width: 80%;
}

/* Active link style */
.nav-links a.active {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* CTA button special style */
.nav-links .nav-cta {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  color: white !important;
  padding: 10px 24px !important;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
}

.nav-links .nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  background: linear-gradient(90deg, #5658dd, #7c4df3);
}

.nav-links .nav-cta::before {
  display: none; /* Remove underline effect from CTA */
}

/* Active link style - unified for both desktop and mobile */
.nav-links a.active,
.main-nav a.active {
  position: relative;
}

.nav-links a.active::after,
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 3px;
}

/* Special case for scrolled state */
.navbar-container.scrolled .main-nav a.active {
  color: #14315d;
}

.navbar-container.scrolled .main-nav a.active::after {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}
/* @media (max-width: 768px) {
  .navbar-container {
    border-radius: 0;
    background-color: #14315d;
    padding: 10px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .main-nav {
    display: none !important;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #14315d;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: right 0.4s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1002;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 18px;
    color: white;
    text-decoration: none;
  }

  .nav-logo {
    height: 45px;
  }
} */


/* Update the menu-toggle styles */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #4f46e5;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: left center;
}

/* Close icon - hidden by default */
.close-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* When menu is active */
.menu-toggle.active .close-icon {
  opacity: 1;
}

.menu-toggle.active span {
  opacity: 0;
}

/* Keep the original transform animations */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(1px, -1px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(1px, 1px);
}

/* @media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
} */


/* Close icon - hidden by default */
.close-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  color: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Show close icon when menu is active */
.menu-toggle.active .close-icon {
  opacity: 1;
  pointer-events: auto;
}

/* Hide hamburger lines when active */
.menu-toggle.active span {
  opacity: 0;
}



.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: #14315d;
    backdrop-filter: blur(20px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    list-style: none; /* ✅ This removes bullet points */
}


.sidebar-li {
    width: 100%;
}

.sidebar a {
    width: 100%;
    padding: 15px 20px;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
}

.sidebar-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    margin-top: 10px;
}

.showOnMobile {
    display: none;
}

.back-icon {
  margin: 20px 0px 20px 10px;
}

@media(max-width: 800px) {
    .hideOnMobile {
        display: none;
    }

    .showOnMobile {
        display: flex;
    }
}

@media(max-width:400px){
    .sidebar {
        width: 100%;;
    }

    .showOnMobile {
        display: flex;
    }
}