/* ===========================================
   NEW OLIMPOSGAZAB HEADER STYLES - CLEAN VERSION
   =========================================== */

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

/* Header Container */
.olimpos-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, 
    rgba(3, 7, 30, 0.95) 0%, 
    rgba(20, 20, 50, 0.98) 50%, 
    rgba(3, 7, 30, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(255, 0, 110, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: headerSlideDown 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Header Container */
.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Logo Section */
.header-logo {
  flex-shrink: 0;
  position: relative;
}

.logo-link {
  display: inline-block;
  text-decoration: none;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-text {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(45deg, #ff006e, #fb5607, #ff006e);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: logoGradient 4s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(255, 0, 110, 0.5);
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}

@keyframes logoGradient {
  0%, 100% { 
    background-position: 0% 50%;
    transform: scale(1);
  }
  50% { 
    background-position: 100% 50%;
    transform: scale(1.02);
  }
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(255, 0, 110, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  animation: logoGlow 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes logoGlow {
  0%, 100% { 
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
  50% { 
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.logo-link:hover .logo-text {
  transform: scale(1.05);
  filter: drop-shadow(0 5px 15px rgba(255, 0, 110, 0.4));
}

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

.nav-list {
  display: flex;
  list-style: none;
  gap: 1rem;
  align-items: center;
  position: relative;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 0.8rem 1.2rem;
  color: #fb5607;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 0, 110, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 0, 110, 0.2), 
    transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: #ffffff;
  background: linear-gradient(135deg, 
    rgba(255, 0, 110, 0.8) 0%, 
    rgba(251, 86, 7, 0.8) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 0, 110, 0.4);
  border-color: rgba(255, 0, 110, 0.6);
}

.nav-link.active {
  background: linear-gradient(135deg, 
    rgba(255, 0, 110, 0.9) 0%, 
    rgba(251, 86, 7, 0.9) 100%);
  color: #ffffff;
  font-weight: 700;
  border-radius: 15px;
  padding: 0.8rem 1.5rem;
  box-shadow: 0 6px 20px rgba(255, 0, 110, 0.5);
  transform: translateY(-2px) scale(1.02);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  animation: activeShimmer 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes activeShimmer {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* Mobile Toggle Button */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 0, 110, 0.1);
  border: 2px solid rgba(255, 0, 110, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.mobile-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 0, 110, 0.2), 
    transparent);
  transition: left 0.5s ease;
}

.mobile-toggle:hover::before {
  left: 100%;
}

.mobile-toggle:hover {
  background: rgba(255, 0, 110, 0.2);
  border-color: rgba(255, 0, 110, 0.6);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 0, 110, 0.3);
}

.hamburger-line {
  display: block;
  width: 28px;
  height: 3px;
  background: linear-gradient(45deg, #ff006e, #fb5607);
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background: #ffffff;
}

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

.mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background: #ffffff;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, 
    rgba(3, 7, 30, 0.98) 0%, 
    rgba(20, 20, 50, 0.99) 50%, 
    rgba(3, 7, 30, 0.98) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: none;
  z-index: 999;
  animation: mobileMenuSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes mobileMenuSlide {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.mobile-nav-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.mobile-nav-item {
  width: 100%;
}

.mobile-nav-link {
  display: block;
  padding: 1.2rem 2rem;
  color: #fb5607;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 0, 110, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  animation: mobileNavItemFade 0.6s ease-out both;
}

@keyframes mobileNavItemFade {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-link:hover {
  background: linear-gradient(135deg, 
    rgba(255, 0, 110, 0.8) 0%, 
    rgba(251, 86, 7, 0.8) 100%);
  color: #ffffff;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 0, 110, 0.4);
  border-color: rgba(255, 0, 110, 0.8);
}

.mobile-nav-link.active {
  background: linear-gradient(135deg, 
    rgba(255, 0, 110, 0.9) 0%, 
    rgba(251, 86, 7, 0.9) 100%);
  color: #ffffff;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 25px rgba(255, 0, 110, 0.6);
  border: 3px solid rgba(255, 255, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    padding: 1rem 1.5rem;
  }

  .logo-text {
    font-size: 1.8rem;
  }

  .header-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0.8rem 1rem;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .mobile-nav-link {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
  }
}

/* Scroll Effects */
.olimpos-header.scrolled {
  background: linear-gradient(135deg, 
    rgba(3, 7, 30, 0.98) 0%, 
    rgba(20, 20, 50, 0.99) 50%, 
    rgba(3, 7, 30, 0.98) 100%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border-bottom: 2px solid rgba(255, 0, 110, 0.5);
}

/* Performance Optimizations */
.olimpos-header,
.header-nav,
.nav-link,
.mobile-toggle {
  will-change: transform, opacity;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .olimpos-header,
  .logo-text,
  .nav-link,
  .mobile-toggle {
    animation: none !important;
    transition: none !important;
  }
  
  .logo-text {
    background: #ff006e;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}
