:root {
  --indigo:        #4f46e5;
  --indigo-dark:   #1e1b4b;
  --indigo-mid:    #818cf8;
  --indigo-light:  #e0e7ff;
  --coral:         #fb7185;
  --coral-light:   #ffe4e6;
  --emerald:       #059669;
  --emerald-dark:  #064e3b;
  --emerald-light: #d1fae5;
  --amber:         #d97706;
  --amber-dark:    #78350f;
  --amber-light:   #fef3c7;
  --bg:            #f8f7ff;
  --text:          #1e1b4b;
  --muted:         #6b7280;
  --border:        #e0e7ff;
}

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

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body { padding-bottom: 57px; }

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

/* HAMBURGER */
.hamburger {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 300;
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--indigo-dark);
  border-radius: 2px;
}

/* NAV OVERLAY */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 27, 75, 0.18);
}

.nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 260px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
  gap: 28px;
}

.nav-panel a {
  font-size: 20px;
  font-weight: 700;
  color: var(--indigo-dark);
  transition: color 0.2s;
}

.nav-panel a:hover { color: var(--indigo); }

.nav-panel a.active {
  color: var(--indigo);
  border-bottom: 2px solid var(--coral);
  padding-bottom: 2px;
  width: fit-content;
}

.btn-hire {
  font-size: 13px !important;
  font-weight: 700 !important;
  background: var(--indigo);
  color: #fff !important;
  border-radius: 20px;
  padding: 10px 22px !important;
  width: fit-content;
  transition: opacity 0.2s;
}

.btn-hire:hover { opacity: 0.85; }

/* FOOTER */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--indigo-light);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-copy {
  font-size: 11px;
  color: var(--indigo);
  flex: 1;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 11px;
  font-weight: 600;
  color: var(--indigo);
  border: 1.5px solid var(--indigo);
  border-radius: 20px;
  padding: 5px 14px;
  transition: background 0.2s, color 0.2s;
}

.footer-links a:hover {
  background: var(--indigo);
  color: #fff;
}

.footer-links a.email {
  color: var(--coral);
  border-color: var(--coral);
}

.footer-links a.email:hover {
  background: var(--coral);
  color: #fff;
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--indigo);
  color: #fff;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.85; }

.btn-outline {
  display: inline-block;
  background: #fff;
  color: var(--indigo);
  border: 2px solid var(--indigo);
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--indigo);
  color: #fff;
}

/* TIMELINE PAGES */
.page-header {
  background: #fff;
  padding: 36px 48px 28px;
  border-bottom: 1px solid var(--border);
}

.page-header .label {
  font-size: 11px;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 900;
  color: var(--indigo-dark);
  margin-bottom: 6px;
}

.page-header .subtitle {
  font-size: 13px;
  color: #9ca3af;
}

.timeline-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 40px 48px 60px;
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 68px;
  top: 40px;
  bottom: 60px;
  width: 2px;
  background: linear-gradient(180deg, var(--indigo), var(--coral));
  opacity: 0.25;
  border-radius: 2px;
}

.timeline-entry {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.timeline-dot-wrap {
  min-width: 20px;
  padding-top: 18px;
  position: relative;
  flex-shrink: 0;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  position: absolute;
  right: -6px;
  top: 18px;
}

.dot-indigo { background: var(--indigo); box-shadow: 0 0 0 2px var(--indigo); }
.dot-coral  { background: var(--coral);  box-shadow: 0 0 0 2px var(--coral);  }

.timeline-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  flex: 1;
  transition: box-shadow 0.2s;
}

.timeline-card:hover { box-shadow: 0 4px 20px rgba(79, 70, 229, 0.12); }

.card-indigo {
  border: 1px solid var(--indigo-light);
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.07);
}

.card-coral {
  border: 1px solid var(--coral-light);
  box-shadow: 0 2px 10px rgba(251, 113, 133, 0.07);
}

.card-year {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.year-indigo { color: var(--indigo); }
.year-coral  { color: var(--coral); }

.card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--indigo-dark);
  margin-bottom: 2px;
}

.card-sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.card-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.card-link-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.card-link-btn:hover { opacity: 0.7; }

.link-indigo { background: var(--indigo-light); color: var(--indigo); }
.link-coral  { background: var(--coral-light);  color: var(--coral);  }

/* TAGS */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 600;
}

.tag-indigo { background: var(--indigo-light); color: #3730a3; }
.tag-coral  { background: var(--coral-light);  color: #be123c; }

/* Emerald (current role) */
.dot-emerald  { background: var(--emerald); box-shadow: 0 0 0 2px var(--emerald); }
.card-emerald { border: 1px solid var(--emerald-light); box-shadow: 0 2px 12px rgba(5, 150, 105, 0.10); }
.year-emerald { color: var(--emerald); }
.tag-emerald  { background: var(--emerald-light); color: #065f46; }
.link-emerald { background: var(--emerald-light); color: var(--emerald); }

/* NOW badge */
.now-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--emerald);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}

.now-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-dot 1.5s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

/* Card bullet list */
.card-bullets {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-bullets li {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  padding-left: 16px;
  position: relative;
}

.card-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--indigo);
  font-size: 10px;
  top: 1px;
}

.card-emerald .card-bullets li::before { color: var(--emerald); }
.card-coral   .card-bullets li::before { color: var(--coral); }

/* Stat chips */
.stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.stat-chip {
  background: var(--indigo-light);
  color: var(--indigo-dark);
  border-radius: 8px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
}

.stat-chip-coral   { background: var(--coral-light);   color: #9f1239; }
.stat-chip-emerald { background: var(--emerald-light); color: #065f46; }

/* Amber (volunteer / passion role) */
.dot-amber    { background: var(--amber); box-shadow: 0 0 0 2px var(--amber); }
.card-amber   { border: 1.5px dashed var(--amber); box-shadow: 0 2px 12px rgba(217, 119, 6, 0.10); }
.card-amber:hover { box-shadow: 0 4px 20px rgba(217, 119, 6, 0.18); }
.year-amber   { color: var(--amber); }
.tag-amber    { background: var(--amber-light); color: var(--amber-dark); }
.card-amber .card-bullets li::before { color: var(--amber); }

/* Passion / volunteer badge */
.passion-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--amber);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Experience 75% / Education 25% two-column layout */
.exp-layout {
  display: flex;
  align-items: flex-start;
  max-width: 960px;
  margin: 0 auto;
}

.exp-layout .timeline-wrap {
  flex: 3;
  max-width: none;
  margin: 0;
}

.edu-sidebar {
  flex: 1;
  min-width: 0;
  padding: 40px 24px 60px 24px;
  position: sticky;
  top: 24px;
}

.edu-sidebar .label {
  font-size: 11px;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .exp-layout { flex-direction: column; }
  .edu-sidebar { padding: 8px 20px 40px; width: 100%; position: static; }
}

/* Parallel cards (Gruve + AICESA side by side) */
.timeline-parallel {
  display: flex;
  flex: 1;
  gap: 14px;
  align-items: flex-start;
}

.timeline-parallel .timeline-card {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .timeline-parallel { flex-direction: column; }
}

/* FADED older entries */
.fade-1 { opacity: 0.75; }
.fade-2 { opacity: 0.5;  }

/* RESPONSIVE */
@media (max-width: 768px) {

  .timeline-wrap { padding: 28px 20px 48px; }
  .timeline-line { left: 28px; }
  .page-header { padding: 24px 20px 20px; }
  .footer { padding: 14px 20px; }
}
