/* Minimalist styling for personal website */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Global improvements */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
}

/* Headings */
h1, h2, h3 {
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
  scroll-margin-top: 2rem;
}

h2 {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

/* Links */
a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #5a67d8;
}

a.underline {
  text-decoration: underline;
  text-underline-offset: 2px;
}

a.underline:hover {
  text-decoration: underline;
}

/* Card styling */
.card {
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: #ffffff;
}

/* Button styling */
.btn-primary {
  background: #2c3e50;
  border: 1px solid #2c3e50;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: #1a252f;
  border-color: #1a252f;
}

/* Link cards - minimal style */
.link-card {
  background: transparent;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  text-align: center;
  transition: all 0.2s ease;
}

.link-card:hover {
  border-color: #5a67d8;
  background: #fafafa;
}

.link-card a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #2c3e50;
}

.link-card a:hover {
  color: #5a67d8;
}

/* Grid */
.grid {
  gap: 1.5rem;
}

/* Lists */
ul, ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Navbar */
.navbar {
  border-bottom: 1px solid #f0f0f0;
}

/* Skills section - minimalist list with progress bars */
.skills-section {
  margin-bottom: 2rem;
}

.skills-section h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6c757d;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skills-section h3:first-child {
  margin-top: 0;
}

.skills-section p {
  margin: 0.5rem 0;
  color: #2c3e50;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Grid column subheadings */
.grid h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6c757d;
  margin-top: 0;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.grid p {
  margin: 0.5rem 0;
  color: #2c3e50;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Skill level bar - 5 categorical levels with uniform color coding */
.skill-level-bar {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.level-segment {
  width: 18px;
  height: 6px;
  background: #e0e0e0;
  border-radius: 2px;
  transition: background 0.3s ease;
}

.skill-level-bar.level-1 .level-segment.active {
  background: #ffc107;
}

.skill-level-bar.level-2 .level-segment.active {
  background: #9ca728d4;
}

.skill-level-bar.level-3 .level-segment.active {
  background: #28a746b4;
}

.skill-level-bar.level-4 .level-segment.active {
  background: #28a745;
}

.skill-level-bar.level-5 .level-segment.active {
  background: #198754;
}

/* Legacy skill bar styles (for backward compatibility) */
.skill-bar {
  display: inline-block;
  width: 120px;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  margin-left: auto;
  flex-shrink: 0;
}

.skill-fill {
  display: block;
  height: 100%;
  background: #5a67d8;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.skill-advanced {
  width: 100%;
}

.skill-proficient {
  width: 80%;
}

.skill-intermediate {
  width: 60%;
}

.skill-basic {
  width: 40%;
}

/* Award cards - minimalist style */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.award-card {
  background: #fdfbf3;
  border: 1px solid #ddd5b8;
  border-radius: 8px;
  padding: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.award-card:hover {
  border-color: #c9b882;
  box-shadow: 0 4px 12px rgba(201, 184, 130, 0.15);
  transform: translateY(-2px);
}

.award-card strong {
  display: block;
  color: #8b7424;
  font-size: 0.95rem;
  margin-bottom: -0.5rem;
  font-weight: 600;
}

.award-card p {
  font-size: 0.85rem;
  margin: 0.25rem 0;
  color: #2c3e50;
}

.award-card em {
  display: block;
  color: #6c757d;
  font-size: 0.85rem;
  font-style: normal;
}

/* Simple list styling */
.simple-list {
  margin-bottom: 2rem;
}

.simple-list h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.simple-list h3:first-child {
  margin-top: 0;
}

.simple-list ul {
  list-style: none;
  padding-left: 0;
}

.simple-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.simple-list li:last-child {
  border-bottom: none;
}

/* Project cards */
.project-card {
  border-left: 2px solid #2c3e50;
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

/* Blog posts */
.blog-post {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.blog-post:last-child {
  border-bottom: none;
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
  border-left: 2px solid #e0e0e0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2c3e50;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }
  
  .grid {
    gap: 1rem;
  }
}

/* Skill Button Cards */
.skill-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  justify-content: flex-start;
}

.skill-buttons.soft-skills {
  justify-content: flex-end;
}

.skill-btn {
  display: inline-block;
  padding: 0.15rem 0.75rem;
  border-radius: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.skill-btn.hard-skill {
  background: #367fb352;
  color: #1976d2;
  border-color: #aaaaaa;
}

.skill-btn.hard-skill:hover {
  background: #bbdefb;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
}

.skill-btn.soft-skill {
  background: #cea2d57f;
  color: #7b1fa2;
  border-color: #aaaaaa;
}

.skill-btn.soft-skill:hover {
  background: #e7c8f5;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(123, 31, 162, 0.2);
}

/* Experience cards - large minimalist cards */
.experience-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.experience-card {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.experience-card:hover {
  border-color: #5a67d8;
  box-shadow: 0 4px 12px rgba(90, 103, 216, 0.15);
  transform: translateY(-2px);
}

.experience-card h3 {
  color: #1a1a1a;
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  border: none;
  padding: 0;
}

.experience-card strong {
  display: block;
  color: #2c3e50;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.experience-card em {
  display: block;
  color: #6c757d;
  font-size: 0.8rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.experience-card p {
  color: #2c3e50;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.experience-card p:last-child {
  margin-bottom: 0;
}

/* Language skill bars - blue color scheme */
.skill-level-bar.language-bar.level-1 .level-segment.active {
  background: #bbdefb;
}

.skill-level-bar.language-bar.level-2 .level-segment.active {
  background: #64b5f6;
}

.skill-level-bar.language-bar.level-3 .level-segment.active {
  background: #2196f3;
}

.skill-level-bar.language-bar.level-4 .level-segment.active {
  background: #1976d2;
}

.skill-level-bar.language-bar.level-5 .level-segment.active {
  background: #0d47a1;
}

/* Certification cards - teal/green minimalist theme */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.cert-card {
  background: #f5faf9;
  border: 1px solid #b2dfdb;
  border-radius: 8px;
  padding: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cert-card:hover {
  border-color: #4db6ac;
  box-shadow: 0 4px 12px rgba(77, 182, 172, 0.15);
  transform: translateY(-2px);
}

.cert-card strong {
  display: block;
  color: #00796b;
  font-size: 0.95rem;
  margin-bottom: -0.5rem;
  font-weight: 600;
}

.cert-card p {
  font-size: 0.85rem;
  margin: 0.25rem 0;
  color: #2c3e50;
}

.cert-card em {
  display: block;
  color: #6c757d;
  font-size: 0.85rem;
  font-style: normal;
}

@media (prefers-color-scheme: dark) {
  .cert-card {
    background: #1a1a1a;
    border-color: #00695c;
  }
  
  .cert-card:hover {
    border-color: #4db6ac;
  }
  
  .cert-card strong {
    color: #4db6ac;
  }
}

/* Workshop cards - blue color scheme */
.workshop-card {
  background: #f0f7ff;
  border: 1px solid #bbdefb;
  border-radius: 8px;
  padding: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.workshop-card:hover {
  border-color: #42a5f5;
  box-shadow: 0 4px 12px rgba(66, 165, 245, 0.15);
  transform: translateY(-2px);
}

.workshop-card strong {
  display: block;
  color: #1565c0;
  font-size: 0.95rem;
  margin-bottom: -0.5rem;
  font-weight: 600;
}

.workshop-card p {
  font-size: 0.85rem;
  margin: 0.25rem 0;
  color: #2c3e50;
}

.workshop-card em {
  display: block;
  color: #6c757d;
  font-size: 0.85rem;
  font-style: normal;
}

@media (prefers-color-scheme: dark) {
  .workshop-card {
    background: #1a1a1a;
    border-color: #1565c0;
  }
  
  .workshop-card:hover {
    border-color: #42a5f5;
  }
  
  .workshop-card strong {
    color: #42a5f5;
  }
}

/* Project cards - minimalist design */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: -1rem;
  margin: 1.5rem 0;
}

.project-card {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.25rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
  border-color: #5a67d8;
  box-shadow: 0 4px 12px rgba(90, 103, 216, 0.15);
  transform: translateY(-2px);
}

.project-card h3 {
  color: #1a1a1a;
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  border: none;
  padding: 0;
}

.project-card p {
  color: #2c3e50;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-card strong {
  color: #2c3e50;
  font-size: 0.85rem;
  font-weight: 600;
}

.project-card em {
  color: #6c757d;
  font-size: 0.85rem;
  font-style: normal;
}

.project-card a {
  color: #5a67d8;
  font-size: 0.85rem;
  text-decoration: none;
}

.project-card a:hover {
  text-decoration: underline;
}

