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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Darker Grotesque", sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  font-size: 1.5rem;
  padding-top: 5rem;
}

/* Animated gradient background */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 77, 77, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(0, 112, 243, 0.15) 0%, transparent 50%);
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Grid pattern overlay */
.grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* Fade in animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.delay-100 {
  animation-delay: 0.1s;
  opacity: 0;
}

.delay-200 {
  animation-delay: 0.2s;
  opacity: 0;
}

.delay-300 {
  animation-delay: 0.3s;
  opacity: 0;
}

.delay-400 {
  animation-delay: 0.4s;
  opacity: 0;
}

.delay-500 {
  animation-delay: 0.5s;
  opacity: 0;
}

/* Glow effect */
.glow-text {
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

/* Button hover effects */
.social-link {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.social-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}

.social-link:hover::before {
  opacity: 1;
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

/* Pulse animation for status badge */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Router top loading bar */
.router-loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 4px;
  z-index: 2000;
  background: linear-gradient(90deg, #4f8cff, #a259ff, #f953c6, #43e97b);
  background-size: 300% 100%;
  animation: router-bar-gradient 1.1s linear infinite;
  opacity: 1;
  transition: opacity 0.4s, width 0.4s;
}
@keyframes router-bar-gradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Enhanced nav-link hover effect */
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  /* Updated to match Vercel's minimal hover style - removed gradient, text-shadow, and heavy effects */
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Added navbar styles */
.navbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(20, 20, 30, 0.14);
  border-radius: 2.5rem;
  box-shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.14), 0 1.5px 8px 0 rgba(0, 0, 0, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  max-width: 98vw;
  min-width: 20vw;
  transition: box-shadow 0.4s, background 0.4s;
}

.navbar .flex {
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
}

.navbar img[alt="Logo"] {
  height: 2.25rem;
  width: 2.25rem;
  margin-right: 0.5rem;
  border-radius: 5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.08);
  object-fit: contain;
  display: block;
}
.nav-link:hover {
  color: #fff;
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Added bento card styles */
.bento-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

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

.bento-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
}

.bento-card a {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

/* Added blog card styles */
.blog-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
}

.blog-card:hover .blog-arrow {
  transform: translateX(4px);
}

.blog-arrow {
  transition: transform 0.3s ease;
}

/* Service card styles */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
}

/* Prose styling for markdown content */
.prose {
  color: #e5e7eb;
  max-width: 65ch;
}

.prose-invert {
  color: #e5e7eb;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: #fff;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
}

.prose h1 { font-size: 2.25em; }
.prose h2 { font-size: 1.875em; }
.prose h3 { font-size: 1.5em; }
.prose h4 { font-size: 1.25em; }

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  line-height: 1.75;
}

.prose a {
  color: #60a5fa;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}

.prose a:hover {
  color: #93c5fd;
}

.prose strong {
  color: #fff;
  font-weight: 600;
}

.prose code {
  color: #fbbf24;
  font-weight: 600;
  font-size: 0.875em;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
}

.prose pre {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 1.5em;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose pre code {
  background: transparent;
  padding: 0;
  color: #e5e7eb;
  font-size: 0.875em;
}

.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.prose blockquote {
  font-style: italic;
  border-left: 4px solid rgba(255, 255, 255, 0.2);
  padding-left: 1em;
  margin: 1.5em 0;
  color: #9ca3af;
}

.prose img {
  border-radius: 0.5rem;
  margin: 2em 0;
}

.prose hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 3em 0;
}

.prose-lg {
  font-size: 1.125rem;
  line-height: 1.75;
}

/* Line clamp utility for text truncation */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Updated mega menu styles for solid background and cleaner design */
.mega-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 900px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.mega-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.mega-menu-item {
  transition: all 0.2s ease;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mega-menu-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.mega-menu-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 20px;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}
