
/* Reset */
.home * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.home {
  font-family: "Segoe UI", sans-serif;
  background-color: #0a0a0a;
  color: #eee;
  scroll-behavior: smooth;
}

/* Navbar base */
.home-navbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 50px;
  background: linear-gradient(90deg, rgba(0,0,0,0.9), rgba(25,25,25,0.85));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  z-index: 1000;
  animation: home-slideDown 0.8s ease forwards;
  transition: transform 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
}

.home-navbar.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.home-navbar.scrolled {
  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
  padding: 12px 50px;
}

/* Nav links */
.home-nav {
  display: flex;
  gap: 40px;
}

.home-nav a {
  position: relative;
  text-decoration: none;
  color: #bbb;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.home-nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #28a0b8, #91aeb3);
  transition: width 0.3s ease;
}

.home-nav a:hover {
  color: #fff;
}

.home-nav a:hover::after {
  width: 100%;
}

/* Hamburger icon */
.home-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  position: absolute;
  left: 20px;
}

.home-hamburger span {
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger animation when active */
.home-hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.home-hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile styles */
@media (max-width: 768px) {
  .home-navbar {
    justify-content: flex-end;
  }

  .home-hamburger {
    display: flex;
  }

  .home-nav {
    position: absolute;
    top: 37px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.95);
    transform: translateY(-200%);
    transition: transform 0.4s ease;
  }

  .home-nav.active {
    transform: translateY(0);
  }
}

/* Sections */
.home-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px;
}

.home-section:nth-child(even) {
  background: #141414;
}

/* Animation */
@keyframes home-slideDown {
  0% { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
  .home-nav {
    display: none;
    flex-direction: column;
    background: #000; /* adjust to match */
    position: absolute;
    top: 37px; /* below header */
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 999;
  }

  .home-nav.active {
    display: flex;
  }

  .home-hamburger {
    cursor: pointer;
    z-index: 1000;
  }
}