* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background-color: #f7fafc;
  position: relative;
}

h1 {
  text-align: center;
  font-size: 35px;
  margin: 0;
}

body.home::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../assets/background-image.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.4;
  z-index: -1;
}

body.home::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3);
  z-index: -1;
}

/* Navbar styles */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 85px;
  width: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-top: 5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-item {
  position: relative;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
  background: transparent;
  border: 0;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #4a5568;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav-link {
  color: #4a5568;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: #38a169;
  background-color: rgba(56, 161, 105, 0.1);
}

.nav-link:active {
  transform: translateY(1px);
}

.hamburger:focus-visible,
.nav-link:focus-visible {
  outline: 3px solid rgba(56, 161, 105, 0.35);
  outline-offset: 3px;
  border-radius: 10px;
}

main {
  margin-top: 64px;
  padding: 40px 24px;
  min-height: calc(100vh - 64px);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 64px;
}

/* Responsiveness */
@media (max-width: 768px) {
  body.home::before {
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
  }

  .nav-container {
    padding: 0 20px;
    height: 56px;
  }

  .logo-img {
    height: 32px;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 340px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: 72px;
    transition: right 0.3s ease;
    gap: 6px;
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1001;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-backdrop {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 900;
  }

  .nav-menu.active ~ .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-item {
    margin: 0 12px;
  }

  .nav-link {
    font-size: 16px;
    padding: 14px 16px;
    display: block;
    text-align: left;
    border-radius: 10px;
    transition: all 0.2s ease;
  }

  .nav-link:hover {
    background-color: rgba(56, 161, 105, 0.12);
    transform: translateX(4px);
  }

  main {
    margin-top: 56px;
    padding: 24px 20px;
  }

  h1 {
    font-size: 36px;
    margin: 40px 0 24px 0;
  }
}

@media (max-width: 480px) {
  body.home::before {
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
  }

  .nav-container {
    padding: 0 16px;
  }

  .logo-img {
    height: 28px;
  }

  .hamburger span {
    width: 22px;
    height: 2px;
  }

  .nav-menu {
    padding-top: 40px;
  }

  .nav-link {
    font-size: 16px;
    padding: 12px 25px;
  }

  h1 {
    font-size: 30px;
  }
}
