/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Righteous&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  --md-sys-color-primary: rgb(113, 224, 156);
  --md-sys-color-surface-tint: rgb(100, 100, 100);
  --md-sys-color-on-primary: rgb(255, 255, 255);
  --md-sys-color-primary-container: rgb(200, 200, 200);
  --md-sys-color-on-primary-container: rgb(30, 30, 30);

  --md-sys-color-secondary: rgb(80, 211, 119);
  --md-sys-color-on-secondary: rgb(255, 255, 255);
  --md-sys-color-secondary-container: rgb(210, 210, 210);
  --md-sys-color-on-secondary-container: rgb(40, 40, 40);

  --md-sys-color-tertiary: rgb(150, 150, 150);
  --md-sys-color-on-tertiary: rgb(255, 255, 255);
  --md-sys-color-tertiary-container: rgb(230, 230, 230);
  --md-sys-color-on-tertiary-container: rgb(50, 50, 50);

  --md-sys-color-error: rgb(180, 0, 0);
  --md-sys-color-on-error: rgb(255, 255, 255);
  --md-sys-color-error-container: rgb(240, 200, 200);
  --md-sys-color-on-error-container: rgb(100, 0, 0);

  --md-sys-color-background: rgb(245, 245, 245);
  --md-sys-color-on-background: rgb(30, 30, 30);

  --md-sys-color-surface: rgb(255, 255, 255);
  --md-sys-color-on-surface: rgb(30, 30, 30);

  --md-sys-color-surface-variant: rgb(220, 220, 220);
  --md-sys-color-on-surface-variant: rgb(70, 70, 70);

  --md-sys-color-outline: rgb(120, 120, 120);
  --md-sys-color-outline-variant: rgb(200, 200, 200);

  --md-sys-color-shadow: rgb(0, 0, 0);
  --md-sys-color-scrim: rgb(0, 0, 0);

  --md-sys-color-inverse-surface: rgb(40, 40, 40);
  --md-sys-color-inverse-on-surface: rgb(240, 240, 240);
  --md-sys-color-inverse-primary: rgb(180, 180, 180);

  --md-sys-color-primary-fixed: rgb(210, 210, 210);
  --md-sys-color-on-primary-fixed: rgb(20, 20, 20);
  --md-sys-color-primary-fixed-dim: rgb(160, 160, 160);
  --md-sys-color-on-primary-fixed-variant: rgb(50, 50, 50);

  --md-sys-color-secondary-fixed: rgb(210, 210, 210);
  --md-sys-color-on-secondary-fixed: rgb(20, 20, 20);
  --md-sys-color-secondary-fixed-dim: rgb(160, 160, 160);
  --md-sys-color-on-secondary-fixed-variant: rgb(50, 50, 50);

  --md-sys-color-tertiary-fixed: rgb(230, 230, 230);
  --md-sys-color-on-tertiary-fixed: rgb(20, 20, 20);
  --md-sys-color-tertiary-fixed-dim: rgb(180, 180, 180);
  --md-sys-color-on-tertiary-fixed-variant: rgb(50, 50, 50);

  --md-sys-color-surface-dim: rgb(220, 220, 220);
  --md-sys-color-surface-bright: rgb(255, 255, 255);

  --md-sys-color-surface-container-lowest: rgb(255, 255, 255);
  --md-sys-color-surface-container-low: rgb(240, 240, 240);
  --md-sys-color-surface-container: rgb(230, 230, 230);
  --md-sys-color-surface-container-high: rgb(210, 210, 210);
  --md-sys-color-surface-container-highest: rgb(190, 190, 190);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

body.dark {
  background-color: var(--md-sys-color-background);
}
body.dark {
  --md-sys-color-primary: rgb(108, 185, 108);
  --md-sys-color-surface-tint: rgb(39, 45, 48);
  --md-sys-color-on-primary: rgb(30, 30, 30);
  --md-sys-color-primary-container: rgb(30, 32, 32);
  --md-sys-color-on-primary-container: rgb(210, 210, 210);
  

  --md-sys-color-secondary: rgb(160, 160, 160);
  --md-sys-color-on-secondary: rgb(25,28,29);
  --md-sys-color-secondary-container: rgb(60, 60, 60);
  --md-sys-color-on-secondary-container: rgb(220, 220, 220);

  --md-sys-color-tertiary: rgb(140, 140, 140);
  --md-sys-color-on-tertiary: rgb(30, 30, 30);
  --md-sys-color-tertiary-container: rgb(70, 70, 70);
  --md-sys-color-on-tertiary-container: rgb(230, 230, 230);

  --md-sys-color-background: rgb(11,15,15);
  --md-sys-color-on-background: rgb(220, 220, 220);

  --md-sys-color-surface: rgb(18, 18, 18);
  --md-sys-color-on-surface: rgb(220, 220, 220);

  --md-sys-color-surface-variant: rgb(60, 60, 60);
  --md-sys-color-on-surface-variant: rgb(200, 200, 200);

  --md-sys-color-outline: rgb(120, 120, 120);
  --md-sys-color-outline-variant: rgb(80, 80, 80);

  --md-sys-color-inverse-surface: rgb(220, 220, 220);
  --md-sys-color-inverse-on-surface: rgb(40, 40, 40);
  --md-sys-color-inverse-primary: rgb(150, 150, 150);

  --md-sys-color-surface-dim: rgb(24, 24, 24);
  --md-sys-color-surface-bright: rgb(50, 50, 50);
  --md-sys-color-surface-container-lowest: rgb(15, 15, 15);
  --md-sys-color-surface-container-low: rgb(26, 26, 26);
  --md-sys-color-surface-container: rgb(36, 36, 36);
  --md-sys-color-surface-container-high: rgb(46, 46, 46);
  --md-sys-color-surface-container-highest: rgb(56, 56, 56);
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: var(--body-font);
}

body {
  transition: all 0.5s ease;
  font-size: var(--normal-font-size);
  background: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
  height: 120vh;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--md-sys-color-surface);
  z-index: var(--z-fixed);
  transition: .3s;
}

.header.hide {
  top: -100px;
}
/*=============== MAIN ===============*/
main{
  width: 100%;
}

.main{
  background: var(--md-sys-color-background);
}

.main_presentation{
  margin-top: 20vh;
  width: 100%;
}

.main_presentation h1,p{
  text-align: center;
  margin-top: 20px;
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--md-sys-color-surface-variant);
  color: var(--md-sys-color-on-surface-variant);
  border-top: 2px solid var(--md-sys-color-primary);
  padding: 3rem 0 1.5rem;
  border-radius: 0;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__section h3 {
  color: var(--md-sys-color-on-background);
  margin-bottom: 1rem;
  padding: 16px;
  font-weight: 600;
}

.footer__section ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__section a {
  border-radius: 80px;
  padding: 6px 16px;
  color: var(--md-sys-color-on-surface-variant);
  transition: .2s;
}

.footer__section a:hover {
  color: var(--md-sys-color-on-surface);
  background: var(--md-sys-color-surface);
}
.footer__bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
}

.nav__logo, 
.nav__burger, 
.nav__close {
  color: var(--md-sys-color-on-surface);
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  font-weight: var(--font-semi-bold);
}

.nav__logo i {
  font-weight: 400;
  font-size: 1.25rem;
  font-family: "Righteous", sans-serif;;
}

.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
}

.nav__burger, 
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity .1s, transform .4s;
}

.nav__close {
  opacity: 0;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1118px) {
  .nav__menu {
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top .4s, opacity .3s;
  }
  .nav__menu::-webkit-scrollbar {
    width: 0;
  }
  .nav__list {
    padding-top: 1rem;
  }
}

.nav__link {
  color: var(--md-sys-color-on-surface);
  background-color: var(--md-sys-color-surface);
  padding: 1rem 1.5rem;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color .2s;
}

.nav__link:hover {
  background-color: var(--md-sys-color-surface-container-high);
}

/* Show menu */
.show-menu {
  opacity: 1;
  pointer-events: initial;
}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}
.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.dropdown__item {
  cursor: pointer;
}

.dropdown__arrow {
  font-size: 1.2rem;
  font-weight: initial;
  transition: transform .4s;
}

.dropdown__link, 
.dropdown__sublink {
  padding: 1rem;
  color: var(--md-sys-color-on-surface);
  display: flex;
  column-gap: .5rem;
  transition: background-color .3s;
  border-radius: 50px;
  white-space: nowrap;
}

.dropdown__link i, 
.dropdown__sublink i {
  font-size: 1rem;
}

.dropdown__link:hover, 
.dropdown__sublink:hover {
  background-color: var(--md-sys-color-primary-container);
}

/* Show dropdown menu & submenu */
.dropdown__item:hover .dropdown__menu, 
.dropdown__subitem:hover > .dropdown__submenu {
  max-height: 1000px;
}

/* Rotate dropdown icon */
.dropdown__item:hover .dropdown__arrow {
  transform: rotate(180deg);
}

.dropdown__menu, 
.dropdown__submenu {
  overflow: hidden;
  transition: max-height .3s ease-out;
  background-color: var(--md-sys-color-surface);
  max-height: 0;
}

.dropdown__item:hover .dropdown__menu, 
.dropdown__subitem:hover > .dropdown__submenu {
   max-height: 1000px;
}

/*=============== DROPDOWN SUBMENU ===============*/
.dropdown__add {
  margin-left: auto;
}

.dropdown__sublink {
  background-color: var(--md-sys-color-surface);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__link {
    padding-left: 1rem;
  }
}

/* For large devices */
@media screen and (min-width: 1118px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: space-between;
  }
  .nav__toggle {
    display: none;
  }
  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 3rem;
  }
  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
    column-gap: .25rem;
  }
  .nav__link:hover {
    background-color: transparent;
  }

  .dropdown__item, 
  .dropdown__subitem {
    position: relative;
  }

  .dropdown__link, 
  .dropdown__sublink {
    padding-inline: 1rem 3.5rem;
  }

  .dropdown__subitem .dropdown__link {
    padding-inline: 1rem;
  }

  .dropdown__menu, 
  .dropdown__submenu {
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
    transition: opacity .05s, transform .5s;
    border-radius: 0 0 25px 25px;
    padding: 1rem 1rem 1.2rem 1.2rem;
  }

  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    transform: translateX(0);
    pointer-events: initial;
  }

  .dropdown__subitem:hover > .dropdown__submenu {
    opacity: 1;
    transform: translateX(0);
    pointer-events: initial;
  }
}