/* Smooth Transitions for All Themes */

/* Global smooth transitions */
body {
  transition: background 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body * {
  transition: color 0.3s ease, background-color 0.3s ease,
    border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Header smooth transitions */
.header {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.logo {
  transition: all 0.3s ease !important;
}

.navbar a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
}

.navbar a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease, left 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
  left: 0;
}

/* Button smooth transitions */
.btn {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Card smooth transitions */
.skills-category,
.portfolio-box,
.contact-info,
.contact-form {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.skills-category:hover,
.portfolio-box:hover {
  transform: translateY(-8px) scale(1.02) !important;
}

/* Icon smooth transitions */
.category-icon {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.skills-category:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Tag smooth transitions */
.skill-tag,
.tech-badge {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.skill-tag:hover,
.tech-badge:hover {
  transform: translateY(-3px) scale(1.05);
}

/* Social media smooth transitions */
.social-media a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.social-media a:hover {
  transform: translateY(-5px) rotate(5deg) scale(1.1);
}

/* Input smooth transitions */
.contactInput,
.contactTextarea {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.contactInput:focus,
.contactTextarea:focus {
  transform: scale(1.01);
}

/* Submit button smooth transitions */
.contactSubmit {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.contactSubmit:hover {
  transform: translateY(-4px) scale(1.05);
}

/* Project button smooth transitions */
.project-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
}

.project-btn:hover {
  transform: translateX(5px);
}

/* Scroll progress smooth transitions */
.scroll-progress-bar {
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease !important;
}

/* Footer smooth transitions */
.footer {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.footer a {
  transition: all 0.3s ease !important;
  position: relative;
}

.footer a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.footer a:hover::after {
  width: 100%;
}

/* Chatbot smooth transitions */
#chatbot-toggle {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#chatbot-toggle:hover {
  transform: scale(1.1) rotate(10deg);
}

/* Quick button smooth transitions */
.quick-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.quick-btn:hover {
  transform: translateX(5px);
}

/* Heading smooth transitions */
.heading {
  transition: all 0.5s ease !important;
}

/* Portfolio overlay smooth transitions */
.portfolio-overlay {
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

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

/* Enhanced glow effects */
@keyframes glow-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 5px currentColor);
  }
  50% {
    filter: drop-shadow(0 0 20px currentColor);
  }
}

.logo:hover,
.heading:hover {
  animation: glow-pulse 2s ease-in-out infinite;
}

/* Smooth theme transitions */
body.purple-theme,
body.lightning-theme,
body.dotgrid-theme,
body.squares-theme {
  animation: theme-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes theme-fade-in {
  from {
    opacity: 0.8;
  }
  to {
    opacity: 1;
  }
}

/* Enhanced hover states for all themes */
body.purple-theme .btn:hover,
body.lightning-theme .btn:hover,
body.dotgrid-theme .btn:hover,
body.squares-theme .btn:hover {
  filter: brightness(1.2);
}

/* Smooth card entrance */
.skills-category,
.portfolio-box {
  animation: card-entrance 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

@keyframes card-entrance {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation for cards */
.skills-category:nth-child(1),
.portfolio-box:nth-child(1) {
  animation-delay: 0.1s;
}

.skills-category:nth-child(2),
.portfolio-box:nth-child(2) {
  animation-delay: 0.2s;
}

.skills-category:nth-child(3),
.portfolio-box:nth-child(3) {
  animation-delay: 0.3s;
}

.skills-category:nth-child(4),
.portfolio-box:nth-child(4) {
  animation-delay: 0.4s;
}

.skills-category:nth-child(5),
.portfolio-box:nth-child(5) {
  animation-delay: 0.5s;
}
