/* ============================================
   FTS HEADER — ULTIMATE PREMIUM UI/UX 2026
   Glassmorphism 2.0, Micro-animations, 
   Perfect Mobile/Desktop Harmony
   =========================================== */

/* ===========================
   BASE NAVBAR — Advanced Glassmorphism
=========================== */
.fts-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(70px, 8vw, 90px);
  background: rgba(11, 15, 11, 0.92);
  backdrop-filter: saturate(180%) blur(32px);
  -webkit-backdrop-filter: saturate(180%) blur(32px);
  border-bottom: 1px solid rgba(0, 255, 133, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  z-index: 10000;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Scroll effect */
.fts-navbar.scrolled {
  height: clamp(65px, 7vw, 80px);
  backdrop-filter: saturate(200%) blur(40px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ===========================
   LOGO — Premium 3D Glow Effect
=========================== */
.fts-logo {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  background: linear-gradient(135deg, #00ff85 0%, #00e66d 50%, #00d15a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.8px;
  position: relative;
  padding: 12px 20px;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fts-logo::before {
  content: '';
  position: absolute;
  inset: 4px;
  background: 
    radial-gradient(circle at 30% 30%, rgba(0, 255, 133, 0.25), transparent 50%),
    linear-gradient(135deg, rgba(0, 255, 133, 0.15), rgba(0, 255, 133, 0.05));
  border-radius: 14px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fts-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, transparent, rgba(0, 255, 133, 0.1), transparent);
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fts-logo:hover {
  transform: scale(1.08) rotate(1deg) translateY(-2px);
  text-shadow: 0 0 32px rgba(0, 255, 133, 0.6);
  
}

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

.fts-logo:hover::after {
  opacity: 1;
  animation: fts-logo-shimmer 2s infinite;
}

@keyframes fts-logo-shimmer {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===========================
   DESKTOP NAV — Premium Underline + Glow
=========================== */
.fts-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.5vw, 30px);
  position: relative;
}

.fts-link {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: clamp(14px, 1.3vw, 16px);
  letter-spacing: 0.4px;
  padding: 16px 8px 12px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fts-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #00ff85, #00e66d, #00ff85);
  border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0, 255, 133, 0.6);
}

.fts-link:hover {
  color: #ffffff;
  transform: translateY(-3px);
  text-shadow: 0 0 16px rgba(0, 255, 133, 0.5);
}

.fts-link:hover::after {
  width: 100%;
}

/* ===========================
   MEGA MENU — Glass 2.0 + Smooth Entry
=========================== */
.fts-dropdown {
  position: relative;
}

.fts-mega-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 23, 17, 0.96);
  backdrop-filter: saturate(200%) blur(40px);
  -webkit-backdrop-filter: saturate(200%) blur(40px);
  border: 1px solid rgba(0, 255, 133, 0.25);
  border-radius: 20px;
  padding: 28px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(12px) scale(0.92);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.fts-dropdown:hover .fts-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.fts-mega-menu a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.fts-mega-menu a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 133, 0.12), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.fts-mega-menu a:hover {
  color: #ffffff;
  background: rgba(0, 255, 133, 0.12);
  transform: translateX(4px);
  text-shadow: 0 0 12px rgba(0, 255, 133, 0.4);
}

.fts-mega-menu a:hover::before {
  opacity: 1;
}

/* ===========================
   BUTTONS — Next-Level Gradient Magic
=========================== */
.fts-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fts-btn-outline {
  position: relative;
  padding: 12px 28px;
  border: 2px solid transparent;
  background: 
    linear-gradient(#0b0f0b, #0b0f0b) padding-box,
    linear-gradient(135deg, #00ff85, #00e66d, #00d15a) border-box;
  border-radius: 50px;
  color: #00ff85;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.fts-btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 255, 133, 0.25), transparent 60%),
    linear-gradient(135deg, rgba(0, 255, 133, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fts-btn-outline:hover {
  color: #ffffff;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 
    0 16px 40px rgba(0, 255, 133, 0.45),
    0 0 0 1px rgba(0, 255, 133, 0.3);
}

.fts-btn-outline:hover::before {
  opacity: 1;
}

.fts-btn-primary {
  position: relative;
  padding: 12px 32px;
  background: 
    linear-gradient(135deg, #00ff85 0%, #00e66d 50%, #00d15a 100%),
    linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  border-radius: 50px;
  color: #000;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.6px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  overflow: hidden;
}



.fts-btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
}

.fts-btn-primary:hover::before {
  left: 120%;
}

/* ===========================
   MOBILE HAMBURGER — Premium Animation
=========================== */
.fts-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.fts-hamburger:hover {
  background: rgba(0, 255, 133, 0.1);
  transform: scale(1.1);
}

.fts-hamburger span {
  width: 28px;
  height: 3.5px;
  background: linear-gradient(135deg, #00ff85, #00e66d);
  border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 255, 133, 0.4);
}

.fts-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.fts-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(12px);
}

.fts-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===========================
   MOBILE MENU — Fullscreen Glass Panel
=========================== */
.fts-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 15, 11, 0.98);
  backdrop-filter: saturate(180%) blur(40px);
  -webkit-backdrop-filter: saturate(180%) blur(40px);
  display: flex;
  flex-direction: column;
  padding: clamp(80px, 15vw, 120px) 40px 60px;
  gap: 20px;
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999;
  overflow-y: auto;
}

.fts-mobile-menu.show {
  transform: translateX(0);
}

.fts-mobile-menu a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 600;
  padding: 20px 24px;
  border-radius: 20px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
}

.fts-mobile-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #00ff85, #00e66d);
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(-50%);
  box-shadow: 0 0 16px rgba(0, 255, 133, 0.6);
}

.fts-mobile-menu a:hover {
  color: #ffffff;
  background: rgba(0, 255, 133, 0.15);
  transform: translateX(12px);
  text-shadow: 0 0 24px rgba(0, 255, 133, 0.6);
}

.fts-mobile-menu a:hover::before {
  width: 100%;
}

/* ===========================
   RESPONSIVE BREAKPOINTS — Perfect Harmony
=========================== */
@media (max-width: 1200px) {
  .fts-nav {
    gap: 20px;
  }
  .fts-mega-menu {
    min-width: 200px;
    padding: 20px;
  }
}

@media (max-width: 1024px) {
  .fts-nav {
    gap: 16px;
  }
  .fts-link {
    font-size: 14px;
    padding: 14px 6px 10px;
  }
}

@media (max-width: 900px) {

  /* Compact Navbar */
  .fts-navbar {
    height: 70px;
    padding: 0 20px;
  }

  /* Hide Desktop */
  .fts-nav,
  .fts-actions {
    display: none;
  }

  /* Always show hamburger */
  .fts-hamburger {
    display: flex;
    position: relative;
    z-index: 10001;
  }

  /* Reduce Mobile Menu Spacing */
  .fts-mobile-menu {
    padding: 90px 28px 40px;
    gap: 14px;
  }

  /* Reduce Mobile Font Size */
  .fts-mobile-menu a {
    font-size: 18px;
    padding: 14px 18px;
  }

  /* Reduce Hover Movement */
  .fts-mobile-menu a:hover {
    transform: translateX(6px);
  }
}


@media (max-width: 480px) {

  .fts-mobile-menu {
    padding: 85px 18px 30px;
    gap: 12px;
  }

  .fts-mobile-menu a {
    font-size: 16px;
    padding: 12px 14px;
  }
}


/* ===========================
   PERFORMANCE & ACCESSIBILITY
=========================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .fts-navbar,
  .fts-mega-menu {
    border-width: 0.5px;
  }
}


/* ============================================
   FTS FOOTER — ULTIMATE PREMIUM UI/UX 2026
   Glassmorphism 2.0, Micro-animations, 
   Perfect Mobile/Desktop Harmony
   =========================================== */

   .fts-user-dropdown {
  position: relative;
}

.fts-user-trigger {
  cursor: pointer;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

.fts-user-trigger:hover {
  background: rgba(255,255,255,0.08);
}

/* Attractive Dropdown */
.fts-user-menu {
  position: absolute;
  right: 0;
  top: 50px;
  background: #302e2ef2;
  backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 8px 0;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  min-width: 190px;
  animation: dropdownFade 0.25s ease;
  z-index: 1000;
}

/* Menu Items */
.fts-user-menu a,
.fts-user-menu button {
  padding: 12px 20px;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
}

/* Hover */
.fts-user-menu a:hover,
.fts-user-menu button:hover {
  background: rgba(255,255,255,0.08);
  padding-left: 24px;
}

/* Smooth animation */
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
