/* Card Styles - Timeline & Project Cards */

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  position: relative;
  padding-left: 0;
  margin-top: 0;
}

.timeline::before {
  display: none;
}

/* Timeline Item */
.timeline-item {
  position: relative;
  margin-bottom: 0;
  padding-left: 0;
  border-bottom: none;
  padding-bottom: 0;
  padding: var(--space-6);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-none);
  background: #ffffff;
}

.timeline-item:last-child {
  border: 1px solid var(--neutral-200);
  padding-bottom: var(--space-6);
}

.timeline-content {
  background: transparent;
  border-radius: 0;
  padding: 0;
  transition: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  position: relative;
  overflow: visible;
}

.timeline-content::before {
  display: none;
}

.timeline-item:hover .timeline-content {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.timeline-item:hover .timeline-content::before {
  display: none;
}

/* Timeline Title */
.timeline-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  font-family: var(--font-sans);
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-top: 0;
}

/* Timeline Company */
.timeline-company {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--neutral-700);
  margin-bottom: var(--space-1);
  font-family: var(--font-sans);
  letter-spacing: -0.2px;
}

/* Timeline Period */
.timeline-period {
  display: block;
  background: transparent;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.875rem;
  padding: 0;
  border-radius: var(--radius-none);
  margin-bottom: var(--space-3);
  border: none;
  text-transform: normal;
  letter-spacing: 0;
  font-style: italic;
}

/* Timeline Description */
.timeline-description {
  color: var(--neutral-700);
  margin-bottom: var(--space-3);
  line-height: 1.7;
  font-size: 1rem;
}

/* Timeline Tech Tags */
.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-8);
}

/* Project Card */
.project-card {
  background: #ffffff;
  border-radius: var(--radius-none);
  padding: var(--space-6);
  transition: var(--transition-all);
  height: auto;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--neutral-200);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: relative;
  overflow: visible;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--neutral-200);
  padding-bottom: var(--space-6);
}

.project-card:last-child {
  border: 1px solid var(--neutral-200);
  padding-bottom: var(--space-6);
}

.project-card::before {
  display: none;
}

/* Project Header */
.project-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
  margin-bottom: var(--space-3);
  z-index: 1;
}

/* Project Title */
.project-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0;
  font-family: var(--font-sans);
  letter-spacing: -0.5px;
  line-height: 1.3;
}

/* Project Year/Status */
.project-year {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-muted);
  background: transparent;
  padding: 0;
  border-radius: var(--radius-none);
  border: none;
  font-weight: 400;
  text-transform: normal;
  letter-spacing: 0;
  font-style: italic;
}

/* Project Description */
.project-description {
  color: var(--neutral-700);
  margin-bottom: var(--space-4);
  flex-grow: 1;
  z-index: 1;
  line-height: 1.7;
  font-size: 1rem;
}

/* Project Tech Tags */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  z-index: 1;
  margin-bottom: var(--space-4);
}

/* Tech Tag */
.tech-tag {
  display: inline-block;
  padding: var(--space-1) var(--space-2) var(--space-1) 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 400;
  border-radius: var(--radius-none);
  transition: none;
  border: none;
  backdrop-filter: none;
  margin-right: var(--space-2);
  position: relative;
}

.tech-tag:after {
  content: none;
}

.tech-tag:last-child:after {
  display: none;
}

.tech-tag:hover {
  background: transparent;
  color: var(--text-primary);
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

/* Project CTA Wrapper */
.project-cta-wrapper {
  display: flex;
  justify-content: flex-start;
  margin-top: auto;
}

/* Project CTA Link */
.project-cta {
  display: inline;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) 100%) bottom left;
  background-size: 0% 2px;
  background-repeat: no-repeat;
  transition: background-size 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-cta:hover {
  background-size: 100% 2px;
}
