/* ==================================================================
   CERTIFICATES, SKILLS & PROJECTS — STRICT B&W REFERENCE THEME
   ================================================================== */

.skills-section {
  padding: 6rem 1.5rem;
  background: transparent;
  position: relative;
  z-index: 10;
}

.skills-container {
  max-width: var(--container-max, 1140px);
  margin: 0 auto;
}

/* SECTION HEADER CENTERED */
.section-header-center {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag-sub {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-silver, #a1a1aa);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title-main {
  font-family: var(--font-display, 'Source Code Pro', monospace);
  font-optical-sizing: auto;
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

/* CERTIFICATES 3-CARD GRID MATCHING REFERENCE */
.cert-reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.cert-card-item {
  background: var(--bg-card, rgba(8, 8, 8, 0.85));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-card, 12px);
  padding: 1.75rem;
  backdrop-filter: var(--glass-blur, blur(16px));
  transition: var(--transition-smooth, all 0.3s ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cert-card-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong, rgba(255, 255, 255, 0.3));
  background: var(--bg-card-hover, rgba(16, 16, 16, 0.95));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

.cert-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.cert-title {
  font-family: var(--font-display, 'Source Code Pro', monospace);
  font-optical-sizing: auto;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.cert-year-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.cert-issuer {
  font-size: 0.85rem;
  color: var(--text-silver, #a1a1aa);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

/* TECH TAG PILLS */
.cert-tags-wrapper {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.tag-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-silver, #a1a1aa);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.cert-view-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth, all 0.3s ease);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  width: 100%;
}

.cert-view-link:hover {
  text-decoration: underline;
}

/* PROJECTS GRID */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin: 0 auto;
}

.skill-card {
  background: var(--bg-card, rgba(8, 8, 8, 0.85));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-card, 12px);
  padding: 2rem;
  backdrop-filter: var(--glass-blur, blur(16px));
  transition: var(--transition-smooth, all 0.3s ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong, rgba(255, 255, 255, 0.3));
  background: var(--bg-card-hover, rgba(16, 16, 16, 0.95));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

.skill-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.skill-card h3 {
  font-family: var(--font-display, 'Source Code Pro', monospace);
  font-optical-sizing: auto;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.skill-card p {
  color: var(--text-silver, #a1a1aa);
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-card {
  cursor: pointer;
  min-height: 280px;
}

.card-action {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  width: 100%;
}

/* MODAL STYLES (STRICT B&W) */
.project-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.project-modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.project-modal-content {
  background: #080808;
  border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.3));
  border-radius: var(--radius-card, 12px);
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2.25rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.98);
  position: relative;
  font-family: var(--font-body, 'Source Code Pro', monospace);
  font-optical-sizing: auto;
  color: #ffffff;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.modal-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-silver);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
}

.modal-header h2 {
  font-size: 1.65rem;
  font-weight: 800;
  font-family: var(--font-display, 'Source Code Pro', monospace);
  font-optical-sizing: auto;
  color: #ffffff;
}

.modal-close-btn {
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-silver);
  font-size: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: #ffffff;
  color: #000000;
}

.modal-lead-desc {
  font-size: 1.05rem;
  color: var(--text-silver);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.modal-section {
  margin-bottom: 1.75rem;
}

.modal-section h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

.modal-tech-list {
  list-style: disc;
  padding-left: 1.25rem;
}

.modal-tech-list li {
  margin-bottom: 0.5rem;
  color: var(--text-silver);
  font-size: 0.95rem;
  line-height: 1.55;
}

.modal-meta {
  display: flex;
  gap: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.meta-item strong {
  color: #ffffff;
}
