/********** CSS Resets **********/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style-type: none;
  text-decoration: none;
  color: var(--gray);
  -webkit-tap-highlight-color :transparent;
  /* border: blue solid 1px; */   /* Magic debug wand */
}

/********** Base Styles **********/

::-moz-selection, ::selection {
  color: var(--white);
  background: var(--blue);
}

:root {
  --gray:  #1E1E1E;
  --lgray: #A3A3A3;
  --white: #FFF;
  --blue:  #1A84AB;

  --script: 'Pinyon Script', cursive;
  --sans:   'Kumbh Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white) url('images/swky.svg') no-repeat center center fixed;
  background-size: cover;
  overflow-x: hidden;
}

/********** Background Stacking **********/

#home {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  z-index: 0;
}

#stack {
  margin-top: 90vh;
}

#container {
  top: 10vh;
  left: 0;
  height: 90vh;
  width: 100%;
}

#about {
  background-color: var(--blue);
  z-index: 1;
}

#prj1 {
  background-color: var(--gray);
  z-index: 2;
}

#prj2 {
  background-color: black;
  z-index: 3;
}

#prj3 {
  background-color: var(--blue);
  z-index: 4;
}

#contact {
  background-color: var(--white);
  z-index: 5;
}

#contact h2 {
  color: var(--gray);
}

/********** Header **********/

header, #home .section-footer {
  display: flex;
  justify-content: space-between;
  position: fixed;
  padding: 30px 80px;
  width: 100%;
}

header {
  top: 0;
  align-items: center;
  z-index: 100;
  background: var(--white);
}

#mobilenav {
  display: none;
}
nav {
  font-size: 1.2rem;
}
nav ul li {
  display: inline-block;
  margin-right: 3.2rem;
}
nav ul li:last-of-type {
  margin-right: 0;
}

#mobilenav a {
  display: block;
  height: 10px;
  width: 30px;
}

.name h1 {
  min-width: 160px;
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
}
.name h2 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--blue)
}

.header-img img {
  display: none;
}

/********** Footer **********/

.section-footer {
  bottom: 0;
  align-items: flex-end;
}

.section-footer h2 {
  font-size: 2rem;
}

.section-footer div h3 {
  margin-top: 2rem;
  font-size: 1rem;
}

.thumbnails img {
  margin-left: 0.5rem;
  width: 150px;
  height: 150px;
  border-radius: 5%;
  object-fit: cover;
}

/********** Links **********/

nav a {
  letter-spacing: .1em;
  transition: text-shadow .3s;
}
nav a:hover,
.sel {
  text-shadow: 0 0 .9px var(--gray), 0 0 .9px var(--gray), 0 0 .9px var(--gray);
}

/********** Hero Section **********/

.hero {
  margin: 30vh auto;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero h2,
.hero h3,
.hero a {
  color: var(--lgray);
}

.hero h2 {
  font-family: var(--script);
  font-weight: 200;
  font-size: 5rem;
  text-transform: lowercase;
  width: 100%;
  letter-spacing: 2rem;
  padding-left: 2rem;
}

.hero h3 {
  font-family: var(--sans);
  text-decoration: underline;
  text-underline-offset: 0.5rem;
  margin-top: 0.5em;
}

/********** Text & Image Positioning **********/

section {
  background: url('images/swky.svg') no-repeat center center fixed;
  background-size: cover;
  position: sticky;
  top: 0;
  min-height: 110vh;
  width: 100%;
  padding: 33vh 80px 0 80px;
}

section img {
  width: 50vw;
  max-width: 500px;
  max-height: 500px;
  border-radius: 5%;
  object-fit: cover;
  box-shadow: 10px 20px 40px black;
}

#gallery {
  margin: 0 5vw 0 0;
}

#gallery img {
  margin-bottom: 5rem;
  max-height: unset;
  width: 100%;
  min-width: 300px;
  flex-shrink: 1;
}

section:not(#contact) {
  display: flex;
  padding-bottom: 33vh;
  flex-wrap: wrap;
}

section div {
  flex: 1
}

section div:not(.text) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;

  flex: 1;
}

section div div {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  padding-right: 5rem;
}

/********** Typography **********/

#stack h3 {
  color: var(--white);
  font-size: 2rem;
}

a {
  font-family: var(--sans);
  font-weight: 300;
  text-decoration: none;
}

.hero a {
  font-weight: 500;
}

#contact a {
  font-size: 4rem;
}

p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 2rem;
}

h2 {
  font-family: var(--sans);
  font-weight: 700;
}

h3 {
  font-family: var(--sans);
  font-weight: 500;
}

h2, h3, nav {
  text-transform: uppercase;
}
h2 span, section h2 {
  font-variation-settings: 'YOPQ' 100;
}
h2 span {
  font-weight: 900;
}

section a { 
  font-weight: 500;
}

section h2,
section h3,
section p,
section a {
  color: var(--white);
}

section h2 {
  font-size: 5rem;
}
section h3 {
  font-size: 4rem;
  padding: 80px 0 40px 0;
}

h2 span, header h3, #contact a {
  color: var(--blue);
}

section ul { 
  padding: 40px;
}

section span {
  color: var(--white);
  font-size: 0.8em;
}

/********** I Love Responsive Design!!! **********/

/********** "Tablet" **********/

@media screen and (max-width: 1175px) {
  #gallery img:first-of-type { /* Display first image a thumbnail, above the title instead */
    display: none;
  }
  .header-img img {
    display: block;
  }

  section {
    flex-direction: column-reverse;
    padding: 20vh 40px;
  }

  #gallery, section h2, section h3 {
    padding: 40px 0;
  }

  #stack {
    section {
      flex-direction: row-reverse;
    }
    
    section h2, section h3 {
      font-size: 2.5rem;
    }

    section img {
      margin-right: 40px;
    }

    section ul { 
      padding: 0px 20px;
    }
    
    section p, section a {
      font-size: 1.5rem;
    }
  }
}

/********** Hide Thumbnails **********/

@media screen and (max-width: 900px) { .thumbnails a:first-child { display: none;} }

@media screen and (max-width: 750px) { .thumbnails  { display: none;} }

/********** Mobile **********/

@media screen and (max-width:790px) {
  header { padding: 30px 40px; }

  #mobilenav { display:block; }

  .nav { display:none }

  #container {
    height: 90svh
  }

  #home {
    height: 100svh;
  }

  #stack section {
    flex-direction: column-reverse;
  }

  #break {
    display: none;
  }

  #contact a {
    font-size: 2rem;}

  #gallery {
    margin: 2rem 0;
  }

  #gallery img {
    margin: 1rem 0;
    width: 80vw;
    max-height: unset;
  }

  .hero {
    margin: 20vh auto;
    margin-bottom: 0;
  }

  .hero h3 {
    font-size: 1.3em;
  }

  section h2, section h3 {
    font-size: 2.5rem;
  }

  section p, section a {
    font-size: 1.5rem;
  }

  section img {
    box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.8);
  }
}







