/* Basic styling for a personal website */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  margin: 0;
  line-height: 1.6;
  background-color: #f4f4f4;
  scroll-behavior: smooth;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}

::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.8);
}

header {
  background-color: #333;
  color: #fff;
  padding: 1rem 0;
  text-align: center;
}

header nav ul {
  list-style: none;
  padding: 0;
}

header nav ul li {
  display: inline;
  margin: 0 1rem;
}

header nav ul li a {
  color: #fff;
  text-decoration: none;
}

section {
  padding: 2rem;
  background: #fff;
  margin: 1rem auto;
  max-width: 800px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Animation for project cards */
.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.1),
    0 10px 10px -5px rgba(147, 197, 253, 0.05);
}

/* Optimized starry background canvas styling */
#starryCanvas {
  opacity: 0.9;
  pointer-events: none;
  background: #0f0f23;
}

/* Mobile menu animation */
.mobile-menu-enter-active,
.mobile-menu-leave-active {
  transition: opacity 0.3s, transform 0.3s;
}

.mobile-menu-enter-from,
.mobile-menu-leave-to {
  opacity: 0;
  transform: translateY(-10px);
}

/* Section transition animation */
.section-fade-enter-active,
.section-fade-leave-active {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-fade-enter-from,
.section-fade-leave-to {
  opacity: 0;
  transform: translateY(20px);
}

footer {
  text-align: center;
  padding: 1rem;
  background: #333;
  color: #fff;
}

/* Skill cards styling for premium look */
.skill-card {
  min-height: 320px;
  transform: perspective(1000px) rotateY(0deg);
  transition: all 0.5s ease;
}

.skill-card:hover {
  transform: perspective(1000px) rotateY(5deg) translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.25);
}

/* Skill tags with icons */
.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background-color: rgba(37, 99, 235, 0.15);
  color: rgba(219, 234, 254, 1);
  border-radius: 9999px;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1);
}

/* Home icon pulse effect */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.fa-home {
  animation: pulse 3s ease-in-out infinite;
}

/* HUD-style skill tags */
.hud-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background-color: rgba(37, 99, 235, 0.15);
  color: rgba(219, 234, 254, 1);
  border-radius: 0.25rem;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.hud-tag:hover {
  background-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
}

.hud-tag-purple {
  background-color: rgba(147, 51, 234, 0.15);
  border-color: rgba(147, 51, 234, 0.2);
}

.hud-tag-purple:hover {
  background-color: rgba(147, 51, 234, 0.25);
}

.hud-tag-cyan {
  background-color: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.2);
}

.hud-tag-cyan:hover {
  background-color: rgba(6, 182, 212, 0.25);
}

.hud-tag-blue {
  background-color: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.2);
}

.hud-tag-blue:hover {
  background-color: rgba(59, 130, 246, 0.25);
}

/* Skill bars animation */
.skill-bar-pytorch {
  width: 92%;
  animation: growBar 1.5s ease-out forwards;
}

.skill-bar-tensorflow {
  width: 87%;
  animation: growBar 1.5s ease-out forwards;
}

.skill-bar-transformers {
  width: 90%;
  animation: growBar 1.5s ease-out forwards;
}

.skill-bar-gans {
  width: 85%;
  animation: growBar 1.5s ease-out forwards;
}

@keyframes growBar {
  0% {
    width: 0;
  }
  100% {
    width: inherit;
  }
}

/* Circuit border animation */
@keyframes borderPulse {
  0%,
  100% {
    border-color: rgba(6, 182, 212, 0.3);
  }
  50% {
    border-color: rgba(6, 182, 212, 0.6);
  }
}

/* Floating icon animation for skill panels */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(0);
  }
}

.floating-icon {
  animation: float 3s ease-in-out infinite;
}

/* Skill panel hover effects */
.skill-panel {
  transition: all 0.3s ease;
}

.skill-panel:hover {
  transform: translateY(-5px);
}
