/* ===================================
   MODERN BUTTONS OVERRIDE STYLES
   Created for: Scroll Button, Portfolio Filters, Team Button
   Compatible with existing dark-mode.css
   =================================== */

/* ===================================
   1. SCROLL DOWN BUTTON - Modern Glassmorphism Style
   =================================== */

.scroll-indicator {
  position: absolute !important;
  bottom: 30px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 3 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 15px !important;
  cursor: pointer !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.scroll-indicator:hover {
  transform: translateX(-50%) translateY(-8px) !important;
}

.scroll-arrow {
  width: 60px !important;
  height: 60px !important;
  border: none !important;
  border-radius: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 180, 0, 0.15) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 8px 32px rgba(255, 180, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 1px
    rgba(255, 180, 0, 0.3) !important;
  animation: scrollPulse 3s ease-in-out infinite !important;
  position: relative !important;
  overflow: hidden !important;
}

.scroll-arrow::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 180, 0, 0.3), transparent) !important;
  transition: left 0.5s !important;
}

.scroll-indicator:hover .scroll-arrow::before {
  left: 100% !important;
}

.scroll-arrow i {
  font-size: 24px !important;
  color: #ffb400 !important;
  animation: arrowBounce 2s ease-in-out infinite !important;
  filter: drop-shadow(0 0 8px rgba(255, 180, 0, 0.6)) !important;
}

.scroll-text {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #f2f2f2 !important;
  opacity: 0.9 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}

@keyframes scrollPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 32px rgba(255, 180, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 1px
      rgba(255, 180, 0, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 180, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 0 2px
      rgba(255, 180, 0, 0.5);
  }
}

@keyframes arrowBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* ===================================
   2. PORTFOLIO FILTER BUTTONS - Modern Pill Style
   =================================== */

.portfolio-categories {
  display: flex !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-bottom: 3rem !important;
  flex-wrap: wrap !important;
  padding: 0 20px !important;
}

.category-btn {
  background: rgba(20, 20, 20, 0.8) !important;
  color: #f2f2f2 !important;
  border: 1px solid rgba(255, 180, 0, 0.2) !important;
  padding: 14px 32px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-family: inherit !important;
  position: relative !important;
  overflow: hidden !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  letter-spacing: 0.5px !important;
}

.category-btn::before {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 0 !important;
  height: 0 !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(255, 180, 0, 0.3), transparent) !important;
  transform: translate(-50%, -50%) !important;
  transition: width 0.4s, height 0.4s !important;
}

.category-btn:hover::before {
  width: 300px !important;
  height: 300px !important;
}

.category-btn:hover {
  background: rgba(255, 180, 0, 0.15) !important;
  color: #ffb400 !important;
  border-color: #ffb400 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(255, 180, 0, 0.25), 0 0 20px rgba(255, 180, 0, 0.1) !important;
}

.category-btn.active {
  background: linear-gradient(135deg, #ffb400, #ffa000) !important;
  color: #000 !important;
  border-color: #ffb400 !important;
  box-shadow: 0 8px 30px rgba(255, 180, 0, 0.4), 0 0 25px rgba(255, 180, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px) scale(1.05) !important;
  font-weight: 700 !important;
}

.category-btn.active::before {
  display: none !important;
}

/* Add ripple effect on click */
.category-btn:active {
  transform: translateY(0) scale(0.98) !important;
}

/* ===================================
   3. TEAM SHOW MORE BUTTON - Premium Gradient Style
   =================================== */

.team-controls {
  text-align: center !important;
  margin-top: 3rem !important;
}

.btn-show-more,
.btn-show-less {
  background: linear-gradient(135deg, #aa66ff 0%, #ffb400 100%) !important;
  color: #000 !important;
  border: none !important;
  padding: 18px 40px !important;
  border-radius: 50px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  box-shadow: 0 10px 40px rgba(170, 102, 255, 0.3), 0 5px 15px rgba(255, 180, 0, 0.2) !important;
  font-family: inherit !important;
  position: relative !important;
  overflow: hidden !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}

.btn-show-more::before,
.btn-show-less::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(135deg, #ffb400 0%, #aa66ff 100%) !important;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: -1 !important;
}

.btn-show-more:hover::before,
.btn-show-less:hover::before {
  left: 0 !important;
}

.btn-show-more:hover,
.btn-show-less:hover {
  transform: translateY(-5px) scale(1.05) !important;
  box-shadow: 0 15px 50px rgba(170, 102, 255, 0.45), 0 8px 25px rgba(255, 180, 0, 0.3), 0 0 30px
    rgba(170, 102, 255, 0.2) !important;
}

.btn-show-more i,
.btn-show-less i {
  font-size: 16px !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-show-more:hover i {
  transform: rotate(180deg) scale(1.2) !important;
}

.btn-show-less:hover i {
  transform: rotate(-180deg) scale(1.2) !important;
}

.btn-show-more:active,
.btn-show-less:active {
  transform: translateY(-2px) scale(1.02) !important;
}

/* Hidden state */
.btn-show-more.hidden,
.btn-show-less.hidden {
  display: none !important;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
  /* Scroll Button */
  .scroll-arrow {
    width: 50px !important;
    height: 50px !important;
  }

  .scroll-arrow i {
    font-size: 20px !important;
  }

  .scroll-text {
    font-size: 12px !important;
  }

  /* Portfolio Filters */
  .portfolio-categories {
    gap: 8px !important;
  }

  .category-btn {
    padding: 12px 24px !important;
    font-size: 14px !important;
  }

  /* Team Button */
  .btn-show-more,
  .btn-show-less {
    padding: 15px 32px !important;
    font-size: 14px !important;
    gap: 10px !important;
  }
}

@media (max-width: 480px) {
  /* Scroll Button */
  .scroll-indicator {
    bottom: 20px !important;
    gap: 10px !important;
  }

  .scroll-arrow {
    width: 45px !important;
    height: 45px !important;
    border-radius: 15px !important;
  }

  .scroll-arrow i {
    font-size: 18px !important;
  }

  /* Portfolio Filters - Stack on small screens */
  .portfolio-categories {
    gap: 6px !important;
  }

  .category-btn {
    padding: 10px 20px !important;
    font-size: 13px !important;
  }

  /* Team Button */
  .btn-show-more,
  .btn-show-less {
    padding: 14px 28px !important;
    font-size: 13px !important;
    width: 100% !important;
    max-width: 300px !important;
  }
}

/* ===================================
   RTL SUPPORT (Arabic)
   =================================== */

[dir="rtl"] .scroll-indicator,
html[dir="rtl"] .scroll-indicator {
  left: 50% !important;
  right: auto !important;
}

[dir="rtl"] .portfolio-categories,
html[dir="rtl"] .portfolio-categories {
  direction: rtl !important;
}

[dir="rtl"] .btn-show-more,
[dir="rtl"] .btn-show-less,
html[dir="rtl"] .btn-show-more,
html[dir="rtl"] .btn-show-less {
  flex-direction: row-reverse !important;
}

/* ===================================
   ACCESSIBILITY ENHANCEMENTS
   =================================== */

.category-btn:focus,
.btn-show-more:focus,
.btn-show-less:focus,
.scroll-indicator:focus {
  outline: 2px solid #ffb400 !important;
  outline-offset: 3px !important;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .scroll-arrow,
  .scroll-arrow i,
  .category-btn,
  .btn-show-more,
  .btn-show-less {
    animation: none !important;
    transition: none !important;
  }
}
