html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-width: 0;
  max-width: 100vw;
}

body {
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
}

img,
video,
iframe,
svg {
  max-width: 100%;
  height: auto;
}

@keyframes gradient-x {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.animate-gradient-x {
  background-size: 200% 200%;
  animation: gradient-x 4s ease infinite;
}

.poppins-medium {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: normal;
}

/* Blinking cursor effect */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

#cursor {
  animation: blink 1s step-end infinite;
  font-weight: 300;
}

/* Class to hide the cursor */
.cursor-hidden {
  opacity: 0 !important;
}

/* Fade-in animation for skills */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-paragraph {
    font-size: 0.95rem;
  }

  .cta-button {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    font-size: 0.95rem;
  }

  nav .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
