:root {
  --ff: "Montserrat", sans-serif;
  --fs: 16px;
  --fw: 500;
  --bold1: 700;
  --bold2: 800;
  --boldmax: 900;

  /*Colors*/
  --primary: #424bf4;
  --secondary: #42a4f4;
  --error-clr: #ff2c58;
  --confirm-clr: #0ebe78;
  --txt: #3c3a3a;
  --disabled: rgba(0, 0, 0, 0.5);
  --placeholder-txt: rgba(0, 0, 0, 0.5);
  --white: #fff;

  /*Shadows and shapes*/
  --border: 0;
  --form-border: 1px solid rgba(29, 31, 32, 0.25);
  --border-radius: 3px;
  --box-shadow: 0 1px 1px rgba(29, 31, 32, 0.075),
    0 0.1333em 0.26667em rgba(29, 31, 32, 0.075),
    0 0.2222em 0.66667em 0 rgba(29, 31, 32, 0.075),
    0 0.4444em 1.3333em 0 rgba(29, 31, 32, 0.075);
  --shadow: 0 2px 0.25em rgba(0, 0, 0, 0.25);
  --shadow-blur: 0 4px 0.5em rgba(0, 0, 0, 0.25);
  --shadow-inset: inset 0 2px 0.25em rgba(0, 0, 0, 0.25);
  /* --simple-shadow: var(--box-shadow); */
  --shadow-hover: 0 3px 10px rgba(0, 0, 0, 0.35);

  /*Space*/
  --gap: 1rem;
  --biggap: 2rem;
  --smallgap: 0.5rem;

  /*Animation*/
  --speed: 0.2s;
  --timing: ease-in;
  --timing-cubic: cubic-bezier(0.18, 0.89, 0.32, 1.28);
  --timing-cubic2: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --timing-cubic: var(--timing-cubic2);
}

*:focus {
  outline-color: var(--secondary);
  outline-style: dashed;
  outline-offset: 0.5rem;
  outline-width: 2px;
}
html {
  font-family: var(--ff);
  font-size: var(--fs);
  font-weight: var(--fw);
  color: var(--txt);
  background-color: var(--white);
  box-sizing: border-box;
  overflow-x: hidden;
}
body {
  margin: 0;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
select {
  font-family: var(--ff);
  font-size: var(--fs);
  font-weight: var(--bold2);
  line-height: 1rem;
}
button {
  font-family: var(--ff);
  font-size: var(--fs);
  font-weight: var(--bold2);
  line-height: 1rem;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--boldmax);
  margin: 0;
}
p {
  margin: 0;
  margin-bottom: 0.85rem;
  line-height: 1.5em;
}
em {
  font-weight: var(--bold1);
}

a {
  text-decoration: none;
  font-weight: var(--bold1);
  color: var(--primary);
}
a:hover {
  text-decoration: underline;
}

/*HEADER*/
header {
  margin: 0 auto;
  padding: 1em 0;
}
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.logo a {
  text-decoration: none;
  color: var(--txt);
}
.logo img {
  width: 300px;
}

/*NAVIGATION*/
nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0 2em;
}
nav ul li {
  flex-grow: 1;
  text-align: center;
}
nav a {
  position: relative;
  font-size: 1.15rem;
  font-weight: var(--bold1);
  padding: 0 0.5em;
  color: var(--txt);
  text-decoration: none;
  margin-right: 1em;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--speed) var(--timing-cubic);
}
nav a:hover {
  text-decoration: none;
}
nav a:hover::after {
  transform: scaleX(1);
}
.btn-link {
  display: inline-block;
  cursor: pointer;
  border: 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 0.65rem 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--bold1);
  margin: 0.25rem 0.65rem 0.25rem 0;
  transition: all 0.15s ease-in-out;
}
.btn-link-cta {
  color: var(--white);
  background-color: var(--primary);
}
.btn-link:hover {
  text-decoration: none;
  box-shadow: var(--shadow-blur);
  transform: translateY(-2px);
}

.btn-disabled {
  background-color: var(--disabled);
  box-shadow: none;
}
.btn-disabled:hover {
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/*MAIN CONTENT*/
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2em;
}
section {
  max-width: 65ch;
  margin-bottom: 4em;
}
.section-title h2 {
  margin-bottom: 1em;
}
.section-img {
  /* max-width: 80%; */
  overflow: visible;
  margin: 1em auto;
}
.section-img img {
  max-width: 100%;
}
.em {
  color: var(--primary);
}
.profile {
  height: 350px;
  position: relative;
}
.profile img {
  max-width: fit-content;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/**FORM*/
form {
  margin: 1rem 0;
}
.form-input {
  cursor: text;
  box-sizing: border-box;
  border: var(--form-border);
  border-radius: var(--border-radius);
  padding: 0.5rem;
  width: 320px;
  font-family: var(--ff);
  font-weight: var(--fw);
  letter-spacing: 0.025em;
  margin: 0.5rem 0;
  transition: all 0.15s ease-in-out;
}
.form-input:hover {
  box-shadow: var(--shadow-blur);
}
textarea.form-input {
  height: 5em;
}
.form-select {
  color: var(--txt);
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}
.form-btn:disabled {
  background-color: var(--disabled);
  box-shadow: none;
}
.form-btn:disabled:hover {
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
::placeholder {
  color: var(--placeholder-txt);
  font-family: var(--ff);
}

/*FOOTER*/
footer {
  padding: 2em 1em;
  background-color: var(--primary);
}

footer nav a {
  font-size: 1em;
  margin: 0;
  color: var(--white);
}
footer nav a::after {
  background: var(--white);
}
footer .mwl {
  color: rgba(255, 255, 255, 0.5);
  font-size: small;
  text-align: center;
  margin-top: 1em;
}

/*UTILITY*/
#submitMsg {
  position: fixed;
  width: 100%;
  top: 0;
  padding: 0.5em 0;
  text-align: center;
  font-size: 0.85em;
  font-weight: var(--bold1);
  letter-spacing: 0.05em;
  color: var(--white);
  background-color: var(--confirm-clr);
}
#submitMsg.fail {
  background-color: var(--error-clr);
}
.hide {
  display: none;
}

select {
  background-color: var(--white) !important;
}

/*DESKTOP*/
@media (min-width: 650px) {
  p {
    font-size: 1.25em;
  }
  header {
    max-width: 65ch;
    padding: 1em 2em;
  }
  .header-container {
    display: flex;
    justify-content: left;
    /* padding-left: 1.5em; */
    /* width: 650px; */
  }
  nav {
    margin-left: 3rem;
  }
  nav ul {
    justify-content: flex-start;
    padding: 0;
  }
  nav ul li {
    margin: 0;
  }
  nav a {
    font-size: var(--fs);
    line-height: 29.5px;
    display: inline-block;
    margin-right: 1.5rem;
  }
  .logo {
    flex-basis: content;
    /* margin: 0 0 0 1rem; */
  }
  .logo img {
    width: 175px;
  }

  .form-input {
    width: 350px;
  }

  footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2em;
  }
  footer nav {
    margin: 0;
  }
}
