/* 
 * Premium Professional Animations & Design System
 * Advanced CSS Framework with Modern Effects
 */

/*--------------------------------------------------------------
# Premium Variables & Root Settings
--------------------------------------------------------------*/
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --hero-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  --card-gradient: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
  
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #f5576c;
  --text-dark: #2d3436;
  --text-light: #636e72;
  
  --shadow-sm: 0 2px 10px rgba(102, 126, 234, 0.1);
  --shadow-md: 0 8px 30px rgba(102, 126, 234, 0.15);
  --shadow-lg: 0 15px 50px rgba(102, 126, 234, 0.25);
  --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.3);
  
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# Premium Keyframe Animations
--------------------------------------------------------------*/

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-200deg) scale(0);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: var(--shadow-md);
  }
  50% {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: var(--shadow-md);
  }
  50% {
    box-shadow: var(--shadow-glow);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

@keyframes slideInScale {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes flipIn {
  from {
    opacity: 0;
    transform: perspective(400px) rotateX(-90deg);
  }
  to {
    opacity: 1;
    transform: perspective(400px) rotateX(0);
  }
}

@keyframes zoomInRotate {
  from {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.8), 
                 0 0 30px rgba(118, 75, 162, 0.6);
  }
}

@keyframes borderGlow {
  0%, 100% {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.2);
  }
  50% {
    border-color: rgba(102, 126, 234, 0.8);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.5),
                inset 0 0 20px rgba(102, 126, 234, 0.1);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/*--------------------------------------------------------------
# Premium Animation Classes
--------------------------------------------------------------*/

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeInDown {
  animation: fadeInDown 0.8s ease-out forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 1s ease-out forwards;
}

.animate-slideInRight {
  animation: slideInRight 1s ease-out forwards;
}

.animate-scaleIn {
  animation: scaleIn 0.6s ease-out forwards;
}

.animate-rotateIn {
  animation: rotateIn 0.8s ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

.animate-slideInScale {
  animation: slideInScale 0.8s ease-out forwards;
}

.animate-flipIn {
  animation: flipIn 0.8s ease-out forwards;
}

.animate-zoomInRotate {
  animation: zoomInRotate 0.8s ease-out forwards;
}

/* Delay Classes */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }
.delay-1000 { animation-delay: 1s; }

/*--------------------------------------------------------------
# Premium Gradient Backgrounds
--------------------------------------------------------------*/

.gradient-bg-primary {
  background: var(--primary-gradient);
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

.gradient-bg-secondary {
  background: var(--secondary-gradient);
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

.gradient-bg-success {
  background: var(--success-gradient);
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

.gradient-bg-hero {
  background: var(--hero-gradient);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
}

/*--------------------------------------------------------------
# Premium Cards & Boxes
--------------------------------------------------------------*/

.premium-card {
  background: var(--card-gradient);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(102, 126, 234, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: var(--transition-smooth);
}

.premium-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.premium-card:hover::before {
  animation: shimmer 1.5s ease-in-out;
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/*--------------------------------------------------------------
# Premium Buttons
--------------------------------------------------------------*/

.btn-premium {
  position: relative;
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: var(--primary-gradient);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  z-index: 1;
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn-premium:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-premium:hover::before {
  opacity: 1;
}

.btn-premium::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-premium:active::after {
  width: 300px;
  height: 300px;
}

.btn-glow {
  animation: glow 2s ease-in-out infinite;
}

/*--------------------------------------------------------------
# Premium Text Effects
--------------------------------------------------------------*/

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.text-glow {
  animation: textGlow 2s ease-in-out infinite;
}

.text-shimmer {
  background: linear-gradient(
    90deg,
    var(--text-dark) 0%,
    var(--primary-color) 50%,
    var(--text-dark) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/*--------------------------------------------------------------
# Premium Icons & Shapes
--------------------------------------------------------------*/

.premium-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--primary-gradient);
  color: white;
  font-size: 32px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-bounce);
}

.premium-icon:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: var(--shadow-lg);
}

.circle-glow {
  position: relative;
  border-radius: 50%;
}

.circle-glow::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: var(--primary-gradient);
  opacity: 0.3;
  filter: blur(10px);
  animation: pulse 2s ease-in-out infinite;
}

/*--------------------------------------------------------------
# Premium Borders & Lines
--------------------------------------------------------------*/

.border-glow {
  border: 2px solid rgba(102, 126, 234, 0.3);
  animation: borderGlow 2s ease-in-out infinite;
}

.gradient-border {
  position: relative;
  border-radius: 20px;
  padding: 2px;
  background: var(--primary-gradient);
}

.gradient-border > * {
  background: white;
  border-radius: 18px;
}

/*--------------------------------------------------------------
# Premium Loading & Progress
--------------------------------------------------------------*/

.loading-dots {
  display: inline-flex;
  gap: 8px;
}

.loading-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
  animation: bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

.progress-gradient {
  height: 8px;
  border-radius: 10px;
  background: linear-gradient(90deg, #e0e0e0, #e0e0e0);
  overflow: hidden;
  position: relative;
}

.progress-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: var(--primary-gradient);
  border-radius: 10px;
  animation: shimmer 2s linear infinite;
}

/*--------------------------------------------------------------
# Premium Hover Effects
--------------------------------------------------------------*/

.hover-lift {
  transition: var(--transition-smooth);
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.hover-scale {
  transition: var(--transition-smooth);
}

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

.hover-rotate {
  transition: var(--transition-smooth);
}

.hover-rotate:hover {
  transform: rotate(5deg);
}

.hover-glow {
  transition: var(--transition-smooth);
}

.hover-glow:hover {
  box-shadow: var(--shadow-glow);
}

/*--------------------------------------------------------------
# Premium Backgrounds & Overlays
--------------------------------------------------------------*/

.bg-particles {
  position: relative;
  overflow: hidden;
}

.bg-particles::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(245, 87, 108, 0.1) 0%, transparent 50%);
  animation: float 10s ease-in-out infinite;
}

.overlay-gradient {
  position: relative;
}

.overlay-gradient::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.9) 0%, 
    rgba(118, 75, 162, 0.8) 100%);
  z-index: 1;
}

.overlay-gradient > * {
  position: relative;
  z-index: 2;
}

/*--------------------------------------------------------------
# Premium Scroll Effects
--------------------------------------------------------------*/

.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/*--------------------------------------------------------------
# Premium Responsive Utilities
--------------------------------------------------------------*/

@media (max-width: 768px) {
  .premium-card {
    padding: 20px;
  }
  
  .btn-premium {
    padding: 12px 30px;
    font-size: 14px;
  }
  
  .premium-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
}

/*--------------------------------------------------------------
# Premium Accessibility
--------------------------------------------------------------*/

.focus-glow:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/*--------------------------------------------------------------
# Premium Print Styles
--------------------------------------------------------------*/

@media print {
  .animate-fadeInUp,
  .animate-fadeInDown,
  .animate-slideInLeft,
  .animate-slideInRight,
  .animate-pulse,
  .animate-float,
  .animate-glow {
    animation: none !important;
  }
  
  .premium-card,
  .glass-card {
    box-shadow: none !important;
    border: 1px solid #ddd;
  }
}
