/* ─────────────────────────────────────────────────────────────
   RESUME PAGE
   ───────────────────────────────────────────────────────────── */

/* ── Hero ─────────────────────────────────────────────────── */
.resume-hero {
  padding: 100px 0 80px;
}

.resume-hero-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.resume-hero-content {
  flex: 1;
  max-width: 640px;
}

.resume-hero-title {
  font-family: Helvetica Now Display;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 20px;
}

.resume-hero-title span {
  font-weight: 950;
  background: var(--linear, linear-gradient(168deg, #00E0FF 0%, #00FF94 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.resume-hero-sub {
  color: rgba(255, 255, 255, 0.5);
  font-family: Helvetica Now Display;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.78;
  margin: 0 0 36px;
}

/* ── Hero stats card (right column) ──────────────────────── */
.resume-hero-stats-card {
  flex-shrink: 0;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resume-hero-stats-card-inner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #232524;
  border-radius: 20px;
  padding: 8px 0;
  overflow: hidden;
}

.resume-hero-stat-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 28px;
}

.resume-stat-num {
  font-family: Helvetica Now Display;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--linear, linear-gradient(168deg, #00E0FF 0%, #00FF94 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.resume-stat-label {
  color: rgba(255, 255, 255, 0.45);
  font-family: Helvetica Now Display;
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.02em;
}

.resume-hero-stat-divider {
  height: 1px;
  background: #1e1e1e;
  margin: 0 28px;
}

.resume-hero-avail-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(0, 255, 148, 0.06);
  border: 1px solid rgba(0, 255, 148, 0.15);
  border-radius: 12px;
  font-family: Helvetica Now Display;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.resume-hero-avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00FF94;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0, 255, 148, 0.7);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ── Resume Preview + Download ────────────────────────────── */
.resume-wraper {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.resume-preview-card {
  position: relative;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #222;
  width: 815px;
  max-width: 100%;
}

.resume-preview-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  pointer-events: none;
}

.resume-img {
  display: block;
  width: 100%;
  height: auto;
}

.resume-side-con {
  flex: 1;
  min-width: 0;
  height: auto;
  border-radius: 16px;
  border: 1px solid #222;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255, 255, 255, 0.015);
}

.resume-side-title {
  font-family: Helvetica Now Display;
  font-size: 56px;
  font-weight: 950;
  line-height: 1;
  margin: 0 0 28px;
  background: var(--linear, linear-gradient(168deg, #00E0FF 0%, #00FF94 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.resume-side-con p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.55);
  font-family: Helvetica Now Display;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.78;
}

.resume-updated {
  font-family: Helvetica Now Display;
  font-size: 12px !important;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.28) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px !important;
}

.btn-dl-resume {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 28px;
  border-radius: 10px;
  background: var(--linear, linear-gradient(168deg, #00E0FF 0%, #00FF94 100%));
  color: #1E1E1E;
  font-family: Helvetica Now Display;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: opacity 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin-bottom: 20px;
  align-self: flex-start;
}

.btn-dl-resume:hover {
  opacity: 0.88;
  box-shadow: 0 0 24px rgba(0, 224, 255, 0.35);
}

.resume-scroll-hint {
  display: inline-block;
  color: rgba(255, 255, 255, 0.35);
  font-family: Helvetica Now Display;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  align-self: flex-start;
}

.resume-scroll-hint:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Experience Timeline ──────────────────────────────────── */
.resume-experience-section {
  padding-bottom: 0;
}

.resume-timeline {
  position: relative;
  padding-left: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.resume-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
}

/* Scroll-drawn gradient fill — animated by GSAP */
.timeline-fill-line {
  position: absolute;
  left: 5px;
  top: 12px;
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, #00e0ff 0%, #00ff94 100%);
  border-radius: 2px;
  z-index: 1;
  pointer-events: none;
  will-change: height;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -36px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(168deg, #00E0FF 0%, #00FF94 100%);
  flex-shrink: 0;
  transform-origin: center;
  will-change: transform, opacity;
  z-index: 2;
}

/* Ring pulse — triggered by JS adding .tl-dot-ring */
.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 224, 255, 0.55);
  opacity: 0;
  pointer-events: none;
  transform: scale(1);
}

.timeline-dot.tl-dot-ring::after {
  animation: tlDotRing 1s ease-out forwards;
}

@keyframes tlDotRing {
  0%   { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0;   transform: scale(2.6); }
}

.timeline-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #232524;
  border-radius: 14px;
  padding: 28px 32px;
  transition: border-color 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94), background 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-card:hover {
  border-color: rgba(0, 224, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.timeline-period {
  font-family: Helvetica Now Display;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-company {
  font-family: Helvetica Now Display;
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 224, 255, 0.7);
  letter-spacing: 0.04em;
}

.timeline-role {
  font-family: Helvetica Now Display;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.3;
}

.timeline-desc {
  color: #888;
  font-family: Helvetica Now Display;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.72;
  margin: 0 0 16px;
}

/* ── Education row ────────────────────────────────────────── */
.resume-education-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #232524;
  border-radius: 12px;
  flex-wrap: wrap;
}

.resume-section-label {
  font-family: Helvetica Now Display;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--linear, linear-gradient(168deg, #00E0FF 0%, #00FF94 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  flex-shrink: 0;
}

.edu-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edu-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edu-degree {
  font-family: Helvetica Now Display;
  font-size: 15px;
  font-weight: 700;
  background: var(--linear, linear-gradient(168deg, #00E0FF 0%, #00FF94 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.edu-year {
  font-family: Helvetica Now Display;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Skills Grid ──────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  align-items: stretch;
}

.skills-category-card {
  background: #0d0d0d;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #1e1e1e;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skills-category-card:hover {
  border-color: rgba(0, 224, 255, 0.25);
  box-shadow: 0 0 32px rgba(0, 224, 255, 0.05);
}

.skills-cat-icon {
  margin-bottom: 24px;
}

.skills-category-card h3 {
  font-family: Helvetica Now Display;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #1a1a1a;
}

.skills-tag-list {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.skills-tag-list li {
  font-family: Helvetica Now Display;
  font-size: 12px;
  font-weight: 500;
  color: #aaa;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid #242424;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94), color 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skills-tag-list li:hover {
  border-color: rgba(0, 224, 255, 0.28);
  color: #e0e0e0;
}

/* ── Skills section: tighter title-to-grid gap ───────────── */
.resume-skills-section .title-nav-con {
  padding-bottom: 0;
}

/* ── Active (current) timeline item ──────────────────────── */
.timeline-item--active .timeline-card {
  background: rgba(0, 224, 255, 0.03);
  border-color: rgba(0, 224, 255, 0.18);
  position: relative;
  overflow: hidden;
}

.timeline-item--active .timeline-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #00e0ff 0%, #00ff94 100%);
  border-radius: 3px 0 0 3px;
}

/* Dual-position layout (multiple roles at same company) */
.timeline-positions {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
}

.timeline-position {
  padding: 18px 0 0;
}

.timeline-position--first {
  margin-top: 20px;
  padding: 20px 16px 16px;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.timeline-position-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.timeline-position-period {
  font-size: 11px;
  font-weight: 600;
  color: #3a3a3a;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timeline-position-arrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #00ff94;
  background: rgba(0, 255, 148, 0.08);
  border: 1px solid rgba(0, 255, 148, 0.15);
  border-radius: 4px;
  padding: 2px 8px;
}

.timeline-role--muted {
  font-size: 15px;
  font-weight: 700;
  color: #555;
}

.timeline-position--first .timeline-desc {
  color: #3e3e3e;
}

.timeline-position--first .service-tags li {
  border-color: #1e1e1e;
  color: #444;
}

.timeline-position .timeline-desc {
  margin: 6px 0 0;
  font-size: 13px;
}

.timeline-position .service-tags {
  margin-top: 12px;
}

/* Promotion indicator */
.timeline-promo {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 6px 0 14px;
  padding: 6px 12px;
  background: rgba(0, 255, 148, 0.04);
  border: 1px solid rgba(0, 255, 148, 0.12);
  border-radius: 7px;
  width: fit-content;
}

.timeline-promo-arrow {
  font-size: 11px;
  color: #00ff94;
  line-height: 1;
}

.timeline-promo-text {
  font-size: 12px;
  color: #4a4a4a;
  letter-spacing: 0.01em;
}

.timeline-promo-text strong {
  color: #777;
  font-weight: 600;
}

.timeline-now-badge {
  font-family: Helvetica Now Display;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #00ff94;
  background: rgba(0, 255, 148, 0.1);
  border: 1px solid rgba(0, 255, 148, 0.25);
  border-radius: 999px;
  padding: 2px 8px;
  text-transform: uppercase;
}

/* ── Scroll hint — icon + text ────────────────────────────── */
.resume-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.resume-scroll-hint svg {
  transition: transform 300ms ease;
}

.resume-scroll-hint:hover svg {
  transform: translateY(3px);
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .resume-preview-card {
    width: 480px;
  }
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Hero */
  .resume-hero {
    padding: 48px 0 40px;
  }

  .resume-hero-title {
    font-size: clamp(32px, 9vw, 52px);
  }

  /* Hero stats card stacks below on mobile */
  .resume-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .resume-hero-stats-card {
    width: 100%;
  }

  .resume-hero-stats-card-inner {
    display: flex;
    flex-direction: row;
    padding: 0;
  }

  .resume-hero-stat-row {
    flex: 1;
    padding: 16px 20px;
    align-items: center;
    text-align: center;
  }

  .resume-hero-stat-divider {
    width: 1px;
    height: auto;
    margin: 12px 0;
  }

  .resume-stat-num {
    font-size: 28px;
  }

  /* Preview */
  .resume-wraper {
    flex-direction: column;
  }

  .resume-preview-card {
    width: 100%;
  }

  .resume-side-con {
    width: 100%;
    padding: 28px 20px;
  }

  .resume-side-title {
    font-size: 40px;
  }

  .btn-dl-resume {
    width: 100%;
    justify-content: center;
  }

  /* Timeline */
  .timeline-card {
    padding: 20px;
  }

  /* Skills */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .skills-category-card {
    padding: 24px;
  }

  .skills-category-card h3 {
    font-size: 16px;
    margin: 0 0 16px;
    padding-bottom: 12px;
  }

  /* Education */
  .resume-education-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .resume-hero-stats-card-inner {
    flex-direction: column;
  }

  .resume-hero-stat-row {
    text-align: left;
    align-items: flex-start;
  }

  .resume-hero-stat-divider {
    width: auto;
    height: 1px;
    margin: 0 20px;
  }

  .timeline-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
