/* Basic reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: #fff;
  background: url("background/offensive_security_wallpapers_by_sungjoshwoo_dfsak07-pre.jpg") no-repeat center center fixed;
  background-size: cover;
  scroll-behavior: smooth;
}

/* dark overlay for readability */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: -1;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 12px;
  z-index: 999;
  text-align: center;
}
.navbar ul {
  display: inline-flex;
  background: rgba(0,0,0,0.55);
  padding: 10px 18px;
  border-radius: 999px;
  gap: 24px;
  list-style: none;
}
.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}
.navbar a:hover { color: #00bfff; }

/* HERO */
.hero {
  text-align: center;
  padding: 70px 20px;
}
.hero h1 { font-size: 48px; margin-bottom: 8px; }
.hero p { color: #d1d5db; margin-bottom: 12px; }
.links a { margin: 0 10px; color: #00bfff; text-decoration: none; font-weight: 600; }

/* Sections */
section {
  max-width: 980px;
  margin: 40px auto;
  padding: 28px 20px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
}
section h2 {
  font-size: 26px;
  display: inline-block;
  border-bottom: 2px solid #00bfff;
  padding-bottom: 6px;
  margin-bottom: 14px;
}

/* Skills */
#skills ul {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  list-style: none;
  margin-top: 12px;
}
#skills li {
  background: rgba(255,255,255,0.04);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

/* Experience */
.exp-item { margin-bottom: 12px; }
.exp-item h3 { font-size: 18px; }

/* Projects list */
#projects ul { list-style: disc inside; margin-top: 12px; }

/* Certifications gallery */
.cert-intro { margin-bottom: 12px; color: #cbd5e1; }
.cert-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 12px;
}
.cert-item {
  background: rgba(255,255,255,0.03);
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cert-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: transform .25s;
}
.cert-item:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(2,6,23,0.6); }
.cert-item img:hover { transform: scale(1.03); }

/* Contact button */
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #00bfff;
  color: #000;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s;
}
.contact-btn:hover { transform: translateY(-4px); }
.arrow { transition: transform .25s; }
.contact-btn:hover .arrow { transform: translateX(6px); }

/* Footer */
.footer { text-align: center; color: #94a3b8; padding: 18px; margin-top: 14px; }

/* Responsive */
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .cert-item img { height: 130px; }
}
/* TryHackMe Live Badge */
.tryhackme-live {
  margin-top: 22px;
  text-align: center;
}

.tryhackme-live h3 {
  margin-bottom: 10px;
  color: #e5e7eb;
  font-size: 18px;
}

.tryhackme-live iframe {
  width: 100%;
  max-width: 420px;
  height: 120px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}
