@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --primary: #0284c7;
  --primary-rgb: 2, 132, 199;
  --secondary: #0f172a;
}

body {
  font-family: var(--font-sans);
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

.light ::webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
  border: 2px solid #f8fafc;
}

.light ::webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.dark ::webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
  border: 2px solid #0f172a;
}

.dark ::webkit-scrollbar-thumb:hover {
  background: #475569;
}

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

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

/* Glow Radial Blob Backgrounds */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
  animation: float-blob 12s infinite alternate;
}

.dark .glow-blob {
  opacity: 0.25;
}

@keyframes float-blob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(40px, -60px) scale(1.1);
  }
  100% {
    transform: translate(-30px, 30px) scale(0.95);
  }
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.dark .glass-panel {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glowing Border Hover Effects */
.glow-card {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.4), transparent 50%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -10px rgba(var(--primary-rgb), 0.25);
}

.glow-card:hover::after {
  opacity: 1;
}

/* Timeline Customizations */
.timeline-line {
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}

.dark .timeline-line {
  background: #334155;
}

/* Smooth Smooth Scroll */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* Utility Animations */
.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* Elastic transition for Bento grid components */
#about .rounded-3xl {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

/* Tech Badges hover border and glow styles */
#about span.inline-flex {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#about span.inline-flex:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
  border-color: rgba(2, 132, 199, 0.4) !important;
}

.dark #about span.inline-flex:hover {
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4) !important;
}
