/* GENERAL */

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

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f5f5f0;
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

/* ── ANIMATIONS ── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* Profile load animations */
.section__pic-container {
  animation: fadeLeft 0.9s ease both;
  animation-delay: 0.2s;
}

.section__text {
  animation: fadeRight 0.9s ease both;
  animation-delay: 0.4s;
}

/* Scroll fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Bio paragraph reveal */
.bio-chunk {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.bio-chunk.bio-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Skill stagger */
article {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

article.skill-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Project card hover */
.details-container {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.details-container:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Social icon hover */
#socials-container img {
  transition: transform 0.2s ease;
}

#socials-container img:hover {
  transform: scale(1.2);
}

/* Nav link hover */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: black;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 60px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 0.95rem;
}

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: 1.4rem;
}

.logo img {
  height: 48px;
  width: auto;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#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.3 ease-in-out;
}

/* FULL SCREEN OVERLAY MENU */
.overlay-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f5f5f0;
  z-index: 2000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay-menu.open {
  display: flex;
  opacity: 1;
}

.overlay-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
}

.overlay-links {
  list-style: none;
  text-align: center;
  padding: 0;
}

.overlay-links li {
  margin: 2rem 0;
}

.overlay-links a {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.overlay-links a:hover {
  color: #c9a84c;
}

body.no-scroll {
  overflow: hidden;
}

.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);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */

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

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  padding-top: 80px;
  padding-bottom: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  position: relative;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  min-width: 400px;
  min-height: 400px;
  margin: auto 0;
  align-self: center;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #c9a84c;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.section__pic-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.section__text {
  align-self: center;
  text-align: center;
}

.about-bio {
  font-size: 0.88rem;
}

@media (min-width: 769px) {
  .about-bio {
    font-size: 0.8rem;
  }
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 2.5rem;
  text-align: center;
  white-space: nowrap;
}

#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;
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#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;
  left: 50%;
  bottom: 1.5rem;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  animation: bounceArrow 2.4s ease-in-out infinite;
}

.arrow:hover {
  opacity: 1;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}

.section-container {
  gap: 4rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

.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: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}

article {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
}

article .icon {
  cursor: default;
}

/* RESUME (EXPERIENCE & EDUCATION) SECTION */

#resume {
  position: relative;
  padding-bottom: 3rem;
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 2rem auto 0;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgb(210, 210, 210);
}

.timeline-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.timeline-visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f5f5f0;
  border: 2px solid rgb(163, 163, 163);
}

.timeline-dot--current {
  background: #c9a84c;
  border-color: #c9a84c;
}

.timeline-text {
  text-align: left;
}

.timeline-role {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.timeline-company {
  font-size: 0.8rem;
  color: rgb(85, 85, 85);
  margin: 0.3rem 0 0;
}

.timeline-link {
  color: #c9a84c;
  text-decoration: none;
}

.timeline-link:hover {
  text-decoration: underline;
}

.timeline-date {
  font-size: 0.75rem;
  color: rgb(150, 150, 150);
  white-space: nowrap;
  flex-shrink: 0;
}

/* CERTIFICATIONS SECTION */

.certifications-container {
  max-width: 1000px;
  margin: 2rem auto 0;
}

.cert-intro {
  text-align: center;
  font-size: 0.85rem;
  color: rgb(85, 85, 85);
  margin-bottom: 1.75rem;
}

.cert-intro a {
  color: #c9a84c;
  font-weight: 600;
}

.cert-intro a:hover {
  text-decoration: underline;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.cert-card {
  background: rgb(250, 250, 250);
  border: 1px solid rgb(163, 163, 163);
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cert-card.cert-visible {
  opacity: 1;
  transform: translateY(0);
}

.cert-card img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  display: block;
}

.cert-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #262626;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}

.cert-issuer {
  font-size: 0.7rem;
  color: rgb(150, 150, 150);
  margin-bottom: 0.6rem;
}

.cert-link {
  font-size: 0.72rem;
  color: #c9a84c;
  font-weight: 600;
  margin-top: auto;
}

.cert-link:hover {
  text-decoration: underline;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
}

.project-img {
  border-radius: 2rem;
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.color-container .article-container {
  display: block;
  width: 100%;
}

.project-title {
  margin: 1rem;
  color: black;
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

/* 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: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: (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 SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}
#projects {
  position: relative;
  padding-top: 4vh;
  margin: 0 auto;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

#projects .projects-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 1rem; /* reduced from 2rem to increase content width */
  width: 100%;
  box-sizing: border-box;
}

#projects .about-containers {
  flex: 1 1 48%; /* increased from calc(50% - 2rem) */
  max-width: 48%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#projects .about-containers.project-visible {
  opacity: 1;
  transform: translateY(0);
}

#projects .details-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#projects .btn-container {
  margin-top: auto;
  padding-top: 1rem;
}

@media (max-width: 768px) {
  #projects .about-containers {
    flex: 1 1 100%;
    max-width: 100%;
  }

  #projects .projects-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4rem;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
  }
}

.project-img {
  width: 100%;
  max-height: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 2rem;
  background-color: #f0f0f0;
  display: block;
  margin: 0 auto;
  margin-bottom: 1rem;
}



.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
}

.project-title {
  margin: 1rem;
  color: black;
  font-size: 0.95rem;
  line-height: 1.4;
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}
.diabetes-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 2rem;
  display: block;
}
.spacex-img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  background-color: #f5f5f0;
  border-radius: 2rem;
  display: block;
}
.biliary-img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  background-color: rgb(0, 11, 30);
  border-radius: 2rem;
  display: block;
}
.titanic-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 2rem;
  display: block;
}
.ipf-img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  background-color: rgb(1, 15, 35);
  border-radius: 2rem;
  display: block;
}

.healthcare-img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  background-color: rgb(0, 24, 63);
  border-radius: 2rem;
  display: block;
}

.cancer-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 2rem;
  display: block;
}
.shiny-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 2rem;
  display: block;
}
.hiv-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 2rem;
  display: block;
}

.btn-container {
  margin-top: 1rem;
  text-align: center;
}
#profile {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


@keyframes blinkResume {
  to {
    visibility: hidden;
  }
}
.wave-emoji {
  display: inline-block;
  animation: wave 2s infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}
