/* External Imports */
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap");
@import "tailwindcss";

/* Font Styles */
.font-nunito {
  font-family: "Nunito Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings: "wdth" 100, "YTLC" 500;
}

/* Component Styles */
.swiper {
  width: 100%;
  height: 100dvh;
}

header {
  transform: translateY(-100%);
  animation: slideInFromTop 0.8s ease-out forwards;
  transition: opacity 0.5s ease;
}

header.faded {
  opacity: 0.2;
}

/* Utility Classes */
.animate-border-draw {
  position: relative;
}

.animate-border-draw::before,
.animate-border-draw::after {
  content: "";
  position: absolute;
  top: 0;
  width: 1px;
  height: 0;
  background-color: #374151;
  animation: drawVertical 1s ease-out forwards;
}

.animate-border-draw::before {
  left: -1px;
}

.animate-border-draw::after {
  right: -1px;
}

.animate-fade-slide-up {
  animation: fadeSlideUp 0.6s ease-out forwards;
}

.animate-slide-right {
  animation: slideRight 0.6s ease-out forwards;
}

.animate-quick-slide-up {
  animation: quickSlideUp 0.5s ease-out forwards;
}

.animate-gradient {
  background: linear-gradient(
    45deg,
    #ff6b6b,
    #4ab9f7,
    #24f4a0
  ); /* Explicit gradient */
  background-size: 300% 300%;
  animation: gradient 6s ease-in-out infinite;
}

.animate-gradient:hover {
  animation-play-state: paused;
}

.animation-reset {
  animation: none;
  opacity: 1;
}

/* Scoped will-change for performance */
.animate-fade-slide-up,
.animate-slide-right,
.animate-quick-slide-up {
  will-change: transform, opacity;
}

/* Hover Effects */
a:hover .arrow-icon {
  transform: translateX(3px);
}

/* Media Queries */
@media screen and (min-width: 1700px) {
  /* Broader range for large screens */
  .logo {
    left: -120px;
  }

  .social {
    right: -120px;
  }
}

@media screen and (max-width: 640px) {
  /* Shorter animations on mobile for faster feel */
  .animate-fade-slide-up,
  .animate-slide-right {
    animation-duration: 0.4s;
  }
  .animate-quick-slide-up {
    animation-duration: 0.3s;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Disable animations for accessibility */
  [class*="animate-"],
  .animate-border-draw::before,
  .animate-border-draw::after,
  .animate-gradient,
  header {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Keyframes */
@keyframes slideInFromTop {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes drawVertical {
  0% {
    height: 0;
  }
  100% {
    height: 100%;
  }
}

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

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

@keyframes slideRight {
  0% {
    transform: translateX(20px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes quickSlideUp {
  0% {
    transform: translateY(40px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
