/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@800&family=Source+Sans+Pro&display=swap");

@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }
  75% {
    transform: rotate(0deg);
  }
  80% {
    transform: rotate(-5deg);
  }
  85% {
    transform: rotate(5deg);
  }
  95% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/*===== BASE =====*/
*,
::before,
::after {
  box-sizing: border-box;
}

/*===== LIGHT AND DARK MODE SETTING =====*/

.light {
  --main-bg: #fff;
  --sec-bg: #FBFBFF;
  --bg-image: url(../img/grid.png);
  --text-main: #5a1ed9;
  --text-sec: #0d1730;
  --btn-main: #5a1ed9;
  --btn-bg: transparent;
  --btn-border: 1px solid #5a1ed9;
  --btn-bg-hover: #5a1ed9;
}

.dark {
  --main-bg: #171717;
  --sec-bg: #1d1b27;
  --bg-image: url(../img/grid-dark.png);
  --text-main: #5b4ecd;
  --text-sec: #fff;
  --btn-main: #fff;
  --btn-bg: #5b4ecd;
  --btn-border: transparent;
  --btn-bg-hover: #2b207d;
}

/* Chrome */
@media (forced-colors: active) {
  :root {
      color-scheme: light !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 1rem 0 0 0;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.938rem;
  color: var(--text-sec);
  background-color: var(--main-bg);
  background-image: var(--bg-image);
  background-repeat: repeat-y;
  background-size: 85%;
  background-position: top center;
  width: 100%;
  height: auto;
}

h1,
h2,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-title {
  position: relative;
  font-size: 1.25rem;
  color: #5b4ecd;
  margin-top: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.section-title::after {
  position: absolute;
  content: "";
  width: 64px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2rem;
  background-color: #5b4ecd;
}

.section {
  height: 100vh;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/*===== TOGGLE BUTTON =====*/
.page {
  position: relative;
  background-color: var(--main-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: 100vh;
  box-sizing: border-box;
}

.toggle {
  position: relative;
  user-select: none;
}

.toggle:hover .toggle-icon{
  animation: wiggle 1s linear;
}

.toggle-icon {
  width: 50px;
  user-select: none;
}

.toggle-input {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  user-select: none;
}

.toggle-label {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* border: 1px solid var(--text-main);
  padding: 10px;
  border-radius: 100px; */
  width: 30px;
  margin: 0 auto;
  background-color: transparent;
  transition: all 0.3s ease;
  user-select: none;
}

.toggle-label:hover {
  background-color: linear-gradient(0deg, #5a1ed9, #5a1ed9),
  linear-gradient(90deg, #5a1ed9 -1.24%, #ffffff 0%);
}

.toggle-label:active {
  transform: scale(0.95);
}

.transparency {
  opacity: 1;
  transition: all 0.1s ease;
}

.transparency:hover {
  opacity: 0.7;
}

/*===== LAYOUT =====*/
.bd-grid {
  max-width: 1024px;
  display: grid;
  margin-left: 1rem;
  margin-right: 1rem;
}


/*===== RIGHT NAV =====*/
/* position the navbar center right */
.right-nav {
  z-index: 999;
  display: flex;
  position: fixed;
  right: 32px;
  top: 50%;
  color: #5a1ed9;
  transform: translateY(-50%);
}

/* style the individual nav items, /* make them little circles */
.right-nav a {
  display: block;
  border-radius: 50%;
  border: 1px solid #5a1ed9;
  width: 10px;
  height: 10px;
  /* with some space between them */
  margin: 20px 0;
  /* hide the text content */
  text-indent: -999px;
  overflow: hidden;
  /* establish positioning conext for the ::after pseudo-elements (below)*/
  position: relative;
}

/* the "fill" */
.right-nav a::after {
  content: "";
  background-color: #5a1ed9;
  /* zero height until it's active */
  position: absolute;
  bottom: 0;
  height: 0;
  left: 0;
  right: 0;
  width: 100%;
  /* animate the height when it changes */
  transition: height 0.3s ease;
}

/* active and hovered elements */
.right-nav a:hover::after,
.right-nav a.active::after {
  /* change the height to 100%.
     the transition rule above will cause this to animate */
  height: 100%;
}

/*===== NAV =====*/
.nav {
  height: 3.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.navbar {
  position: relative;
  padding: 20px 0;
  transition: 0.5s;
}

.nav_container {
  display: flex;   
  justify-content: space-between;
  height: 50px;
  align-items: center;
  width: 100%;
}


@media screen and (max-width: 767px) {
  .nav_menu {
    position: fixed;
    top: 3rem;
    right: -100%;
    width: 80%;
    height: 100%;
    padding: 2rem;
    background-color: #2b207d;
    transition: 0.5s;
  }
}

.nav_item {
  margin-bottom: 2rem;
}

.nav_link {
  position: relative;
  color: #fff;
}

.nav_link:hover {
  position: relative;
}

.nav_link:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: #5b4ecd;
}

.nav_logo {
  overflow: hidden;
}

/*=== Show menu ===*/
.show {
  right: 0;
}

/*===== social icons =====*/
.social_container {
  width: 100%;
  margin: auto;
}

.side-social {
  width: 100%;
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 1000;
}

.social-icons {
  position: relative;
  left: 50px;
  width: 100px;
  display: block;
  /* flex-direction: column;
  -webkit-box-align: center;
  align-items: center; */
  margin: 0px;
  padding: 15px;
  list-style: none;
}

.social-icons li {
  padding: 10px 0;
}

.social-icons li a {
  padding: 10px;
}

.social-icons li a svg {
  width: 20px;
  height: 20px;
  color: #d4d4d4;
}

svg.feather {
  fill: none;
}

@media (max-width: 1080px) {
  .side-social {
    left: 20px;
    right: auto;
  }
}

@media (max-width: 1285px) {
  .side-social {
    display: none;
  }
}

/*===== HOME =====*/
.home {
  position: relative;
  row-gap: 3rem;
  padding: 1rem 0 5rem;
}

.home_container {
  row-gap: 2rem;
  text-align: center;
  padding: 100px 0 160px 0;
}

.home_title {
  font-size: 68px;
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
  line-height: 68px;
  text-align: left;
  margin-bottom: 0.5rem;
  color: transparent;
  background-image: linear-gradient(261.79deg, #4d7eff 30.55%, #5a1ed9 100%);
  background-size: 100%;
  background-repeat: repeat;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}
.sub-content {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
  text-align: left;
  font-size: 24px;
  line-height: 32px;
  vertical-align: top;
}

.span-text {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
  text-align: left;
  font-size: 24px;
  line-height: 32px;
  vertical-align: top;
  color: #5a1ed9;
}

.sub-text {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 400;
  font-size: 18px;
  text-align: left;
  line-height: 24px;
  vertical-align: top;
  display: flex;
  width: 350px;
  padding: 35px 0;
}

.home_title-color {
  color: var(--text-main);
}

.home_social {
  display: flex;
  flex-direction: column;
}

.home_social-icon {
  width: max-content;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #0d1730;
}

.home_social-icon:hover {
  color: #5b4ecd;
}

.home_img {
  justify-self: center;
  padding-top: 60px;
  padding-left: 40px;
}

.home_img img {
  width: 400px;
}

/*BUTTONS*/

.btn {
  padding: 10px 0;
}

.button {
  background-color: var(--btn-bg);
  color: var(--btn-main);
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  padding: 14px 42px;
  font-weight: 800;
  text-align:center;
  border: var(--btn-border);
  cursor: pointer;
  margin-top: 10px;
}

.button:hover {
  background-color: #5a1ed9;
  color: #fff !important;
}

.button:focus {
  outline: none;
}


/*===== SKILLS =====*/
section.skill {
  width: 100%;
  display: table;
  margin: 0;
  padding-top: 40px;
  max-width: none;
  background-color: var(--sec-bg);
  background-image: var(--bg-image);
  background-repeat: repeat-y;
  background-size: 85%;
  background-position: top center;
  width: 100%;
  height: auto;
}

.skill_container {
  padding: 140px 0;
}

.skill_title {
  font-size: 32px;
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
  line-height: 36px;
  text-align: left;
  margin-bottom: 0.5rem;
  vertical-align: top;
  color: var(--text-main);
}

.skill-subtext {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 400;
  text-align: left;
  font-size: 18px;
  line-height: 24px;
  vertical-align: top;
}

.skill-button {
  display: flex;
  flex-wrap: wrap;
  padding: 60px 0;
}

.skill_btn {
  padding: 16px 24px;
  margin-bottom: 1.5rem;
  margin-right: 1.5rem;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 20px;
  background-color: #5a1ed9;
  color: #fff;
  border-radius: 100px;
  font-weight: 600;
}

/* ===== WORK =====*/

section.work {
  width: 100%;
  display: table;
  margin: 0;
  padding-top: 40px;
  max-width: none;
}

.work_content {
  padding: 110px 0 168px 0;
}

.work_container {
  display: grid;
  flex-direction: row;
  row-gap: 2rem;
  padding: 45px 0 140px 0;
}

.work_title {
  font-size: 32px;
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
  line-height: 36px;
  text-align: left;
  margin-bottom: 0.5rem;
  vertical-align: top;
  color: var(--text-main);
}

.work-subtext {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 400;
  text-align: left;
  font-size: 18px;
  line-height: 24px;
  vertical-align: top;
}

.work_img {
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
  border-radius: 0.5rem;
  overflow: hidden;
}

.work_img img {
  transition: 1s;
}

.work_img img:hover {
  transform: scale(1.1);
}

/* ===== SUB PAGE CONTENT =====*/
.sub_container {
  row-gap: 2rem;
  text-align: center;
  padding-top: 60px;
  background-color: var(--main-bg);
}
.sesame_subtitle {
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #5b4ecd;
  text-transform: uppercase;
}
.sesame_text {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.5;
  padding: 10px;
}
.sesame_content,
.sesame_img {
  margin-left: 140px;
  margin-right: 140px;
}

.sesame_img img {
  box-shadow: rgba(136, 127, 219, 0.35) 0px 30px 60px -12px,
    rgba(91, 78, 205, 0.6) 0px 18px 36px -18px;
}

/* ===== NETFLIX PAGE CONTENT =====*/

.section {
  height: 100%;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.net_subtitle {
  margin-bottom: 1rem;
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: #5b4ecd;
  text-transform: uppercase;
}

.net_text {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.5;
  padding: 10px;
}

.net_content a {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #5b4ecd;
  text-decoration: underline;
}

.net_content,
.net_img {
  margin-left: 140px;
  margin-right: 140px;
}

.net_img {
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
    rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}

/* ===== SLACK PAGE CONTENT =====*/

.slack_subtitle {
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #5b4ecd;
  text-transform: uppercase;
}

.slack_text {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.5;
  padding: 10px;
}

.slack_content a {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #5b4ecd;
  text-decoration: underline;
}

.slack_content,
.slack_img {
  margin-left: 140px;
  margin-right: 140px;
}

.slack_img {
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
    rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}

/* ===== ADMIN PAGE CONTENT =====*/
.admin_subtitle {
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #5b4ecd;
  text-transform: uppercase;
}
.admin_text {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.5;
  padding: 10px;
}

.admin_content a {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #5b4ecd;
  text-decoration: underline;
}

.admin_content,
.admin_img {
  margin-left: 140px;
  margin-right: 140px;
}

.admin_img {
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
    rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}

/* ===== ABOUT =====*/
section.about {
  width: 100%;
  display: table;
  margin: 0;
  padding-top: 140px;
  max-width: none;
  background-color: var(--sec-bg);
  background-image: var(--bg-image);
  background-repeat: repeat-y;
  background-size: 85%;
  background-position: top center;
  width: 100%;
  height: auto;
}

.about_container, .home_container {
  row-gap: 2rem;
  text-align: center;
  padding: 100px 0 160px 0;
}

.about_title {
  font-size: 32px;
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
  line-height: 36px;
  text-align: left;
  margin-bottom: 0.5rem;
  vertical-align: top;
  color: var(--text-main);
}

.about_subtext {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 400;
  text-align: left;
  font-size: 18px;
  line-height: 24px;
  vertical-align: top;
  padding: 20px 0;
}

.about_img {
  justify-self: center;
}

.about_img img {
  width: 250px;
}

/* ===== CONTACT =====*/
section.contact {
  width: 100%;
  display: table;
  margin: 0;
  padding-top: 40px;
  max-width: none;
}

.contact_container {
  padding: 185px 0 200px 0;
}

.contact_title {
  font-size: 32px;
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
  line-height: 36px;
  text-align: left;
  margin-bottom: 0.5rem;
  vertical-align: top;
  color: var(--text-main);
}

.contact_subtext {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 400;
  text-align: left;
  font-size: 18px;
  line-height: 32px;
  vertical-align: top;
  padding: 20px 0;
}

/* ===== FOOTER =====*/
.footer {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background-color: #5a1ed9;
  color: #fff;
  text-align: left;
  font-weight: 600;
  padding: 2rem 5rem;
}

.footer-left {
  display: flex;
}

.footer-right {
  display: flex;
  justify-content: space-between;
  column-gap: 60px;
}

.footer_copy {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 24px;
}

.footer-right a {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 24px;
  text-align: right;
  text-decoration: none;
  vertical-align: top;
  color: #fff;
}

@media (max-width: 600px) {
  .footer {
    padding: 2rem 1rem;
  }
}

/* =====RETURN TOP=====*/
.return-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  opacity: 100;
  visibility: visible;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
}

.return-to-top a {
  width: 50px;
  height: 50px;
  display: table;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: center;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  border-radius: 4px;
}

.return-to-top a i {
  height: 50px;
  display: table-cell;
  vertical-align: middle;
}

/* ===== MEDIA QUERIES=====*/
@media screen and (max-width: 320px) {
  .home {
    row-gap: 2rem;
    padding: 8rem 0 5rem;
  }
  .home_img {
    width: 200px;
  }

  .home_social {
    padding-top: 0;
    padding-bottom: 2.5rem;
    flex-direction: row;
    align-self: flex-end;
  }
  .home_social-icon {
    margin-bottom: 0;
    margin-right: 2rem;
  }
}

@media screen and (min-width: 576px) {
  .home {
    padding: 4rem 0 2rem;
  }
  .home_social {
    padding-top: 0;
    padding-bottom: 2.5rem;
    flex-direction: row;
    align-self: flex-end;
  }
  .home_social-icon {
    margin-bottom: 0;
    margin-right: 2rem;
  }
  .home_img {
    width: 300px;
    bottom: 25%;
  }

  .about_container, .home_container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
  }

  .work_container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    padding-top: 2rem;
  }
}

@media only screen and (max-width: 640px) and (min-width: 200px) {

  .right-nav {
    display: none;
  }
 
  .home_img {
    padding-top: 20px;
    padding-left: 0px !important;
  }

  .home_img img {
    width: 350px;
    margin: 0 auto;
  }


  .home_title {
    font-size: 50px;
  }

  .home_container {
    padding: 0 0 40px 0;
  }

  .sub-content {
    font-size: 22px;
  }
  .skill_container, .work_content{
    padding: 40px 20px;
    margin: 0 auto;
  }
  .home_social {
    padding-top: 0;
    padding-bottom: 2.5rem;
    flex-direction: row;
    align-self: flex-end;
  }
  .home_social-icon {
    margin-bottom: 0;
    margin-right: 2rem;
  }

  .about_container, .home_container {
    display: flex;
    flex-direction: column-reverse;
    padding: 10px 20px 100px 20px;
    margin: 0 auto;
  }

  .about_img img {
    width: 350px;
    margin: 0 auto;
  }

  .about_text {
    font-size: 1rem;
  }

  .contact_container {
    padding: 100px 20px;
    margin: 0 auto;
  }
  .sesame_content,
  .sesame_img,
  .net_content,
  .net_img,
  .admin_content,
  .admin_img {
    margin-left: 40px;
    margin-right: 40px;
  }

  .btn {
    padding-top: 20px;
    text-align: left;
  }

/* .return-to-top {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
}
.return-to-top::before {
  content: '';
  display: block;
  height: 100vh;
  pointer-events: none;
}
.return-to-top a {
  position: sticky;
  top: 88vh;
  cursor: pointer;
} */
}

@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }
  .section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .section-title {
    margin-bottom: 3rem;
  }
  .section-title::after {
    width: 80px;
    top: 3rem;
  }
  .nav {
    height: calc(3rem + 1.5rem);
  }
  .nav_list {
    display: flex;
    padding-top: 0;
  }
  .nav_item {
    margin-left: 3rem;
    margin-bottom: 0;
  }
  .nav_toggle {
    display: none;
  }
  .nav_link {
    color: #0d1730;
  }
  .home {
    padding: 8rem 0 2rem;
  }
  .home_img {
    width: 400px;
    bottom: 10%;
  }
  .about_container, .home_container {
    padding-top: 2rem;
  }
  .about_img img {
    width: 300px;
  }
  .work_container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }

}

@media screen and (min-width: 992px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
  .home {
    padding: 3rem 0 2rem;
  }
  .home_img {
    width: 450px;
  }
}
