/* ============================================================
   CERTIFICATIONS GRID — Responsive CSS
   ============================================================ */

#certifications {
  padding: 8rem 0;
  position: relative;
  z-index: 2;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,212,255,0.03) 0%, transparent 60%);
}

/* 2-column grid */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-bottom: 4rem;
}

/* Card base */
.cert-card {
  background: #111e2e;
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 6px;
  padding: 1.5rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  position: relative;
  overflow: hidden;
  cursor: default;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease,
              border-color 0.35s ease, box-shadow 0.35s ease;
}

.cert-card:nth-child(1) { transition-delay: 0.05s; }
.cert-card:nth-child(2) { transition-delay: 0.10s; }
.cert-card:nth-child(3) { transition-delay: 0.15s; }
.cert-card:nth-child(4) { transition-delay: 0.20s; }
.cert-card:nth-child(5) { transition-delay: 0.25s; }
.cert-card:nth-child(6) { transition-delay: 0.30s; }

.cert-card.vis {
  opacity: 1;
  transform: translateY(0);
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00d4ff, #00ff9d, transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.cert-card:hover {
  border-color: rgba(0,212,255,0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,212,255,0.15);
}

.cert-card:hover::before { opacity: 1; }

/* Icon box */
.cert-icon-wrap {
  width: 54px;
  height: 54px;
  min-width: 54px;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.cert-card:hover .cert-icon-wrap {
  background: rgba(0,212,255,0.14);
  border-color: #00d4ff;
}

.cert-emoji {
  font-size: 1.6rem;
  line-height: 1;
  display: block;
}

/* Text */
.cert-body {
  flex: 1;
  min-width: 0;
}

.cert-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f0f6fc;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.cert-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cert-issuer {
  font-size: 0.72rem;
  color: #00d4ff;
  letter-spacing: 0.05em;
}

.cert-year {
  font-size: 0.65rem;
  color: #4a6578;
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.12);
  padding: 0.15em 0.6em;
  border-radius: 3px;
}

/* CERTIFIED badge */
.cert-badge {
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  color: #00ff9d;
  border: 1px solid rgba(0,255,157,0.3);
  background: rgba(0,255,157,0.05);
  padding: 0.25em 0.65em;
  border-radius: 3px;
  align-self: flex-start;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── EDUCATION BLOCK ── */
.education-block {
  border-top: 1px solid rgba(0,212,255,0.12);
  padding-top: 3rem;
}

.edu-card {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  background: #111e2e;
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 6px;
  padding: 1.8rem 2.5rem;
  max-width: 560px;
  width: 100%;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.edu-card:hover {
  border-color: rgba(0,212,255,0.4);
  box-shadow: 0 8px 30px rgba(0,212,255,0.12);
  transform: translateY(-3px);
}

.edu-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.edu-degree {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f0f6fc;
  margin-bottom: 0.35rem;
}

.edu-school {
  font-size: 0.78rem;
  color: #00d4ff;
  letter-spacing: 0.08em;
}

/* ── RESPONSIVE — 1024px ── */
@media (max-width: 1024px) {
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  #certifications { padding: 6rem 0; }
}

/* ── RESPONSIVE — 768px ── */
@media (max-width: 768px) {
  #certifications { padding: 5rem 0; }
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }
  .cert-card {
    padding: 1.2rem 1.3rem;
    gap: 1rem;
  }
  .cert-icon-wrap {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }
  .cert-emoji { font-size: 1.4rem; }
  .cert-name { font-size: 0.88rem; }
  .cert-issuer { font-size: 0.68rem; }
  .edu-card {
    padding: 1.4rem 1.8rem;
    gap: 1.2rem;
  }
  .edu-degree { font-size: 0.95rem; }
  .edu-school { font-size: 0.74rem; }
  .education-block { padding-top: 2rem; }
}

/* ── RESPONSIVE — 640px ── */
@media (max-width: 640px) {
  .certs-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .cert-card { padding: 1.1rem 1.2rem; }
  .cert-badge { display: none; }
  .edu-card {
    padding: 1.4rem 1.5rem;
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
    display: flex;
  }
}

/* ── RESPONSIVE — 480px ── */
@media (max-width: 480px) {
  #certifications { padding: 4rem 0; }
  .certs-grid { gap: 0.7rem; }
  .cert-card {
    padding: 1rem 1rem;
    gap: 0.8rem;
  }
  .cert-icon-wrap {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
  .cert-emoji { font-size: 1.2rem; }
  .cert-name {
    font-size: 0.82rem;
    margin-bottom: 0.3rem;
  }
  .cert-issuer { font-size: 0.65rem; }
  .cert-year { font-size: 0.6rem; }
  .cert-meta { gap: 0.4rem; }
  .edu-card {
    padding: 1.2rem;
    gap: 0.6rem;
  }
  .edu-icon { font-size: 1.8rem; }
  .edu-degree { font-size: 0.88rem; }
  .edu-school { font-size: 0.7rem; }
  .education-block { padding-top: 1.5rem; }
}

/* ── RESPONSIVE — 360px (small phones) ── */
@media (max-width: 360px) {
  .cert-card { padding: 0.9rem; gap: 0.7rem; }
  .cert-icon-wrap { width: 36px; height: 36px; min-width: 36px; }
  .cert-emoji { font-size: 1.1rem; }
  .cert-name { font-size: 0.78rem; }
  .cert-issuer { font-size: 0.62rem; }
}
