/* GENERAL */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Poppins", sans-serif; }
html { scroll-behavior: smooth; }
p { color: rgb(85, 85, 85); }
a, .btn { transition: all 300ms ease; }

/* NAV */
nav, .nav-links { display: flex; }
nav { justify-content: space-around; align-items: center; height: 17vh; }
.nav-links { gap: 2rem; list-style: none; font-size: 1.5rem; }
a { color: black; text-decoration: none; text-decoration-color: white; }
a:hover { color: grey; text-decoration: underline; text-underline-offset: 1rem; text-decoration-color: rgb(181,181,181); }
.logo { font-size: 2rem; }
.logo:hover { cursor: default; }

/* HAMBURGER */
#hamburger-nav { display: none; }
.hamburger-menu { position: relative; display: inline-block; }
.hamburger-icon { display: flex; flex-direction: column; justify-content: space-between; height: 24px; width: 30px; cursor: pointer; }
.hamburger-icon span { width: 100%; height: 2px; background-color: black; transition: all 0.3s ease-in-out; }
.menu-links { position: absolute; top: 100%; right: 0; background-color: white; width: fit-content; max-height: 0; overflow: hidden; transition: all 0.3s ease-in-out; }
.menu-links a { display: block; padding: 10px; text-align: center; font-size: 1.5rem; color: black; text-decoration: none; transition: all 0.3s ease-in-out; }
.menu-links li { list-style: none; }
.menu-links.open { max-height: 350px; }
.hamburger-icon.open span:first-child { transform: rotate(45deg) translate(10px, 5px); }
.hamburger-icon.open span:nth-child(2) { opacity: 0; }
.hamburger-icon.open span:last-child { transform: rotate(-45deg) translate(10px, -5px); }

/* SECTIONS */
section { padding-top: 4vh; height: 96vh; margin: 0 10rem; box-sizing: border-box; min-height: fit-content; }
.section-container { display: flex; }

/* PROFILE */
#profile { display: flex; justify-content: center; gap: 5rem; height: 80vh; }
.section__pic-container { display: flex; height: 400px; width: 400px; margin: auto 0; }
.section__text { align-self: center; text-align: center; }
.section__text p { font-weight: 600; }
.section__text__p1 { text-align: center; }
.section__text__p2 { font-size: 1.75rem; margin-bottom: 1rem; }
.title { font-size: 3rem; text-align: center; }
#socials-container { display: flex; justify-content: center; margin-top: 1rem; gap: 1rem; }

/* ICONS */
.icon { cursor: pointer; height: 2rem; }

/* BUTTONS */
.btn-container { display: flex; justify-content: center; gap: 1rem; }
.btn { font-weight: 600; transition: all 300ms ease; padding: 1rem; width: 8rem; border-radius: 2rem; }
.btn-color-1, .btn-color-2 { border: rgb(53,53,53) 0.1rem solid; }
.btn-color-1:hover, .btn-color-2:hover { cursor: pointer; }
.btn-color-1, .btn-color-2:hover { background: rgb(53,53,53); color: white; }
.btn-color-1:hover { background: rgb(0,0,0); }
.btn-color-2 { background: none; }
.btn-color-2:hover { border: rgb(255,255,255) 0.1rem solid; }

/* ABOUT */
#about { position: relative; }
.about-containers { gap: 2rem; margin-bottom: 2rem; margin-top: 2rem; }
.about-details-container { justify-content: center; flex-direction: column; }
.about-containers, .about-details-container { display: flex; }
.about-pic { border-radius: 2rem; }
.arrow { position: absolute; right: -5rem; bottom: 2.5rem; }
.details-container { padding: 1.5rem; flex: 1; background: white; border-radius: 2rem; border: rgb(163,163,163) 0.1rem solid; text-align: center; }
.section-container { gap: 4rem; height: 80%; }
.section__pic-container { height: 400px; width: 400px; margin: auto 0; }

/* EXPERIENCE */
#experience { position: relative; height: fit-content; }
.experience-sub-title { color: rgb(85,85,85); font-weight: 600; font-size: 1.75rem; margin-bottom: 2rem; }
.experience-details-container { display: flex; justify-content: center; flex-direction: column; }
.article-container { display: flex; text-align: initial; flex-wrap: wrap; flex-direction: row; gap: 2.5rem; justify-content: space-around; }
article { display: flex; width: 10rem; justify-content: space-around; gap: 0.5rem; }
article .icon { cursor: default; }

/* ---- TIMELINE ---- */
.timeline-heading {
  text-align: center;
  margin: 3rem 0 2rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: rgb(53, 53, 53);
}

.timeline-wrapper {
  position: relative;
  max-width: 760px;
  margin: 0 auto 3rem auto;
  padding-left: 2.5rem;
}

.timeline-track {
  position: absolute;
  left: 0.6rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, rgb(53,53,53), rgb(163,163,163));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.75rem;
}

.timeline-dot {
  position: absolute;
  left: -1.95rem;
  top: 1.1rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgb(53, 53, 53);
  border: 2.5px solid white;
  box-shadow: 0 0 0 2px rgb(53, 53, 53);
  z-index: 1;
}

.timeline-content {
  background: white;
  border: 1px solid rgb(220, 220, 220);
  border-radius: 1rem;
  padding: 1.1rem 1.5rem;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.timeline-content:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
  transform: translateX(4px);
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(120, 120, 120);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.timeline-badge {
  display: inline-block;
  background: rgb(220, 245, 220);
  color: rgb(40, 120, 40);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.6rem;
  border-radius: 1rem;
  border: 1px solid rgb(160, 210, 160);
}

.timeline-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgb(30, 30, 30);
  margin-bottom: 0.2rem;
}

.timeline-org {
  font-size: 0.78rem;
  color: rgb(130, 130, 130);
  margin-bottom: 0.4rem;
  font-style: italic;
}

.timeline-content p:last-child {
  font-size: 0.85rem;
  color: rgb(85, 85, 85);
  line-height: 1.6;
}

/* ---- PROJECTS 2x2 GRID ---- */
#projects { position: relative; height: fit-content; padding-bottom: 4rem; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 2rem auto 0;
}

.project-card {
  background: rgb(250, 250, 250);
  border: 1px solid rgb(220, 220, 220);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09);
}

.project-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-img-wrapper .project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  transition: transform 300ms ease;
}

.project-card:hover .project-img {
  transform: scale(1.04);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 30, 30, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 250ms ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay span {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.project-card-body {
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgb(30, 30, 30);
  margin-bottom: 0.6rem;
}

.project-description {
  font-size: 0.875rem;
  color: rgb(85, 85, 85);
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.tag {
  background: rgb(240, 240, 240);
  color: rgb(53, 53, 53);
  border: 1px solid rgb(210, 210, 210);
  border-radius: 1rem;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

.project-link-btn {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid rgb(53, 53, 53);
  color: rgb(53, 53, 53);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 250ms ease;
}

.project-link-btn:hover {
  background: rgb(53, 53, 53);
  color: white;
  text-decoration: none;
}

.project-link-btn.primary {
  background: rgb(53, 53, 53);
  color: white;
}

.project-link-btn.primary:hover {
  background: black;
}

/* ---- CERTIFICATIONS ---- */
#certifications { position: relative; height: fit-content; padding-bottom: 4rem; }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.cert-card {
  background: white;
  border: 1px solid rgb(220, 220, 220);
  border-radius: 1.25rem;
  padding: 1.4rem 1.2rem 1.2rem;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
  border-color: rgb(53, 53, 53);
  text-decoration: none;
}

.cert-icon { font-size: 2rem; margin-bottom: 0.25rem; }

.cert-card h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgb(30, 30, 30);
  line-height: 1.4;
}

.cert-card p {
  font-size: 0.78rem;
  color: rgb(120, 120, 120);
}

.cert-date {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgb(80, 80, 80);
  background: rgb(240, 240, 240);
  border-radius: 1rem;
  padding: 0.15rem 0.6rem;
  margin-top: 0.1rem;
}

.cert-view {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(53, 53, 53);
  margin-top: 0.4rem;
  opacity: 0;
  transition: opacity 200ms ease;
}

.cert-card:hover .cert-view { opacity: 1; }

/* CONTACT */
#contact { display: flex; justify-content: center; flex-direction: column; height: 70vh; }
.contact-info-upper-container { display: flex; justify-content: center; border-radius: 2rem; border: 1px solid rgb(163,163,163); background: rgb(250,250,250); margin: 2rem auto; padding: 0.5rem; }
.contact-info-container { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin: 1rem; }
.contact-info-container p { font-size: larger; }
.contact-icon { cursor: default; }
.email-icon { height: 2.5rem; }

/* FOOTER */
footer { height: 26vh; margin: 0 1rem; }
footer p { text-align: center; }
