/* Apple-style Header for HMD FK UM */

.apple-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: var(--apple-blur);
  -webkit-backdrop-filter: var(--apple-blur);
  background: rgba(18, 18, 20, 0.75);
  border-bottom: 1px solid var(--apple-separator);
  transition: var(--apple-transition-base);
  padding: 0;
}

.apple-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo styling */
.apple-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.apple-logo img {
  height: 40px;
  width: auto;
  transition: var(--apple-transition-bounce);
  filter: brightness(1.2) contrast(1.1);
}

.apple-logo:hover img {
  transform: scale(1.05);
}

/* Desktop Navigation */
.apple-nav {
  display: flex;
  gap: 24px;
}

.apple-nav-link {
  color: var(--apple-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--apple-radius-pill);
  transition: var(--apple-transition-fast);
  position: relative;
  opacity: 0.85;
}

.apple-nav-link:hover {
  color: var(--apple-text);
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.apple-nav-link.active {
  color: var(--apple-blue);
  opacity: 1;
  font-weight: 600;
}

.apple-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 4px;
  height: 4px;
  background-color: var(--apple-blue);
  border-radius: 50%;
  transform: translateX(-50%);
  transition: var(--apple-transition-bounce);
}

.apple-nav-link:hover.active::after {
  width: 6px;
  height: 6px;
}

/* Mobile menu button - COMPLETELY REDESIGNED */
.apple-menu-button {
  width: 36px;
  height: 36px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
}

/* Completely new menu icon style */
.apple-menu-icon {
  position: relative;
  width: 100%;
  height: 100%;
}

.apple-menu-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(60, 60, 67, 0.3);
  border-radius: 12px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.apple-menu-button:hover .apple-menu-icon::before {
  opacity: 1;
  transform: scale(1);
}

.apple-menu-icon span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.apple-menu-icon span:nth-child(1) {
  top: 12px;
  transform-origin: center;
}

.apple-menu-icon span:nth-child(2) {
  top: 17px;
  transform-origin: center;
  opacity: 1;
}

.apple-menu-icon span:nth-child(3) {
  top: 22px;
  transform-origin: center;
}

/* Animated hamburger to close transformation */
.apple-menu-button.open .apple-menu-icon::before {
  opacity: 1;
  transform: scale(1);
  background: rgba(255, 69, 58, 0.2);
}

.apple-menu-button.open .apple-menu-icon span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
  background-color: var(--apple-red);
}

.apple-menu-button.open .apple-menu-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.apple-menu-button.open .apple-menu-icon span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
  background-color: var(--apple-red);
}

/* Mobile navigation - IMPROVED */
.apple-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: var(--apple-blur);
  -webkit-backdrop-filter: var(--apple-blur);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--apple-transition-base);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.apple-mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.apple-mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  background: rgba(28, 28, 30, 0.8);
  border-radius: 20px;
  width: calc(100% - 48px);
  max-width: 350px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--apple-shadow-lg);
  transform: translateY(40px) scale(0.9);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition-delay: 0.1s;
  backdrop-filter: var(--apple-blur);
  -webkit-backdrop-filter: var(--apple-blur);
}

.apple-mobile-nav.open .apple-mobile-nav-links {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.apple-mobile-nav-link {
  color: var(--apple-text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  padding: 16px;
  border-radius: 14px;
  text-align: center;
  transition: var(--apple-transition-fast);
  background: rgba(44, 44, 46, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apple-mobile-nav.open .apple-mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.apple-mobile-nav-link:nth-child(1) { transition-delay: 0.15s; }
.apple-mobile-nav-link:nth-child(2) { transition-delay: 0.2s; }
.apple-mobile-nav-link:nth-child(3) { transition-delay: 0.25s; }
.apple-mobile-nav-link:nth-child(4) { transition-delay: 0.3s; }
.apple-mobile-nav-link:nth-child(5) { transition-delay: 0.35s; }

.apple-mobile-nav-link:hover {
  background: rgba(58, 58, 60, 0.6);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.apple-mobile-nav-link.active {
  color: var(--apple-text);
  font-weight: 700;
  border-color: rgba(10, 132, 255, 0.3);
  background: rgba(10, 132, 255, 0.2);
}

.apple-mobile-nav-link.active::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--apple-blue);
  border-radius: 50%;
  margin-right: 10px;
}

/* Scroll behavior */
.apple-header.scrolled {
  background: rgba(15, 15, 16, 0.9);
  box-shadow: var(--apple-shadow-sm);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .apple-nav {
    gap: 16px;
  }
  
  .apple-nav-link {
    padding: 8px 10px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .apple-nav {
    display: none;
  }
  
  .apple-menu-button {
    display: flex;
  }
  
  .apple-header-container {
    height: 60px;
  }
  
  .apple-logo img {
    height: 32px;
  }
} 