/**
* Modern UI Components & Utilities
* Additional professional enhancements
*/

/*--------------------------------------------------------------
# Modern Card Hover Effects
--------------------------------------------------------------*/
.card-hover-effect {
  position: relative;
  overflow: hidden;
}

.card-hover-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 196, 81, 0.2), transparent);
  transition: left 0.5s ease;
}

.card-hover-effect:hover::before {
  left: 100%;
}

/*--------------------------------------------------------------
# Gradient Text Effects
--------------------------------------------------------------*/
.gradient-text {
  background: linear-gradient(135deg, #ffc451 0%, #ffde9e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-dark {
  background: linear-gradient(135deg, #151515 0%, #3b3b3b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/*--------------------------------------------------------------
# Modern Button Styles
--------------------------------------------------------------*/
.btn-modern {
  position: relative;
  padding: 14px 35px;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 2px solid #ffc451;
  background: transparent;
  color: #ffc451;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ffc451, #ffde9e);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn-modern:hover::before {
  left: 0;
}

.btn-modern:hover {
  color: #151515;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 196, 81, 0.4);
}

.btn-modern-filled {
  background: linear-gradient(135deg, #ffc451 0%, #ffde9e 100%);
  color: #151515;
  border: none;
}

.btn-modern-filled:hover {
  background: linear-gradient(135deg, #ffde9e 0%, #ffc451 100%);
  transform: translateY(-3px) scale(1.02);
}

/*--------------------------------------------------------------
# Glassmorphism Cards
--------------------------------------------------------------*/
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 30px;
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/*--------------------------------------------------------------
# Animated Underlines
--------------------------------------------------------------*/
.animated-underline {
  position: relative;
  display: inline-block;
}

.animated-underline::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffc451, #ffde9e);
  transition: width 0.4s ease;
}

.animated-underline:hover::after {
  width: 100%;
}

/*--------------------------------------------------------------
# Icon Animations
--------------------------------------------------------------*/
.icon-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

.icon-rotate {
  transition: transform 0.3s ease;
}

.icon-rotate:hover {
  transform: rotate(360deg);
}

.icon-pulse {
  animation: iconPulse 2s infinite;
}

@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/*--------------------------------------------------------------
# Floating Animation
--------------------------------------------------------------*/
.float-animation {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

/*--------------------------------------------------------------
# Shimmer Effect
--------------------------------------------------------------*/
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/*--------------------------------------------------------------
# Modern Shadows
--------------------------------------------------------------*/
.shadow-soft {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.shadow-medium {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.shadow-strong {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.shadow-glow {
  box-shadow: 0 0 30px rgba(255, 196, 81, 0.4);
}

.shadow-glow-hover:hover {
  box-shadow: 0 0 40px rgba(255, 196, 81, 0.6);
}

/*--------------------------------------------------------------
# Gradient Backgrounds
--------------------------------------------------------------*/
.bg-gradient-primary {
  background: linear-gradient(135deg, #ffc451 0%, #ffde9e 100%);
}

.bg-gradient-dark {
  background: linear-gradient(135deg, #151515 0%, #000000 100%);
}

.bg-gradient-light {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/*--------------------------------------------------------------
# Scroll Reveal Animations
--------------------------------------------------------------*/
.reveal-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal-fade-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s ease;
}

.reveal-fade-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s ease;
}

.reveal-fade-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s ease;
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/*--------------------------------------------------------------
# Modern Borders
--------------------------------------------------------------*/
.border-gradient {
  border: 2px solid transparent;
  background-image: linear-gradient(white, white),
    linear-gradient(135deg, #ffc451, #ffde9e);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.border-animated {
  position: relative;
  border: 2px solid transparent;
}

.border-animated::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ffc451, #ffde9e, #ffc451);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.border-animated:hover::before {
  opacity: 1;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/*--------------------------------------------------------------
# Loading Spinner
--------------------------------------------------------------*/
.spinner-modern {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 196, 81, 0.2);
  border-top-color: #ffc451;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Tooltip Modern
--------------------------------------------------------------*/
.tooltip-modern {
  position: relative;
  cursor: pointer;
}

.tooltip-modern::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  padding: 8px 15px;
  background: rgba(21, 21, 21, 0.95);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.tooltip-modern::after {
  content: '';
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  border: 6px solid transparent;
  border-top-color: rgba(21, 21, 21, 0.95);
  opacity: 0;
  transition: all 0.3s ease;
}

.tooltip-modern:hover::before,
.tooltip-modern:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/*--------------------------------------------------------------
# Progress Bar Modern
--------------------------------------------------------------*/
.progress-modern {
  height: 8px;
  background: rgba(255, 196, 81, 0.2);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-modern-bar {
  height: 100%;
  background: linear-gradient(90deg, #ffc451, #ffde9e);
  border-radius: 10px;
  transition: width 1s ease;
  position: relative;
  overflow: hidden;
}

.progress-modern-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/*--------------------------------------------------------------
# Badge Modern
--------------------------------------------------------------*/
.badge-modern {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffc451 0%, #ffde9e 100%);
  color: #151515;
  box-shadow: 0 4px 15px rgba(255, 196, 81, 0.3);
  transition: all 0.3s ease;
}

.badge-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 196, 81, 0.4);
}

/*--------------------------------------------------------------
# Divider Modern
--------------------------------------------------------------*/
.divider-modern {
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffc451, transparent);
  margin: 40px 0;
  border-radius: 2px;
}

.divider-modern-vertical {
  width: 3px;
  background: linear-gradient(180deg, transparent, #ffc451, transparent);
  height: 100px;
  margin: 0 20px;
  border-radius: 2px;
}