/* Header Styling */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 105, 180, 0.3);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Scrolled state */
.site-header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.6);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo Section */
.logo-section a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
}

.header-logo {
  height: 40px;
  width: auto;
  margin-right: 12px;
  transition: transform 0.3s ease;
}

.logo-section a:hover .header-logo {
  transform: scale(1.05);
}

.site-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 0 5px rgba(255, 105, 180, 0.6);
  display: none; /* Hidden on mobile */
}

/* Navigation Menu */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
  gap: 5px;
}

.nav-links li a {
  display: block;
  padding: 8px 16px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Current page indicator */
.nav-links li a.current-page {
  background-color: rgba(255, 105, 180, 0.4);
  box-shadow: 0 0 8px rgba(255, 105, 180, 0.3);
}

.nav-links li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.nav-links li a:hover {
  background-color: rgba(255, 105, 180, 0.3);
  transform: translateY(-2px);
}

.nav-links li a:hover::before {
  left: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  margin: 5px 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .site-title {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -300px; /* Start off-screen */
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: rgba(30, 30, 40, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: right 0.3s ease;
    padding-top: 70px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }

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

  .nav-links {
    flex-direction: column;
    width: 100%;
    padding: 20px;
    gap: 15px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    padding: 12px 20px;
    width: 100%;
    text-align: center;
    border-radius: 5px;
    font-size: 1.1rem;
  }

  /* Hamburger to X animation */
  .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
  }
}

/* Tablet Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .site-title {
    display: inline-block;
    font-size: 1.1rem;
  }

  .nav-links li a {
    padding: 7px 12px;
    font-size: 0.9rem;
  }
}

/* Large Screen Adjustments */
@media (min-width: 1025px) {
  .site-title {
    display: inline-block;
  }

  .header-container {
    padding: 12px 30px;
  }
}

/* Extra Large Screen Adjustments */
@media (min-width: 1440px) {
  .header-logo {
    height: 45px;
  }

  .site-title {
    font-size: 1.5rem;
  }

  .nav-links li a {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* Overlay for when mobile menu is open */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}
