/* Global Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #000000;
  line-height: 1.6;
  font-size: 18px;
}
@media (max-width: 900px) {
  body { font-size: 16px; }
}

/* Link Behavior - Global */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #000000;
  text-decoration: underline;
}

/* Prevent blue underline after click */
a:visited {
  color: inherit;
  text-decoration: none;
}

/* Headings */
h1, h2, h3, h4 {
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
}

h4 {
  font-size: 1.1rem;
}

/* Intro Layout */
.intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  padding: 3rem 10%;
  align-items: start;
  background-color: #f5f0e6;
}

.intro-left {
  text-align: center;
}

.intro-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #000000;
  margin-bottom: 1rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.btn {
  padding: 0.5rem 1rem;
  border: 2px solid #000000;
  background-color: #ffffff;
  color: #000000;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease-in-out;
}

.btn:hover {
  background-color: #000000;
  color: #ffffff;
}

.intro-right {
  font-size: 1rem;
}

.intro-right p {
  margin-bottom: 1.4rem;
  line-height: 1.75;
}

/* Project Section */
.projects {
  padding: 3rem 10%;
  background-color: #ffffff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.card {
  position: relative;
  background-color: #fffaf4;
  border: 1px solid #ddd;
  padding: 1.2rem 1.2rem 2.4rem 1.2rem;
  border-radius: 10px;
  transition: box-shadow 0.2s, background 0.2s;
  display: block;
  min-height: 220px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  background: #f5f0e6;
}

.card-content {
  min-height: 90px;
  max-height: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.card h4 {
  margin-bottom: 0.6rem;
}

.card p,
.card small {
  font-size: 0.95rem;
  color: #333333;
}

/* Override global link styles for project cards */
.card,
.card:visited,
.card:hover,
.card:active {
  text-decoration: none !important;
  color: inherit;
}

.tech-logos.bottom-left {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.tech-logos.bottom-right {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  display: flex;
  align-items: flex-end;
  gap: 0;
}

/* Toolkit icon style for project cards (Stakeholder & Personal) */
.tech-logos img {
  height: 22px;
  width: auto;
  margin-right: 6px;
  vertical-align: middle;
}
.tech-logos img:last-child {
  margin-right: 0;
}

/* =====================
   Certifications Section
   ===================== */
.certifications {
  padding: 3rem 10%;
  background-color: #fff;
}
.certification-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.2rem;
  margin-top: 1.5rem;
}
.certification-card {
  display: flex;
  align-items: center;
  background: #fffaf4;
  border: 1px solid #ddd;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  padding: 1.5rem 2rem;
  min-width: 0;
  font-family: 'Inter', sans-serif;
  transition: box-shadow 0.18s;
}
.certification-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.certification-img-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  width: 80px;
  margin-right: 1.5rem;
}
.cert-img {
  height: 48px;
  width: 70px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  padding: 4px;
}
.certification-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.cert-title {
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 0.7rem;
  color: #222;
}
.cert-btn {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  background: #fff;
  color: #000;
  border: 2px solid #000;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: all 0.18s;
  margin-top: 0.2rem;
}
.cert-btn:hover {
  background: #000;
  color: #fff;
}
@media (max-width: 900px) {
  .certification-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .certification-card {
    padding: 1.2rem 1rem;
  }
  .certification-img-wrap {
    height: 40px;
    width: 60px;
    margin-right: 1rem;
  }
  .cert-img {
    height: 32px;
    width: 48px;
    padding: 2px;
  }
}

/* Contact Section */
.contact {
  padding: 3rem 10%;
  background-color: #ffffff;
  border-top: 1px solid #eee;
}

.contact ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.contact a {
  font-weight: 500;
}

.contact a:hover {
  text-decoration: underline;
  color: #000000;
}

form input,
form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  background-color: #000;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

/* Responsive Fix */
@media (max-width: 768px) {
  .intro {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .intro-right {
    margin-top: 2rem;
  }

  .cta-buttons {
    justify-content: center;
  }
}

.section-description {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0.5rem 0 1.5rem 0;
  max-width: 800px;
}

/* =====================
   Education Section
   ===================== */
.education {
  padding: 3rem 10%;
  background-color: #fff;
}
.education-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: flex-start;
  margin-top: 1.5rem;
}
.education-card {
  display: flex;
  align-items: center;
  background: #fffaf4;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 2.2rem 2.4rem;
  min-width: 340px;
  max-width: 600px;
  flex: 1 1 420px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  gap: 2.2rem;
  margin-bottom: 0;
}
.education-logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  width: 110px;
}
.edu-logo {
  height: 70px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  padding: 6px;
  display: block;
  margin: 0 auto;
}
.education-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.education-info h3 {
  margin-bottom: 0.2rem;
  font-size: 1.18rem;
  font-weight: 700;
}
.degree {
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: #222;
  font-size: 1.05rem;
}
.edu-date {
  font-size: 1rem;
  color: #888;
  margin-bottom: 0.7rem;
}
.education-info ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 1.01rem;
  color: #333;
  line-height: 1.7;
}
@media (max-width: 900px) {
  .education-cards {
    flex-direction: column;
    gap: 1.5rem;
  }
  .education-card {
    max-width: 100%;
    min-width: 0;
    flex-direction: row;
    padding: 1.5rem 1rem;
    gap: 1.2rem;
  }
  .education-logo-wrap {
    height: 64px;
    width: 80px;
  }
  .edu-logo {
    height: 48px;
    max-width: 70px;
    padding: 4px;
  }
}
@media (max-width: 600px) {
  .education-card {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 0.5rem;
  }
  .education-logo-wrap {
    height: 48px;
    width: 100%;
    justify-content: center;
  }
  .edu-logo {
    height: 40px;
    max-width: 60px;
    margin-bottom: 0.5rem;
  }
  .education-info {
    align-items: center;
    text-align: center;
  }
  .education-info ul {
    padding-left: 1.1rem;
    text-align: left;
  }
}

/* =====================
   Experience Section
   ===================== */
.experience {
  padding: 3rem 10%;
  background-color: #fff;
}
.experience-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 1.5rem;
}
.experience-card {
  background: #fffaf4;
  border: 1px solid #ddd;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  padding: 2.2rem 2.4rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 600px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
}
.exp-header {
  margin-bottom: 1.1rem;
}
.exp-org {
  font-size: 1.13rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.1rem;
}
.exp-location {
  font-weight: 400;
  color: #888;
  font-size: 1.01rem;
}
.exp-role {
  font-weight: 600;
  font-size: 1.07rem;
  margin-bottom: 0.1rem;
  color: #222;
}
.exp-date {
  font-size: 0.99rem;
  color: #aaa;
  margin-bottom: 0.3rem;
}
.exp-bullets {
  margin: 0;
  padding-left: 1.2rem;
  color: #333;
  font-size: 1.01rem;
  line-height: 1.7;
}
@media (max-width: 1200px) {
  .experience-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 800px) {
  .experience-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .experience-card {
    padding: 1.5rem 1rem;
    max-width: 100%;
  }
}

.subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  color: #222;
  text-align: center;
  margin: 0.2rem 0 1.1rem 0;
  letter-spacing: 0.01em;
  line-height: 1.4;
  font-weight: 400;
  word-break: break-word;
}
@media (max-width: 600px) {
  .subtitle {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
}

/* =====================
   Medium Blog Section
   ===================== */
.medium-posts {
  padding: 3rem 10%;
  background: #fff;
}
.medium-posts h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.medium-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}
.medium-card {
  display: flex;
  align-items: center;
  background: #fffaf4;
  border: 1px solid #ddd;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  padding: 1.2rem 1.5rem;
  text-decoration: none;
  color: #111;
  font-family: 'Inter', sans-serif;
  transition: box-shadow 0.18s, background 0.18s, opacity 0.18s;
  min-width: 0;
  min-height: 120px;
  position: relative;
}
.medium-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  background: #f5f0e6;
  opacity: 0.97;
}
.medium-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 1.2rem;
}
.medium-title {
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
  color: #222;
  line-height: 1.3;
}
.medium-summary {
  font-size: 0.98rem;
  color: #444;
  line-height: 1.5;
}
.medium-thumb {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  margin-left: 1.2rem;
  flex-shrink: 0;
}
.medium-all-btn-wrap {
  text-align: center;
  margin-top: 2.2rem;
}
.medium-all-btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  background: #fff;
  color: #000;
  border: 2px solid #000;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.18s;
}
.medium-all-btn:hover {
  background: #000;
  color: #fff;
}
@media (max-width: 900px) {
  .medium-cards {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .medium-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0.7rem;
    min-height: 0;
  }
  .medium-card-content {
    padding-right: 0;
    margin-bottom: 0.7rem;
  }
  .medium-thumb {
    margin-left: 0;
    margin-bottom: 0.5rem;
    width: 100%;
    height: 120px;
    object-fit: cover;
    max-width: 100%;
  }
}
