/* About page specific styles */

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

h2 {
  text-align: center;
}

h3 {
  color: var(--text-primary);
  font-size: clamp(1.1rem, 3vw, 1.3rem);
}

.nav-back {
  margin-bottom: 1.5rem;
}

.nav-back a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  background: var(--surface-light);
  transition: all 0.2s ease;
  border: 1px solid var(--border-subtle);
  font-size: 0.9375rem;
}

.nav-back a:hover {
  background: var(--accent-blue);
  color: white;
  text-decoration: none;
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-sm);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
}

.about-card {
  background: var(--surface-dark);
  padding: 2rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.about-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.about-card h3 {
  margin-top: 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-direction: column;
}

.card-number {
  display: inline-block;
  background: var(--accent-blue);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  margin-right: 0.75rem;
  margin-bottom: 0.5rem;
}

.cta-section {
  background: var(--accent-blue);
  color: white;
  padding: 3rem 2.5rem;
  border-radius: 0;
  text-align: center;
  margin: 4rem 0 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--accent-blue);
}

.cta-section h3 {
  color: white;
  margin-top: 0;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.0625rem;
  max-width: 600px;
  margin: 1rem auto;
}

.cta-button {
  display: inline-block;
  background: white;
  color: var(--accent-blue);
  padding: 0.875rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1.5rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
  font-size: 1rem;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  background: var(--surface-dark);
}

.timeline {
  margin: 2rem 0;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-blue);
  border-radius: 50%;
  margin-right: 1rem;
  margin-top: 0.5rem;
  flex-shrink: 0;
  border: 2px solid var(--accent-light);
}

.timeline-content {
  flex: 1;
}

.timeline-year {
  font-weight: 600;
  color: var(--accent-blue);
  font-size: 0.9375rem;
  font-family: inherit;
  margin-bottom: 0.25rem;
}

.skills-section {
  margin: 4rem 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
}

.skills-table {
  background: var(--surface-dark);
  border-radius: 6px;
  padding: 2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.15s ease;
}

.skills-table:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.skills-table h3 {
  margin-top: 0;
  margin-bottom: 1.75rem;
  color: var(--text-primary);
  text-align: left;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  font-family: inherit;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.skill-category {
  margin-bottom: 1.5rem;
}

.skill-category:last-child {
  margin-bottom: 0;
}

.skill-category h4 {
  color: var(--text-primary);
  margin: 0 0 0.875rem 0;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-item {
  background: var(--secondary-bg);
  color: var(--text-secondary);
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-subtle);
  transition: all 0.15s ease;
}

.skill-item:hover {
  background: var(--accent-light);
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.soft-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.soft-skill-item {
  background: var(--accent-light);
  color: var(--accent-blue);
  padding: 0.875rem;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-size: clamp(0.8125rem, 2vw, 0.875rem);
}

.soft-skill-item:hover {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
  }
  
  .about-card {
    padding: 1.75rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .skills-table {
    padding: 1.75rem;
  }
  
  .soft-skills {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  
  .cta-section {
    padding: 2.5rem 1.75rem;
  }
}

@media (max-width: 480px) {
  .about-card {
    padding: 1.5rem;
    border-left-width: 2px;
  }
  
  .skills-table {
    padding: 1.5rem;
    border-left-width: 2px;
  }
  
  .cta-section {
    padding: 2rem 1.5rem;
    margin: 3rem 0 1.5rem;
  }
  
  .soft-skills {
    grid-template-columns: 1fr;
  }
}
