/* ==========================================
   MEDANTRON - ANIMATIONS CSS
   PREMIUM BLACK & YELLOW
========================================== */

/* FADE IN */
@keyframes medantronFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HERO ANIMATION */
.hero .eyebrow {
  animation: medantronFadeIn 0.7s ease both;
}

.hero h1 {
  animation: medantronFadeIn 0.9s ease 0.1s both;
}

.hero-description {
  animation: medantronFadeIn 0.9s ease 0.2s both;
}

.official-slogan {
  animation: medantronFadeIn 0.9s ease 0.3s both;
}

.hero-actions {
  animation: medantronFadeIn 0.9s ease 0.4s both;
}

/* NAVIGATION UNDERLINE */
.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: #ffff00;
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* PREMIUM BUTTON EFFECT */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 0, 0.22);
}

/* SERVICE CARD ANIMATION */
.service-card,
.feature-card {
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.service-card:hover,
.feature-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 0, 0.55);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* SCROLL REVEAL */
.reveal {
  opacity: 1;
  transform: none;
}

.js-animations .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.js-animations .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* PORTFOLIO HOVER */
.portfolio-placeholder {
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.portfolio-placeholder:hover {
  border-color: #ffff00;
  box-shadow: 0 0 35px rgba(255, 255, 0, 0.06);
}

/* MOBILE NAVIGATION */
@media (max-width: 768px) {
  .main-nav a::after {
    bottom: 5px;
  }

  .main-nav a:hover::after,
  .main-nav a.active::after {
    width: 35px;
  }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow,
  .hero h1,
  .hero-description,
  .official-slogan,
  .hero-actions {
    animation: none !important;
  }

  .js-animations .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .service-card,
  .feature-card,
  .btn-primary {
    transition: none !important;
  }
}
