/* CAREER TIMELINE */
.career-timeline {
  margin-top: 1rem;
}

.timeline {
  position: relative;
  max-width: 820px;
  margin: 2rem 0 0;
  padding-left: 2rem;
}

/* vertical line running down the timeline */
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #d0d0d0;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.25rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* dot sitting on the line */
.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #008AFF;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #008AFF;
}

.timeline-date {
  display: inline-block;
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #008AFF;
}

.timeline-role {
  margin: 0.15rem 0 0.1rem;
  font-size: 1.3rem;
}

.timeline-company {
  display: block;
  font-size: 0.95rem;
  color: #777;
}

.timeline-highlights {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
}

.timeline-highlights li {
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
  .timeline::before {
    background: #444;
  }
  .timeline-dot {
    border-color: #000;
  }
  .timeline-company {
    color: #aaa;
  }
}

/* HOME HERO / PROFILE INTRO */
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  text-align: left;
}

.hero-photo {
  width:250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hero-text {
  max-width: 520px;
}

.hero-text h1 {
  margin: 0 0 0.75rem;
  font-size: 44px;
}

.hero-blurb {
  font-size: 1.80rem;
  line-height: 1.5;
  color: #555;
  margin: 0;
}

@media (prefers-color-scheme: dark) {
  .hero-blurb {
    color: #ccc;
  }
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  background: transparent;
  color: #008AFF;
  border: 2px solid #008AFF;
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.resume-btn:hover,
.resume-btn:focus {
  background: #008AFF;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #008AFF;
  color: #008AFF;
  font-size: 1.2rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover,
.social-icon:focus {
  background: #008AFF;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .hero-actions {
    justify-content: center;
  }
}

/* FEATURED PROJECTS GRID */
.projects.featured .project-grid {
  display: grid !important; /* override Bootstrap */
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.projects.more .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* .project-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.2s ease;
  background: #fff;

  display: flex;
  flex-direction: column;
  height: 100%;
} */

.project-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e5e5;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  position: relative;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.project-card img {
  width: 100%;
  height: 200px;       /* Force a consistent height */
  object-fit: cover;   /* Crops the image center so it doesn't look squashed */
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  align-self: center;
  margin-top: auto;
  margin-bottom: 1rem;
  padding: 0.5rem 1.25rem;
  background: transparent;
  color: #008AFF;
  border: 2px solid #008AFF;
  border-radius: 8px;
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.github-link:hover,
.github-link:focus {
  background: #008AFF;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.project-card img {
  width: 100%;
  height: 200px;        /* 1. FORCE EXACT HEIGHT */
  object-fit: cover;    /* 2. CROP TO FIT (No stretching) */
  display: block;       /* 3. REMOVE GHOST WHITESPACE */
  border-radius: 8px;
  margin-bottom: 1rem;  /* Consistentbox-shadow: 0 10px 20px rgba(0,0,0,0.1); /* Adds a nice pop on hover */ spacing */
  background-color: #f8f8f8;
}

.project-card h3 {
  text-align: center;
  margin: 0.5rem 0;
  color: #333 !important;

  /* FORCE 2 LINES HEIGHT */
  min-height: 3rem;       /* Adjust based on your font size */
  display: -webkit-box;
  -webkit-line-clamp: 2;  /* Cut off after 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;

  /* VERTICAL CENTER THE TEXT (Optional) */
  display: flex;
  align-items: center;
  justify-content: center;
}


.project-card p {
  text-align: center;
  font-size: 1.5rem;
  color: #555;

  /* TRUNCATE TEXT AFTER 3 LINES */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-link {
  margin-top: auto;      /* Pushes the link to the very bottom of the flex container */
  display: inline-block; /* Ensures the margin applies correctly */
  text-align: center;    /* Optional: centers the button text if you want */
}

/* RESPONSIVE GRID */
@media (max-width: 992px) {
  .projects.featured .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .projects.featured .project-grid {
    grid-template-columns: 1fr;
  }
}

/* RESPONSIVE YOUTUBE EMBED */
.video-container iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

/* NAV DROPDOWN */
.navlinks-container {
  position: relative;
}
.navlinks-container .navlinks-children {
  display: none;
  position: absolute;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  top: 100%;
  left: 0;
  min-width: 200px;
  z-index: 1000;
}
.navlinks-container:hover .navlinks-children {
  display: block;
}
.navlinks-container .navlinks-children a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
}
.navlinks-container .navlinks-children a:hover {
  background-color: #f2f2f2;
}
