/* Dark Blue Minimalist Portfolio Inspired by jonathantrevino.com Dark Mode */

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

:root {
  --background: #23293a;
  --container-bg: #262c40;
  --primary-text: #f0f2fa;
  --secondary-text: #bdc3d5;
  --accent: #6fa8ff; /* Softer blue accent */
  --border: #343a50;
  --shadow: 0 3px 16px 0 rgba(80,140,255,0.08), 0 1.5px 6px 0 rgba(44,54,80,0.10);
}

body {
  font-family: 'DM Sans', 'Satoshi', 'Inter', 'Segoe UI', Arial, sans-serif;
  background-color: var(--background);
  color: var(--primary-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 12px;
  line-height: 1.7;
  font-size: 19px;
  letter-spacing: 0.01em;
}

.header {
  text-align: left;
  margin: 0 auto 48px auto;
  width: 100%;
  max-width: 1100px;
  padding: 0 32px;
}

.name-title h1 {
  font-size: 2.8em;
  color: var(--primary-text);
  letter-spacing: 1.5px;
}

.name-title h2 {
  font-size: 1.3em;
  color: var(--accent);
  font-weight: 400;
}

.header h3 {
  color: var(--secondary-text);
  font-size: 1em;
  max-width: 560px;
}

.main-content {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  margin-bottom: 70px;
  text-align: left;
}

.section h2 {
  color: var(--accent);
  font-size: 2.1em;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border);
  display: inline-block;
  padding-bottom: 8px;
  font-weight: 650;
}

.project-card {
  background: var(--container-bg);
  padding: 22px 28px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
  text-align: left;
}

.project-card:hover {
  box-shadow: 0 7px 32px 0 rgba(79,140,255,0.11);
  transform: translateY(-3px) scale(1.01);
}

.project-card h3 {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 1.15em;
}

.project-card p {
  color: var(--secondary-text);
  font-size: 1em;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 28px;
  padding: 10px 0 22px 0;
  margin: 0 0 12px 0;
}

.skill-item {
  background: none;
  border: none;
  padding: 18px;
  border-radius: 15px;
  box-shadow: none;
  text-align: center;
  position: relative;
  z-index: 1;
}

.skill-item img {
  width: 62px;
  height: 62px;
  max-width: 90px;
  filter: grayscale(75%) brightness(0.94);
  transition: filter 0.2s, transform 0.2s;
  display: block;
  margin: 0 auto;
}

.skill-item:hover img {
  filter: grayscale(0%) brightness(1.12);
  transform: scale(1.11);
}

.skill-item::after {
  content: attr(data-skill);
  position: absolute;
  left: 50%;
  top: -17px;
  transform: translateX(-50%) translateY(-100%);
  background: var(--container-bg);
  color: var(--primary-text);
  border: 1.5px solid var(--accent);
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 1.04em;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 6px 24px 0 rgba(80,140,255,0.17);
  white-space: nowrap;
  transition: opacity 0.24s cubic-bezier(.7,0,.84,1.44), transform 0.25s;
  z-index: 10;
}

.skill-item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-110%);
}

.social-links {
  display: flex;
  justify-content: left;
  gap: 1.5rem;
  margin-top: 1.4rem;
}

.social-link {
  color: var(--accent);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 6px;
  background: none;
  padding: 0.8rem;
  transition: background 0.14s, color 0.14s, transform 0.22s;
}

.social-link:hover {
  color: #fff;
  background: #25346a;
  transform: translateY(-2px) scale(1.045);
}

.social-text {
  margin-top: 0.45rem;
  font-size: 0.91rem;
  color: var(--secondary-text);
}

.fa-2x {
  font-size: 1.5em;
}

/* Career Timeline (Experience Format) */
.timeline-section {
  padding-bottom: 0;
}

.xp-timeline {
  position: relative;
  margin: 30px 0 44px 0;
  max-width: 720px;
  padding-left: 0;
}
.xp-timeline-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  z-index: 0;
  border-radius: 2px;
}
.xp-timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 28px;
  position: relative;
}

/* Tighter grouping and less spacing for minor timeline jobs */
.xp-timeline-item--minor {
  margin-bottom: 10px;
}
.xp-timeline-item--minor + .xp-timeline-item--minor {
  margin-top: -10px;
}
.xp-timeline-dot {
  flex: none;
  width: 15px;
  height: 15px;
  background: var(--container-bg);
  border: 5px solid var(--accent);
  border-radius: 50%;
  position: relative;
  margin-right: 25px;
  z-index: 2;
  top: 26px;
  left: -2px;
  box-shadow: 0 2px 8px rgba(80,140,255,0.13);
}
.xp-timeline-content {
  background: var(--container-bg);
  border-radius: 9px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  padding: 22px 36px 22px 25px;
  min-width: 305px;
  max-width: 560px;
  margin-left: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Minor timeline items (less important jobs) */
.xp-timeline-item--minor .xp-timeline-content {
  background: #222735;
  border: 1.5px dashed var(--border);
  opacity: 0.82;
  font-size: 0.86em;
  padding: 10px 16px 10px 12px;
  box-shadow: none;
  max-width: 360px;
}
.xp-timeline-item--minor .xp-timeline-role,
.xp-timeline-item--minor .xp-timeline-company,
.xp-timeline-item--minor .xp-timeline-date,
.xp-timeline-item--minor .xp-timeline-desc {
  font-size: 0.97em;
}
.xp-timeline-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}
.xp-timeline-company {
  font-size: 1.02em;
  color: var(--secondary-text);
  font-weight: 700;
  letter-spacing: 0.013em;
}
.xp-timeline-date {
  font-size: 1em;
  color: var(--primary-text);
  font-weight: 400;
  opacity: 0.68;
}
.xp-timeline-role {
  font-size: 1.25em;
  font-weight: 700;
  color: var(--primary-text);
  margin: 0 0 1px 0;
}
.xp-timeline-desc {
  font-size: 1.03em;
  color: var(--secondary-text);
  line-height: 1.62;
  margin-bottom: 0;
  opacity: .98;
}

/* Hide old timeline versions */
.vertical-timeline, .vtimeline-line, .vtimeline-event, .vtimeline-dot, .vtimeline-card, .vtimeline-date, .vtimeline-title, .vtimeline-subtitle, .vtimeline-desc {
  display: none !important;
}

.timeline-date {
  display: inline-block;
  color: var(--primary-text);
  background: var(--accent);
  padding: 3px 13px;
  font-size: 0.96em;
  font-weight: 550;
  border-radius: 7px;
  margin-top: 7px;
  margin-bottom: 0;
}
/* Projects page styles */
.back-link {
  display: inline-block;
  margin: 1rem 0;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.18s;
}

.back-link:hover {
  color: #fff;
  text-decoration: underline;
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
  padding: 0.7rem 0;
  border-bottom: 1.5px solid var(--border);
  justify-content: left;
}

.nav-link {
  color: var(--primary-text);
  text-decoration: none;
  padding: 0.35rem 1rem;
  border-radius: 3.8px;
  transition: background 0.17s, color 0.16s;
}

.nav-link:hover, .nav-link.active {
  background: var(--accent);
  color: #fff;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: var(--secondary-text);
}

.project-link {
  color: inherit;
  text-decoration: none;
}

.project-link:hover h3 {
  color: #fff;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.project-tag {
  background: #23396a;
  color: var(--accent);
  padding: 0.28rem 0.78rem;
  border-radius: 18px;
  font-size: 0.87em;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
  margin-top: 28px;
}

.project-detail {
  max-width: 800px;
  margin: 0 auto;
}

.project-header img {
  margin-bottom: 1.4rem;
  text-align: center;
  border-radius: 10px;
}

.project-header h1 {
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.project-content {
  background: var(--container-bg);
  padding: 1.4rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.project-image {
  width: 100%;
  border-radius: 7px;
  margin-bottom: 1.1rem;
  border: 1px solid var(--border);
}
.resume-link {
  display: inline-block;
  padding: 9px 18px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.19s;
 }
 
 .resume-link:hover {
  background: #2463eb;
  color: #fff;
 }

/* Resume Page Styles */
.resume-container {
  width: 100%;
  max-width: 100vw;
  margin: 2rem auto;
  padding: 0 1rem;
}

.resume-viewer {
  width: 100%;
  min-height: 90vh;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--container-bg);
  margin-bottom: 2rem;
  height: auto;
}

.resume-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  margin: 1rem 0;
  font-weight: 500;
  transition: color 0.2s;
}
.resume-back-link:hover {
  color: #fff;
  text-decoration: underline;
}
.download-container {
  text-align: center;
  margin: 2rem 0;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 4.5px;
  font-weight: 600;
  transition: background 0.19s, transform 0.19s;
}
.download-btn:hover {
  background: #2463eb;
  transform: translateY(-2px) scale(1.03);
  color: #fff;
}
.resume-section {
  margin-bottom: 2.2rem;
}
.resume-section h2 {
  color: var(--accent);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.4rem;
  display: inline-block;
}
.project-logo {
  height: 40px;
  margin-bottom: 1rem;
}
/* Live Demo Link Styling */
.live-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  background: #141a33;
  text-decoration: none;
  margin: 1rem 0;
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 3.2px;
  transition: background 0.16s, color 0.16s;
}

.live-demo-link:hover {
  background: var(--accent);
  color: #fff;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.project-header h3 {
  margin: 0;
}
.github_link {
  color: var(--accent); 
}
.popup-message {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #222a3a;
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 1em;
  opacity: 0;
  transition: opacity 0.25s, transform 0.23s;
  transform: translateY(20px);
  z-index: 1000;
}
.popup-message.show {
  opacity: 1;
  transform: translateY(0);
}
