/*
=============== 
Fonts
===============
*/
@import url('https://fonts.googleapis.com/css?family=Open+Sans|Roboto:400,700&display=swap');

/*
=============== 
Variables
===============
*/

:root {
  /* dark shades of primary color*/
  --clr-primary-1: hsl(205, 86%, 17%);
  --clr-primary-2: hsl(205, 77%, 27%);
  --clr-primary-3: hsl(205, 72%, 37%);
  --clr-primary-4: hsl(205, 63%, 48%);
  /* primary/main color */
  --clr-primary-5: #49a6e9;
  /* lighter shades of primary color */
  --clr-primary-6: hsl(205, 89%, 70%);
  --clr-primary-7: hsl(205, 90%, 76%);
  --clr-primary-8: hsl(205, 86%, 81%);
  --clr-primary-9: hsl(205, 90%, 88%);
  --clr-primary-10: hsl(205, 100%, 96%);
  /* darkest grey - used for headings */
  --clr-grey-1: hsl(209, 61%, 16%);
  --clr-grey-2: hsl(211, 39%, 23%);
  --clr-grey-3: hsl(209, 34%, 30%);
  --clr-grey-4: hsl(209, 28%, 39%);
  /* grey used for paragraphs */
  --clr-grey-5: hsl(210, 22%, 49%);
  --clr-grey-6: hsl(209, 23%, 60%);
  --clr-grey-7: hsl(211, 27%, 70%);
  --clr-grey-8: hsl(210, 31%, 80%);
  --clr-grey-9: hsl(212, 33%, 89%);
  --clr-grey-10: hsl(210, 36%, 96%);
  --clr-white: #fff;
  --clr-red-dark: hsl(360, 67%, 44%);
  --clr-red-light: hsl(360, 71%, 66%);
  --clr-green-dark: hsl(125, 67%, 44%);
  --clr-green-light: hsl(125, 71%, 66%);
  --clr-secondary: rgb(83, 171, 223);
  --clr-footer: rgb(33, 41, 46);
  --clr-black: #222;
  --ff-primary: 'Roboto', sans-serif;
  --ff-secondary: 'Open Sans', sans-serif;
  --transition: all 0.3s linear;
  --spacing: 0.25rem;
  --radius: 0.5rem;
  --light-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --dark-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  --max-width: 1170px;
  --fixed-width: 620px;
  --fixed-width2: 240px;
}
/*
=============== 
Global Styles
===============
*/
:focus {
  outline: none;
}
html {
  scroll-behavior: smooth;
}
*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--ff-secondary);
  background: var(--clr-grey-10);
  color: var(--clr-grey-1);
  line-height: 1.5;
  font-size: 0.875rem;
}
ul {
  list-style-type: none;
}
a {
  text-decoration: none;
}
img:not(.logo, .logo-f) {
  width: 100%;
}
img {
  display: block;
}

h1,
h2,
h3,
h4 {
  letter-spacing: var(--spacing);
  text-transform: capitalize;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  font-family: var(--ff-primary);
}
h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 0.875rem;
}
p {
  margin-bottom: 1.25rem;
  color: var(--clr-grey-5);
}
@media screen and (min-width: 800px) {
  h1 {
    font-size: 3.2rem;
    padding: 20px;
  }
  h2 {
    font-size: 2.5rem;
    padding-top: 20px;
  }
  h3 {
    font-size: 1.75rem;
  }
  h4 {
    font-size: 1rem;
  }
  body {
    font-size: 1rem;
  }
  h1,
  h2,
  h3,
  h4 {
    line-height: 1;
  }
}
li {
  text-align: center;
  padding: 5px;
}
.projTitle {
  padding-top: 1.5rem;
}
.prev-btn,
.next-btn {
  color: var(--clr-primary-7);
  font-size: 2.85rem;
  background: transparent;
  border-color: rgba(0, 0, 0, 0.062);
  border-radius: 3rem;
  margin: 0.5rem 0.5rem;
  padding: 0.25rem 1.85rem 0.25rem 1.85rem;
  transition: var(--transition);
  cursor: pointer;
}
.btn-container {
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.tab-btn:nth-child(1) {
  border-top-left-radius: var(--radius);
}
.tab-btn:nth-child(3) {
  border-top-right-radius: var(--radius);
}
.tab-btn {
  padding: 1rem 0;
  border: none;
  text-transform: capitalize;
  font-size: 0.875rem;
  display: block;
  background: var(--clr-grey-9);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: var(--spacing);
}
.tab-btn:hover:not(.active) {
  background: var(--clr-primary-10);
  color: var(--clr-primary-5);
}
.fab {
  padding: 30px;
  font-size: 30px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  color: var(--clr-primary-5);
}
.fab:hover {
  color: var(--clr-primary-7);
}
.hide-btn {
  display: none;
}
/* animated buttons */

.btn-new:link,
.btn-new:visited {
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 40px;
  display: inline-block;
  border-radius: 100px;
  transition: all 0.2s;
}

.btn-width {
  width: var(--fixed-width2);
}

.btn-new:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-new:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn-new-white {
  background-color: var(--clr-grey-9);
  color: var(--clr-grey-2);
}

.btn-new::after {
  content: '';
  display: inline-block;
  height: 100%;
  width: 100%;
  border-radius: 100px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transition: all 0.4s;
}

.btn-new-white::after {
  background-color: var(--clr-grey-9);
}

.btn-new:hover::after {
  transform: scaleX(1.4) scaleY(1.6);
  opacity: 0;
}

/* old button properties */

.btn {
  text-transform: uppercase;
  background: transparent;
  color: var(--clr-black);
  padding: 0.375rem 0.75rem;
  letter-spacing: var(--spacing);
  display: inline-block;
  transition: var(--transition);
  font-size: 0.875rem;
  border: 2px solid var(--clr-black);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
}
.btn:hover {
  color: var(--clr-white);
  background: var(--clr-black);
}
.btn-white {
  color: var(--clr-white);
  border-color: var(--clr-white);
  border-radius: 0;
  padding: 0.5rem 1rem;
}
.btn-black {
  color: var(--clr-black);
  border-color: var(--clr-black);
  border-radius: 0;
  padding: 0.5rem 1rem;
}
.btn:hover {
  background: var(--clr-white);
  color: var(--clr-secondary);
}
.scnBtn {
  padding-left: 24px;
  padding-right: 24px;
  margin-top: 20px;
}

/* section */

.personal-img {
  width: 13rem;
  margin: 0 auto;
  padding-bottom: 30px;
}
.section-center {
  width: 90vw;
  margin: 0 auto;
  max-width: 1170px;
}
.project-img {
  text-align: center;
}
.project-img video {
  border-radius: var(--radius);
  height: 26rem;
  margin: 0 auto;
}
.text-box {
  padding-bottom: 10px;
  /* width: 1000px;
  margin: 0 auto; */
}
@media screen and (min-width: 645px) {
  .project-img video {
    height: 30rem;
  }
}

@media screen and (min-width: 992px) {
  .tab-btn {
    font-size: 1.1rem;
  }
  .text-box {
  padding-bottom: 10px;
  width: 1000px;
  margin: 0 auto;
}
  .section-center {
    width: 95vw;
  }
  .project-img {
    margin: 0 auto;
  }
  .project-center {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    padding-top: 15px;
  }
  .project-img video {
    height: 36rem;
  }
}
main {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.project {
  background: var(--clr-white);
  border-radius: var(--radius);
  display: grid;
  grid-template-rows: auto 1fr;
  margin-top: 1rem;
}
.project-content {
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  padding: 2rem 1.5rem;
}
.align {
  margin: 0 auto;
}

/* hide content */
.content {
  display: none;
}
.tab-btn.active {
  background: var(--clr-white);
}
.content.active {
  display: block;
}
/*
=============== 
Scroll
===============
*/
/* navbar */
nav {
  padding: 1rem 1.5rem;
}
.white {
  color: var(--clr-white);
}
/* fixed nav */
.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--clr-white);
  box-shadow: var(--light-shadow);
}
.fixed-nav .links a {
  color: var(--clr-grey-1);
}
.fixed-nav .links a:hover {
  color: var(--clr-secondary);
}
.reg-nav .links a {
  color: var(--clr-white);
}
.reg-nav .links a:hover {
  color: var(--clr-secondary);
}
/* .fixed-nav .links-container {
  height: auto !important;
} */
.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-toggle {
  font-size: 1.5rem;
  color: var(--clr-grey-1);
  background: transparent;
  border-color: transparent;
  transition: var(--transition);
  cursor: pointer;
}
.nav-toggle:hover {
  color: var(--clr-secondary);
}
.logo,
.logo-f {
  height: 60px;
}
.logo:hover {
  content: url(./logoblue.png);
}
.links-container {
  height: 0;
  overflow: hidden;
  transition: var(--transition);
}
.show-links {
  height: 200px;
}
.links a {
  color: var(--clr-grey-5);
  font-size: 1.1rem;
  text-transform: capitalize;
  letter-spacing: var(--spacing);
  display: block;
  transition: var(--transition);
  font-weight: bold;
  padding: 0.75rem 0;
}
.links a:hover {
  color: var(--clr-grey-2);
}
@media screen and (min-width: 800px) {
  nav {
    background: transparent;
  }
  .nav-center {
    width: 90vw;
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-header {
    padding: 0;
  }
  .nav-toggle {
    display: none;
  }
  .links-container {
    height: auto !important;
  }
  .links {
    display: flex;
  }
  .links a {
    background: transparent;
    color: var(--clr-white);
    font-size: 1.1rem;
    text-transform: capitalize;
    letter-spacing: var(--spacing);
    display: block;
    transition: var(--transition);
    margin: 0 1rem;
    font-weight: bold;
    padding: 0;
  }
  .links a:hover {
    color: var(--clr-white);
  }
}

/* hero */

header {
  min-height: 100vh;
  background: linear-gradient(rgb(19, 162, 228), rgb(9, 81, 114));
  /* background-color: #229ecf; */
}
.banner {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-bottom: 140px;
}
.banner p {
  padding-bottom: 10px;
  font-size: 1.1rem;
}
.container h1 {
  color: var(--clr-white);
  text-transform: uppercase;
}
.container p {
  color: var(--clr-white);
  max-width: 25rem;
  margin: 0 auto;
  margin-bottom: 1.25rem;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}
@media screen and (min-width: 768px) {
  .container p {
    max-width: 40rem;
  }
}
/* sections and title */
.title {
  text-align: center;
}
.title p {
  padding-left: 50px;
  padding-right: 50px;
}
@media screen and (min-width: 768px) {
  .title p {
    padding-left: 140px;
    padding-right: 140px;
  }
}
.title span {
  color: var(--clr-secondary);
}
#about {
  background: var(--clr-white);
  margin-top: 40px;
}
footer {
  background: var(--clr-footer);
  padding: 1.7rem 1rem;
}
footer p {
  color: var(--clr-white);
  text-align: center;
  text-transform: capitalize;
  letter-spacing: var(--spacing);
  margin-bottom: 0;
}

.top-link {
  font-size: 1.55rem;
  position: fixed;
  bottom: 1.05rem;
  right: 1.05rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--clr-secondary);
  color: var(--clr-grey-2);
  animation: bounce 3s ease-in-out infinite;

  visibility: hidden;
  z-index: -100;
}
.show-link {
  visibility: visible;
  z-index: 100;
}
.fas:hover {
  color: var(--clr-primary-7);
}

/* dropdown */

.dropbtn {

  padding: 21px;
  font-size: 16px;

  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {background-color: #f1f1f1}

.dropdown:hover .dropdown-content {
  display: block;
}

/* .dropdown:hover .dropbtn {
  /* background-color: #3e8e41; */
/* } */

/* animations */

.animated-up {
  animation: moveInBottom 0.5s ease-out 0.75s;
  animation-fill-mode: backwards;
}
.animated-left {
  animation-name: moveInLeft;
  animation-duration: 1s;
  animation-timing-function: ease-out;
}

.animated-right {
  animation: moveInRight 1s ease-out;
}
.animated-up-delay {
  animation: moveInBottom 0.5s ease-out 2s;
  animation-fill-mode: backwards;
}
.animated-right-delay {
  animation: moveInRight 1s ease-out 1.5s;
  animation-fill-mode: backwards;
}
.animated-fadein {
  animation: fadeIn 2.5s ease-out;
  animation-fill-mode: backwards;
}

@keyframes bounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes moveInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  80% {
    transform: translateX(10px);
  }
  100% {
    opacity: 1;
    transform: translate(0);
  }
}

@keyframes moveInRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  80% {
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translate(0);
  }
}

@keyframes moveInBottom {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translate(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
