/* Sections stylesheet: moved styles for Projects (portfolio) and Certifications
   Location: assets/css/sections/sections.css
   Purpose: Consolidate section-specific styles into a single file so they are easier to maintain.
*/

/*--------------------------------------------------------------
# Portfolio / Projects Section (migrated from main.css)
--------------------------------------------------------------*/
.portfolio .portfolio-filters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  margin: 0 10px;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 10px;
  transition: all 0.3s ease-in-out;
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: var(--accent-color);
}

.portfolio .portfolio-filters li:first-child {
  margin-left: 0;
}

.portfolio .portfolio-filters li:last-child {
  margin-right: 0;
}

@media (max-width: 575px) {
  .portfolio .portfolio-filters li {
    font-size: 14px;
    margin: 0 5px;
  }
}

.portfolio .portfolio-content {
  position: relative;
  overflow: hidden;
}

.portfolio .portfolio-content img {
  transition: 0.3s;
}

.portfolio .portfolio-content .portfolio-info {
  opacity: 0;
  position: absolute;
  inset: 0;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px;
}

.portfolio .portfolio-content .portfolio-info h4 {
  font-size: 14px;
  padding: 5px 10px;
  font-weight: 400;
  color: #ffffff;
  display: inline-block;
  background-color: var(--accent-color);
}

.portfolio .portfolio-content .portfolio-info p {
  position: absolute;
  bottom: 10px;
  text-align: center;
  display: inline-block;
  left: 0;
  right: 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.portfolio .portfolio-content .portfolio-info .preview-link,
.portfolio .portfolio-content .portfolio-info .details-link {
  position: absolute;
  left: calc(50% - 40px);
  font-size: 26px;
  top: calc(50% - 14px);
  color: #fff;
  transition: 0.3s;
  line-height: 1.2;
}

.portfolio .portfolio-content .portfolio-info .preview-link:hover,
.portfolio .portfolio-content .portfolio-info .details-link:hover {
  color: var(--accent-color);
}

.portfolio .portfolio-content .portfolio-info .details-link {
  left: 50%;
  font-size: 34px;
  line-height: 0;
}

.portfolio .portfolio-content:hover .portfolio-info {
  opacity: 1;
}

.portfolio .portfolio-content:hover img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Projects (cards) - migrated from inline styles in index.html
--------------------------------------------------------------*/
.project-card {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 18px;
  height: 100%;
  transition: box-shadow 0.2s ease-in-out;
}
.project-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.project-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.project-header h4 {
  margin: 0 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
}
.project-header a {
  text-decoration: none;
  color: #0366d6;
}
.project-header a:hover {
  text-decoration: underline;
}
.project-icon {
  font-size: 1.6rem;
  color: #24292e;
}
.repo-metrics {
  font-size: 0.85rem;
  margin-top: 10px;
  color: #586069;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}
.fork-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}
.tags {
  margin: 10px 0;
}
.tag {
  display: inline-block;
  background: #f1f8ff;
  color: #0366d6;
  font-size: 0.75rem;
  padding: 4px 10px;
  margin: 2px;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.tag:hover {
  background: #0366d6;
  color: #fff;
  box-shadow: 0 2px 6px rgba(3,102,214,0.3);
}

/*--------------------------------------------------------------
# Certifications (migrated from inline styles in index.html)
--------------------------------------------------------------*/
.cert-card {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.cert-img img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f9f9f9;
  padding: 20px;
}
.cert-info {
  padding: 16px;
}
.cert-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0366d6;
  margin-bottom: 10px;
}
.cert-info p {
  font-size: 0.9rem;
  color: #586069;
  margin-bottom: 15px;
}
.cert-links a {
  font-size: 0.85rem;
  margin: 0 8px;
  color: #0366d6;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}
.cert-links a i {
  margin-right: 4px;
}
.cert-links a:hover {
  color: #023e8a;
}

/*--------------------------------------------------------------
# Utility: Highlight (subtle)
# Applied to inline elements and list items to emphasize key points.
# This is intentionally subtle and accessible; adjust later if you want a stronger look.
--------------------------------------------------------------*/
.highlight {
   color: #2c3e50;
   font-weight: 600;
}

/* End of sections.css */
