/* Animations */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* You can remove or comment out this animation if it's not used elsewhere */
/* 
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}
*/

/* Keep the bounce animation definition but don't remove it completely,
   as it might be used elsewhere in the code. Just comment it out. */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

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

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes glitch {
  0% {
    text-shadow: 0.05em 0 0 var(--accent-primary), -0.05em -0.025em 0 var(--danger);
    clip-path: rect(25px, 9999px, 40px, 0);
  }
  25% {
    text-shadow: 0.05em 0 0 var(--accent-primary), -0.05em -0.025em 0 var(--danger);
    clip-path: rect(25px, 9999px, 30px, 0);
  }
  50% {
    text-shadow: -0.05em -0.025em 0 var(--accent-primary), 0.025em 0.025em 0 var(--danger);
    clip-path: rect(15px, 9999px, 25px, 0);
  }
  75% {
    text-shadow: -0.05em -0.025em 0 var(--accent-primary), 0.025em 0.025em 0 var(--danger);
    clip-path: rect(19px, 9999px, 25px, 0);
  }
  100% {
    text-shadow: -0.05em -0.025em 0 var(--accent-primary), 0.025em 0.025em 0 var(--danger);
    clip-path: rect(10px, 9999px, 20px, 0);
  }
}

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

.slide-up {
  animation: slideUp 0.8s ease forwards;
}

.slide-down {
  animation: slideDown 0.8s ease forwards;
}

.slide-left {
  animation: slideLeft 0.8s ease forwards;
}

.slide-right {
  animation: slideRight 0.8s ease forwards;
}

.pulse {
  animation: pulse 2s infinite;
}

.rotate {
  animation: rotate 10s linear infinite;
}

.glitch-text {
  position: relative;
  animation: glitch 1s infinite;
}

/* Animated Elements */
.navbar {
  animation: slideDown 0.5s ease forwards;
}

.hero-content {
  opacity: 0;
  animation: fadeIn 1s ease 0.3s forwards;
}

.profile-image {
  opacity: 0;
  animation: fadeIn 1s ease 0.5s forwards, pulse 5s infinite 1.5s;
}

.hero h1 {
  opacity: 0;
  animation: fadeIn 1s ease 0.7s forwards;
}

.typing-container {
  opacity: 0;
  animation: fadeIn 1s ease 0.9s forwards;
}

.bio {
  opacity: 0;
  animation: fadeIn 1s ease 1.1s forwards;
}

.hero-buttons {
  opacity: 0;
  animation: fadeIn 1s ease 1.3s forwards;
}

.social-icons {
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}

.section-title {
  opacity: 0;
}

.timeline-item {
  opacity: 0;
}

.skill-badge {
  opacity: 0;
}

.project-card {
  opacity: 0;
}

.stat-card {
  opacity: 0;
}

.cert-card {
  opacity: 0;
}

/* Hover Animations */
.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.1);
}

.project-card:hover .project-title {
  color: var(--accent-primary);
}

.skill-badge:hover {
  transform: translateY(-5px) scale(1.05);
}

.nav-links a:hover {
  color: var(--accent-primary);
}

/* Parallax Effect */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Transition Classes */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.page-transition.active {
  transform: translateY(0);
}

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--bg-tertiary);
  border-top: 5px solid var(--accent-primary);
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

