/* Animation styles */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Apply animations to elements */
.hero-title,
.hero-info,
.project-card,
.about-text h2,
.about-intro,
.about-text p,
.about-buttons,
.about-image,
.contact-heading h2,
.contact-heading p,
.social-links,
.contact-column {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.hero-title {
  animation-delay: 0.2s;
}

.hero-info {
  animation-delay: 0.4s;
}

.project-card:nth-child(1) {
  animation-delay: 0.6s;
}

.project-card:nth-child(2) {
  animation-delay: 0.8s;
}

.about-text h2 {
  animation-delay: 0.2s;
}

.about-intro {
  animation-delay: 0.3s;
}

.about-text p {
  animation-delay: 0.4s;
}

.about-buttons {
  animation-delay: 0.5s;
}

.about-image {
  animation-delay: 0.3s;
}

.contact-heading h2 {
  animation-delay: 0.2s;
}

.contact-heading p {
  animation-delay: 0.3s;
}

.social-links {
  animation-delay: 0.4s;
}

.contact-column:nth-child(1) {
  animation-delay: 0.5s;
}

.contact-column:nth-child(2) {
  animation-delay: 0.6s;
}

/* Header animation */
header {
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.3s ease;
}

header.scrolled {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Modal animation */
.modal-content {
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
  opacity: 1;
}