/* Import Latin Modern Roman (LaTeX font) */
@import url('https://cdn.jsdelivr.net/gh/sugina-dev/latin-modern-web@1.0.1/style/latinmodern-roman.css');

/* Import Google Fonts for Interactive Portfolio Mode */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Base Styles */
:root {
  --primary-color: #002b80; /* The deep blue from the PDF */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.05);
}
.dark ::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.2);
  border-radius: 4px;
}
.dark ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.4);
}
.dark ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Interactive Mode Fonts */
.font-interactive {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

/* Classic Mode Fonts */
.font-latex {
  font-family: 'Latin Modern Roman', Georgia, serif;
}

/* A4 Page Simulator for Classic PDF Mode on Desktop */
.pdf-page {
  width: 210mm;
  height: 297mm;
  padding: 20mm;
  margin: 1.5rem auto;
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

/* LaTeX spacing elements */
.latex-section-title {
  color: var(--primary-color);
  font-size: 1.35rem;
  font-weight: 600;
  border-bottom: 0.75px solid var(--primary-color);
  padding-bottom: 2px;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.latex-bold-label {
  font-weight: bold;
}

.latex-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.latex-table th, .latex-table td {
  border: 0.5px solid #000;
  padding: 4px 8px;
  font-size: 0.9rem;
  text-align: left;
}

.latex-table th {
  font-weight: bold;
}

/* PDF Print styles */
@media print {
  body {
    background: white !important;
    color: black !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Hide all web interface components */
  .no-print {
    display: none !important;
  }
  
  /* Ensure page layouts are pristine */
  .pdf-page {
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 !important;
    box-shadow: none !important;
    padding: 20mm !important;
    page-break-after: always !important;
    page-break-inside: avoid !important;
    background: transparent !important;
  }
  
  /* Ensure browser prints backgrounds if needed, but CV is mostly clean */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* Smooth Interactive transitions */
.transition-all-300 {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card hover animation */
.hover-card-glow {
  position: relative;
}
.hover-card-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.hover-card-glow:hover::after {
  opacity: 1;
}
