/* styles/navbar.css */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: clamp(0.5rem, 1vw, 1rem) 0;
  background: #48a132;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px var(--shadow-light);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .navbar {
  background: #0d2b08;
  box-shadow: 0 2px 8px var(--shadow-dark);
}

.nav-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(0.5rem, 1vw, 2rem);
  gap: clamp(0.25rem, 0.5vw, 1rem);
}

.logo {
  font-family: "Raleway", sans-serif;
  font-size: clamp(1.2rem, 1.8vw, 1.8rem);
  font-weight: 800;
  color: var(--navbar-text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 0.75vw, 0.75rem) clamp(1rem, 2vw, 2rem);
  border-radius: 9999px;
  background: transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
  gap: 0.05em;
}

.logo .gif-globe {
  display: inline-block;
  width: 1em;
  height: 1em;
  background: url("../assets/icons/logo.gif") no-repeat center/contain;
  transform-style: preserve-3d;
  transform: translateZ(10px);
  position: relative;
  vertical-align: middle;
  margin: 0 0.05em;
}

.logo .mobile-hidden {
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo:hover {
  color: var(--primary);
  transform: scale(1.05) translateZ(20px);
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.2),
    4px 4px 8px rgba(46, 204, 113, 0.2);
}

.logo::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 9999px;
  background: linear-gradient(
    135deg,
    rgba(46, 204, 113, 0.2),
    rgba(46, 204, 113, 0.05)
  );
  z-index: -1;
  transform: translateZ(-10px);
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.logo:hover::before {
  opacity: 1;
}

[data-theme="dark"] .logo {
  color: var(--navbar-text-dark);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .logo:hover {
  color: var(--primary-light);
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.3),
    4px 4px 8px rgba(85, 231, 139, 0.3);
}

/* Remove old styles */
.logo.globe-active .full-text,
.logo.globe-active::before {
  display: none;
}

.logo .globe {
  display: none;
}

.nav-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(0.25rem, 0.5vw, 1rem);
  flex-shrink: 1;
}

.nav-links {
  display: flex;
  flex-direction: row;
  gap: clamp(0.25rem, 0.5vw, 1rem);
  flex-wrap: nowrap;
}

.nav-links a {
  font-family: "Lato", sans-serif;
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  font-weight: 600;
  color: var(--navbar-text-light);
  text-decoration: none;
  padding: clamp(0.5rem, 0.75vw, 0.75rem) clamp(1rem, 2vw, 2rem);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-links a {
  color: var(--navbar-text-dark);
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .nav-links a:hover {
  color: var(--primary-light);
  background: rgba(255, 255, 255, 0.05);
}

/* Hover-3D Effect */
.hover-3d {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-3d:hover,
.hover-3d.hover-3d-active {
  transform: translateY(-5px) rotateX(10deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Points Animation */
.navbar .points_wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.navbar .point {
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 2px;
  background: var(--white);
  border-radius: 50%;
  animation: float-up 4s infinite ease-in-out;
}

.navbar .point:nth-child(1) {
  left: 10%;
  animation-delay: 0.1s;
}
.navbar .point:nth-child(2) {
  left: 20%;
  animation-delay: 0.5s;
}
.navbar .point:nth-child(3) {
  left: 30%;
  animation-delay: 0.3s;
}
.navbar .point:nth-child(4) {
  left: 40%;
  animation-delay: 0.7s;
}
.navbar .point:nth-child(5) {
  left: 50%;
  animation-delay: 0.2s;
}
.navbar .point:nth-child(6) {
  left: 60%;
  animation-delay: 0.4s;
}
.navbar .point:nth-child(7) {
  left: 70%;
  animation-delay: 0.6s;
}
.navbar .point:nth-child(8) {
  left: 80%;
  animation-delay: 0.8s;
}
.navbar .point:nth-child(9) {
  left: 90%;
  animation-delay: 0.9s;
}
.navbar .point:nth-child(10) {
  left: 95%;
  animation-delay: 0.3s;
}

/* Star Animation for Navbar */
.navbar .stars_wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.navbar .star {
  position: absolute;
  background-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: float-up linear infinite;
}

/* float-up keyframe lives in buttons.css */
@keyframes float-up-legacy {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-50px);
    opacity: 0;
  }
}

/* Remove burger menu styles */
.burger {
  display: none;
}

.burger-icon {
  display: none;
}

@media (max-width: 600px) {
  .logo .mobile-hidden {
    opacity: 0;
    transform: translateX(-20px);
    width: 0;
    overflow: hidden;
  }
  
  .logo {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    padding: clamp(0.4rem, 0.6vw, 0.6rem) clamp(0.8rem, 1.5vw, 1.5rem);
  }
  
  .nav-container {
    padding: 0 clamp(0.5rem, 1vw, 1rem);
    gap: clamp(0.25rem, 0.5vw, 0.75rem);
  }
  
  .nav-links {
    gap: clamp(0.25rem, 0.5vw, 0.75rem);
  }
  
  .nav-links a {
    font-size: clamp(0.8rem, 0.9vw, 1rem);
    padding: clamp(0.4rem, 0.6vw, 0.6rem) clamp(0.8rem, 1.5vw, 1.5rem);
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 clamp(0.25rem, 0.5vw, 0.75rem);
    gap: clamp(0.1rem, 0.25vw, 0.5rem);
  }
  
  .nav-links {
    gap: clamp(0.1rem, 0.25vw, 0.5rem);
  }
  
  .nav-links a {
    font-size: clamp(0.7rem, 0.8vw, 0.9rem);
    padding: clamp(0.3rem, 0.5vw, 0.5rem) clamp(0.6rem, 1vw, 1.25rem);
  }
}