/* Reset and 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 content */
main {
  max-width: 1300px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

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

/* GitHub sidebar */
.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;
}
.lang-tag {
  display: inline-block;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-right: 10px;
}

/* Blog column */
.blog-card {
  background: white;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  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;
}

/* Other sections */
section {
  margin-bottom: 0;
}
.card {
  background: white;
  border-radius: 12px;
  padding: 20px 25px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  margin-bottom: 15px;
}
.cert-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cert-list li {
  background: #f1f5f9;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.cert-list li:hover {
  background: #e2e8f0;
}

/* Job Cards */
.job-card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.job-title {
  margin-bottom: 15px;
}
.job-title span {
  color: #64748b;
}

/* Dropdowns */
.dropdown {
  position: relative;
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
}
.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: 100;
  border-radius: 12px;
  padding: 20px;
  width: max-content;
  max-width: 90vw;
  overflow: hidden;
  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;
}

/* Achievements */
.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: #2a7f6e;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* Footer */
footer {
  background: #0f4c5c;
  color: white;
  text-align: center;
  padding: 25px 20px;
  margin-top: 20px;
}
.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;
}

/* Responsive stacking */
@media (max-width: 800px) {
  .two-column-layout {
    grid-template-columns: 1fr;
  }
}
/* Education dropdown using <details> */
.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;
}

/* The content list */
.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;      /* scroll inside if the list is very tall */
  overflow-y: auto;      /* allows scrolling */
  z-index: 999;
}