/*
--- 01 TYPOGRAPHY SYSTEM

- Font sizes (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- Font weights
Default: 400
Medium: 500
Semi-bold: 600
Bold: 700

- Line heights
Default: 1
Small: 1.05
Medium: 1.2
Paragraph default: 1.6
Large: 1.8

- Letter spacing
-0.5px
0.75px

--- 02 COLORS
Main: #d0bfff
Second-Main: #e5dbff
Lightest: #f3f0ff
*/
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  /* font-size: 10px; */

  /* 10px / 16px = 0.625 = 62.5% */
  /* Percentage of user's browser font-size setting */
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Rubik", sans-serif;
  line-height: 1;
  font-weight: 400;
  color: #555;

  /* Only works if there is nothing absolutely positioned in relation to body */
  overflow-x: hidden;
}

.container {
  /* 1140px */
  max-width: 130rem;
  padding: 0 3.2rem;
  margin: 0 auto;
}

.grid {
  display: grid;
  column-gap: 6.4rem;
  row-gap: 9.6rem;

  /* margin-bottom: 9.6rem; */
}

/* .grid:last-child {
  margin-bottom: 0;
} */

.grid:not(:last-child) {
  margin-bottom: 9.6rem;
}

.grid--2-cols {
  grid-template-columns: repeat(2, 1fr);
  justify-items: space-evenly;
}

.grid--3-cols {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4-cols {
  grid-template-columns: repeat(4, 1fr);
}

strong {
  font-weight: 500;
}

.heading-primary {
  font-weight: 700;
  font-size: 5.2rem;
  color: #1c7ed6;
  line-height: 1.2;

  /* letter-spacing: 0.5px; */
}
.heading-primary.second {
  margin-bottom: 2rem;
}
.heading-secondary {
  font-size: 3.6rem;
  color: #333;
  line-height: 1.2;
  margin-bottom: 3.4rem;
  text-align: center;
}
.heading-tertiary {
  font-weight: 400;
  font-size: 2rem;
  color: #333;
  line-height: 1.2;
  margin-bottom: 3.4rem;
}

.contact-me {
  text-decoration: none;
  font-size: 1.8rem;
  transition: all 0.3s;
}

.contact-me:link,
.contact-me:visited {
  padding: 1.2rem 2.4rem;
  border-radius: 9px;
  color: #fff;
  background-color: #1c7ed6;
}
.contact-me:hover,
.contact-me:active {
  background-color: #1864ab;
}

/* .......................... */

/* style.CSS */
.link-hilola img {
  width: auto;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f3f0ff;
  height: 9.6rem;
  padding: 0 4.8rem;
  position: relative;
}

.header span {
  color: #1c7ed6;
  font-weight: 500;
  font-size: 3.6rem;
}
.link-hilola:link,
.link-hilola:visited {
  text-decoration: none;
}

.main-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4.8rem;
}

.main-nav-link:link,
.main-nav-link:visited {
  display: inline-block;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1.8rem;
  transition: all 0.3s;
}

.main-nav-link:hover,
.main-nav-link:active {
  color: #1864ab;
}

.main-nav-link.nav-cta:link,
.main-nav-link.nav-cta:visited {
  padding: 1.2rem 2.4rem;
  border-radius: 9px;
  color: #fff;
  background-color: #1c7ed6;
}
.main-nav-link.nav-cta:hover,
.main-nav-link.nav-cta:active {
  background-color: #1864ab;
}

/* MOBILE */
.btn-mobile-nav {
  border: none;
  background: none;
  cursor: pointer;

  display: none;
}

.icon-mobile-nav {
  height: 4.8rem;
  width: 4.8rem;
  color: #333;
}

.icon-mobile-nav[name="close-outline"] {
  display: none;
}

/* STICKY NAVIGATION */
.sticky .header {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 8rem;
  padding-top: 0;
  padding-bottom: 0;
  background-color: rgba(255, 255, 255, 0.97);
  z-index: 999;
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.03);
}

.sticky .section-hero {
  margin-top: 9.6rem;
}

/**************************/
/* HERO SECTION */
/**************************/

.section-hero {
  background-color: #f3f0ff;
  padding: 4.8rem 0 9.6rem 0;
}

.hero {
  max-width: 130rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20rem;
  align-items: center;
  padding: 0 4.8rem;
}
.hero-img img {
  width: auto;
  border-radius: 50%;
}

/**************************/
/* About Me SECTION */
/**************************/

.section-about {
  background-color: #fff;
  padding: 4.8rem 0 9.6rem 0;
}

.about-text,
.about-img,
.to-do-list {
  box-shadow: 0 2.4rem 4.8rem rgba(18, 1, 24, 0.195);
  border-radius: 11px;
  padding: 8rem 8rem;
  background-color: #f3f0ff;
}

.about-text:hover,
.about-img:hover,
.to-do-list:hover {
  transform: translateY(-1.2rem);
  box-shadow: 0 3.2rem 6.4rem rgba(18, 1, 24, 0.06);
}
.about-img {
  padding: 2.4rem 0;
}

.about-text {
  justify-content: space-evenly;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-text p {
  font-weight: 400;
  font-size: 2rem;
  color: #333;
  line-height: 1.2;
}
.about-img p {
  font-weight: 400;
  font-size: 2.4rem;
  color: #333;
  line-height: 1.2;
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 1.6rem;
}

.gallery-item {
  overflow: hidden;
}

.gallery-item img {
  display: block;
  width: 100%;
  transition: all 0.4s;
}

.gallery-item img:hover {
  transform: scale(1.1);
}

.container.about {
  display: flex;
  justify-content: center;
}
.to-do-list h2 {
  font-weight: 700;
  font-size: 2.4rem;
  color: #333;
  line-height: 1.2;
  margin-bottom: 3.4rem;
}

.to-do-list {
  grid-column: 1/-1;
  justify-self: center;
}
.list-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  font-weight: 400;
  font-size: 2rem;
  color: #333;
  line-height: 2.4;
}
.list-icon {
  color: #1c7ed6;
  height: 2.4rem;
  width: 2.4rem;
}

/**************************/
/* SECTION PORFOLIO */
/**************************/

.section-portfolio {
  background-color: #f3f0ff;
  padding: 4.8rem 0 9.6rem 0;
}

.heading-tertiary.portfolio {
  color: #1c7ed6;
  font-weight: 700;
}
.text-box {
  box-shadow: 0 2.4rem 4.8rem rgba(18, 1, 24, 0.195);
  border-radius: 11px;
  padding: 8rem 8rem;
  background-color: #fff;
}
.job-title {
  font-weight: 700;
  font-size: 1.8rem;
  text-decoration: underline;
  margin-bottom: 0.8rem;
}
.job-description {
  list-style: none;
}
.job-place {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  color: #333;
}
.job-description {
  font-size: 1.8rem;
  line-height: 1.2;
}
.task-description:last-child {
  margin-bottom: 2.4rem;
}

.logo-img-box {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img-box::before,
.logo-img-box::after {
  content: "";
  display: block;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.logo-img-box::before {
  width: 60%;
  /* height: 60%; */

  /* 60% of parent's width */
  padding-bottom: 60%;

  background-color: #fdf2e9;
  z-index: -2;
}

.logo-img-box::after {
  width: 45%;
  padding-bottom: 45%;
  background-color: #fae5d3;
  z-index: -1;
}

.logo-img {
  width: 35%;
  /* z-index: 10; */
}

/**************************/
/* SECTION BLOG */
/**************************/

.section-blog {
  background-color: #fff;
  padding: 4.8rem 0 9.6rem 0;
}

.heading-tertiary.blog {
  font-weight: 700;
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
}

.blog-box {
  box-shadow: 0 2.4rem 4.8rem rgba(188, 178, 191, 0.5);
  padding: 2rem 2rem;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.blog-img {
  width: 100%;
  margin-bottom: 1.2rem;
  margin-top: auto;
}

.blog-text,
.blog-link {
  font-size: 2rem;
  line-height: 1.4;
}
.blog-link {
  text-decoration: none;
  color: #1864ab;
  font-weight: 500;
}

/**************************/
/* SECTION CTA */
/**************************/

.section-cta {
  padding: 4.8rem 0 12.8rem;
}

.cta {
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.15);
  border-radius: 11px;
  background-image: linear-gradient(#f3f0ff88, #e5dbff95),
    url(img/background2.jpg);
  background-size: cover;
  overflow: hidden;
}

.cta-form input {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.8rem;
  font-family: inherit;
  color: inherit;
  border: none;
  background-color: #f3f0ff;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-text-box {
  padding: 4.8rem 6.4rem 6.4rem 6.4rem;
}

.cta-text-box {
  font-size: 3.6rem;
  line-height: 1.8;
  margin-bottom: 4.8rem;
  color: #1864ab;
  font-weight: 500;
}

.cta-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3.2rem;
  row-gap: 2.4rem;
}

.cta-form label {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: -1rem;
}

.cta *:focus {
  outline: none;
  box-shadow: 0 0 0 0.8rem rgba(253, 242, 233, 0.5);
}
.btn,
.btn:link,
.btn:visited {
  display: inline-block;

  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;
  padding: 1.6rem 3.2rem;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
}
.btn--form {
  background-color: #1864ab;
  color: #fff;
  align-self: end;
  padding: 1.2rem;
}

.btn--form:hover {
  background-color: #fff;
  color: #555;
}

/**************************/
/* FOOTER */
/**************************/

.footer {
  background-color: #f3f0ff;
  padding: 2.4rem 0;
}

.grid--footer {
  grid-template-columns: 1fr 1fr;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 130rem;
  margin: 0 auto;
  padding: 0 3.2rem;
}

.logo-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: block;
  margin-bottom: 3.2rem;
}

.social-links {
  list-style: none;
  display: flex;
  gap: 2.4rem;
}

.social-icon {
  height: 2.4rem;
  width: 2.4rem;
  color: #1864ab;
}

.copyright {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #767676;
  margin-top: auto;
}
