/* ===== Dark Minimalist Theme ===== */
/* Color palette:
   --bg-dark:      #0d1117   (GitHub-dark background)
   --bg-card:      #161b22   (card surfaces)
   --bg-sidebar:   #0d1117   (sidebar)
   --accent:       #58a6ff   (links, highlights - steel blue)
   --accent-hover: #79c0ff   (hover state)
   --text-primary: #e6edf3   (main text)
   --text-muted:   #8b949e   (secondary text)
   --border:       #30363d   (subtle borders)
*/

/* ===== Base ===== */

* {
  box-sizing: border-box;
}

body {
  background-color: #0d1117;
  color: #e6edf3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

a {
  color: #58a6ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #79c0ff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #e6edf3;
  font-weight: 400;
}

blockquote {
  border-left: 4px solid #58a6ff;
  color: #8b949e;
  font-size: 110%;
  margin: 20px 0;
  padding-left: 1.5rem;
}

/* ===== Profile Picture ===== */

.profile-pic {
  position: relative;
  max-width: 120px;
  max-height: 120px;
  width: auto;
  height: auto;
  overflow: hidden;
  margin: -31px;
  margin-left: -7px;
  border: 3px solid #30363d;
  border-radius: 50% !important;
}

.profile-pic img {
  width: 100%;
  height: auto;
}

/* ===== Social Buttons ===== */

.social {
  margin: 0 auto;
  width: auto;
  text-align: inherit;
}

.icon-btn {
  width: 46px;
  height: 46px;
  border: 1px solid #30363d;
  background: transparent;
  color: #8b949e;
  cursor: pointer;
  font-size: 24px;
  line-height: 46px;
  border-radius: 50%;
  display: inline-block;
  margin: 4px;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  transform: scale(1.1);
  color: #e6edf3;
  border-color: #58a6ff;
}

.github {
  color: #e6edf3;
}

.linkedin {
  color: #58a6ff;
}

.github:hover {
  background-color: #e6edf3;
  color: #0d1117;
  border-color: #e6edf3;
}

.linkedin:hover {
  background-color: #58a6ff;
  color: #0d1117;
  border-color: #58a6ff;
}

/* ===== CTA Buttons ===== */

.readme {
  position: relative;
  padding: 11px 35px;
  background: #58a6ff;
  color: #0d1117;
  border: 2px solid #58a6ff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.readme:hover {
  background: #79c0ff;
  border-color: #79c0ff;
  color: #0d1117;
}

.contactme {
  position: relative;
  padding: 11px 35px;
  background: transparent;
  color: #e6edf3;
  border: 2px solid #30363d;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  margin-top: 1.5em;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.contactme:hover {
  border-color: #58a6ff;
  color: #58a6ff;
}

/* ===== Navigation ===== */

nav {
  background: #0d1117;
  box-shadow: none;
  height: 0;
}

nav i {
  padding: 0 15px;
  position: relative;
  top: 5px;
}

ul.side-nav {
  width: 190px;
  background-color: #0d1117;
  border-right: 1px solid #30363d;
}

ul.side-nav li {
  padding: 0;
}

ul.side-nav.fixed a {
  box-sizing: content-box;
  color: #8b949e;
  display: block;
  line-height: 100%;
  padding: 10px 0 12px;
  transition: color 0.2s ease;
}

ul.side-nav.fixed a:hover {
  color: #58a6ff;
}

ul.table-of-contents li.logo a.active,
ul.table-of-contents li.logo a:hover {
  border: none;
  font-weight: 200;
}

ul.side-nav.fixed li.logo {
  background-color: #0d1117;
  border-bottom: 1px solid #30363d;
  box-sizing: content-box;
  min-height: 90px;
  padding: 30px 30px 40px;
}

ul.side-nav.fixed li.logo a {
  font-weight: 200;
  line-height: 100%;
}

ul.table-of-contents li:not(.logo) a.active,
ul.table-of-contents li:not(.logo) a:hover {
  background-color: #161b22;
  border-left: 3px solid #58a6ff;
}

ul.side-nav.fixed.table-of-contents li:not(.logo) a span,
ul#slide-out li:not(.logo) a span {
  color: #e6edf3 !important;
}

li.logo span {
  display: block;
  font-size: 14px;
}

.brand-logo h1 {
  font-size: inherit;
  line-height: inherit;
  margin: inherit;
  font-weight: inherit;
}

/* ===== Main Content Area ===== */

main {
  background: #0d1117;
  padding-left: 190px;
}

.container {
  width: 95%;
}

h3 {
  font-weight: 300;
  margin-bottom: 60px;
  margin-top: 0;
  padding: 30px 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section {
  padding-bottom: 30px;
  padding-top: 0;
  position: relative;
}

.full-height {
  height: 100vh;
}

/* ===== Intro / Hero Section ===== */

#intro.section {
  background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #1a2332 100%);
  position: relative;
}

#intro.section .container {
  color: #e6edf3;
  font-weight: 200;
  left: 0;
  position: absolute;
  top: 0;
}

#intro.section .container *:not(span) {
  font-weight: 300;
  line-height: 150%;
  text-shadow: none;
}

#intro.section .teal {
  padding: 0 10px;
}

.overlay {
  background: transparent;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

/* ===== Cards ===== */

.card {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  margin-bottom: 40px;
  box-shadow: none;
}

.card .role {
  font-size: 1rem;
  position: absolute;
  right: 38px;
  top: 35px;
  color: #8b949e;
}

.card li a {
  margin-right: 0;
  color: #58a6ff;
  border-bottom: 1px solid #58a6ff;
}

.card li a:hover {
  color: #79c0ff;
  border-bottom-color: #79c0ff;
}

.card .card-content {
  padding: 24px;
  padding-bottom: 30px;
  color: #e6edf3;
}

.card .card-content p {
  padding: 5px 0 0;
  color: #e6edf3;
}

.card h5 {
  font-size: 1.5rem;
  margin-bottom: -0.5rem;
  margin-top: 2rem;
}

.card h6 {
  font-weight: 300;
  letter-spacing: 1px;
  margin-top: 2rem;
  text-transform: uppercase;
  color: #8b949e;
}

#experience .card-action {
  background-color: rgba(255, 255, 255, 0.02);
  border-top: 1px solid #30363d;
}

#experience .card .col.s12.m2 a {
  display: block;
}

#experience .card .col.s12.m2 a img {
  max-height: 60px;
}

.card-action span {
  font-size: 85%;
  color: #8b949e;
}

.card ul {
  margin-bottom: 0;
}

.card ul li {
  line-height: 200%;
  list-style-type: disc;
  margin-left: 24px;
  color: #c9d1d9;
}

.card ul li li {
  color: #8b949e;
  font-size: 13px;
}

.card .card-title {
  font-size: 22px;
  color: #e6edf3;
}

.card .card-content .card-title {
  line-height: 2.5rem;
}

.card i.right {
  margin-left: 10px;
}

.card .card-reveal {
  background-color: #161b22;
  color: #e6edf3;
}

a.hoverline {
  border-bottom: 2px solid transparent !important;
  padding: 3px 3px 0 3px;
  transition: 0.25s all;
}

a.hoverline:hover {
  border-bottom: 2px solid #58a6ff !important;
}

/* ===== Skills Section ===== */

#skills .card.large {
  height: 360px;
}

#skills h4 {
  border-bottom: 1px solid #30363d;
  margin-bottom: 30px;
  padding-bottom: 20px;
  color: #8b949e;
}

#skills .col img.responsive-img {
  margin: 0 auto;
  max-height: 80px;
  padding-bottom: 10px;
  text-align: center;
  vertical-align: middle;
  display: table-cell;
  filter: brightness(0.9);
}

.card.large .card-content p {
  color: inherit;
  margin: 0;
  padding: 30px 0;
}

#experience .card-content .row {
  border-bottom: 1px solid #30363d;
  padding-bottom: 10px;
}

.card.large .card-image {
  height: 230px;
}

.card.large .card-content {
  height: auto;
}

.card.medium .card-image {
  height: 240px;
}

.card-action a.btn-floating {
  margin-bottom: 0;
}

/* ===== Contact ===== */

#contact a:not(.btn-floating) {
  bottom: 6px;
  left: 20px;
  position: relative;
  color: #58a6ff;
}

#experience .col.s12.m2 {
  text-align: center;
}

.fa-external-link:before {
  left: 3px;
  position: relative;
  top: 2px;
}

small {
  display: none;
}

/* ===== Overrides for accent color ===== */
/* Override Materialize's .teal everywhere */

.grey-text {
  color: #8b949e !important;
}

.teal-text {
  color: #58a6ff !important;
}

[class*="teal"]:not(.teal-text) {
  background-color: #161b22 !important;
}

.teal,
.teal.page-title,
h3.teal,
section .teal,
main .teal {
  background-color: #161b22 !important;
  border-bottom: 1px solid #30363d;
}

.brown-text,
.brown-text.text-darken-2 {
  color: #8b949e !important;
}

.white-text {
  color: #e6edf3 !important;
}

/* Section headers */
h3.page-title {
  background-color: #161b22 !important;
  border-bottom: 1px solid #30363d;
}

/* Kill Materialize teal on card-action and anywhere else */
.card-action,
.card .card-action {
  background-color: #0d1117 !important;
  border-top: 1px solid #30363d;
}

/* Btn floating (contact icons) */
.btn-floating.blue-grey {
  background-color: #21262d !important;
  border: 1px solid #30363d;
}

.btn-floating.blue-grey:hover {
  background-color: #30363d !important;
}

/* Text center for skills */
.text-center {
  text-align: center;
  color: #8b949e;
}

/* ===== Project Cards ===== */

#projects .container {
  max-width: 800px;
}

.flow-text {
  color: #c9d1d9;
}

.flow-text ul li {
  list-style-type: none;
  margin-left: 0;
  padding: 4px 0;
}

/* ===== Responsive ===== */

@media (min-width: 1200px) {
  #experience .container {
    width: 860px;
  }
}

@media (max-width: 1360px) {
  .card ul li {
    font-size: 14px;
    line-height: 200%;
    margin-left: 20px;
  }
}

@media (max-width: 1160px) {
  .card ul li {
    line-height: 150%;
  }
}

@media (max-width: 992px) {
  main {
    padding-left: 0;
    padding-top: 64px;
  }

  ul.side-nav a {
    line-height: 100%;
    padding: 0;
    width: 100%;
  }

  nav {
    background: #0d1117;
    height: 64px;
    position: absolute;
    border-bottom: 1px solid #30363d;
  }

  nav a.button-collapse,
  nav a.button-collapse i {
    color: #58a6ff;
    height: 56px;
    line-height: 56px;
  }

  h3 {
    padding: 20px 30px;
    margin-bottom: 40px;
  }

  .container {
    margin: 0 auto;
  }

  nav.hide-on-large.only.trigger {
    display: block;
    position: fixed;
    top: 0;
    z-index: 2;
  }

  .name-title {
    display: block;
    height: 100%;
    padding-top: 15px;
    text-align: center;
    width: 100%;
    position: absolute;
  }

  .name-title>span,
  .name-title>a {
    position: relative;
    line-height: 20px;
  }

  .name-title a {
    font-size: 22px;
    display: block;
    color: #58a6ff;
  }

  .name-title span {
    display: block;
    font-size: 14px;
    color: #8b949e;
  }

  h3,
  .container {
    position: relative;
    top: 64px;
  }

  section#intro {
    margin-bottom: -64px;
  }

  .card .role {
    position: relative;
    right: initial;
    top: initial;
  }
}

@media (max-width: 600px) {
  h2 {
    font-size: 22px;
    line-height: 200%;
    margin: 30px 0 0;
  }

  #intro.section .container *:not(span) {
    padding: 0;
  }

  .card .card-content .card-title {
    font-size: 20px;
    line-height: 24px;
  }

  #experience span.card-title {
    text-align: center;
    display: block;
  }

  #experience span.card-title a {
    margin: 0;
  }

  i.mdi-navigation-close.right {
    position: relative;
    bottom: 15px;
  }

  #contact a:not(.btn-floating) {
    text-align: center;
    display: block;
    left: initial;
    bottom: initial;
  }

  #contact a.btn-floating.btn-large {
    display: block;
    text-align: center;
    margin: 0 auto;
  }

  #intro.section {
    background-position-x: 30%;
  }
}