/* Dark mode transitions */
html.light {
  color-scheme: light;
}

html.dark {
  color-scheme: dark;
}

* {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

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

  50% {
    transform: translateY(-10px);
  }
}

@keyframes jiggle {
  0%,
  100% {
    transform: rotate(0);
  }

  25% {
    transform: rotate(-5deg);
  }

  75% {
    transform: rotate(5deg);
  }
}

/* Custom styles */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.gradient-text {
  background: linear-gradient(45deg, #ef4444, #dc2626);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-image 0.3s ease;
}

.name-text {
  transition: opacity 0.3s ease;
}

.dark .name-text {
  color: #ff6b6b;
  opacity: 1;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.heart-icon:hover {
  animation: pulse 1s infinite;
}

.logo-spin {
  transition: transform 0.5s ease;
}

.logo-spin:hover {
  animation: float 2s ease infinite;
}

/* Mouse trail effect */
.cursor-trail {
  pointer-events: none;
  position: fixed;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  opacity: 0;
}

.dark .cursor-trail {
  background: #ff6b6b;
}

body {
  transition: background-color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.light body {
  h1,
  h2,
  h3,
  h4,
  h5,
  span {
    color: black;
  }
}
.light .gradient-text {
  background: linear-gradient(45deg, #ef4444, #dc2626);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-image 0.3s ease;
}

/* Explicit dark mode background */
.dark body {
  background-color: #1a1a2e;
}
.dark .jbLogo {
  background-color: white;
  clip-path: polygon(
    11.47% 14.98%,
    71.04% 14.98%,
    81.2% 75%,
    81.2% 67.47%,
    25% 75%
  );
}
main {
  flex: 1;
}