/* ==========================================================================
   PORTFOLIO CUSTOM CSS COMPONENT DETAILS (PURE LIGHT THEME SYSTEM)
   ========================================================================== */

:root {
  color-scheme: light;
}

/* Active indicator for active menu sections and navigation */
.nav-links a.active {
  color: #7c3aed !important;
  background-color: rgba(124, 58, 237, 0.05);
  box-shadow: inset 0 -2px 0 #7c3aed;
  border-radius: 8px 8px 0 0;
}

/* Scroll reveal triggers */
.scroll-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline Custom Structures */
.timeline {
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12px;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, #7c3aed, rgba(124, 58, 237, 0.15));
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 24px;
  left: -24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f8fafc;
  border: 2px solid #7c3aed;
  z-index: 5;
}

/* Hide native scrollbar handles for overflow elements */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Active endpoint button states */
.endpoint-btn.active {
  border-color: #7c3aed !important;
  background-color: rgba(124, 58, 237, 0.05) !important;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.06);
}

/* JSON response syntax highlight styling (Optimized for light background) */
.json-key { color: #d946ef; font-weight: 600; }     /* Pink key */
.json-string { color: #059669; }                  /* Emerald string */
.json-number { color: #1d4ed8; }                  /* Blue number */
.json-boolean { color: #d97706; }                 /* Amber bool */
.json-null { color: #475569; }

/* Copy Toast styling */
.toast {
  background: #18181b;
  border: 1px solid #7c3aed;
  border-radius: 8px;
  padding: 12px 20px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1), fadeOut 0.3s ease 2.7s forwards;
}

@keyframes slideIn {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

/* Chat bubble transitions */
#chatWindow.show {
  display: flex !important;
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   PRINT MEDIA QUERY (PDF Resume Optimized)
   ========================================================================== */
@media print {
  /* Hide all website utilities */
  header,
  footer,
  button,
  a[class*="btn"],
  .btn-copy,
  [id="playground"],
  [id="chatToggle"],
  [id="chatWindow"],
  .toast-container,
  [class*="social-icons"],
  [class*="pulse-dot"],
  [class*="badge-status"] {
    display: none !important;
  }
  
  /* Reset document layout structure */
  body, html {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 10.5pt !important;
    line-height: 1.45 !important;
    width: 100% !important;
    height: auto !important;
    font-family: Arial, Helvetica, sans-serif !important;
  }

  main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  section {
    padding: 12px 0 !important;
    border: none !important;
    page-break-inside: avoid;
  }

  /* Section heading reset */
  section h2 {
    font-size: 13pt !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    border-bottom: 1.5px solid #000000 !important;
    padding-bottom: 2px !important;
    margin-bottom: 8px !important;
    color: #000000 !important;
  }

  /* Timeline reset */
  .timeline {
    padding-left: 0 !important;
  }
  .timeline::before {
    display: none !important;
  }
  .timeline-item::before {
    display: none !important;
  }

  /* Text lists bullet styling */
  ul {
    padding-left: 0 !important;
  }
  
  /* Skills category adjustments */
  .skills-grid {
    display: block !important;
  }
  .skills-grid > div {
    margin-bottom: 6px !important;
    border: none !important;
    padding: 0 !important;
    background: none !important;
  }
}
