*,
*::before,
*::after {
  box-sizing: border-box;
}
.section__title strong {
  word-break: break-all;
}
/*Style Variables*/
:root {
  --ff-primary: "League Spartan", sans-serif;
  --ff-secondary: "Ubuntu Mono", monospace;
  --fw-reg: 300;
  --fw-bold: 700;

  --clr-light: #fff;
  --clr-dark: #303030;
  --clr-accent: #5dc0c4;
  --clr-accent2: #346e70;

  --fs-h1: 3rem;
  --fs-h2: 2.25rem;
  --fs-h3: 1.25rem;
  --fs-body: 1rem;

  --box-shadow: 0.25em 0.25em 0.75em rgba(0, 0, 0, 0.25);
}
@media (min-width: 800px) {
  :root {
    --fs-h1: 4rem;
    --fs-h2: 3.25rem;
    --fs-h3: 1.75rem;
    --fs-body: 1.125rem;
  }
}
/* General style */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}
html {
  scroll-behavior: smooth;
}

body {
  background: var(--clr-light);
  color: var(--clr-dark);
  font-family: var(--ff-primary);
  font-size: var(--fs-body);
  line-height: 1.6;
}
body .light {
  display: block;
}
body .dark {
  display: none;
}
section {
  padding: 5rem 2rem;
}
img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
}
main {
  overflow: hidden;
  min-height: calc(100% - 280px);
}

:is(.intro, .about) img {
  box-shadow: var(--box-shadow);
}
strong {
  font-weight: var(--fw-bold);
}
:focus {
  outline: 3px solid var(--clr-accent);
  outline-offset: 3px;
}
.center-xs {
  text-align: left;
}
@media (min-width: 820px) {
  section {
    width: 80%;
    margin: 0 auto;
    max-width: 1400px;
  }
}

/*Misc*/

/*Fix bg image on iphones*/
@support (-webkit-touch-callout: none) {
  .section.my-services {
    background-attachment: scroll !important;
  }
}

/*Typography*/

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0;
  word-break: break-all;
}
h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}

.section__title {
  font-weight: var(--fw-reg);
}
.section__subtitle {
  margin: 0;
  font-size: var(--fs-h3);
}

.section__subtitle--intro,
.section__subtitle--about {
  border-top: 5px solid var(--clr-accent);
  font-family: var(--ff-secondary);
}

.section__title--services {
  color: var(--clr-accent);
  position: relative;
}

.section__title--services:after {
  content: "";
  display: block;
  width: 8em;
  height: 3px;
  margin: 0.5em auto 1em;
  background-color: var(--clr-accent);
  opacity: 0.25;
}

.section__subtitle--work {
  color: var(--clr-accent);
  font-weight: var(--fw-bold);
  margin-bottom: 2rem;
}

a {
  color: var(--clr-accent);
  text-decoration: none;
}

a:active,
a:visited,
a:hover {
  color: var(--clr-accent2);
}

a.btn {
  background-color: var(--clr-accent2);
  border: 2px solid var(--clr-accent2);
  padding: 1.25rem 2.5rem;
  color: var(--clr-light);
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 4px;
  transition: transform 200ms ease-in-out, all 200ms ease-in;
}

a.btn:hover {
  background-color: transparent;
  color: var(--clr-accent2);
  transform: scale(1.1);
}

/* Cool Features */
.cool-background {
  position: relative;
}
.cool-background:before {
  content: "";
  position: absolute;
  background-color: var(--clr-accent);
  top: 75%;
  z-index: -1;
  left: -100vw;
  width: 200vw;
  height: 20%;
  transform: translateY(-75%);
}
section {
  opacity: 0;
  transition: opacity 650ms cubic-bezier(0.5, 0, 0.5, 1);
}
section.fade-in {
  opacity: 1;
}
section.visible {
  opacity: 1;
}
/* width */
::-webkit-scrollbar {
  width: 15px;
}
/* Custom scrollbar */
/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px #ccc;
  border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--clr-accent2);
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--clr-accent2);
}

/*Dark Light Mode*/
@media (prefers-color-scheme: dark) {
  body {
    background-color: var(--clr-dark);
    color: var(--clr-light);
  }
  body .light {
    display: none;
  }
  body .dark {
    display: block;
  }
}

.darkmode {
  background-color: var(--clr-dark);
  color: var(--clr-light);
}
.darkmode .light {
  display: none;
}
.darkmode .dark {
  display: block;
}
.lightmode {
  background-color: var(--clr-light);
  color: var(--clr-dark);
}
.lightmode .dark {
  display: none;
}
.lightmode .light {
  display: block;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  padding: 1em;
}

.logo {
  max-width: 200px;
}

.nav {
  position: fixed;
  background-color: var(--clr-dark);
  color: var(--clr-light);
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 250ms cubic-bezier(0.5, 0, 0.5, 1);
}

.nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 600px;
  justify-content: space-evenly;
  align-items: center;
  margin: auto;
  padding: 0;
}
a.nav__link {
  color: inherit;
  font-weight: var(--fw-bold);
  font-size: var(--fs-h3);
}

a.nav__link:hover {
  color: var(--clr-accent);
}

.nav-toggles {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.nav-toggles button {
  background: none;
  outline: 0;
  border: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-size: 1.75rem;
  transition: transform 250ms ease-in-out;
  border-radius: 50%;
  padding: 0.25em;
  width: 45px;
  height: 45px;
  color: inherit;
}
.nav-toggles button:hover {
  background-color: rgb(238, 238, 238);
}
.darkmode button:hover {
  background-color: #535353;
}
.close {
  position: absolute;
  top: 10px;
  right: 5px;
  padding: 0.25em;
  width: 45px;
  height: 45px;
  color: var(--clr-light);
  border-radius: 50%;
  -moz-appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-color: transparent;
  border: none;
  outline: none;
  font-size: 1.75rem;
}
.nav-open {
  overflow: hidden;
}
.nav-open .nav {
  transform: translateX(0);
}

/* Intro Section */
.intro {
  position: relative;
}

.intro .image-container img {
  margin: 0 auto;
}
@media (min-width: 600px) {
  .intro .image-container {
    float: right;
  }
}

/* Services */
section.my-services {
  background-color: var(--clr-dark);
  background-image: url(../img/background.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-blend-mode: multiply;
  color: var(--clr-light);
  text-align: center;
  width: unset;
  max-width: unset;
}
.my-services .row {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.my-services .col-xs-12 {
  padding-bottom: 2rem;
}

/* Work Section */
.work {
  background-color: var(--clr-dark);
  width: unset;
  max-width: unset;
  color: var(--clr-light);
  text-align: center;
}

.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1400px;
  margin: 0 auto;
}
@media (min-width: 600px) {
  .portfolio {
    grid-template-columns: repeat(auto-fit, minmax(351px, 1fr));
  }
}
.portfolio__item {
  background: var(--clr-accent2);
  overflow: hidden;
}
.portfolio__img {
  width: unset;
  max-width: 100%;
  transition: transform 750ms cubic-bezier(0.5, 0, 0.5, 1), opacity 250ms linear;
}
.portfolio__item:focus {
  position: relative;
  z-index: 2;
}

.portfolio__img:hover,
.portfolio__item:focus .portfolio__img {
  transform: scale(1.2);
  opacity: 0.55;
}

.hideM {
  display: none;
}
.mobile-only {
  display: block;
}
@media (min-width: 820px) {
  .hideM {
    display: block;
  }
  .mobile-only {
    display: none;
  }
}

/* Footer */

.footer {
  background: #111;
  color: var(--clr-accent);
  margin: 0;
  text-align: center;
  padding: 2.5em 0;
}

.footer a {
  color: inherit;
}

.footer__link:hover,
.social-list__link:hover {
  opacity: 0.7;
}

.social-list {
  list-style: none;
  margin: 0;
  padding: 1rem 0 0;
}
.social-list__item {
  display: inline-block;
  padding: 0px 0.5rem;
}

/* Individual Portfolio Page*/

/* Portfolio item Styling*/
.portfolio-item-individual {
  padding: 0;
}

.portfolio-item-individual img {
  max-width: 100%;
  width: 100%;
}

/* Prefers Reduced Motion Adjustments*/

@media (prefers-reduced-motion) {
  html {
    scroll-behavior: auto;
  }
  section {
    opacity: 1;
  }
  .portfolio__img:hover,
  .portfolio__item:focus .portfolio__img {
    transform: scale(1);
    opacity: 0.55;
  }
}

/* Slideshow Adjustments*/
.swiper {
  width: 100%;
  height: 100%;
  max-height: 150px;
}
@media (min-width: 600px) {
  .swiper {
    width: 100%;
    height: 100%;
    max-height: 300px;
  }
}
@media (min-width: 1000px) {
  .swiper {
    width: 100%;
    height: 100%;
    max-height: 500px;
  }
}

@media (min-width: 1400px) {
  .swiper {
    width: 100%;
    height: 100%;
    max-height: 700px;
  }
}

.swiper-button-next,
.swiper-rtl .swiper-button-prev {
  right: 21px !important;
}
.overlay {
  overflow: hidden;
  position: relative;
}
.overlay .bd {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 100;
}
.big-picture {
  position: fixed;
  top: 50%;
  left: 50%;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(90vh - 10px);
  transform: translate(-50%, -50%);
  z-index: 102;
}
.portfolio-item-individual img:hover {
  cursor: -moz-zoom-in;
  cursor: zoom-in;
}
.bd:hover {
  cursor: -moz-zoom-out;
  cursor: zoom-out;
}

/* Blog Posts */
#post-content {
  margin: 0 2rem;
}
@media (min-width: 820px) {
  #post-content {
    width: 80%;
    margin: 0 auto;
    max-width: 1000px;
  }
}
