/* Base Styles */
body {
  font-family: "Inter", sans-serif;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #a855f7 0%, #3b82f6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient Border */
.gradient-border {
  position: relative;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 2px;
  background: linear-gradient(135deg, #a855f7, #3b82f6, #06b6d4);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.gradient-border:hover::before {
  opacity: 1;
}

/* Animated Blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  animation: blob 7s infinite;
  opacity: 0.15;
}

@keyframes blob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.blob-purple {
  background: #a855f7;
  top: 10%;
  left: 10%;
  width: 300px;
  height: 300px;
  animation-delay: 0s;
}

.blob-blue {
  background: #3b82f6;
  top: 50%;
  right: 10%;
  width: 350px;
  height: 350px;
  animation-delay: 2s;
}

.blob-cyan {
  background: #06b6d4;
  bottom: 10%;
  left: 50%;
  width: 280px;
  height: 280px;
  animation-delay: 4s;
}

/* Glass Effect */
.glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 85, 247, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Hover Effects */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-8px);
}

/* Navigation Link Animation */
.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #a855f7, #3b82f6);
  transition: all 0.3s;
  transform: translateX(-50%);
}

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

/* Project Card Animation */
.project-card {
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(168, 85, 247, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.project-card:hover::before {
  left: 100%;
}

/* Timeline Dot Animation */
.timeline-dot {
  position: relative;
}

.timeline-dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid #a855f7;
  opacity: 0;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Filter Button Active State */
.filter-btn.active {
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  color: white;
  border-color: transparent;
}

/* Social Icon Animation */
.social-icon {
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 50%;
}

.social-icon:hover::before {
  opacity: 0.2;
}

/* Mesh Gradient Background */
.mesh-gradient {
  background:
    radial-gradient(at 27% 37%, rgba(168, 85, 247, 0.15) 0px, transparent 50%),
    radial-gradient(at 97% 21%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 52% 99%, rgba(6, 182, 212, 0.15) 0px, transparent 50%),
    radial-gradient(at 10% 29%, rgba(168, 85, 247, 0.15) 0px, transparent 50%),
    radial-gradient(at 97% 96%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 33% 50%, rgba(6, 182, 212, 0.15) 0px, transparent 50%);
}
