@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #0b1120;
  --panel-bg: #111827;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --accent: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.4);
  --accent-secondary: #3b82f6;
  --border-color: #1f2937;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #000;
  color: var(--text-main);
  display: flex;
  justify-content: center;
  padding: 20px;
  min-height: 100vh;
}

.resume-container {
  width: 100%;
  max-width: 1000px;
  background-color: var(--bg-color);
  box-shadow: 0 10px 50px rgba(0,0,0,0.8);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
  background: linear-gradient(135deg, rgba(30,41,59,0.9), rgba(15,23,42,1));
  border-bottom: 2px solid var(--accent);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 300px; height: 300px;
  background: var(--accent-glow);
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
}

.header-main-info {
  display: flex;
  align-items: center;
  gap: 22px;
  z-index: 10;
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-name h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  line-height: 1.1;
  text-transform: uppercase;
}

.header-name h1 span {
  color: #fff;
}

.header-name .subtitle {
  font-size: 1.25rem;
  color: var(--accent-secondary);
  margin-top: 5px;
  font-weight: 500;
}

.header-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
  z-index: 10;
}

.header-contact a {
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.3s, transform 0.3s;
}

.header-contact a:hover {
  color: var(--accent);
  transform: translateX(-4px);
}

/* Main Content area */
main {
  display: grid;
  grid-template-columns: 35% 65%;
  flex: 1;
}

.column-left {
  background-color: var(--panel-bg);
  padding: 35px 30px;
  border-right: 1px solid var(--border-color);
}

.column-right {
  padding: 35px 40px;
}

section {
  margin-bottom: 30px;
}



section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

section h2 i {
  color: var(--accent);
}

h3 {
  font-size: 1.05rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Skills */
.skill-category {
  margin-bottom: 22px;
}

.skill-category h3 {
  color: var(--accent-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.chips li, .chips span {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.chips li:hover, .chips span:hover {
  background: rgba(139, 92, 246, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}

.soft-chips li, .soft-chips span {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.soft-chips li:hover, .soft-chips span:hover {
  background: var(--border-color);
  transform: translateY(-2px);
  box-shadow: none;
}

/* Education */
.edu-item {
  margin-bottom: 18px;
}

.edu-item .institute {
  color: var(--accent-secondary);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.edu-item .stats {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Lists */
.bullet-list {
  list-style: none;
}
.bullet-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}
.bullet-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}
.bullet-list li b {
  color: var(--text-main);
  font-weight: 600;
}

/* Experience / Projects */
.job-item {
  margin-bottom: 24px;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.job-header h3 span {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.9rem;
}

.job-date {
  font-size: 0.85rem;
  color: var(--accent-secondary);
  font-weight: 600;
  white-space: nowrap;
}

.minor-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.job-item, .edu-item, .skill-category {
  animation: fadeInUp 0.6s ease-out both;
}

.job-item:nth-child(2) { animation-delay: 0.1s; }
.job-item:nth-child(3) { animation-delay: 0.2s; }
.job-item:nth-child(4) { animation-delay: 0.3s; }
.job-item:nth-child(5) { animation-delay: 0.4s; }

/* Utilities */
.print-only {
  display: none !important;
}

/* Print styling for ATS compatibility */
@media print {
  @page {
    margin: 0.5cm 1.2cm 1.2cm 1.2cm;
    size: A4;
  }
  
  :root {
    --bg-color: #ffffff;
    --panel-bg: #ffffff; 
    --text-main: #000000;
    --text-muted: #000000;
    --accent: #000000;
    --accent-glow: transparent;
    --accent-secondary: #000000;
    --border-color: #000000;
  }

  html, body {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 9.5px;
    background: #ffffff !important;
    color: #000000 !important;
    line-height: 1.4;
  }
  
  body {
    padding: 0;
    margin: 0;
    display: block;
    animation: none !important;
  }

  .resume-container {
    box-shadow: none;
    max-width: none;
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .print-only {
    display: block !important;
  }

  main {
    display: flex;
    flex-direction: column;
  }

  .column-left, .column-right {
    display: contents; /* Flattens layout into single column for ATS */
  }

  /* Single column precise ATS reading order */
  #summary         { order: 1; }
  .skills          { order: 2; }
  #work-experience { order: 3; }
  #projects        { order: 4; }
  #internship      { order: 5; }
  .education       { order: 6; }
  .achievements    { order: 7; }

  /* Format page breaks inside for better PDF reading */
  .job-item, .edu-item, .skill-category {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Soft header for print */
  header {
    background: #ffffff !important;
    border-bottom: 2px solid #000000;
    padding: 0 0 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  header::before, .profile-img {
    display: none !important; /* Hide glow & avatar for ATS print export */
  }

  .header-name { margin-bottom: 2px; }
  
  .header-contact {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }

  .fas, .fab { display: none !important; }

  .header-contact a[href^="mailto:"]::before { content: "Email: "; font-weight: bold; }
  .header-contact a[href^="callto:"]::before { content: "Phone: "; font-weight: bold; }
  .header-contact a[href*="linkedin.com"]::before { content: "LinkedIn: "; font-weight: bold; }
  .header-contact a[href*="github.com/nacpa"]::before { content: "GitHub: "; font-weight: bold; }
  .header-contact a[href*="nacpa.github.io"]::before { content: "Web Resume: "; font-weight: bold; }
  .header-contact a[href*="fluttersolution"]::before { content: "Blog: "; font-weight: bold; }

  .header-name h1, .header-name h1 span { 
    color: var(--text-main) !important;
    font-size: 1.6rem !important;
    letter-spacing: 4px;
  }

  .header-name .subtitle {
    color: var(--accent-secondary) !important;
    font-size: 0.85rem !important;
    margin-top: 1px;
  }

  h2, h3 {
    color: var(--text-main) !important;
    margin-bottom: 1px !important;
  }
  
  p, span, li {
    color: var(--text-muted) !important;
  }
  
  i {
    color: var(--accent) !important;
  }

  /* Convert chips to plain comma-separated text */
  .chips {
    display: block;
    margin-bottom: 6px;
  }
  
  .chips li, .chips span {
    display: inline;
    border: none !important;
    background: transparent !important;
    padding: 0;
    font-size: 0.85rem;
    color: #000000 !important;
    margin: 0;
    box-shadow: none !important;
    transform: none !important;
  }

  .chips li::after {
    content: ", ";
  }
  .chips li:last-child::after {
    content: "";
  }

  .bullet-list {
    padding-left: 0;
    margin-left: 10px;
  }

  .bullet-list li {
    position: relative;
    padding-left: 12px;
    margin-left: 0;
  }

  .bullet-list li::before {
    content: "•" !important;
    color: #000000;
    position: absolute;
    left: 0;
    top: 0;
    line-height: inherit;
  }

  .column-left section, .column-right section { 
    margin-bottom: 5px; 
  }

  section {
    margin-bottom: 5px;
  }

  section h2 { 
    font-size: 1.0rem;
    border-bottom: 1.2px solid #000000; 
    padding-bottom: 1px;
    margin-bottom: 3.5px;
    margin-top: 5px;
  }

  .skill-category { margin-bottom: 3.5px; }
  .skill-category h3 { font-size: 0.87rem; margin-bottom: 2px; }

  .job-header {
    display: block;
    margin-bottom: 1px;
  }

  .job-header h3 {
    display: inline;
    font-size: 0.97rem;
    margin-bottom: 0;
  }

  .job-date {
    display: inline;
    font-size: 0.86rem;
    font-weight: bold;
    margin-left: 6px;
    color: #000000 !important;
  }

  h3 { font-size: 0.97rem; margin-bottom: 0; }
  .bullet-list li { margin-bottom: 2.2px; font-size: 0.91rem; line-height: 1.42; }
  .bullet-list li::before { top: 0; }
  .job-date { font-weight: bold; font-size: 0.86rem; }
  .minor-text { font-size: 0.90rem; line-height: 1.40; }
  .edu-item .institute { font-size: 0.88rem; }
  .edu-item .stats { font-size: 0.86rem; }
  .job-item { margin-bottom: 6px; }
  .edu-item { margin-bottom: 4px; }

  .fab-container, .hire-modal-overlay, .hire-pill-trigger, .print-only-hide {
    display: none !important;
  }
}

/* Draggable Floating Action Widget */
.fab-container {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  display: flex;
  flex-direction: column;
  background: var(--panel-bg);
  border: 1px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px var(--accent-glow);
  z-index: 99999 !important;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.9);
  transition: opacity 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              visibility 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-container.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.fab-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(59, 130, 246, 0.25));
  border-bottom: 1px solid var(--border-color);
  cursor: grab;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
}

.fab-header:active {
  cursor: grabbing;
}

.fab-header i.fa-grip-vertical {
  color: var(--accent);
}

.fab-toggle {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.fab-toggle.collapsed {
  transform: rotate(-90deg);
}

.fab-options {
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 6px;
  max-height: 300px;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  overflow: hidden;
}

.fab-options.collapsed {
  max-height: 0;
  opacity: 0;
  padding: 0 8px;
}

.fab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(31, 41, 55, 0.5);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.fab-btn i {
  color: var(--accent);
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
}

.fab-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.fab-btn:hover i {
  color: #fff;
}

/* Exclusive Hire Deal Center Modal Banner */
.hire-modal-overlay {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  padding: 20px;
}

.hire-modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.hire-modal-card {
  position: relative;
  background: linear-gradient(135deg, #111827, #0b1120);
  border: 2px solid var(--accent);
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.4), 0 20px 40px rgba(0, 0, 0, 0.8);
  border-radius: 20px;
  padding: 32px 28px 24px 28px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  transform-origin: top left;
  transform: scale(0.1) translate(-250%, -250%);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.55s ease;
}

.hire-modal-overlay.visible .hire-modal-card {
  transform: scale(1) translate(0, 0);
  opacity: 1;
}

.hire-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.hire-modal-close:hover {
  color: #fff;
}

.hire-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  border: 1px solid var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.hire-modal-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.hire-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.hire-highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  text-align: left;
  background: rgba(31, 41, 55, 0.5);
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.highlight-item {
  font-size: 0.88rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.highlight-item i {
  color: #34d399;
}

.hire-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.hire-btn-primary, .hire-btn-secondary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hire-btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #fff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.hire-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.hire-btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.hire-btn-secondary:hover {
  background: var(--border-color);
  color: #fff;
}

.hire-timer-bar {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hire-timer-bar strong {
  color: var(--accent-secondary);
}

.timer-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.timer-progress-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
}

/* Top-Left Minimized Pill Trigger */
.hire-pill-trigger {
  position: fixed !important;
  top: 24px !important;
  left: 24px !important;
  z-index: 999999 !important;
  background: linear-gradient(135deg, var(--panel-bg), #1e293b);
  border: 1px solid var(--accent);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hire-pill-trigger.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hire-pill-trigger i {
  color: #f59e0b;
}

.hire-pill-trigger:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.6);
}

.hire-pill-trigger:hover i {
  color: #fff;
}

/* Responsive adjustment for small screens */
@media screen and (max-width: 768px) {
  body {
    padding: 15px; /* Reduced outer padding for more content space */
  }
  .resume-container {
    border-radius: 12px;
  }
  main {
    display: flex;
    flex-direction: column;
  }
  .column-left {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 30px 20px;
  }
  .column-right {
    padding: 30px 20px;
  }
  header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 35px 20px;
  }
  .header-main-info {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .header-name h1 { font-size: 2.3rem; }
  .header-name .subtitle { font-size: 1.1rem; }
  .header-contact { 
    align-items: center; 
    justify-content: center; 
    flex-direction: row; 
    flex-wrap: wrap; 
    gap: 15px;
    margin-top: 10px;
  }
  .fab-container {
    bottom: 20px;
    right: 20px;
  }
}
