/* Reset & basic styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

a {
  text-decoration: none;
  color: #333;
}

/* header */
.header {
    position: fixed;       /* stays on top */
    top: 0;
    left: 0;
    width: 100%;
    height: 3rem;
    display: flex;
    align-items: center;
    z-index: 1000;
    background-color: transparent; /* initially transparent */
    transition: background-color 0.3s ease, padding 0.3s ease;
}

/* When scrolled */
.header.scrolled {
    background-color: black;
    padding: 0 20px;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 0 2rem;  
}

.desktop-menu a {
    text-decoration: none;
    color: white;
    margin: 0 1rem;
    font-weight: 500;
}
.desktop-menu a:hover{
    color: rgb(110, 207, 110);
    font-weight: bold;
    border-bottom: 2px solid green;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.logo h3 {
  color: white;
  border-left: 2px solid green;
  margin-left: 6rem;
  font-size: 25px;
}

/* Desktop Menu */
.desktop-menu {
  display: flex;
  gap: 20px;
}



/* Hamburger */
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Side Menu */
.side-menu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 220px;
  height: 100%;
  background-color: #fff;
  box-shadow: 2px 0 5px rgba(0,0,0,0.3);
  transition: left 0.3s ease;
  z-index: 1001;
  padding-top: 60px;
}

.side-menu.open {
  left: 0;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
}

.mobile-menu a {
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
}

.mobile-menu a:hover {
  background-color: #f0f0f0;
}

/* Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .desktop-menu {
    display: none;
  }

  .hamburger {
    display: block;
    color: white;
    border: 1px solid;
    border-radius: 4px;
    padding: 2px 7px;;
    
  }
}

@media (min-width: 1025px) {
  .side-menu {
    display: none;
  }
  
  .menu-overlay {
    display: none;
  }
}
