/* || GLOBAL STYLING */

/* light mode colours */
:root {
  --bg: #f2f2f0;
  --text: black;
  --input: rgba(255, 255, 255, 0.776);
}

/* dark mode colours */
.dark {
  --bg: rgb(13, 13, 13);
  --text: #eae8e1;
  --input: rgba(0, 0, 0, 0.819);
}

/* fonts */
@font-face {
  font-family: aptos;
  src: url(fonts/Aptos.ttf);
}

@font-face {
  font-family: aptos-serif;
  src: url(fonts/Aptos-Serif.ttf);
}

p,
li,
a,
button,
span {
  font-family: aptos;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: aptos-serif;
}

a {
  color: var(--text);
  transition-duration: 0.3s;
}

a:focus-visible,
button:focus-visible {
  outline: solid 1px var(--text);
}

/* no-class styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 10rem;
}

body {
  margin: 0;
  box-sizing: border-box;
  background-color: var(--bg);
  color: var(--text);
  transition-duration: 0.3s;
}

main {
  padding-top: 8.8rem;
}

/* HEADER */
header {
  transition-duration: 0.3s;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  position: fixed;
  width: 100%;
  top: 0;
  background-color: var(--bg);
  z-index: 10;

  a {
    text-decoration: none;
  }

  a,
  button {
    font-size: 1.3rem;
  }
}
header > * {
  align-self: center;
}

button {
  font-size: 1.7rem;
  background: none;
  cursor: pointer;
  border: none;
  color: var(--text);
  transition-duration: 0.3s;
}

.name {
  padding: 0 1rem;
  text-wrap: nowrap;
}

.tagline {
  text-align: end;
  font-style: italic;
  margin-top: -1.5rem;
}

/* navigation bar */
#desktop-nav {
  display: flex;
  align-items: center;
  /* width: 30rem; */
  justify-content: space-between;
  /* border: solid; */
  column-gap: 1rem;
  margin-right: -1rem;

  a,
  button {
    text-decoration: none;
    padding: 0 3rem;
  }
}

#portfolio {
  cursor: pointer;
  padding: 0;
  z-index: 20;
  /* font-size: 1rem; */
}

#portfolio-dropdown {
  position-area: top;
  border: none;
  background-color: var(--bg);
  border-radius: 0px 0px 3px 3px;
  inset: auto;
  top: anchor(bottom);
  left: anchor(left);
  width: 13rem;
  overflow: hidden; 
  box-sizing: border-box;
  margin-top: -5px;
  z-index: 1;
  margin-left: -18.6px;
  padding-bottom: 1rem;
  margin-top: 1rem;
  padding-left: 1rem;
  color: var(--text); 

  a {
    line-height: 2rem;
    font-size: 1rem;
  }
}

#hb-menu {
  display: none;
  margin: 1rem;
}

#desktop-themeswitch {
  i {
    min-width: 1.5rem;
  }
}

#mobile-themeswitch {
  display: none;
}

.mobile-nav {
  position: relative;
  display: none;
}

#mobile-nav {
  position: fixed;
  width: 100%;
  inset: auto;
  top: 0;
  margin-top: 8rem;
  box-sizing: border-box;
  border-top: solid 1px;
  border-bottom: dotted 2px;
  padding: 1rem;
  background-color: var(--bg);
  z-index: 5;

  a {
    line-height: 2rem;
    text-decoration: none;
    font-size: 1.2rem;
  }
}

.mobile-nav-content {
  width: 6rem;
  text-align: start;
  margin: auto;
  padding: 0rem 1rem;
  border-left: dotted 2px;

}

#portfolio-mobile {
  font-size: 1.2rem;
  line-height: 2rem;
  padding: 0;
}

#portfolio-dropdown-mobile {
  font-size: 0.9rem;
  text-align: start;
  padding: 0.5rem 1rem;
  border-left: dotted 2px;
  color: var(--text);
  a {
    line-height: 2rem;
  }

  button {
    cursor: pointer;
  }
}

.dropdown {
  display: none;
}

.active {
  display: block;
}

/* footer */

footer {
  padding: 1rem;
  text-align: center;
}

.socials {
  font-size: 2rem;
}

/* || HOME PAGE  */

/* hero image section */

#hero-image {
  height: 38rem;
  background-size: cover;
  border-radius: 3px;
}

.hero-text {
  color: #eae8e1;
  font-size: 3rem;
  font-style: italic;
  font-family: aptos-serif;
  mix-blend-mode: screen;
  height: 100%;
  padding: 3rem;
  align-content: center;
  text-align: end;
}

.instructions {
  align-items: baseline;
  mix-blend-mode: screen;
  color: #eae8e1;
  margin-top: -3rem;
  text-align: end;
  margin-right: 1rem;
}

.contact-button {
  background-color: var(--bg);
  color: var(--text);
  font-family: aptos;
  padding: .5rem 1rem;
  font-size: 1.5rem;
  border-radius: 3px;
  mix-blend-mode: unset;

  a {
    text-decoration: none;
  }
}

/* about section */

.about-content {
  display: grid;
  grid-template-columns: auto auto;
  max-width: 60rem;
  margin: auto;
}

.about-img {
  border-radius: 50%;
  margin: 1rem;
  width: 90%;
  align-self: center;
}

.about-text {
  padding: 1rem;
  align-self: center;

  h2 {
    font-size: 3rem;
    margin-bottom: 0;
  }

  p {
    font-style: italic;
    text-align: justify;
  }
}

/* || PORTFOLIO PAGES */
.blurb {
  max-width: 45rem;
  margin: auto;
  padding: 0 1rem;

  h1 {
    text-align: end;
  }

  p {
    text-align: justify;
  }
}

.images {
  padding: 3rem;
  display: column;
  columns: 3;
  column-gap: 0.5rem;

  img {
    width: 100%;
    margin-bottom: 0.3rem;
    border-radius: 3px;
  }
}

/* || CONTACT */

.contact-blurb {
  max-width: 45rem;
  margin: auto;
  color: rgb(37, 36, 36);
  text-align: justify;
  padding: 1rem;
  padding-bottom: 0;

  h1 {
    text-align: end;
  }
}

form {
  height: 100%;
  max-width: 45rem;
  margin: 0 auto;
  font-family: aptos;
  padding: 0 1rem;
}

input,
textarea {
  margin-bottom: 1rem;
  width: 100%;
  font-family: aptos;
  padding: 0.7rem;
  border-radius: 1rem;
  border: none;
  color: var(--text);
  background-color: var(--bg);
  font-size: 1.1rem;
}

input::placeholder,
textarea::placeholder {
  color: var(--text);
}

textarea {
  height: 8rem;
  resize: none;
}

.submit-button {
  display: flex;
  width: 40%;
  margin: auto;
  cursor: pointer;
  color: var(--text);
  background-color: var(--bg);
}

.receipt-message {
  height: 100%;
  padding: 2rem;
}

.receipt-text {
  margin: 3rem auto;
  background-color: var(--input);
  color: var(--text);
  padding: 2rem;
  border-radius: 1rem;
  max-width: 40rem;

  h1 {
    text-align: center;
  }
}

/* UNDER CONSTRUCTION */

.under-construction {
  text-align: center;
  align-content: center;
  height: 58vh;
}

/* || MEDIA QUERIES */
/* phone width */
@media screen and (max-width: 850px) {
  html {
    scroll-padding-top: 14rem;
  }

  .name {
    padding: 0rem;
  }

  #desktop-themeswitch {
    display: none;
  }

  #desktop-nav {
    display: none;
  }

  #hb-menu {
    display: block;
    font-size: 1.8rem;
    /* position: absolute; */
    /* right: 0; */
  }

  #mobile-themeswitch {
    display: block;
    position: fixed;
    bottom: 0;
    right: 0;
    margin: 2rem 1rem;
    /* border: solid; */
    border-radius: 50%;
    padding: 0.7rem;
    width: 3.2rem;
    z-index: 3;
    background-color: var(--bg);
    font-size: 1.3rem;
  }

  .about-content {
    grid-template-columns: auto;
  }

  .about-img {
    margin: auto;
  }

  .images {
    columns: 1;
  }

  .images {
    padding: 1rem;
  }
}
