/* ========================================
   ENHANCED ATTRACTIVE HEADER STYLES
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.25rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

/* Enhanced Logo */
.logo {
  display: flex;
  align-items: center;
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}

/* Subtle background on hover */
.logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

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

.logo:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

/* Enhanced Navigation Menu */
.navmenu ul {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navmenu a {
  position: relative;
  color: #1f2937;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.1rem;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
  text-transform: capitalize;
  border-radius: 8px;
  background: transparent;
}

/* Gradient underline on hover */
.navmenu a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 2px;
}

.navmenu a:hover::before,
.navmenu a.active::before {
  opacity: 1;
}

.navmenu a:hover,
.navmenu a.active {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.06);
}

/* Enhanced Social Links */
.header-social-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.header-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: #475569;
  transition: all 0.3s ease;
  border: 2px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
}

.header-social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.header-social-links a:hover {
  color: white;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  border-color: transparent;
}

.header-social-links a:hover::before {
  opacity: 1;
}

.header-social-links a i {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.header-social-links a:hover i {
  transform: scale(1.15);
}

/* Enhanced Mobile Toggle - Universal Style */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.4rem;
  border: none;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
  position: relative;
  overflow: hidden;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

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

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

.mobile-nav-toggle:active {
  transform: scale(0.95);
}

.mobile-nav-toggle:hover {
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.mobile-nav-toggle span {
  width: 1.3rem;
  height: 2px;
  background: white;
  margin: 2.5px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  display: block;
  pointer-events: none;
}

.mobile-nav-toggle.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Container Spacing */
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3%;
}

/* Tablet Responsive */
@media (min-width: 768px) and (max-width: 1024px) {
  .logo {
    font-size: 1.5rem;
  }
  
  .navmenu ul {
    gap: 1rem;
  }
  
  .navmenu a {
    font-size: 0.9rem;
    padding: 0.55rem 0.95rem;
  }
  
  .header-social-links a {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.95rem;
  }
  
  .header-social-links {
    gap: 0.6rem;
  }
}



/* Mobile Responsive */
@media (max-width: 768px) {
  .header {
    padding: 1rem 0;
  }
  
  .logo {
    font-size: 1.4rem;
  }
  
  .navmenu ul {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    width: 100vw;
    box-sizing: border-box;
    gap: 0.75rem;
    border-top: 3px solid #6366f1;
  }

  .navmenu ul.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .navmenu ul li {
    margin: 0;
    width: 100%;
  }
  
  .navmenu ul li a {
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
    display: block;
    width: 100%;
    text-align: center;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: transparent;
    color: #1f2937;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    border: 1px solid transparent;
  }
  
  /* Same underline effect as desktop */
  .navmenu ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 2px;
  }
  
  .navmenu ul li a:active {
    transform: scale(0.98);
  }
  
  .navmenu ul li a:hover::before,
  .navmenu ul li a.active::before {
    opacity: 1;
  }
  
  .navmenu ul li a:hover,
  .navmenu ul li a.active {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.18);
  }

  .mobile-nav-toggle {
    display: flex !important;
    z-index: 1001;
    min-width: 40px;
    min-height: 40px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0.4rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
    flex-direction: column;
  }

  .mobile-nav-toggle span {
    width: 1.3rem;
    height: 2px;
    margin: 2.5px 0;
  }

  .header-social-links {
    display: none;
  }
  
  /* Prevent body scroll when menu is open */
  body.mobile-nav-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.3rem;
  }
  
  .navmenu ul {
    padding: 1.75rem 1.25rem;
    gap: 0.6rem;
  }
  
  .navmenu ul li a {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    min-height: 50px;
  }
  
  .mobile-nav-toggle {
    min-width: 40px;
    min-height: 40px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    padding: 0.4rem;
  }
  
  .mobile-nav-toggle span {
    width: 1.3rem;
    height: 2px;
    margin: 2.5px 0;
  }
}

@media (max-width: 360px) {
  .logo {
    font-size: 1.2rem;
  }
  
  .navmenu ul {
    padding: 1.5rem 1rem;
    gap: 0.5rem;
  }
  
  .navmenu ul li a {
    font-size: 0.9rem;
    padding: 0.7rem 0.9rem;
    min-height: 48px;
  }
  
  .mobile-nav-toggle {
    min-width: 40px;
    min-height: 40px;
    width: 40px;
    height: 40px;
    padding: 0.4rem;
    border-radius: 8px;
  }
  
  .mobile-nav-toggle span {
    width: 1.25rem;
    height: 2px;
    margin: 2.5px 0;
  }
}


/* ========================================
   ENHANCED MOBILE HEADER - iPod & Small Devices
   ======================================== */

/* All Mobile Devices - Enhanced Menu Backdrop */
@media (max-width: 768px) {
  .navmenu ul {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%) !important;
    box-shadow: 0 -5px 40px rgba(99, 102, 241, 0.15), 0 10px 60px rgba(0, 0, 0, 0.2) !important;
  }
  
  .navmenu ul li a {
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }
  
  .navmenu ul li a:active {
    transform: scale(0.98);
    background: rgba(99, 102, 241, 0.12);
  }
  
  .header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  
  .logo {
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }
  
  .mobile-nav-toggle {
    flex-shrink: 0;
  }
}

/* Small Mobile - Compact & Attractive */
@media (max-width: 480px) {
  .header {
    padding: 0.95rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  }
  
  .header .container {
    padding: 0 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  
  .logo {
    padding: 0.25rem 0.5rem;
    font-size: 1.3rem;
    flex: 0 0 auto;
  }
  
  .navmenu ul {
    padding: 1.75rem 1.25rem;
    gap: 0.6rem;
  }
  
  .navmenu ul li a {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    min-height: 50px;
  }
  
  .mobile-nav-toggle {
    flex: 0 0 auto;
  }
}

/* iPod & Very Small - Ultra Compact */
@media (max-width: 360px) {
  .header {
    padding: 0.9rem 0;
  }
  
  .header .container {
    padding: 0 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    max-width: 100%;
  }
  
  .logo {
    font-size: 1.2rem;
    letter-spacing: 0.015em;
    padding: 0.25rem 0.5rem;
    flex: 0 0 auto;
  }
  
  .navmenu ul {
    padding: 1.5rem 1rem;
    gap: 0.5rem;
  }
  
  .navmenu ul li a {
    font-size: 0.9rem;
    padding: 0.7rem 0.9rem;
    min-height: 48px;
    border-radius: 10px;
    font-weight: 600;
  }
  
  .mobile-nav-toggle {
    flex: 0 0 auto;
  }
}

/* Extra Small iPod Touch */
@media (max-width: 320px) {
  .header {
    padding: 0.85rem 0;
  }
  
  .header .container {
    padding: 0 3.5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    max-width: 100%;
  }
  
  .logo {
    font-size: 1.1rem;
    padding: 0.2rem 0.4rem;
    flex: 0 0 auto;
  }
  
  .navmenu ul {
    padding: 1.25rem 0.85rem;
    gap: 0.45rem;
  }
  
  .navmenu ul li a {
    font-size: 0.875rem;
    padding: 0.65rem 0.85rem;
    min-height: 46px;
    border-radius: 9px;
  }
  
  .mobile-nav-toggle {
    flex: 0 0 auto;
  }
  
  .mobile-nav-toggle span {
    width: 1.2rem;
    height: 1.8px;
    margin: 2.2px 0;
  }
}
