@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap");

* {
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

body {
  background-color: #000000;
  color: #ffffff;
}

.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.08;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-border {
  position: relative;
  border-radius: 1.5rem;
  padding: 1px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.gradient-border-content {
  background: #111111;
  border-radius: 1.4rem;
  height: 100%;
}

.card-modern {
  background: #111111;
  border: 1px solid #262626;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(139, 92, 246, 0.1),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-modern:hover::before {
  opacity: 1;
}

.card-modern:hover {
  transform: translateY(-4px);
  border-color: #8b5cf6;
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2);
}

.magnetic-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.magnetic-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.magnetic-btn:hover::before {
  width: 300px;
  height: 300px;
}

.magnetic-btn:hover {
  transform: scale(1.05);
}

.nav-blur {
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid #262626;
}

.badge-modern {
  background: #111111;
  border: 1px solid #262626;
  transition: all 0.3s ease;
}

.badge-modern:hover {
  border-color: #8b5cf6;
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.section-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: blob 20s infinite;
}

@keyframes blob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(20px, -50px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  75% {
    transform: translate(50px, 50px) scale(1.05);
  }
}

.floating-element {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

.progress-bar {
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: width 0.1s ease;
}

.mesh-gradient {
  background: radial-gradient(
      at 27% 37%,
      rgba(139, 92, 246, 0.1) 0px,
      transparent 50%
    ),
    radial-gradient(at 97% 21%, rgba(236, 72, 153, 0.1) 0px, transparent 50%),
    radial-gradient(at 52% 99%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
    radial-gradient(at 10% 29%, rgba(168, 85, 247, 0.1) 0px, transparent 50%);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.9),
    rgba(236, 72, 153, 0.9)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-modern:hover .project-card-overlay {
  opacity: 1;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skill-category {
  margin-bottom: 3rem;
}
#typing-text-desktop::after {
  content: ".";
  margin-left: 6px;
  font-size: 0.7em; /* match the text size */
  line-height: 1; /* prevent tall cursor */
  animation: blink 3s infinite;
  display: inline-block; /* ensures proper height */
  vertical-align: middle;
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
