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

/* Base Styles */
html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
}

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

::-webkit-scrollbar-track {
  background: rgba(243, 244, 246, 1);
}

.dark ::-webkit-scrollbar-track {
  background: rgba(17, 24, 39, 1);
}

::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.5);
  border-radius: 9999px;
  border: 2px solid transparent;
}

.dark ::-webkit-scrollbar-thumb {
  background: rgba(75, 85, 99, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 114, 128, 0.7);
}

/* Glassmorphism Styles */
.glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.dark .glass {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(243, 244, 246, 0.8);
}

.dark .glass-nav {
  background: rgba(10, 15, 30, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Floating Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

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

/* Pulse Glow */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.08); }
}

.glow-circle {
  filter: blur(80px);
  animation: pulseGlow 12s ease-in-out infinite;
}

/* Scroll Reveal States */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Typing Effect cursor */
.typing-cursor::after {
  content: '|';
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  from, to { color: transparent; }
  50% { color: currentColor; }
}

/* Timeline Custom line design */
.timeline-line {
  background: linear-gradient(to bottom, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
}

/* Code Highlights / Custom Textures */
.mesh-gradient {
  background-color: #f8fafc;
  background-image: 
    radial-gradient(at 10% 20%, rgba(59, 130, 246, 0.05) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(139, 92, 246, 0.05) 0px, transparent 50%);
  transition: background-color 0.3s ease, background-image 0.3s ease;
}

.dark .mesh-gradient {
  background-color: #0f172a;
  background-image: 
    radial-gradient(at 10% 20%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
}

/* Custom Checkbox styles for dashboard tags */
.checkbox-card:checked + label {
  border-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.05);
}

/* Shimmer load placeholders */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.dark .skeleton {
  background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Custom 3D cards hover */
.hover-card-3d {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}
.hover-card-3d:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.dark .hover-card-3d:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Chatbot UI Animation Utilities */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Chatbot Content Typography & Spacing */
.chatbot-bubble-content {
  line-height: 1.5;
}
.chatbot-bubble-content strong {
  font-weight: 700;
}
.chatbot-bubble-content p {
  margin-bottom: 0.5rem;
}
.chatbot-bubble-content p:last-child {
  margin-bottom: 0;
}
.chatbot-bubble-content ul, .chatbot-bubble-content ol {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
}
.chatbot-bubble-content li {
  margin-bottom: 0.35rem;
  list-style-type: disc;
}
.chatbot-bubble-content pre {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
