/* Custom CSS for personal portfolio website */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Grotesk', sans-serif;
}

body {
  font-family: var(--font-sans);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-mono);
}

/* Glassmorphism Styles */
.glass {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.dark .glass {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Grid Background Effect */
.bg-grid {
  background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(99, 102, 241, 0.05) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
}

.dark .bg-grid {
  background-image: linear-gradient(to right, rgba(99, 102, 241, 0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.dark ::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.2);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.4);
}

/* Typing Caret Animation */
.typing-cursor::after {
  content: '|';
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Hexagon / Abstract shapes floaters */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 0.8; }
  100% { transform: translateY(0px) rotate(360deg); opacity: 0.6; }
}

.animate-float-slow {
  animation: float 12s ease-in-out infinite;
}

.animate-float-medium {
  animation: float 8s ease-in-out infinite;
}

.animate-float-fast {
  animation: float 5s ease-in-out infinite;
}

/* Card Glow Effect */
.glow-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.4);
}

.dark .glow-card:hover {
  box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.4);
  border-color: rgba(99, 102, 241, 0.5);
}

/* Page Scroll Indicator */
#scroll-indicator {
  transform-origin: left;
  transition: transform 0.1s ease;
}

/* Filter buttons style */
.btn-filter.active {
  background-color: rgb(99, 102, 241);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Timeline Custom Styles */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 6px;
  left: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgb(99, 102, 241);
  border: 4px solid var(--timeline-dot-border, #fff);
  z-index: 10;
  transition: all 0.3s ease;
}

.dark .timeline-item::before {
  --timeline-dot-border: #1e293b;
}

.timeline-item:hover::before {
  transform: scale(1.3);
  background: rgb(239, 68, 68);
}

/* Fade-in Scroll Animations */
.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.15, 0.85, 0.45, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Notification Toast */
.toast {
  visibility: hidden;
  min-width: 280px;
  background-color: #1e293b;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.1);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast.show {
  visibility: visible;
  transform: translateY(0);
  opacity: 1;
}

.dark .toast {
  background-color: #0f172a;
  border-color: rgba(99, 102, 241, 0.3);
}
