:root {
    --clr-accent-500: hsl(12, 60%, 45%);
    --clr-accent-400: hsl(12, 88%, 59%);
    --clr-accent-300: hsl(12, 88%, 75%);
    --clr-accent-100: hsl(13, 100%, 96%);
  
    --clr-sprimary-400: rgb(0, 111, 128);
  
    --clr-primary-400: hsl(228, 39%, 23%);
    --clr-neutral-900: hsl(232, 12%, 13%);
    --clr-neutral-200: hsl(0 0% 97%);
    --clr-neutral-100: hsl(0 0% 100%);
  
    --ff-primary: "Be Vietnam Pro", sans-serif;
    --ff-secondary: "Playfair", serif;

  
    --ff-body: var(--ff-primary);
    --ff-heading: var(--ff-primary);
  
    --fw-regular: 400;
    --fw-semi-bold: 500;
    --fw-bold: 700;
  
    --fs-300: 0.8125rem;
    --fs-400: 0.875rem;
    --fs-500: 0.9375rem;
    --fs-600: 1rem;
    --fs-700: 1.875rem;
    --fs-800: 2.5rem;
    --fs-900: 3.5rem;
  
    --fs-body: var(--fs-400);
    --fs-primary-heading: var(--fs-800);
    --fs-secondary-heading: var(--fs-700);
    --fs-nav: var(--fs-500);
    --fs-button: var(--fs-300);
  
    --size-100: 0.25rem;
    --size-200: 0.5rem;
    --size-300: 0.75rem;
    --size-400: 1rem;
    --size-500: 1.5rem;
    --size-600: 2rem;
    --size-700: 3rem;
    --size-800: 4rem;
    --size-900: 5rem;
  }
  
  /* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  margin: 0;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture, 
svg {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}


/* navigation */

.primary-header {
    padding-top: var(--size-100);
  }
  
  .nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .mobile-nav-toggle {
    display: none;
  }
  
  .nav-list {
    font-size: var(--fs-nav);
    position: fixed;
    background-color: white;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-right: 15px;
    z-index: 1000;

  }
  
  .nav-list {
    display: flex;
    gap: clamp(var(--size-300), 5vw, var(--size-700));
    font-weight: var(--fw-semi-bold);
  }
  
  .nav-list a {
    text-decoration: none;
    color: var(--clr-primary-400);
  }
  
  .nav-list a:hover,
  .nav-list a:focus {
    color: var(--clr-accent-400);
  }

  .container {
    flex: 50%;  
    position: relative;
    max-width: 50%;
    padding: 5px;
  }



.nav-button {
    padding: 10px 28px;
    font-size: 1rem;
    font-family: var(--ff-primary);
    transition-duration: .3s;
}

.nav-button:hover {
    background-color: var(--clr-accent-300);
  }


/* about section */

.about {
    display:flex;
    align-items: stretch;

}

.about-container {
    padding-top: 20%;
    padding-left: 5%;
    max-width: 50%;
}

.about-text-headline {
    margin-bottom: 5%;
    font-size: 2rem;
    font-family: var(--ff-primary);
    color: var(--clr-primary-400);
}

#dave {
    color: var(--clr-accent-400);
}

.about-text-body {
    
    font-size: 1rem;
    font-family: var(--ff-primary);
    color: var(--clr-primary-400);
    font-weight: var(--fw-regular);
    padding-bottom: 15px;
    width: 100%;
    z-index: 10000;

}

.about-container-img {
  max-width: 50%;
  max-height: 75%;
  width: 100%;
}

/* span */

.span {
    block-size: 50px;
    background-color: lightgray;
    width: 100%;
    white-space: nowrap;
}

/* project section */


.project-header {
    background-color: lightgray;
}

#project-header-headline {
    margin-bottom: 20px;
    font-size: 2rem;
    font-family: var(--ff-primary);
    color: var(--clr-primary-400);
    text-align: center;
}

#project-header-text {
    margin-bottom: 50px;
    font-size: 1rem;
    font-family: var(--ff-primary);
    color: var(--clr-primary-400);
    text-align: center;
}

.logo-grid {
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: center;
    display: flex;
    padding-bottom: 20px;
}

.logo-image {
    width: 10%;
    margin-inline: 30px;
}

.project-container {
    background-color: white;
    display: flex;
    flex-wrap: wrap;
    padding: 10px 10px;
}

.image {
  opacity: 1;
  display: block;
  width: 100%;
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
}

.middle {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

.container:hover .image {
  opacity: 0.3;
}

.container:hover .middle {
  opacity: 1;
}

.project-headline {
  background-color: var(--clr-primary-400);
  color: white;
  font-size: 1rem;
  padding: 1rem 2rem;
  font-family: var(--ff-primary);
}

.project-text {
    background-color: var(--clr-primary-400);
    color: white;
    font-size: 1rem;
    padding: 1rem 2rem;
    font-family: var(--ff-primary);
  }

/* contact section */

#contact-head {
    margin-bottom: 20px;
    font-size: 2rem;
    font-family: var(--ff-primary);
    color: var(--clr-primary-400);
    background-color: lightgray;
    text-align: center;
    padding-bottom: 20px;
}

#contact-image {
    display: block;
    margin-right: auto;
    margin-left: auto;
    width: 20%;
    margin-top: 30px;
    margin-bottom: 60px;
}


/* Responsive Elements */


  @media (max-width: 50em) {
    .primary-navigation {
      display: none;
      position: relative;
      background: var(--clr-neutral-100);
      border-radius: var(--size-100);
      box-shadow: 0 0 0.75em rgb(0, 0, 0, 0.05);
      z-index: 100;
      float: none;
      margin-top: 50%;
      left: 25%;
    }

    .menu {
        width: 20%;
        height: auto;
        float: right;
       
    }
  
    .primary-header[data-overlay]::before {
      content: "";
      position: fixed;
      inset: 0;
      /* height: 100vh; */
      background-image: linear-gradient(rgb(0 0 0 / 0), rgb(0 0 0 / 0.8));
    }
  
    .nav-list {
      display: grid;
      gap: 50px;
      text-align: center;
      font-weight: var(--fw-bold);
      padding: 60px;
    }
  
    .primary-navigation[data-visible] {
      display: block;
      z-index: 1000;
    }
  
    .mobile-nav-toggle {
      display: block;
      position: fixed;
      top: var(--size-600);
      right: var(--size-400);
      cursor: pointer;
      background: transparent;
      border: 0;
      padding: 0.5em;
      z-index: 1000;
    }
  
    .mobile-nav-toggle .icon-close {
      display: none;
    }

    .container {
        flex: 100%;
        max-width: 100%;
        padding: 10px;
    }
    
    .project-container {
        padding-top: 15px;
    }

    .logo-image {
        width: 20%;
        margin-inline: 15px;
    }

    .about-container {
        max-width: 100%;
        padding-bottom: 60px;
    }

    .about-container-img {
        display: none;
    }

    #contact-image {
        display: block;
        margin-right: auto;
        margin-left: auto;
        width: 60%;
        margin-bottom: 60px;
    }

  }