/*--------------------
FONTS
------------------- */

@import url('https://fonts.googleapis.com/css2?family=Mona+Sans:ital,wght@0,200..900;1,200..900&family=Nanum+Pen+Script&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/*--------------------
VARIABLES
------------------- */

:root {
  /* COLORS */
  --background: #F3F7FF;
  --black: #222222;
  --lightgray: #BAC4D2;
  --gray: #4B607F;
  --darkgray: #37475E;
  --text: #444;
  --white: #FFFFFF;
  --blue: #0064FF;
  --lightblue: #75AAFF;
  --darkblue: #003C99;
}

/*--------------------
ACCESSIBILITY
------------------- */

.skip-link {
  position: absolute;
  top: 10px;
  left: -99999px;
  display: block;
  background-color: white;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 12px;
  opacity: 0;
  z-index: 1031;
}

.skip-link:focus {
  left: 10px;
  opacity: 1;

}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  clip-path: inset(50%);
  word-wrap: normal !important;
}


/* --------------------------------------------------
GENERAL STYLES
-------------------------------------------------- */

html {
  position: relative;
  min-height: 100%;
}

body {
  background-color: var(--background);
  /* Margin top by navbar height */
  margin-top: 80px;
  font-family: 'Mona Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
}

.handwritten {
  font-family: "Nanum Pen Script", cursive;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: -1px;
}

section, footer {
  padding: 64px 0;
}

section.white {
  background-color: var(--white);
  p {
   color: var(--text); 
  }
}

.dark {
  background-color: #222;
  color: #EEE;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Raleway", sans-serif;
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

h1, h2, h3 {
  font-weight: bold;
  margin-bottom: 30px;
}

h1 {
  font-size: 1.875rem;
  line-height: 2rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.dark h2 {
  color: #EC971F;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

h4 {
  font-size: 1.375rem;
}

p {
  margin-bottom: 20px;
}

a {
  -webkit-transition: all .3s ease;
  -moz-transition: all .3s ease;
  -ms-transition: all .3s ease;
  -o-transition: all .3s ease;
  transition: all .3s ease;
  text-decoration: none;
}

/* Buttons */

.btn {
  background-color: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 0;
  color: #FFF;
  font-weight: 500;
  transition: all .3s ease;
  padding: 12px 24px;
}

.btn:hover {
  background-color: var(--darkblue);
  border-color: var(--darkblue);
  color: #FFF;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--darkblue);
  color: var(--darkblue);
}

.btn-secondary:hover {
  background-color: var(--darkblue);
  border-color: var(--darkblue);
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Cards */

.card {
  border: 1px solid var(--black);
  border-radius: 12px;
  box-shadow: 4px 4px 4px rgba(56,90,124,.12);

  .card-body {
    padding: 24px;
  }

  .card-img-top {
    border-radius: 11px 11px 0 0;
  }
}

@media screen and (max-width: 767px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media screen and (min-width: 768px) {
  section {
    padding-top: 110px;
    padding-bottom: 110px;
  }
}

@media screen and (min-width: 992px) {
  body {
    margin-top: 112px;
  }
  h2 {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
  .button-group {
    flex-direction: row;
  }
}

/* --------------------------------------------------
NAVBAR
-------------------------------------------------- */

.navbar {
  background-color: var(--black);
  border: none;
  margin-bottom: 0;
  height: 80px;
  padding: 16px 24px 16px 100px;

  .container {
    position: relative;
    padding: 0;

    /* LOGO */

    .navbar-brand {
      height: 100%;
      position: relative;
      padding: 0;
      img {
        height: 48px;
        width: 95px;
      }
    }

    .navbar-brand::before {
      content: '';
      background-image: url('../img/color-bands.svg');
      background-repeat: no-repeat;
      background-size: 66px 80px;
      display: block;
      width: 66px;
      height: 80px;
      position: absolute;
      top: -16px;
      left: -80px;
    }

    /* HAMBURGER MENU ICON */

    .navbar-toggler {
      border: 0;
      padding: 0;
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 40px;
      height: 40px;
      border: 0;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;

      .hamburger {
        width: 30px;
        height: 3px;
        background: var(--white);
        position: relative;
        transition: .5s;
        border-radius: 5px;
      }
      
      .hamburger::before, .hamburger::after {
        content: '';
        position: absolute;
        width: 30px;
        height: 3px;
        background: var(--white);
        transition: .5s;
        border-radius: 5px;
      }
      
      .hamburger::before {
        top: -10px;
        left: 0;
      }
      
      .hamburger::after {
        top: 10px;
        left: 0;
      }
    }

    .navbar-toggler:focus {
      box-shadow: none;
    }
      
    .navbar-toggler:hover .hamburger, .navbar-toggler:hover .hamburger::before, .navbar-toggler:hover .hamburger::after, .navbar-toggler:focus .hamburger, .navbar-toggler:focus .hamburger::before, .navbar-toggler:focus .hamburger::after {
      background: var(--lightblue);
    }
      
    .navbar-toggler.transformed {
      .hamburger {
        background: rgba(0,0,0,0) !important;
      }
      .hamburger:before {
        top: 0;
        transform: rotate(45deg);
        background: var(--white);
      }
      .hamburger:after {
        top: 0;
        width: 30px;
        transform: rotate(135deg);
        background: var(--white);
      }
    }

    .navbar-toggler.transformed:hover {
      .hamburger::before, .hamburger::after {
        background: var(--lightblue);
      }
    }

    /* NAVIGATION */

    #navbarCollapse {
      background: var(--black);
      position: fixed;
      top: 80px;
      left: 0;
      right: 0;
      margin: 0;
      width: 100%;

      .navbar-nav {
        > li > a {
          border-top: 1px solid #444;
          color: var(--white);
          font-size: 1rem;
          font-weight: 500;
          line-height: 1.25rem;
          padding: 16px 24px;
        }

        > li:last-child > a {
          background-color: var(--blue);
        }

        > li > a:hover, > li > a:focus {
          background-color: var(--darkblue);
        }
      }
    }
  }

  @media screen and (min-width: 768px) {
    padding: 16px 24px;
  }

  @media screen and (min-width: 768px) and (max-width: 991px) {
    .container {
      .navbar-brand {
        margin-left: 72px;
      }
    }
  }

  @media screen and (min-width: 992px) {
    height: 112px;
    .container {
      padding-left: 122px;
      padding-right: 12px;
      .navbar-brand {
        img {
          width: 125px;
          height: 64px;
        }
      }
      .navbar-brand::before {
        background-size: 92px 112px;
        width: 92px;
        height: 112px;
        top: -24px;
        left: -110px;
      }

      .navbar-toggler {
        display: none;
      }

      #navbarCollapse { 
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin: auto;
        width: auto;
        justify-content: flex-end;
        .navbar-nav {
          gap: 1.25rem;
          > li > a {
            border-top: 0;
            padding: 16px;
          }
          > li > a:hover {
            color: var(--lightblue);
            background-color: transparent;
          }
          > li:last-child > a {
            padding: 16px 24px;
          }
          > li:last-child > a:hover {
            background-color: var(--darkblue);
            color: var(--white);
          }
        }
      }
    }
  }  

  @media screen and (min-width: 1200px) {
    .container {
      #navbarCollapse {
        .navbar-nav {
          gap: 2rem;
        }
      }
    }
  }

}

/* --------------------------------------------------
HERO
-------------------------------------------------- */

#hero {
  padding: 24px 0 64px;
  h1 {
    font-size: 1.875rem;
    line-height: 1.5rem;
    margin-bottom: 20px;
    span {
      display: block;
      color: var(--gray);
      font-size: 2rem;
      margin-top: 14px;
      margin-bottom: 4px;
    }
  }

  p em {
    color: var(--gray);
  }

  @media screen and (min-width: 768px) {
    padding: 56px 0;
  }
  
  @media screen and (min-width: 768px) and (max-width: 991px) {
    h1 {
      font-size: 2.5rem;
      line-height: 2.375rem;
      span {
        margin-top: 4px;
        margin-bottom: -8px;
      }
    }
    p {
      font-size: .875rem;
      line-height: 1.375rem;
    }
  }

  @media screen and (max-width: 991px) {
    p em {
      font-size: .75rem;
    }
  }

  @media screen and (min-width: 992px) {
    padding: 20px 0;
    h1 {
      font-size: 3rem;
      line-height: 3rem;
      span {
        font-size: 3rem;
        margin-top: 8px;
        margin-bottom: -8px;
      }
    }
  }

  @media screen and (min-width: 1200px) {
    h1 {
      font-size: 3.25rem;
      line-height: 3.125rem;
      margin-bottom: 28px;
      span {
        font-size: 3.25rem;
        margin-top: 5px;
        margin-bottom: -10px;
      }
    }
    p {
      font-size: 1.25rem;
      line-height: 1.75rem;
      margin-bottom: 32px;
      em {
        font-size: 1rem;
      }
    }
  }
}

/* --------------------------------------------------
HOW I CAN HELP
-------------------------------------------------- */

#how-i-can-help {
  padding-bottom: 0;
  .card {
    h3 {
      background-color: var(--black);
      border-radius: 11px 11px 0 0;
      color: var(--white);
      font-size: 1.375rem;
      font-weight: 600;
      text-transform: lowercase;
      padding: 12px 12px 12px 60px;
      position: relative;
      margin-bottom: 0;
    }
    h3::before {
      content: '';
      background-image: url('../img/color-bands.svg');
      background-repeat: no-repeat;
      background-size: 41px 50px;
      display: block;
      width: 41px;
      height: 50px;
      position: absolute;
      top: 0;
      left: 10px;
    }
    .card-body {
      display: flex;
      flex-direction: column;
      align-items: center;
      img {
        width: 150px;
        margin-top: 6px;
        margin-bottom: 20px;
      }
    }
  }
  .tech {
    background-color: var(--darkgray);
    color: white;
    padding: 40px 0;
    margin-top: 24px;
    ul {
      padding-left: 1rem;
    }
  }

  @media screen and (min-width: 768px) {
    .tech {
      ul {
        column-count: 2;
      }
    }
  }

  @media screen and (min-width: 768px) and (max-width: 991px) {
    .card {
      .card-body {
        flex-direction: row;
        img {
          margin: 0;
        }
      }
    }
  }
}

/* --------------------------------------------------
PORTFOLIO
-------------------------------------------------- */

#portfolio {
  .card {
    background-color: var(--black);
    color: var(--lightgray);
    h3 {
      color: var(--white);
      margin-bottom: 0;
    }
    p {
      font-size: .875rem;
      line-height: 1.25rem;
      a {
        color: var(--lightblue);
      }
    }
  }

  /* Modals */
  .modal-content {
    border-color: var(--black);
  }
  .modal-header, .modal-footer {
    background-color: var(--black);
    color: var(--white);
    h4 {
      font-weight: 600;
      position: relative;
      padding-left: 60px;
    }
    h4::before {
      content: '';
      background-image: url('../img/color-bands.svg');
      background-repeat: no-repeat;
      background-size: 52px 63px;
      display: block;
      width: 52px;
      height: 63px;
      position: absolute;
      top: -17px;
      left: 0;
    }
    .btn-close {
      background: none;
      width: 32px;
      height: 32px;
      padding: 0;
      opacity: 1;
      svg path {
        fill: var(--white);
        transition: all ease 0.3s;
      }
    }
    .btn-close:hover {
      svg path {
        fill: var(--lightblue);
      }
    }
    .btn-secondary {
      background-color: var(--white);
      border: 0;
    }
    .btn-secondary:hover {
      background-color: var(--blue);
    }
  }

  .modal-body {
    color: var(--text);
    font-size: .875rem;
    padding: 24px;
    .row {
      
    }
    img {
      margin-bottom: 12px;
    }
  }

  @media screen and (min-width: 768px) {
    .modal-body {
      padding: 32px;
    }
    .card {
      height: 100%;
      .card-body {
        display: flex;
        flex-direction: column;
        .card-link {
          margin-top: auto;
        }
      }
    }
  }
}

/* --------------------------------------------------
ABOUT
-------------------------------------------------- */

#about img {
  margin-bottom: 20px;
}

/* --------------------------------------------------
CONTACT
-------------------------------------------------- */



/* --------------------------------------------------
FOOTER
-------------------------------------------------- */

footer {
  background-color: var(--black);
  color: var(--lightgray);
  text-align: center;
  font-size: 12px;
}

.copyright {
  padding-top: 0;

  img {
    width: 140px;
    height: auto;
    padding-bottom: 24px;
  }

  a {
    opacity: 1;
  }

  a:hover {
    opacity: .7;
  }

  p {
    line-height: 1.125rem;
    margin-bottom: 0;
  }
}

/* --------------------------------------------------
MEDIA QUERIES
-------------------------------------------------- */

@media (max-width: 767px) {

  body {
    margin-top: 80px;
  }

  footer p {
    font-size: 12px;
  }

}