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

:root {
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --secondary-color: #1e3a8a;
  --accent-color: #0ea5e9;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --nav-bg: rgba(255, 255, 255, 0.85);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 25px -3px rgb(59 130 246 / 0.15), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.dark {
  --bg-light: #0b0f19;
  --bg-card: #151d30;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-light: #1e293b;
  --nav-bg: rgba(11, 15, 25, 0.85);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 25px -3px rgb(0 0 0 / 0.5);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
  scroll-behavior: smooth;
}

/* Glassmorphism Navbar */
.glass-nav {
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

/* Card styling */
.custom-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.4);
}

/* Accent Badges */
.badge-indigo {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.15) 100%);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.dark .badge-indigo {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(99, 102, 241, 0.25) 100%);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark .gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Timeline CSS */
.timeline-container {
  position: relative;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 3px;
  background: linear-gradient(180deg, #3b82f6 0%, #6366f1 50%, #e2e8f0 100%);
  border-radius: 2px;
}

.dark .timeline-container::before {
  background: linear-gradient(180deg, #3b82f6 0%, #6366f1 50%, #1e293b 100%);
}

@media (min-width: 768px) {
  .timeline-container::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: 10px;
  top: 6px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #3b82f6;
  border: 4px solid var(--bg-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
  z-index: 10;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .timeline-dot {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Accordion transition */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
  opacity: 0;
}

.accordion-content.active {
  max-height: 500px;
  opacity: 1;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-icon.active {
  transform: rotate(180deg);
}

/* Avatar Glow */
.avatar-glow {
  position: relative;
}

.avatar-glow::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #0ea5e9, #6366f1);
  z-index: -1;
  opacity: 0.7;
  filter: blur(10px);
  transition: opacity 0.3s ease;
}

.avatar-glow:hover::after {
  opacity: 1;
  filter: blur(15px);
}

/* Toast alert styling */
#toast {
  visibility: hidden;
  min-width: 280px;
  margin-left: -140px;
  background-color: #1e293b;
  color: #fff;
  text-align: center;
  border-radius: 12px;
  padding: 16px 24px;
  position: fixed;
  z-index: 99;
  left: 50%;
  bottom: 30px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s, visibility 0.3s;
}

#toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 40px;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}

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

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

/* Print Optimization for Online CV */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  header, footer, #contact, #toast, .no-print {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  .custom-card {
    border: none !important;
    box-shadow: none !important;
  }
}
