
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #FAF9F6;
}


header {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
}

main {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative; 
}

footer {
  position: relative;
  bottom: 0;
}


section {
  min-height: 100vh;
  padding: 48px 20px 64px;
}

.nav {
  display: flex;
  gap: 16px;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
}

.nav a:hover {
  text-decoration: underline;
}




.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}


.home-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.home-hero__title {
  font-size: 64px;
  margin: 0;
  letter-spacing: 0.5px;
}

.home-hero__subtitle {
  font-size: 22px;
  margin: 10px 0 22px;
  font-weight: 600;
  opacity: 0.85;
}

.home-hero__blurb {
  font-size: 20px;
  line-height: 1.7;
  max-width: 760px;
  margin: 0;
  opacity: 0.9;
}


.about {
  text-align: center;
}

.about__title {
  font-size: 48px;
  margin: 0 0 24px;
}

.about__image-wrap {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.about__image {
  width: min(520px, 90%);
  height: auto;
  display: block;
  border-radius: 60%;
}

.about__text {
  max-width: 820px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.7;
}

.about__text p {
  margin: 0 0 18px;
}


/* ========== Actuary Exams ========== */

.exams {
  text-align: center;
}

.exams__title {
  font-size: 52px;          
  margin: 0 0 36px;
}

.exams__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;                
  width: 100%;
  max-width: 1200px;        
  margin: 0 auto;
}

.exams__grid > .exam-card:last-child {
  grid-column: 1 / -1;      
  max-width: 560px;         
  justify-self: center;
}


.exam-card {
  background: white;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 30px;            
  display: flex;
  flex-direction: column;
}


.exam-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.exam-card__title {
  font-size: 22px;          
  margin: 0;
  line-height: 1.25;
}


.exam-card__status {
  font-size: 13px;          
  font-weight: 700;
  padding: 8px 12px;        
  border-radius: 999px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  white-space: nowrap;
}

.exam-card__status--passed {
  border-color: #7aa87a;
  background: #eaf6ea;
}

.exam-card__status--progress {
  border-color: #8aa0c9;
  background: #eef3ff;
}


.exam-card__text {
  margin: 0 0 18px;
  font-size: 16px;          
  line-height: 1.7;
  opacity: 0.9;
}


.exam-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;                
  margin-top: auto;
}

.exam-tag {
  border: 1px solid #ccc;
  border-radius: 999px;
  padding: 8px 14px;        
  font-size: 14px;          
  background: #f7f7f7;
  line-height: 1;
}


@media (max-width: 900px) {
  .exams__title {
    font-size: 44px;
  }

  .exams__grid {
    grid-template-columns: 1fr;
    max-width: 700px;
    gap: 24px;
  }

  .exams__grid > .exam-card:last-child {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }

  .exam-card {
    padding: 22px;
  }
}

/* ========== Projects ========== */

.projects {
  text-align: center;
}

.projects__title {
  font-size: 52px;           
  margin: 0 0 36px;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;                 
  width: 100%;
  max-width: 1300px;         
  margin: 0 auto;
  align-items: stretch;
}


.project-card {
  padding: 32px;             
  border: 2px solid #ddd;
  border-radius: 12px;
  background: white;

  display: flex;
  flex-direction: column;
  align-items: center;
}


.project-card__img {
  width: 100%;
  max-width: 300px;          
  height: auto;
  display: block;
  margin: 0 auto 18px;
}


.project-card__title {
  font-size: 26px;           
  margin: 0 0 14px;
}


.project-card__text {
  font-size: 17px;           
  line-height: 1.75;
  max-width: 380px;
  margin: 0 0 18px;
  opacity: 0.9;
}


.project-skills {
  width: 100%;
  max-width: 380px;
  text-align: left;
  margin-top: auto;
}

.project-skills__title {
  font-size: 15px;
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.project-skills__list {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-skills__list li {
  border: 1px solid #ccc;
  border-radius: 999px;
  padding: 8px 14px;         
  font-size: 14px;
  line-height: 1;
  background: #f7f7f7;
}


@media (max-width: 1000px) {
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
  }
}

@media (max-width: 700px) {
  .projects__grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    gap: 24px;
  }

  .project-card {
    padding: 24px;
  }
}

/* ========== Experience ========== */

.experience {
  text-align: center;
}

.experience__title {
  font-size: 52px;
  margin: 0 0 36px;
}


.experience__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  align-items: stretch;
}


.experience-card {
  padding: 32px;
  border: 2px solid #ddd;
  border-radius: 12px;
  background: white;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


.experience-card__title {
  font-size: 26px;
  margin: 0 0 10px;
}


.experience-card__meta {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  opacity: 0.9;
}


.experience-card__text {
  font-size: 17px;
  line-height: 1.75;
  max-width: 380px;
  margin: 0 0 18px;
  opacity: 0.9;
}


.experience-skills {
  width: 100%;
  max-width: 380px;
  text-align: left;
  margin-top: auto;
}

.experience-skills__title {
  font-size: 15px;
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.experience-skills__list {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.experience-skills__list li {
  border: 1px solid #ccc;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1;
  background: #f7f7f7;
}


@media (max-width: 900px) {
  .experience__title {
    font-size: 44px;
  }

  .experience__item {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .job-box,
  .job-description {
    padding: 22px;
  }
}