/* Animation Styles */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

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

/* Apply initial animations to elements on page load */
.hero h1 {
  animation: fadeIn 0.6s ease-out 0.2s forwards;
  opacity: 0;
}

.hero p {
  animation: fadeIn 0.6s ease-out 0.4s forwards;
  opacity: 0;
}

.hero .btn {
  animation: fadeIn 0.6s ease-out 0.6s forwards;
  opacity: 0;
}

/* Button hover animation */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition: height 0.5s ease;
  z-index: 1;
}

.btn:hover::after {
  height: 400%;
}

.btn span {
  position: relative;
  z-index: 2;
}

/* Category card hover effect */
.category-card::before {
  transition: background 0.3s ease;
}

.category-card:hover::before {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
}

/* Story card hover effect - already in style.css */

/* Logo hover animation */
.logo img {
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.1);
}

/* Form field focus animation */
form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 138, 101, 0.2);
}

/* Custom checkbox animation */
.form-group.consent input {
  position: relative;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-gray-400);
  border-radius: 4px;
  outline: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.form-group.consent input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.form-group.consent input:checked::before {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
}

/* Team member social hover animation */
.team-member .social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.team-member:hover .social-links {
  opacity: 1;
  transform: translateY(0);
}

/* Page transition effect */
body {
  animation: fadeIn 0.5s ease-out;
}

@keyframes pageTransition {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Quote section animation */
.quote p {
  position: relative;
  animation: fadeIn 1s ease-out;
}

/* Header background parallax effect */
.header {
  background-attachment: fixed;
}

/* Menu toggle animation - already in style.css */