/**
 * ========================================
 * HEADER & MOBILE MENU STYLES
 * ========================================
 */

/* ==================== BODY PADDING FOR FIXED HEADER ==================== */

body {
  padding-top: 60px; /* Height of fixed header */
}

/* ==================== HEADER ==================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.2);
  border-bottom-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 40px rgba(102, 126, 234, 0.3);
}

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

/* ==================== LOGO ==================== */

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

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

.logo-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(231, 76, 60, 0.4));
  transition: filter 0.3s ease;
}

.header-logo:hover .logo-icon {
  filter: drop-shadow(0 4px 12px rgba(231, 76, 60, 0.6));
}

.logo-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ==================== HEADER COUNTDOWN ==================== */

.header-countdown {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  flex-shrink: 0;
}

.header-countdown-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
}

.header-countdown-label i {
  font-size: 14px;
  color: #ffd700;
}

.header-countdown-time {
  display: flex;
  align-items: center;
  gap: 4px;
  color: white;
  font-size: 15px;
  font-weight: 700;
  font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
}

.header-countdown-time span {
  color: #4ade80;
}

/* ==================== DESKTOP NAVIGATION ==================== */

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 10px 14px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transition: left 0.3s ease;
  z-index: -1;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

/* ==================== HEADER CTA BUTTONS ==================== */

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-help {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-help:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-contact {
  background: linear-gradient(135deg, #e74c3c 0%, #e74c3c 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(231, 76, 60, 0.4);
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(231, 76, 60, 0.6);
}

.header-btn i {
  font-size: 16px;
}

/* ==================== MOBILE MENU TOGGLE ==================== */

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 26px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1002;
  transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
  transform: scale(1.1);
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(11.5px) rotate(45deg);
}

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

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-11.5px) rotate(-45deg);
}

/* ==================== MOBILE MENU OVERLAY ==================== */

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 15, 35, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

.mobile-menu-content {
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  padding: 120px 30px 40px;
  display: flex;
  flex-direction: column;
  transform: translateY(-20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: translateY(0);
}

/* ==================== MOBILE COUNTDOWN ==================== */

.mobile-countdown {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 30px;
  text-align: center;
  animation: slideDown 0.5s ease 0.1s both;
}

.mobile-countdown-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.mobile-countdown-label i {
  font-size: 16px;
  color: #ffd700;
}

.mobile-countdown-time {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.mobile-countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mobile-countdown-item span {
  font-size: 32px;
  font-weight: 800;
  color: #4ade80;
  line-height: 1;
  font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
}

.mobile-countdown-item small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==================== MOBILE NAVIGATION ==================== */

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 40px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: white;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideRight 0.4s ease forwards;
}

.mobile-nav-link:nth-child(1) { animation-delay: 0.15s; }
.mobile-nav-link:nth-child(2) { animation-delay: 0.2s; }
.mobile-nav-link:nth-child(3) { animation-delay: 0.25s; }
.mobile-nav-link:nth-child(4) { animation-delay: 0.3s; }
.mobile-nav-link:nth-child(5) { animation-delay: 0.35s; }
.mobile-nav-link:nth-child(6) { animation-delay: 0.4s; }
.mobile-nav-link:nth-child(7) { animation-delay: 0.45s; }
.mobile-nav-link:nth-child(8) { animation-delay: 0.5s; }
.mobile-nav-link:nth-child(9) { animation-delay: 0.55s; }
.mobile-nav-link:nth-child(10) { animation-delay: 0.6s; }

.mobile-nav-link i:first-child {
  font-size: 22px;
  width: 28px;
  text-align: center;
  opacity: 0.95;
}

.mobile-nav-link span {
  flex: 1;
}

.mobile-nav-link i:last-child {
  font-size: 14px;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateX(6px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.mobile-nav-link:hover i:last-child {
  transform: translateX(4px);
  opacity: 1;
}

.mobile-nav-link:active {
  transform: translateX(4px) scale(0.98);
}

/* ==================== MOBILE CTA ==================== */

.mobile-cta {
  margin-top: auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  animation: fadeIn 0.5s ease 0.6s both;
}

.mobile-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, #e74c3c 0%, #e74c3c 100%);
  border: none;
  border-radius: 30px;
  color: white;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(231, 76, 60, 0.2);
  transition: all 0.3s ease;
}

.mobile-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 18px rgba(231, 76, 60, 0.3);
}

.mobile-cta-button:active {
  transform: translateY(-1px);
}

.mobile-cta-button i {
  font-size: 20px;
}

.mobile-cta-text {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
}

/* ==================== MOBILE FOOTER ==================== */

.mobile-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  animation: fadeIn 0.5s ease 0.7s both;
}

.mobile-footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.mobile-footer-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.mobile-footer-link:hover {
  color: white;
  transform: translateY(-2px);
}

.mobile-copyright {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 400;
  text-align: center;
}

/* ==================== ANIMATIONS ==================== */

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==================== BODY SCROLL LOCK ==================== */

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ==================== RESPONSIVE ==================== */

/* Tablet & Mobile */
@media (max-width: 1024px) {
  .desktop-nav {
    gap: 4px;
  }

  .nav-link {
    padding: 10px 14px;
    font-size: 14px;
  }

  .header-container {
    padding: 16px 30px;
    gap: 20px;
  }
}

/* Mobile only */
@media (max-width: 768px) {
  .desktop-nav,
  .header-cta,
  .header-countdown {
    display: none;
  }

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

  .header-container {
    padding: 14px 20px;
  }

  .logo-icon {
    width: 38px;
    height: 38px;
  }

  .logo-text {
    font-size: 20px;
  }

  .mobile-menu-content {
    padding: 90px 20px 30px;
  }

  .mobile-menu-header {
    margin-bottom: 40px;
  }

  .mobile-logo-icon {
    width: 50px;
    height: 50px;
  }

  .mobile-logo-name {
    font-size: 24px;
  }

  .mobile-logo-tagline {
    font-size: 12px;
  }

  .mobile-menu-close {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .mobile-nav-link {
    padding: 16px 20px;
    font-size: 16px;
  }

  .mobile-nav-link i:first-child {
    font-size: 20px;
    width: 26px;
  }

  .mobile-cta-button {
    padding: 16px 28px;
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 12px 16px;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
  }

  .logo-text {
    font-size: 18px;
  }

  .mobile-menu-content {
    padding: 80px 16px 24px;
  }

  .mobile-nav-link {
    padding: 14px 18px;
    font-size: 15px;
  }

  .mobile-cta-button {
    padding: 14px 24px;
    font-size: 16px;
  }
}
