/* ================================
   Custom Styles for Academic Homepage
   ================================ */

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero .tagline {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 2rem;
}

.hero .cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: #0366d6;
  color: white;
}

.btn-primary:hover {
  background-color: #0256c5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(3, 102, 214, 0.3);
}

.btn-secondary {
  background-color: white;
  color: #0366d6;
  border: 2px solid #0366d6;
}

.btn-secondary:hover {
  background-color: #f6f8fa;
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  color: #586069;
  border: 2px solid #d1d5da;
}

.btn-ghost:hover {
  border-color: #0366d6;
  color: #0366d6;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-card {
  background: white;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #0366d6;
}

.project-card__thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
  background-color: #f6f8fa;
}

.project-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #24292e;
}

.project-card__title a {
  color: #24292e;
  text-decoration: none;
}

.project-card__title a:hover {
  color: #0366d6;
}

.project-card__summary {
  color: #586069;
  margin-bottom: 1rem;
  line-height: 1.6;
  flex-grow: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-card__tag {
  background-color: #f1f8ff;
  color: #0366d6;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
}

.project-card__links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-card__links a {
  font-size: 0.875rem;
  color: #0366d6;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid #0366d6;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.project-card__links a:hover {
  background-color: #0366d6;
  color: white;
}

/* Section Headers */
.section-header {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  color: #24292e;
}

/* CV Page Styles */
.cv-section {
  margin-bottom: 2.5rem;
}

.cv-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #24292e;
  border-bottom: 2px solid #0366d6;
  padding-bottom: 0.5rem;
}

.cv-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cv-item {
  margin-bottom: 1.5rem;
}

.cv-item__title {
  font-weight: 700;
  color: #24292e;
}

.cv-item__org {
  color: #0366d6;
  font-weight: 600;
}

.cv-item__date {
  color: #586069;
  font-style: italic;
}

.cv-item__desc {
  margin-top: 0.5rem;
  color: #586069;
  line-height: 1.6;
}

.cv-print-btn {
  margin-bottom: 2rem;
  text-align: center;
}

/* Print Styles for CV */
@media print {
  .hero, .cta-buttons, nav, footer, .cv-print-btn {
    display: none !important;
  }
  
  body {
    font-size: 11pt;
    line-height: 1.4;
  }
  
  .cv-section {
    page-break-inside: avoid;
  }
  
  .cv-section h2 {
    border-bottom: 1px solid #000;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .tagline {
    font-size: 1rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hero .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 1rem;
  }
  
  .project-card {
    padding: 1rem;
  }
}
