/* ===== Reset & Base ===== */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #f1f5f9;
  color: #1e293b;
  line-height: 1.6;
}
h1, h3, h4 {
  color: #0f4c5c;
}
a {
  color: #2a7f6e;
  text-decoration: none;
  font-weight: 500;
}
a:hover {
  text-decoration: underline;
  color: #1d5e4f;
}

/* ===== Header ===== */
header {
  padding: 3em 2em;
  text-align: center;
  background-image: url('bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  position: relative;
}
header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 76, 92, 0.7);
  z-index: 0;
}
header > * {
  position: relative;
  z-index: 1;
}
header img {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 4px solid #2a7f6e;
  margin-bottom: 20px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
header section p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.15rem;
  font-weight: 300;
  background: rgba(0,0,0,0.35);
  padding: 1.2rem 1.8rem;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

/* ===== Main Container ===== */
main {
  max-width: 1300px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ===== Two‑column Layout (GitHub / Blog) ===== */
.two-column-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  align-items: start;
}

/* ===== Sidebar & Blog Cards ===== */
.project-card {
  background: white;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  border-left: 4px solid #2a7f6e;
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}
.project-card h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.project-card p {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: #475569;
}

.blog-card {
  background: white;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  border-left: 4px solid #2a7f6e;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}
.blog-card h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}
.blog-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
}

/* ===== Generic Card (Education, Credly, etc.) ===== */
.card {
  background: white;
  border-radius: 12px;
  padding: 20px 25px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  margin-bottom: 15px;
  border-left: 4px solid #2a7f6e;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* ===== Job Experience Cards ===== */
.job-card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  border-top: 4px solid #2a7f6e;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}
.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
   z-index: 100; 
}
.job-title {
  margin-bottom: 15px;
}
.job-title span {
  color: #64748b;
}

/* ===== Dropdowns (Tech Stack, Responsibilities) ===== */
.dropdown {
  position: relative;
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
}
.dropdown:hover {
  z-index: 100;
}
.dropbtn {
  background: #2a7f6e;
  color: white;
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: 500;
}
.dropbtn:hover {
  background: #1d5e4f;
}
.dropdown-content {
  display: none;
  position: absolute;
  background: white;
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
  z-index: 1000;
  border-radius: 12px;
  padding: 20px;
  width: max-content;
  max-width: 90vw;
  max-height: 60vh;          /* prevents overflow off-screen */
  overflow-y: auto;          /* enables scroll inside */
  flex-wrap: nowrap;
  gap: 30px;
}
.dropdown:hover .dropdown-content {
  display: flex;
}
.dropdown-content .column {
  flex: 0 0 auto;
  min-width: 180px;
}
.dropdown-content ul {
  list-style: none;
  padding-left: 0;
  margin: 5px 0 15px;
}
.dropdown-content ul li {
  padding: 3px 0;
  white-space: nowrap;
  font-size: 0.9rem;
}
.dropdown-content ul li::before {
  content: "▹";
  color: #2a7f6e;
  padding-right: 6px;
}

/* Small scrollbar for dropdown content */
.dropdown-content::-webkit-scrollbar {
  width: 6px;
}
.dropdown-content::-webkit-scrollbar-thumb {
  background: #2a7f6e;
  border-radius: 3px;
}

/* ===== Achievements List ===== */
.achievements {
  margin-top: 20px;
}
.job-description {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}
.job-description li {
  padding-left: 1.8em;
  margin-bottom: 0.6em;
  position: relative;
}
.job-description li::before {
  content: "▹";
  color: #257a69;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

footer {
  background: #18785e;
  color: white;
  text-align: center;
  padding: 25px 20px;
  margin: 40px 20px 20px;      /* space around it, but full‑width */
  border-radius: 16px;         /* matches job‑card rounding */
}
.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 10px;
}
.contact-info a {
  color: white;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.contact-info a:hover {
  color: #b2e6d4;
  text-decoration: none;
}
.note {
  font-style: italic;
  color: #64748b;
  font-size: 0.85rem;
  margin: 5px 0 15px;
}

/* ===== Education Dropdown (details/summary) ===== */
.edu-dropdown {
  display: inline-block;
  position: relative;
  margin-top: 10px;
}
.edu-dropdown > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.edu-dropdown > summary::-webkit-details-marker {
  display: none;
}
.edu-list {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  padding: 15px;
  width: 320px;
  max-width: 90vw;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 999;
}

/* ===== Credly Badge Button ===== */
.badge-credly-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: white !important;
  background-color: #2a7f6e !important;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  cursor: pointer;
}
.badge-credly-btn:hover {
  background-color: #1d5e4f !important;
  text-decoration: none;
  color: white !important;
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
  .two-column-layout {
    grid-template-columns: 1fr;
  }
}