/* Animation Definitions */

/* Fade In Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Rotation Animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Tech Float Animation */
@keyframes techFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Morph Animation for Hero Image */
@keyframes morph {
  0%, 100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }
  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }
  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
}

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

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

@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);
  }
}

/* Scale Animations */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleUp {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

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

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(180deg);
  }
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 212, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
  }
}

/* Glow Animation */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
  }
}

/* Typing Animation */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  0%, 50% {
    border-color: transparent;
  }
  51%, 100% {
    border-color: var(--primary-blue);
  }
}

/* Slide Animations */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

/* Rotate Animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Bounce Animation */
@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

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

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

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

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

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

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

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

.animate-float-reverse {
  animation: floatReverse 8s ease-in-out infinite;
}

/* Stagger Animation Delays */
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }
.animate-delay-600 { animation-delay: 0.6s; }
.animate-delay-700 { animation-delay: 0.7s; }
.animate-delay-800 { animation-delay: 0.8s; }

/* Hover Animations */
.hover-scale {
  transition: transform var(--transition-normal);
}

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

.hover-lift {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

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

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

/* Scroll Reveal Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

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

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

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

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

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

.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s ease-out;
}

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

/* Loading Animation */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 212, 255, 0.1);
  border-left: 4px solid var(--primary-blue);
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

/* Progress Bar Animation */
.progress-bar-animated {
  position: relative;
  overflow: hidden;
}

.progress-bar-animated::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Button Ripple Effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::before {
  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-ripple:active::before {
  width: 300px;
  height: 300px;
}

/* Text Reveal Animation */
.text-reveal {
  overflow: hidden;
  position: relative;
}

.text-reveal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transform: translateX(-100%);
  animation: textReveal 1.5s ease-out forwards;
}

@keyframes textReveal {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Particle Animation */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-blue);
  border-radius: 50%;
  pointer-events: none;
  animation: particleFloat 4s linear infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 1;
    transform: translateY(90vh) scale(1);
  }
  90% {
    opacity: 1;
    transform: translateY(10vh) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
}

/* Morphing Animation */
.morph {
  animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}

/* Glitch Effect */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-1 0.5s infinite;
  color: #ff00ff;
  z-index: -1;
}

.glitch::after {
  animation: glitch-2 0.5s infinite;
  color: #00ffff;
  z-index: -2;
}

@keyframes glitch-1 {
  0%, 14%, 15%, 49%, 50%, 99%, 100% {
    transform: translate(0);
  }
  15%, 49% {
    transform: translate(-2px, 2px);
  }
  50%, 99% {
    transform: translate(2px, -2px);
  }
}

@keyframes glitch-2 {
  0%, 20%, 21%, 62%, 63%, 99%, 100% {
    transform: translate(0);
  }
  21%, 62% {
    transform: translate(2px, 0);
  }
  63%, 99% {
    transform: translate(-2px, 2px);
  }
}
/
* Enhanced Hero Section Animations */
.hero-badge {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title .hero-greeting {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-title .hero-name {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-title .hero-role {
  animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-title .hero-location {
  animation: fadeInUp 1s ease-out 1s both;
}

.hero-description {
  animation: fadeInUp 1s ease-out 1.2s both;
}

.hero-stats {
  animation: fadeInUp 1s ease-out 1.4s both;
}

.hero-buttons {
  animation: fadeInUp 1s ease-out 1.6s both;
}

/* Enhanced Hero Button Animations */
.hero-buttons .btn {
  position: relative;
  overflow: hidden;
}

.hero-buttons .btn .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-left: 0.5rem;
}

.hero-buttons .btn:hover .arrow {
  transform: translateX(5px);
}

/* Hero Image Enhanced Glow Effect */
.hero-image-placeholder::after {
  content: '';
  position: absolute;
  inset: -20px;
  background: var(--gradient-primary);
  border-radius: inherit;
  z-index: -1;
  filter: blur(20px);
  opacity: 0.3;
  animation: heroGlow 3s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

/* Typing Animation for Hero Text */
.hero-name.typing {
  overflow: hidden;
  border-right: 3px solid var(--primary-blue);
  white-space: nowrap;
  animation: typing 3s steps(20) 1s both, blink 1s infinite 4s;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  0%, 50% {
    border-color: var(--primary-blue);
  }
  51%, 100% {
    border-color: transparent;
  }
}

/* Enhanced CTA Button Pulse Effect */
.btn-primary {
  animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
  }
  50% {
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
  }
}

/* Hero Visual Enhancements */
.hero-visual {
  animation: fadeInRight 1s ease-out 0.8s both;
}

.floating-shape {
  animation: float 6s ease-in-out infinite;
}

.floating-shape:nth-child(2n) {
  animation-direction: reverse;
  animation-duration: 8s;
}

/* Particle Enhancement */
.hero-particles::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 70%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  animation: particleGlow 4s ease-in-out infinite alternate;
}

@keyframes particleGlow {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.7;
  }
}
/* Por
tfolio Specific Animations */

/* Portfolio Item Hover Animations */
@keyframes portfolioHover {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-10px) scale(1.02);
  }
}

@keyframes portfolioImageZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

@keyframes portfolioOverlayFade {
  0% {
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(0px);
  }
  100% {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(10px);
  }
}

@keyframes portfolioContentSlide {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Portfolio Filter Animation */
@keyframes filterSlide {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Portfolio Grid Stagger Animation */
.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }

/* Tech Tag Hover Animation */
@keyframes techTagHover {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: none;
  }
  100% {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.2);
  }
}

/* Portfolio Link Shimmer Effect */
@keyframes portfolioLinkShimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Portfolio Card Border Glow */
@keyframes portfolioBorderGlow {
  0% {
    border-color: rgba(255, 255, 255, 0.1);
  }
  100% {
    border-color: var(--primary-purple);
  }
}

/* Portfolio Image Loading Animation */
@keyframes portfolioImageLoad {
  0% {
    opacity: 0;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Portfolio Filter Button Active Animation */
@keyframes filterButtonActive {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

/* Portfolio Modal Animations */
@keyframes modalFadeIn {
  0% {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  100% {
    opacity: 1;
    backdrop-filter: blur(5px);
  }
}

@keyframes modalSlideIn {
  0% {
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Portfolio Reveal Animation Classes */
.portfolio-reveal-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

.portfolio-reveal-scale {
  opacity: 0;
  transform: scale(0.8) translateY(30px);
  transition: all 0.8s ease-out;
}

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

/* Portfolio Hover Classes */
.portfolio-hover-lift {
  transition: all var(--transition-normal);
}

.portfolio-hover-lift:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(99, 102, 241, 0.4);
}

.portfolio-hover-glow {
  transition: all var(--transition-normal);
}

.portfolio-hover-glow:hover {
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

/* Portfolio Loading States */
.portfolio-loading {
  position: relative;
  overflow: hidden;
}

.portfolio-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: portfolioLoadingShimmer 1.5s infinite;
}

@keyframes portfolioLoadingShimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Portfolio Success Animation */
@keyframes portfolioSuccess {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.portfolio-success {
  animation: portfolioSuccess 0.6s ease-out;
}/* En
hanced Particle Animations */

/* Star twinkle animation */
@keyframes starTwinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Bubble float animation */
@keyframes bubbleFloat {
  0% {
    transform: translateY(0px) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.7;
  }
}

/* Particle drift animation */
@keyframes particleDrift {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(10px, -10px) rotate(90deg);
  }
  50% {
    transform: translate(-5px, -20px) rotate(180deg);
  }
  75% {
    transform: translate(-15px, -10px) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

/* Light mode particle animations */
@keyframes lightParticleGlow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(99, 102, 241, 0.3);
    opacity: 0.6;
  }
  50% {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
    opacity: 1;
  }
}

/* Dark mode star glow */
@keyframes darkStarGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    filter: brightness(1.5);
  }
}

/* Constellation line animation */
@keyframes constellationLine {
  0% {
    stroke-dashoffset: 100;
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.6;
  }
}

/* Theme transition particle effect */
@keyframes themeTransitionParticle {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.5) rotate(180deg);
    opacity: 0.5;
  }
  100% {
    transform: scale(1) rotate(360deg);
    opacity: 1;
  }
}

/* Shooting star animation */
@keyframes shootingStar {
  0% {
    transform: translateX(-100px) translateY(100px) scale(0);
    opacity: 0;
  }
  10% {
    transform: translateX(-50px) translateY(50px) scale(1);
    opacity: 1;
  }
  90% {
    transform: translateX(100vw) translateY(-100px) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(100vw) translateY(-100px) scale(0);
    opacity: 0;
  }
}

/* Particle system classes */
.particle-star {
  animation: starTwinkle 3s ease-in-out infinite;
}

.particle-bubble {
  animation: bubbleFloat 4s ease-in-out infinite;
}

.particle-drift {
  animation: particleDrift 20s linear infinite;
}

.shooting-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: linear-gradient(45deg, #fff, transparent);
  animation: shootingStar 3s linear infinite;
}

/* Enhanced theme toggle animation */
@keyframes themeToggleRotate {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.2);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

.theme-toggle.changing .theme-icon {
  animation: themeToggleRotate 0.6s ease-in-out;
}

/* Particle canvas fade transitions */
@keyframes particleCanvasFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.8;
  }
}

@keyframes particleCanvasFadeOut {
  0% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
  }
}

.particles-fade-in {
  animation: particleCanvasFadeIn 1s ease-out;
}

.particles-fade-out {
  animation: particleCanvasFadeOut 1s ease-out;
}

/* Background gradient animations for theme transitions */
@keyframes backgroundShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.theme-transition-bg {
  background: linear-gradient(-45deg, 
    var(--background-dark), 
    var(--background-darker), 
    var(--background-card), 
    var(--background-dark));
  background-size: 400% 400%;
  animation: backgroundShift 2s ease infinite;
}

/* Staggered particle entrance */
.particle-entrance-1 { animation-delay: 0.1s; }
.particle-entrance-2 { animation-delay: 0.2s; }
.particle-entrance-3 { animation-delay: 0.3s; }
.particle-entrance-4 { animation-delay: 0.4s; }
.particle-entrance-5 { animation-delay: 0.5s; }

/* Responsive particle animations */
@media (max-width: 768px) {
  .particle-drift {
    animation-duration: 15s;
  }
  
  .particle-star {
    animation-duration: 2s;
  }
  
  .particle-bubble {
    animation-duration: 3s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .particle-star,
  .particle-bubble,
  .particle-drift,
  .shooting-star {
    animation: none;
  }
  
  #particles-canvas {
    display: none;
  }
}/
* Gentle Float Animation for Tech Items */
@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}