/* Fade Up Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ALERTS */
.alert {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: fit-content;
  z-index: 1050;
  padding: 20px 50px 20px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: white;
  font-family: Calibri;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  overflow: hidden;
  border: 1px solid transparent;
  animation: slideIn 1s ease-out forwards, fadeOut 5s 5s forwards;
}

.alert-success {
  background: linear-gradient(135deg, #4caf50, #4caf50);
  font-weight: 600;
}

.alert-danger {
  background: linear-gradient(135deg, #f44336, #f44336);
  font-weight: 600;
}

.alert-info {
  background: linear-gradient(135deg, #2196f3, #2196f0);
  font-weight: 600;
}

.alert-warning {
  background: linear-gradient(135deg, #ffc107, #ffd54f);
  color: black;
  font-weight: 600;
}

.btn-close {
  background: none;
  border: none;
  color: black;
  font-size: 20px;
  cursor: pointer;
  padding-left: 10px;
  padding-right: 0;
  font-weight: 900;
}

@keyframes slideIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(100%);
  }
}

.alert::after {
  content: "";
  display: block;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  position: absolute;
  bottom: 0;
  left: 0;
  animation: borderFill 5s forwards;
}

@keyframes borderFill {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

section {
  padding-left: 90px;
  padding-right: 90px;
}

@media (max-width: 768px) {
  section {
    padding-left: 0px;
    padding-right: 0px;
  }
}

/* Apply animations to elements */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animate-fade-in {
  opacity: 0;
  transition: all 0.8s ease-out;
}

/* Active states for animations */
.animate-fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-in.active {
  opacity: 1;
}

/* Hover Effects */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.work-card {
  transition: all 0.3s ease;
}

.work-card:hover {
  transform: scale(1.03);
}

/* Navigation hover effects */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #3b82f6;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Button hover effects */
.btn-hover {
  transition: all 0.3s ease;
}

.btn-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Stats counter animation */
.stat-item {
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

/* Social media icons hover */
.social-icon {
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  color: #3b82f6 !important;
}

/* Form input focus effects */
.form-input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  transition: box-shadow 0.3s ease;
}

/* Animation delays for staggered animations */
.delay-100 {
  transition-delay: 0.1s;
}
.delay-200 {
  transition-delay: 0.2s;
}
.delay-300 {
  transition-delay: 0.3s;
}
.delay-400 {
  transition-delay: 0.4s;
}
.delay-500 {
  transition-delay: 0.5s;
}
