/* Global pastel green theme */
body {
  background-color: #d9f0d8; /* soft pastel green */
  color: #333;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Main container */
.container {
  margin: 100px auto;
  text-align: center;
  background-color: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-top: 100px;
  width: 80%;
  height: 100%;
  min-height: 400px;
  max-height: 400px;
  position: relative;
  align-items: center;
}

/* Profile picture styling */
.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #a3d9a5;
  object-fit: cover;
  margin-bottom: 20px;
}

/* Name styling */
.name {
  font-size: 2em;
  margin: 10px 0;
  color: #356b3d;
}

/* Social link icons */
.links {
  margin: 20px 0;
  height: 80%;
  position: absolute;
  top: 20px;
  right: 0;
}

.icon {
  width: 40px;
  margin: 0 10px;
  transition: transform 0.2s;
}

.icon:hover {
  transform: scale(1.1);
}

/* TryHackMe section */

.tryhackme iframe {
  width: 350px;
  height: 150px;
  overflow: hidden;
}

.thm-badge {
  width: 100px;
  max-width: 800px;
  height: 150px;
  border: none;
}

/* Navbar styling */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.7); /* light translucent bar */
  display: flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

/* Profile picture container for cropping */
.pfp-container {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;           /* hides anything outside the circle */
  border: 2px solid #a3d9a5;
}

/* Zoom in the actual image */
.nav-pfp {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.5);      /* zoom level — increase for closer crop */
  transform-origin: center;   /* keeps the zoom centered */
}

  .intro {
    font-size: 1em;
    margin: 10px 0;
    color: #356b3d;
  }

.social-media {
  text-decoration: none;
  position: absolute;
  top: 15px;
  right: 45px;
  display: flex;
}

.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  border: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  display: flex;
}
.tab button {
  background-color: #a3d9a5;
  border: 2px solid #88c792;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  align-items: center;
}
.tab button:hover {
  background-color: rgba(255, 255, 255, 0.7);
}
.tab button.active {
  background-color: #ccc;
}
.tabcontent {
  display: none;
  padding: 6px 12px;
  border-top: none;
}

.tab-container{
   margin: 100px auto;
  text-align: center;
  background-color: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-top: 100px;
  width: 50%;
  height: 100%;
  min-height: 700px;
  max-height: 800px;
  position: relative;
  align-items: center;
}

