/* Custom Styles & Utilities for Deep Navy Minimalist Portfolio */

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

:root {
  --font-sans: 'Inter', 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --navy-bg: #070d19;
  --navy-card: #0f1c30;
  --navy-border: #1e3a5f;
  --navy-accent: #38bdf8;
}

body {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}

.dark ::-webkit-scrollbar-track {
  background: #070d19;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}

.dark ::-webkit-scrollbar-thumb {
  background: #1e3a5f;
}

::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

/* Sidebar Active Nav Glow Indicator */
.nav-link.active {
  color: #38bdf8 !important;
  background-color: rgba(56, 189, 248, 0.12) !important;
  border-left: 3px solid #38bdf8;
  font-weight: 600;
}

.light .nav-link.active {
  color: #0284c7 !important;
  background-color: rgba(2, 132, 199, 0.12) !important;
  border-left: 3px solid #0284c7;
}

/* Timeline Custom line */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #38bdf8;
  background-color: #070d19;
  transition: all 0.3s ease;
}

.light .timeline-item::before {
  background-color: #ffffff;
  border-color: #0284c7;
}

.timeline-item:hover::before {
  transform: scale(1.3);
  box-shadow: 0 0 12px #38bdf8;
}

/* Glassmorphic Cards */
.glass-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Subtle glow animations */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
  }
  50% {
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
  }
}

.glow-hover:hover {
  animation: pulseGlow 2s infinite;
}

/* Modal Animations */
.modal-backdrop {
  animation: fadeIn 0.2s ease-out forwards;
}

.modal-content {
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes modalScale {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Toast Notification Animation */
.toast-in {
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-out {
  animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
  }
}
