/* ====== TECH PAGE STYLES ====== */

/* ====== SECTION HEADINGS ====== */
.tech-section {
  margin-bottom: 80px;
  animation: fadeInUp 0.8s ease both;
}

.tech-section:nth-child(2) { animation-delay: 0.1s; }
.tech-section:nth-child(3) { animation-delay: 0.2s; }
.tech-section:nth-child(4) { animation-delay: 0.3s; }

.section-heading {
  font-family: var(--font-hero);
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 48px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ====== TIMELINE ====== */
.timeline {
  position: relative;
  padding-left: 32px;
}

/* vertical line */
.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 7px;
  width: 1px;
  bottom: 40px;
  background: linear-gradient(
    to bottom,
    rgba(200, 200, 208, 0.5),
    rgba(200, 200, 208, 0.15) 90%,
    transparent
  );
}

.timeline-entry {
  position: relative;
  margin-bottom: 48px;
}

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

/* dot on the line */
.timeline-dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  z-index: 1;
}

.timeline-entry:first-child .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(200, 200, 208, 0.3);
}

.timeline-content {
  padding-bottom: 8px;
}

.timeline-meta {
  margin-bottom: 8px;
}

.timeline-dates {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.timeline-role {
  font-family: var(--font-hero);
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: 1px;
  margin-bottom: 4px;
  line-height: 1.3;
}

.timeline-company {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.4;
}

.timeline-location {
  color: var(--text-dim);
  font-size: 13px;
}

.timeline-location::before {
  content: '\2002\00b7\2002';
}

.timeline-details {
  list-style: none;
  padding: 0;
}

.timeline-details li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}

.timeline-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(200, 200, 208, 0.4);
}

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

.timeline-subheading {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  font-style: italic;
  color: var(--accent);
  margin-top: 16px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.timeline-subheading:first-of-type {
  margin-top: 0;
}

/* ====== PROJECTS ====== */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.project-card {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.project-year {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.project-title {
  font-family: var(--font-hero);
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.project-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.project-link:hover {
  color: var(--text-bright);
  border-color: var(--text-bright);
}

.project-details {
  list-style: none;
  padding: 0;
}

.project-details li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}

.project-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(200, 200, 208, 0.4);
}

.project-details li:last-child {
  margin-bottom: 0;
}

/* ====== TECHNICAL SKILLS ====== */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.skill-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.skill-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  min-width: 120px;
  flex-shrink: 0;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--text);
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.skill-tag:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-bright);
}

.cert-tag {
  border-color: rgba(200, 200, 208, 0.25);
  color: var(--accent);
}

.cert-tag:hover {
  border-color: rgba(200, 200, 208, 0.5);
}

/* ====== RESPONSIVE: TABLET ====== */
@media (max-width: 768px) {
  .tech-section {
    margin-bottom: 60px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .timeline {
    padding-left: 28px;
  }

  .timeline::before {
    left: 6px;
  }

  .timeline-dot {
    left: -28px;
    width: 13px;
    height: 13px;
  }

  .timeline-entry {
    margin-bottom: 40px;
  }

  .skill-group {
    flex-direction: column;
    gap: 10px;
  }

  .skill-label {
    min-width: unset;
  }

  .project-card {
    padding: 24px;
  }
}

/* ====== RESPONSIVE: MOBILE ====== */
@media (max-width: 480px) {
  .tech-section {
    margin-bottom: 48px;
  }

  .section-heading {
    font-size: 18px;
    letter-spacing: 3px;
    margin-bottom: 28px;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline::before {
    left: 5px;
  }

  .timeline-dot {
    left: -24px;
    width: 11px;
    height: 11px;
  }

  .timeline-entry {
    margin-bottom: 36px;
  }

  .timeline-role {
    font-size: 16px;
  }

  .timeline-company {
    font-size: 14px;
  }

  .timeline-details li {
    font-size: 13px;
  }

  .project-card {
    padding: 20px;
  }

  .project-title {
    font-size: 16px;
  }

  .project-details li {
    font-size: 13px;
  }

  .skill-tag {
    font-size: 10px;
    padding: 5px 10px;
  }
}
