:root {
  /* Wondi's specific color palette */
  --bg-color: #f9f9f9;
  --text-primary: #1a1a1a;
  --text-secondary: #888888;
  --border-color: #e5e5e5;

  /* Typography - Using system fonts but with specific weights */
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  margin: 0;
  padding: 100px 24px; /* Generous top padding */
  line-height: 1.4;
}

.container {
  max-width: 650px;
  margin: 0 auto;
}

/* Name and Bio */
h1 {
  font-size: 1.00rem;
  font-weight: 500;
  margin: 0 0 24px 0;
}

p {
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 800px;
  color: var(--text-primary);
  font-weight: 400;
}

/* Social Links - The subtle "dot" separators or spacing */
.links {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}

.links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* Section Headers - Very minimal */
.section-header {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 30px 0 20px 0;
}

/* The Experience Table Style */
#experience-list, #education-list {
  border-top: 1px solid var(--border-color);
}



.row-year {
  width: 100px;
  color: var(--text-secondary);
  font-family: var(--font-mono); /* Monospace for dates is key */
  font-size: 0.8rem;
  flex-shrink: 0;
}

.row-content {
  flex-grow: 1;
  color: var(--text-primary);
}

.row-content strong {
  font-weight: 500;
}

.row {
  display: grid;
  grid-template-columns: 100px 1fr 100px; /* Year | Content | Location */
  gap: 0px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  align-items: baseline;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 12px 15px; /* Added some padding for a better click target */
  border-radius: 8px;
  position: relative;
  border-left: 3px solid transparent; /* Visual indicator for focus */
}
.experience-row {
  cursor: pointer;
}
/* 3. The Hover State */
.experience-row:hover {
  background-color: rgba(0, 0, 0, 0.04);
  transform: translateX(8px); /* Subtle slide to the right */
  border-left: 3px solid #333; /* Darker accent on the left */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.detail-hint {
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-left: 10px;
  font-weight: bold;
}

.experience-row:hover .detail-hint {
  opacity: 1;
}
/* 4. The Active State (when clicked) */
.experience-row:active {
  transform: scale(0.98) translateX(5px);
  background-color: rgba(0, 0, 0, 0.08);
}

.row-loc {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Mobile Tweak */
@media (max-width: 550px) {
  body { padding: 60px 20px; }
  .row { flex-direction: column; gap: 4px; }
  .row-year { width: 100%; margin-bottom: 2px; }
  .row-loc { margin-left: 0; margin-top: 2px; }
}
.company-link {
  color: inherit;
  text-decoration: none;
  position: relative;
}

.company-link strong {
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.company-link:hover strong {
  border-bottom: 1px solid var(--text-primary);
}

/* Ensure the row hover doesn't interfere with link clarity */
.row.clickable:hover .company-link {
  color: var(--accent-color, #000); /* Optional: slight color shift on hover */
}

.brand-mark.custom-icon {
  width: 32px;
  height: 32px;
  background-color: var(--text-primary); /* This colors the icon */
  /* This "masks" the shape of your SVG file */
  -webkit-mask: url('icon.svg') no-repeat center;
  mask: url('icon.svg') no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
}



/*
Modal setting
 */
/* Modal Background */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

/* Modal Box */
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem;
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
  position: relative;
  animation: modalFadeIn 0.4s ease-out;

  /* Key Fix: Layout */
  display: flex;
  flex-direction: column;
  max-height: 85vh; /* Prevents modal from leaving the screen */
  overflow: hidden; /* Contains children */
}
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Close Button */
.close-button {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
}
/* Apply animations to both Experience and Education */
.clickable-row {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-left: 3px solid transparent;
}

.clickable-row:hover {
  background-color: rgba(0, 0, 0, 0.04);
  transform: translateX(8px);
  border-left: 3px solid #333;
}

.detail-hint {
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-left: 10px;
}

.clickable-row:hover .detail-hint {
  opacity: 1;
}
.modal-list {
  padding-left: 1.2rem;
  margin-top: 1.5rem;
  list-style-type: none; /* We will use custom bullets */
}

.modal-list li {
  position: relative;
  margin-bottom: 12px;
  line-height: 1.6;
  color: #444;
  font-size: 0.95rem;
}

/* Custom Bullet Points */
.modal-list li::before {
  content: "•";
  color: #333;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.modal-meta h3 {
  margin-bottom: 5px;
  color: #222;
}

.modal-meta p {
  color: #666;
  font-size: 0.9rem;
}

hr {
  border: 0;
  border-top: 1px solid #eee;
  margin: 20px 0;
}

/* Scrollable Container */
.modal-scroll-area {
  flex-grow: 1;
  max-height: 300px; /* Adjust based on preference */
  overflow-y: auto;
  padding-right: 10px;
  margin-bottom: 10px;
}
.tech-section {
  flex-shrink: 0; /* Prevents the tech stack from being squashed */
  padding-top: 10px;
}

.tech-container {
  display: flex;
  flex-wrap: wrap; /* Allows tiles to move to the next line */
  gap: 8px;
  max-height: 120px; /* Optional: limits tech stack height */
  overflow-y: auto;  /* Optional: adds scroll if you have 50+ tags */
}

/* Custom Scrollbar for a cleaner look */
.modal-scroll-area::-webkit-scrollbar {
  width: 6px;
}
.modal-scroll-area::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* Tech Tiles Styling */
.tech-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tech-tile {
  background: #f0f0f0;
  color: #333;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.tech-tile:hover {
  background: #333;
  color: #fff;
}

/* Ensure modal content doesn't grow off-screen */
.modal-content {
  max-height: 80vh; /* Keep it within the viewport */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 10px;
  margin-bottom: 10px;
}
.row.no-year {
  grid-template-columns: 1fr; /* Takes up the whole row */
  padding-left: 15px;
}