/* Reset and Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  transition: background-color 0.5s ease;
}

/* Navbar */
nav {
  background: linear-gradient(-45deg, #0077b6, #ff6f91, #0077b6);
  background-size: 300% 300%;
  animation: gradientBG 8s ease infinite;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
  transition: background-color 0.3s ease;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Logo */
.logo {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: none;
  color: white;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeSlideIn 0.8s ease forwards;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Nav Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li {
  transition: transform 0.3s ease;
}

.nav-links li:hover {
  transform: translateY(-5px);
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  position: relative;
  transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: white;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  transform: scale(1.1);
  color: #ff6f91;
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 25px;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.hamburger div {
  background-color: white;
  height: 4px;
  border-radius: 2px;
  transition: all 0.4s ease;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    background: inherit;
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    display: none;
    text-align: center;
    padding: 20px 0;
    transition: all 0.4s ease;
  }

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

  .hamburger {
    display: flex;
  }

  .hamburger.active .line1 {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active .line2 {
    opacity: 0;
  }

  .hamburger.active .line3 {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* Animations */
@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  animation: stickyNav 0.3s ease forwards;
  z-index: 999;
}

@keyframes stickyNav {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
