/*

--- 01 TYPOGRAPHY SYSTEM

- FONT SIZE SYSTEM (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

- Letter spacing
-0.5px
0.75px

--- 02 COLORS

HERO background #051727 title #bbb

Primary: #c92a2a; 
Tints: Darker version 

Shades: Lighter version
Accents:
Greys:
#bbb
#ddd

--- 05 SHADOWS

--- 06 BORDER-RADIUS

Default: 9px;

--- 07 WHITESPACE

- SPACING SYSTEM (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
*/

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  /*DEFAULT 1 rem = 16px*/
  /*1 rem -> 10px*/
  /* 10px / 16px = 0.625 = 62.5% */
  /* Percentage of user's browser font-size setting */
  font-size: 62.5%;
  overflow-x: hidden;
    /* DOES NOT WORK WITH SAFARI OR EDGE */
  scroll-behavior: smooth;
}

body {
  font-family: "Rubik", sans-serif;
  line-height: 1;
  font-weight: 400;
  color: #555;
  /* all elements that overflow the axis will be hidden */
  /* Only works if there is nothing absolutely positioned in relation to body */
  overflow-x: hidden;
}

strong {
  font-weight: 500;
}

/******************************************/
/* HEADER */
/******************************************/

.header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background-color: #051727;
  /*Fix height to later stick the header navigation*/
  height: 9.6rem;
  padding: 0 4.8rem;
  position: relative;
}

/******************************************/
/* NAVIGATION */
/******************************************/

.main-nav-list {
  list-style: none;
  display: flex;
  /* justify-content: flex-end; */
  align-items: center;
  gap: 3.2rem;
}

.main-nav-link:link,
.main-nav-link:visited {
  display: inline-block;
  text-decoration: none; /*remove underline*/
  color: #fff;
  font-weight: 500;
  font-size: 1.8rem;
  transition: all 0.3s;
}

.main-nav-link:hover,
.main-nav-link:active {
  color: #8d1d1d;
}

/* Increment specificity */
.main-nav-link.nav-award:link,
.main-nav-link.nav-award:visited {
  padding: 1.6rem 2.4rem;
  border-radius: 9px;
  color: #fff;
  background-color: #c92a2a;
}

.main-nav-link.nav-award:hover,
.main-nav-link.nav-award:active {
  background-color: #8d1d1d;
}

/* MOBILE */
.btn-mobile-nav {
  border: none;
  background: none;
  cursor: pointer;
  display: none;
}

.icon-mobile-nav {
  height: 4.8rem;
  width: 4.8rem;
  color: #bbb;
}

.icon-mobile-nav[name="close-outline"] {
  display: none;
}

/* STICKY SECTION */
/* this style is applied to the header if sticky is one of its parent elements */
.sticky .header {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 8rem;
  padding-top: 0;
  padding-bottom: 0;
  background-color: rgba(5, 23, 39, 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: #051727;
  padding: 4.8rem 0 4.8rem 0;
}

.hero {
  max-width: 130rem;
  margin: 0 auto;
  padding: 0 3.2rem; /*pad sides from section-hero*/
  display: grid;
  grid-template-columns: 1fr 1fr; /*fractional units*/
  gap: 9.6rem;
  align-items: center;
}

.heading-primary,
.heading-secondary,
.heading-section,
.heading-section-secondary {
  font-weight: 700;
  letter-spacing: -0.5px; /*use pixels because spacing not scale*/
}

.heading-primary {
  font-size: 5.2rem;
  color: #bbb;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.heading-secondary {
  font-size: 3rem;
  color: #bbb;
  line-height: 1.2;
  margin-bottom: 3.2rem;
}

.hero-img,
.project-img {
  width: 80%;
  border-radius: 15px;
}

.hero-description {
  font-size: 2rem;
  line-height: 1.6;
  margin-bottom: 4.8rem;
  color: #ccc;
}

.btn:link,
.btn:visited {
  display: inline-block;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;
  padding: 1.6rem 3.2rem;
  border-radius: 9px;
  transition: all 300ms;
  color: #fff;
}

.btn--full:link,
.btn--full:visited {
  background-color: #c92a2a;
}

.btn--full:hover,
.btn--full:active {
  background-color: #8d1d1d;
}

.btn--outline:link,
.btn--outline:visited {
  background-color: #c92a2a;
}

.btn--outline:hover,
.btn--outline:active {
  background-color: #051727;
  box-shadow: inset 0 0 0 3px #8d1d1d;
}

.margin-right-sm {
  margin-right: 3rem;
}

/******************************************/
/* PROJECTS */
/******************************************/

.section-title {
  padding: 9.6rem 0 4.8rem 0;
  /* background-color: orangered; */
}

.container {
  /*When the viewport is less than 1200px, the container will shrink*/
  max-width: 120rem;
  /*substract 32px from both sides, so when the viewport shrinks, there is space*/
  padding: 0 3.2rem;
  margin: 0 auto;
}

.heading-section {
  font-size: 4.4rem;
  line-height: 1.2;
  color: #333;
  margin-bottom: 9.6rem;
  /* text-align: center; */
}

.grid {
  display: grid;
  grid-template-columns: 50fr 50fr;
  column-gap: 4rem;
  row-gap: 9.6rem;
  align-items: center;
}

.projects-number {
  font-size: 8.6rem;
  font-weight: 600;
  color: #ddd;
  margin-bottom: 1.2rem;
}

.heading-section-secondary {
  font-size: 2.7rem;
  line-height: 1.2;
  margin-bottom: 3.2rem;
  /* color: #555; */
}

.projects-description {
  font-size: 1.8rem;
  line-height: 1.8;
  margin-bottom: 3.2rem;
}

ul {
  list-style: none;
}

.projects-img-box {
  display: flex;
  justify-content: center; /* Center the image horizontally
  /* align-items: center; Center the image vertically */
  /* width: 100%; */
  /* overflow: hidden; Hide overflow if the image is too big */
}

.project-img {
  width: 100%;
  /* max-height: 100%; */
  /* Ensures that the image keep its aspect ratio */
  /* object-fit: contain; */
}

/******************************************/
/* CERTIFICATIONS */
/******************************************/

.center {
  text-align: center;
}

.grid--6-cols {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  justify-items: center;
  row-gap: 3.2rem;
}

.one-col {
  grid-column: span 6;
}

.two-cols {
  grid-column: span 3;
}

.cert-badge {
  grid-column: span 3;
}

.associate-cert {
  /* Scale down a bit the certs*/
  transform: scale(0.9);
  grid-column: span 2;
}

.cert-badge img,
.associate-cert img {
  /* display: block; */
  transition: all 0.4s;
}

.cert-badge img:hover,
.associate-cert img:hover
 {
  transform: scale(1.1); /*scale images*/
}

/******************************************/
/* AWARD */
/******************************************/

.subheading {
  display: block; /*displayed as block to apply margin*/
  font-size: 2rem;
  font-weight: 500;
  color: #c92a2a;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  letter-spacing: 0.75px;
}

.award {
  /* max-width: 74rem; */
  /* max-width: 100rem; */
  display: grid;
  grid-template-columns: 45fr 60fr;
  /* background-color: #e67e22; */
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.07);
  border-radius: 11px;
  /* linear-gradient(90deg, red, #e67e22) */
  /* linear-gradient(to right, red, #e67e22) */
  background-image: linear-gradient(to right bottom, #010508, #051727);
  overflow: hidden;
  /* temp */
  /* height: 50rem; */
  margin-bottom: 9.6rem;
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.07);
}

.award-img-box {
  background-image: linear-gradient(
      to right bottom,
      rgba(1, 5, 8, 0.3),
      rgba(5, 23, 39, 0.35)
    ),
    url("img/award.webp");
  background-size: cover;
  background-position: center;
}

.award-text {
  /* padding: 3.2rem 5rem 3.2rem 4.8rem; */
  padding: 4.8rem 6.4rem 4.8rem 6.4rem;
  font-size: 1.8rem;
  line-height: 1.8;
  color: #fff;
}

.paper-title {
  font-weight: 700;
  font-size: 2.4rem;
  /* line-height: 1.2; */
  margin-bottom: 3.2rem;
  text-decoration: underline;
}

/******************************************/
/* FOOTER */
/******************************************/

.footer {
  padding: 1rem 0;
  border-top: 1px solid #eee;
}

.copyright {
  display: flex;
  justify-content: center;
  font-size: 1.4rem;
  color: #767676;
  line-height: 1.6;
  /* pushes the element to the bottom of the flex container*/
  margin-top: auto;
}
