.navbar {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(191, 2, 2, 0.3);
    transition: box-shadow 0.3s ease;
}

.nav-container {
    max-width: 100%;
    margin: auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: bold;
  font-size: 18px;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #475569;
    font-size: 0.95rem;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #dc2626;
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-actions .login {
    text-decoration: none;
    color: #475569;
}

.nav-actions .signup {
    background: #dc2626;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
}

.nav-actions .signup:hover {
    background: #b91c1c;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .nav-actions {
        display: none;
    }
}


.action-btn {
  background: #dc2626;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.action-btn:hover {
  background: #b91c1c;
}

.nav-wrapper.scrolled nav {
    box-shadow: 0 8px 32px rgba(215, 38, 56, 0.4);
}

/* Sidebar for mobile*/
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
  overflow-x: hidden;
  padding-top: 80px;
  transition: width 0.3s ease;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.25);
}

/* Sidebar links */
.sidebar a {
  padding: 10px 20px;
  text-decoration: none;
  font-size: 17px;
  color: #fff;
  display: block;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
  color: #fff;
}

/* Close button */
.sidebar .closebtn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.sidebar .closebtn:hover {
  color: #ffb3b3;
  transform: rotate(90deg);
}

/* Hamburger button */
.openbtn {
  display: none;
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
  color: #dc2626;
  transition: color 0.2s ease;
}

.openbtn:hover {
  color: #b91c1c;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .openbtn {
    display: block;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    display: none;
  }
}