/* Header base styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

.header-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

/* Logo styles */
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: translateY(-1px);
}

.logo-image {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

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

.logo-text {
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, #14b8a6, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

/* Navigation styles */
nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* Navigation link styles */
.nav-link {
  position: relative;
  color: #6b7280;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  text-decoration: none !important;
  border-bottom: none !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 4px;
  height: 4px;
  background-color: #14b8a6;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.5),
              0 0 20px rgba(20, 184, 166, 0.3);
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scale(1);
}

/* Button styles */
.btn-primary {
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* Mobile styles */
@media (max-width: 768px) {
  header nav {
    gap: 1rem;
  }
  .mobile-menu-button {
    display: block;
  }
  nav {
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    background: rgba(17, 24, 39, 0.95);
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* Mobile menu styles */
@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(8px);
    padding: 1rem;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav.active {
    display: flex;
  }

  nav a {
    text-decoration: none !important;
    border-bottom: none !important;
    padding: 0.75rem 0;
    width: 100%;
    text-align: center;
  }
}

/* Gradient text animation */
.gradient-text {
  background: linear-gradient(90deg, #14b8a6, #818cf8, #14b8a6);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* Page load animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  header nav {
    gap: 1rem;
  }
  
  header .logo-text {
    font-size: 18px !important;
  }
  
  header nav a {
    font-size: 0.9rem;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  header .logo-text {
    font-size: 18px !important;
  }
  
  header .logo-image {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
  }
}

/* Ensure button styles don't get overridden */
header .btn-primary {
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

header .btn-primary:hover {
  opacity: 0.9;
}
