@import url('../../style.css');

.certs-container {
  max-width: 1200px;
  margin: 120px auto 60px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-header { margin-bottom: 20px; }
.page-title { 
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 12px;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}
.page-subtitle { color: var(--muted, #9aa4ad); margin: 6px 0 0; font-size:14px; }

/* grid of cert cards */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 20px;
}

/* card */
.cert-card {
  display: flex;
  gap: 18px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.005));
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 36px rgba(0,0,0,0.28);
}

/* icon badge */
.cert-icon {
  width: 84px; height:84px; border-radius:14px;
  display:grid; place-items:center; font-size:34px;
  background: linear-gradient(135deg, rgba(110,231,183,0.9), rgba(110,231,183,0.6));
  color:#012114; border:1px solid rgba(110,231,183,0.22);
  flex-shrink:0;
}
.cert-icon.azure { background: linear-gradient(135deg, rgba(85,95,255,0.16), rgba(35,40,150,0.10)); color:#dfe8ff; border-color: rgba(85,95,255,0.18); }
.cert-icon.aws { background: linear-gradient(135deg, rgba(110,231,183,0.9), rgba(110,231,183,0.6)); color:#012114; border-color: rgba(110,231,183,0.22); }

.cert-body { flex:1; display:flex; flex-direction:column; gap:8px; }
.cert-name { margin:0; font-size:18px; color:#fff; font-weight:800; }
.cert-issuer { margin:0; color:var(--muted); font-weight:700; font-size:13px; }
.cert-meta { margin:0; color: rgba(219,230,234,0.92); font-size:14px; line-height:1.5; }

/* action button */
.action-btn {
  display:inline-flex; align-items:center; gap:10px;
  padding:9px 14px; border-radius:10px; text-decoration:none;
  font-weight:700; border:1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02); color:#fff;
  transition: transform .16s ease, box-shadow .16s ease;
}
.action-btn i { font-size:16px; }
.action-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,0.28); }

/* Header */
.header{
  position:fixed;left:0;right:0;top:0;z-index:50;
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 28px;backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-bottom:1px solid rgba(255,255,255,0.03);
}
.logo{font-weight:700;color:var(--accent);text-decoration:none;font-size:1.05rem}
.navbar{display:flex;gap:18px}
.navbar a{color:var(--muted);text-decoration:none;font-weight:600;letter-spacing:0.6px;padding:8px 10px;border-radius:8px}
.navbar a:hover{color:#fff}
.navbar a.active{color:#fff;background:linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));}

/* Hamburger Menu */
.hamburger{
  display:none;
  flex-direction:column;
  cursor:pointer;
  gap:4px;
}
.hamburger span{
  width:25px;
  height:3px;
  background:var(--accent);
  transition:0.3s;
  border-radius:2px;
}
.hamburger.active span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.hamburger.active span:nth-child(2){opacity:0}
.hamburger.active span:nth-child(3){transform:rotate(-45deg) translate(7px,-6px)}

/* ---------- Mobile Menu (fixed) - REPLACE existing .mobile-menu block ---------- */
.mobile-menu{
  position:fixed;
  top:56px;                 /* sits immediately under the header */
  left:0;
  right:0;
  bottom:0;                 /* allow full-height menu that can scroll */
  background: linear-gradient(180deg, rgba(11,13,15,0.92), rgba(11,13,15,0.88));
  backdrop-filter: blur(12px);
  border-top:1px solid rgba(255,255,255,0.03);
  transform: translateY(-8px);  /* small offset for nicer appearing animation */
  opacity:0;
  visibility:hidden;
  transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s;
  z-index:999;              /* above header so it isn't covered */
  overflow: auto;          /* make menu scrollable if tall */
  padding-bottom:20px;
}

.mobile-menu.active{
  transform: translateY(0);
  opacity:1;
  visibility:visible;
}

/* ensure mobile nav fills container and links are readable */
.mobile-nav{
  display:flex;
  flex-direction:column;
  padding:18px 14px;
  gap:8px;
}

.mobile-nav a{
  color:#eaf6f0;            /* higher contrast for readability */
  text-decoration:none;
  font-weight:700;
  letter-spacing:0.4px;
  padding:12px 14px;
  border-radius:10px;
  transition: background 0.18s;
}

.mobile-nav a:hover,
.mobile-nav a.active{
  color:#d7fff1;
  background: linear-gradient(90deg, rgba(0, 255, 153, 0.25), rgba(0, 255, 204, 0.10));
}

/* responsive */
@media (max-width:900px) {
  .certs-grid { grid-template-columns: 1fr; }
  .cert-card { padding:14px; gap:12px; }
  .cert-icon { width:72px; height:72px; font-size:30px; }
}

@media (max-width: 720px) {
  .header {
    padding: 12px 16px;
  }

  .certs-container {
    padding: 0 18px 70px;
    gap: 48px;
  }

  .navbar {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}
