/*===== BUTTONS =====*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 0.75rem 2.5rem;
  font-weight: var(--font-semi);
  border-radius: 0.5rem;
  transition: 0.3s;
}

.button:hover {
  box-shadow: 0px 10px 36px rgba(0, 0, 0, 0.15);
  background: aqua;
  transform: translateY(-3px);
}

.button:hover,
.button:focus {
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.18);
  transform: scale(1.04) translateY(-2px);
}

.button--outline {
  background: transparent;
  color: var(--first-color);
  border: 2px solid var(--first-color);
}

.button--blogs {
  background: #6366f1;
  color: #fff;
  border: 2px solid #6366f1;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
}

.button--blogs:hover,
.button--blogs:focus {
  background: var(--first-color);
  color: #fff;
  border-color: var(--first-color);
}

/*===== CARDS =====*/
.project__card,
.skills__group,
.timeline__item {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border-radius: 1.2rem;
  box-shadow: 0 8px 32px rgba(34, 34, 59, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.skills__group:hover,
.project__card:hover,
.timeline__item:hover {
  box-shadow: 0 16px 48px rgba(99, 102, 241, 0.18);
  transform: scale(1.03) translateY(-4px);
  transition: box-shadow 0.3s, transform 0.3s;
}

.project__card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 16px rgba(34, 34, 59, 0.09);
  overflow: hidden;
  width: 320px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
  padding: 1.2rem 1rem 1rem 1rem;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.project__card:focus,
.project__card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(34, 34, 59, 0.18);
  z-index: 2;
}

.achievement__card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  align-items: flex-start;
}

.achievement__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/*===== FORMS =====*/
.contact__input {
  width: 100%;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1.5px solid var(--second-color);
  outline: none;
  margin-bottom: var(--mb-4);
}

.contact__button {
  display: block;
  border: none;
  outline: none;
  font-size: var(--normal-font-size);
  cursor: pointer;
  margin-left: auto;
}

.form-status--ok {
  background: #23234a;
  color: #a3bffa;
}

.form-status--error {
  background: #3b1f1f;
  color: #ff6b6b;
}

/*===== MODALS =====*/
.project__modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(34, 34, 59, 0.85);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}

.project__modal.active {
  display: flex;
}

.project__modal-content {
  background: #fff;
  border-radius: 1rem;
  max-width: 90vw;
  max-height: 90vh;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(34, 34, 59, 0.18);
  position: relative;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 2rem 2rem 2rem;
}

.project__modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: #22223b;
  cursor: pointer;
  background: none;
  border: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/*===== ANIMATIONS =====*/
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  100% {
    background-position: 100% 50%;
  }
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(16px);
  }
}

@keyframes timelinePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.25);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
  }
}

@keyframes waveMove {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }

  100% {
    transform: translateY(0);
  }
}

.wave1 {
  animation: waveMove 8s infinite ease-in-out;
}

.wave2 {
  animation: waveMove 10s infinite ease-in-out;
}

.wave3 {
  animation: waveMove 12s infinite ease-in-out;
}

/* Fade-in and slide-up for sections */
.section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.77, 0, .18, 1), transform 0.8s cubic-bezier(.77, 0, .18, 1);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}
