/* Custom Styles for Krissana Laman Portfolio */

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar with Indigo Accent */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.dark ::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #818cf8;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6366f1;
}

/* Glassmorphism Classes */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dark .glass-card {
  background: rgba(15, 23, 42, 0.85);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.dark .glass-nav {
  background: rgba(15, 23, 42, 0.9);
}

/* Gradient Text & Borders */
.gradient-text {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dark .gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-bg-accent {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Timeline vertical line glow */
.timeline-line {
  background: linear-gradient(to bottom, #6366f1, #a855f7, #cbd5e1);
}
.dark .timeline-line {
  background: linear-gradient(to bottom, #6366f1, #a855f7, #334155);
}

/* Modal Backdrop Animation */
.modal-backdrop {
  transition: opacity 0.25s ease-in-out;
}
.modal-content {
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

/* Toast Animations */
@keyframes toastSlideIn {
  from {
    transform: translateY(100%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

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

.toast-enter {
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-exit {
  animation: toastSlideOut 0.25s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}
