/* Modern, Professional Resume Stylesheet */

:root {
  --primary-color: #0f172a;        /* Slate 900 - Headings & key titles */
  --secondary-color: #1e3a8a;      /* Navy Blue - Accent & highlights */
  --accent-color: #2563eb;         /* Royal Blue - Interactive links & focus */
  --text-main: #334155;            /* Slate 700 - Body copy */
  --text-muted: #64748b;           /* Slate 500 - Metadata & dates */
  --bg-page: #f8fafc;              /* Slate 50 - Page background */
  --bg-card: #ffffff;              /* Card background */
  --border-light: #e2e8f0;         /* Slate 200 - Dividers */
  --tag-bg: #f1f5f9;               /* Slate 100 - Interest tags */
  --badge-completed-bg: #dbeafe;    /* Light blue - Completed certs */
  --badge-completed-text: #1e40af;
  --badge-progress-bg: #fef3c7;     /* Light amber - In progress certs */
  --badge-progress-text: #92400e;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-width: 860px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  padding: 2.5rem 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Main Container Card */
.resume-container {
  max-width: var(--container-width);
  margin: 0 auto;
  background-color: var(--bg-card);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}

/* Header */
header {
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 1.75rem;
  margin-bottom: 2.25rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.contact-info {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
}

.contact-info a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease-in-out;
}

.contact-info a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.separator {
  color: #cbd5e1;
  user-select: none;
}

.tagline {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--secondary-color);
  letter-spacing: -0.01em;
}

/* Sections */
.section {
  margin-bottom: 2.25rem;
}

.section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-color);
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0.4rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background-color: var(--accent-color);
  border-radius: 2px;
}

/* Professional Summary */
.summary-text {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.7;
}

/* Work Experience & Education Timeline */
.timeline-item {
  margin-bottom: 1.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.item-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
}

.item-role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.item-period {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

ul.bullet-list {
  list-style-type: disc;
  padding-left: 1.2rem;
  margin-top: 0.4rem;
}

ul.bullet-list li {
  font-size: 0.975rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
  line-height: 1.6;
}

ul.bullet-list li:last-child {
  margin-bottom: 0;
}

/* Certifications */
.cert-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cert-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.85rem;
  background-color: var(--tag-bg);
  border-radius: 6px;
  border-left: 3px solid var(--accent-color);
  font-size: 0.975rem;
}

.cert-name {
  font-weight: 600;
  color: var(--primary-color);
}

.cert-badge {
  font-size: 0.85rem;
  padding: 0.2rem 0.65rem;
  border-radius: 12px;
  font-weight: 600;
  background-color: var(--badge-completed-bg);
  color: var(--badge-completed-text);
  white-space: nowrap;
}

.cert-badge.in-progress {
  background-color: var(--badge-progress-bg);
  color: var(--badge-progress-text);
}

/* Technical Skills */
.skills-dl {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  font-size: 0.975rem;
  align-items: baseline;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border-light);
}

.skill-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

dt {
  font-weight: 700;
  color: var(--primary-color);
}

dd {
  color: var(--text-main);
}

/* Interests Tags */
.interests-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.interest-tag {
  background-color: var(--tag-bg);
  color: var(--primary-color);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border-light);
  transition: all 0.15s ease-in-out;
}

.interest-tag:hover {
  background-color: var(--secondary-color);
  color: #ffffff;
  border-color: var(--secondary-color);
}

/* Footer & Visitor Counter */
.footer {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.visitor-counter {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.visitor-counter #visitor-count {
  font-weight: 700;
  color: var(--secondary-color);
}

/* Responsive Styles for Mobile & Tablet */
@media (max-width: 680px) {
  body {
    padding: 1rem 0.5rem;
  }

  .resume-container {
    padding: 1.5rem 1.25rem;
    border-radius: 8px;
  }

  h1 {
    font-size: 2rem;
  }

  .contact-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .separator {
    display: none;
  }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    padding-bottom: 0.6rem;
  }

  .item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
  }

  .cert-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
}

/* Print Optimization */
@media print {
  body {
    background-color: #ffffff;
    padding: 0;
    color: #000000;
  }

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

  .section-title::before {
    display: none;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  .cert-item {
    background-color: transparent;
    border-left: none;
    padding: 0.25rem 0;
    border-bottom: 1px dashed var(--border-light);
  }

  .interest-tag {
    background-color: transparent;
    border: 1px solid var(--text-muted);
  }
}
