/* Custom styles for Raghav's AI-focused Portfolio */

/* General styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Muli', sans-serif;
  line-height: 1.7;
  background-color: #0f172a;
  color: #e2e8f0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Saira Extra Condensed', sans-serif;
  font-weight: 700;
}

/* Navbar styles */
.navbar-shrink {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  background: linear-gradient(90deg, rgba(88, 28, 135, 0.95) 0%, rgba(79, 70, 229, 0.95) 100%) !important;
}

/* Hero section */
#hero {
  position: relative;
}

/* AI-themed animations */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Floating AI elements */
.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 4s ease-in-out 1s infinite;
}

.animate-float-slow {
  animation: float 6s ease-in-out 2s infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Neural network animation */
.neural-connection {
  stroke-dasharray: 10;
  stroke-dashoffset: 1000;
  animation: dash 10s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}

/* Glowing effect for AI elements */
.glow {
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.8));
}

.glow-text {
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
}

/* Skill bars animation */
.bg-gradient-to-r {
  background-size: 200% 200%;
  animation: gradient 3s ease infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Data stream animation */
.data-stream {
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom, transparent, #a855f7, transparent);
  animation: dataStream 2s linear infinite;
  opacity: 0.6;
}

@keyframes dataStream {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

/* Card hover effects */
.transform {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover\:-translate-y-1:hover {
  transform: translateY(-0.25rem);
}

.hover\:-translate-y-2:hover {
  transform: translateY(-0.5rem);
}

.hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(168, 85, 247, 0.2), 0 10px 10px -5px rgba(168, 85, 247, 0.1);
}

.hover\:shadow-2xl:hover {
  box-shadow: 0 25px 50px -12px rgba(168, 85, 247, 0.3);
}

/* Timeline styles */
.timeline-item::before {
  content: '';
  position: absolute;
  width: 1px;
  background: linear-gradient(to bottom, #a855f7, #6366f1);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -0.5px;
}

/* Contact form focus styles */
.focus\:ring-2:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.3);
  border-color: #a855f7;
}

/* Mobile navigation */
#mobileNav {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#mobileNav.opacity-100 {
  opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1e293b;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #a855f7, #6366f1);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #9333ea, #4f46e5);
}

/* AI-themed text typing effect */
.typing-effect::after {
  content: '|';
  animation: blink 1s step-end infinite;
}

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

/* Neural network background */
.neural-bg {
  position: relative;
}

.neural-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(168, 85, 247, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: -1;
}

/* Print styles */
@media print {
  #mainNav, #mobileNav, #contact, footer {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .container {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  section {
    page-break-inside: avoid;
  }
}