@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap');

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* custom properties */

:root {
  --primary-color: #6564db;
  --secondary-color: #0c1f36;
  --primary-font-color: #111;
  --secondary-font-color: #a9a9a9;
  --dark-color: #725a60;
  --light-color: #136f63;
  /* -------------------- */
  --dark-liver: #554348;
  --slate-blue: #6564db;
  --silver-chalice: #a9a9a9;
  --imperial-red: #f71735;
  --pine-green: #136f63;
  /* -------------------- */
  --vivid-sky-blue: #5bccf6;
  --naples-yellow: #fcde67;
  --tufts-blue: #2296f0;
  --caribbean-green: #43d1b2;
  --rich-black: #030e12;
  /* -------------------- */
  --middle-grey: #8b8680;
  --yale-blue: #194882;
  --bdazzled-blue: #3e5b7d;
  --oxford-blue: #0c1f36;
  --gun-metal: #202d3d;
  --rich-black-fog: #0e141b;
}

/* base styles */
html,
body {
  font-family: 'Poppins', sans-serif;
  /* color: #111; */
  color: var(--rich-black);
  background-color: var(--naples-yellow);
}

h1 {
  font-size: 30px;
  font-weight: 500;
}

p {
  margin: 20px 0 10px;
  font-size: 1.1rem;
}

section {
  display: flex;
  flex-direction: column;
  height: 100vh;
  align-items: center;
  padding: 100px;
  margin-top: 60px;
}

section.home {
  flex-direction: row;
  margin-top: 0;
}

/* buttons & chevrons */

.btn {
  cursor: pointer;
  display: inline-block; /* needs to be inline-block as <a> tags don't accept margins  */
  background: var(--secondary-color);
  color: #fff;
  text-decoration: none;
  padding: 10px 30px;
  margin: 20px 0;
  border: 0;
}

.btn:hover {
  transform: scale(0.98);
}

.logo {
  position: absolute;
  top: 15px;
  left: 135px;
  font-size: 2rem;
  font-weight: 700;
  z-index: 20;
}

.chevron-left-logo {
  position: absolute;
  top: 25px;
  left: 110px;
  background-color: var(--slate-blue);
  width: 30px;
  height: 30px;
  clip-path: polygon(75% 0, 25% 50%, 75% 100%, 50% 100%, 0% 50%, 50% 0);
  z-index: 20;
}

.chevron-right-logo {
  position: absolute;
  top: 25px;
  left: 295px;
  background-color: var(--slate-blue);
  width: 30px;
  height: 30px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 25% 100%, 75% 50%, 25% 0);
  z-index: 20;
}

/* Animations */
@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes slideInFromTop {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes slideInFromBottom {
  0% {
    transform: translateY(100%);
  }

  100% {
    transform: translateX(0);
  }
}

/* toggle */
.toggle {
  position: fixed;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: var(--slate-blue) url(../images/menu.png);
  background-size: 30px;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 20;
  cursor: pointer;
}

.toggle.active {
  background: var(--slate-blue) url(../images/close.png);
  background-size: 25px;
  background-position: center;
  background-repeat: no-repeat;
}

/* navigation */
.navigation {
  position: fixed;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  background-color: var(--naples-yellow);
  z-index: 15;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navigation.active {
  left: 0;
}

.navigation ul {
  position: relative;
}

.navigation ul li {
  position: relative;
  list-style: none;
  text-align: center;
}

.navigation ul li a {
  font-size: 2.2rem;
  color: var(--rich-black);
  text-decoration: none;
  font-weight: 300;
}

.navigation ul li a:hover {
  color: var(--vivid-sky-blue);
}

.navigation .social-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navigation .social-bar a {
  display: inline-block;
  transform: scale(0.5);
}

.navigation .email-icon {
  position: absolute;
  bottom: 20px;
  transform: scale(0.5);
}

/* homepage */
.home-content {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.home-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 50px 20px 0;
  align-self: center;
  animation: slideInFromLeft 1s ease-in;
}

.home-row-blurb {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 10px 20px 0;
  animation: slideInFromRight 1s ease-in;
}

.btn-message-me {
  align-self: center;
  text-align: center;
  width: 180px;
  cursor: pointer;
  display: inline-block; /* needs to be inline-block as <a> tags don't accept margins  */
  background: var(--slate-blue);
  color: #fff;
  text-decoration: none;
  padding: 10px 30px;
  margin: 20px 0;
  border: 0;
}

.chevron-left {
  background-color: var(--slate-blue);
  width: 90px;
  height: 90px;
  clip-path: polygon(75% 0, 25% 50%, 75% 100%, 50% 100%, 0% 50%, 50% 0);
}

.chevron-right {
  background-color: var(--slate-blue);
  width: 90px;
  height: 90px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 25% 100%, 75% 50%, 25% 0);
}

.chevron-text h1 {
  font-size: 90px;
  font-weight: 600;
}

.home-content p {
  width: 50%;
  text-align: center;
}

.home-img {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 110%;
}

/* about */

.about-container {
  display: flex;
  width: 100%;
  margin-bottom: 40px;
  padding-bottom: 40px;
  flex-wrap: wrap;
}

.about-container-courses {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex-wrap: wrap;
}

.about-title {
  font-size: 40px;
  font-weight: 600;
  margin-right: 20px;
  margin-top: 20px;
}

.about-text {
  font-size: 20px;
}

.about-text-future {
  font-size: 20px;
  display: flex;
}

.about-text i {
  margin-right: 3px;
  margin-left: 3px;
}

.about-icon {
  color: var(--vivid-sky-blue);
  margin-right: 20px;
}

/* work page */
.portfolio-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  margin-top: 20px;
}

.portfolio {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.portfolio .item {
  position: relative;
  width: 350px;
  height: 233px;
  margin: 5px;
}

.portfolio .item img {
  width: 100%;
  height: 100%;
}

.portfolio .item .action {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.5s;
}

.portfolio .item:hover .action {
  opacity: 1;
}

.portfolio .item .action a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  border: 1px solid #fff;
  padding: 5px 15px;
}

/* contact */

/* set up hidden for netlify form */
.hidden {
  visibility: hidden;
  height: 0;
}

.contact {
  position: relative;
  width: 100%;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.contact-form {
  position: relative;
  background: #f9f9f9;
  width: calc(100% - 400px);
  padding: 20px 40px 20px;
}

.contact-form form {
  width: 100%;
}

.contact-form .row {
  width: 100%;
  display: flex;
}

.contact-form .input50 {
  width: 50%;
  margin: 0 10px;
}

.contact-form .input100 {
  width: 100%;
  margin: 0 10px;
}

.contact-form .row input,
.contact-form .row textarea {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: var(--rich-black);
  background: transparent;
  width: 100%;
  padding: 10px;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 300;
  margin: 10px 0;
  resize: none;
}

.contact-form .row textarea {
  height: 150px;
}

.contact-form .row input[type='submit'] {
  background-color: var(--slate-blue);
  color: #fff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 300;
  border: 0;
  cursor: pointer;
}

.contact-info {
  width: 350px;
  background: #f9f9f9;
  padding: 60px 40px 20px;
}

.contact-info .info-box {
  display: flex;
  align-items: flex-start;
  margin-bottom: 41px;
}

.contact-info .info-box .contact-icon {
  width: 20px;
  margin-right: 40px;
}

.contact-info .info-box .details h4 {
  color: var(--rich-black);
}

.contact-info .info-box .details p {
  color: var(--rich-black);
  margin-top: 5px;
}

.contact-info .info-box .details a {
  color: var(--slate-blue);
  text-decoration: none;
}

@media (max-width: 1068px) {
  .logo {
    top: 10px;
    left: 40px;
    font-size: 1.5rem;
  }

  section {
    padding: 100px 40px;
  }

  .navigation ul li a {
    font-size: 2rem;
  }

  .contact {
    flex-direction: column;
  }

  .contact-form {
    width: 100%;
    padding: 30px 30px 20px;
  }

  .contact-form .row {
    flex-direction: column;
  }

  .contact-form .input50,
  .contact-form .input100 {
    width: 100%;
    margin: 0;
  }

  .contact-info {
    width: 100%;
    margin-top: 20px;
    padding: 30px 30px 20px;
  }
}

@media (max-width: 1300px) {
  .chevron-left {
    width: 90px;
    height: 90px;
  }

  .chevron-right {
    width: 90px;
    height: 90px;
  }

  .chevron-text h1 {
    font-size: 70px;
    font-weight: 600;
  }
}

@media (max-width: 768px) {
  .chevron-left {
    width: 90px;
    height: 90px;
  }

  .chevron-right {
    width: 90px;
    height: 90px;
  }

  .chevron-text h1 {
    font-size: 38px;
    font-weight: 600;
  }

  .logo {
    position: absolute;
    top: 15px;
    left: 70px;
    font-size: 2rem;
    font-weight: 700;
    z-index: 20;
  }

  .chevron-left-logo {
    position: absolute;
    top: 25px;
    left: 45px;
    background-color: var(--slate-blue);
    width: 30px;
    height: 30px;
    clip-path: polygon(75% 0, 25% 50%, 75% 100%, 50% 100%, 0% 50%, 50% 0);
    z-index: 20;
  }

  .chevron-right-logo {
    position: absolute;
    top: 25px;
    left: 230px;
    background-color: var(--slate-blue);
    width: 30px;
    height: 30px;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 25% 100%, 75% 50%, 25% 0);
    z-index: 20;
  }
}

@media (max-width: 415px) {
  /* @media (max-width: 377px) { */
  .chevron-left {
    width: 40px;
    height: 40px;
  }

  .chevron-right {
    width: 40px;
    height: 40px;
  }

  .chevron-text h1 {
    font-size: 18px;
    font-weight: 700;
  }

  .logo {
    position: absolute;
    top: 10px;
    left: 39px;
    font-size: 1.7rem;
    font-weight: 700;
    z-index: 20;
  }

  .chevron-left-logo {
    position: absolute;
    top: 18px;
    left: 20px;

    width: 25px;
    height: 25px;

    z-index: 20;
  }

  .chevron-right-logo {
    position: absolute;
    top: 18px;
    left: 175px;

    width: 25px;
    height: 25px;

    z-index: 20;
  }

  section {
    display: flex;
    flex-direction: column;
    height: 100vh;
    align-items: center;
    padding: 20px 20px 20px 20px;
    margin-top: 60px;
  }

  .home-content {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .home-content p {
    width: 90%;
    text-align: center;
  }

  .home-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px 10px 0;
    align-self: center;
    animation: slideInFromLeft 1s ease-in;
  }

  .home-row-blurb {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 10px 10px 0;
    animation: slideInFromRight 1s ease-in;
  }

  .about-icon {
    color: var(--vivid-sky-blue);
    margin-right: 20px;
    font-size: 10px;
  }

  .about-title {
    font-size: 20px;
  }

  .about-container {
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .about-text-future h3 {
    font-size: 20px;
  }

  .contact-info {
    margin-bottom: 20px;
  }
}
