/* Color palette variables */
:root {
  --color-white: #ffffff;
  --color-profile-border: #1e40a966; /* 66 is 40% opacity */
  --color-blockquote: #1e3a8a;
  --color-button: #1d4ed8;
  --color-navy-blue: #1a3c6e;
  --color-dark-navy-blue: #143D73;
  --color-deep-navy-blue: #24305e;
  --color-card: #93c5fd;
  --color-intro-bg: #93c5fd;
  --color-link: #0b66c3;
  --color-text-dark: #333;
  --color-muted: #666;
  --color-surface: #fafafa;
  --color-divider: #ddd;
}

/* Google Fonts Import */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");

/* Headings */
  
h3 {
  font-weight: 200;
  margin-top: 0;
  margin-bottom: 60px;
  padding: 30px 40px;
  text-transform: uppercase;
}

h6 b {
  font-weight: 700 !important;
}

/* Profile image */

.profile-pic {
  position: relative;
  max-width: 130px;
  max-height: 130px;
  width: auto;
  height: auto;
  overflow: hidden;
  margin: -31px;
  margin-left: -7px;
  border: 6px solid var(--color-profile-border);
  border-radius: 50% !important;
}

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

/* Social icons */

@import url(https://fonts.googleapis.com/css?family=Poiret+One);

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

.icon-btn {
  margin-left: auto;
  width: 50px;
  height: 50px;
  border: 0;
  color: var(--color-white);
  cursor: pointer;
  font-size: 30px;
  line-height: 70px;
  border-radius: 45px;
  display: inline-block;
  margin: 4px;
}

.github {
  color: black;
}
.linkedin {
  color: #0077b5;
}
.angellist {
  color: grey;
}

.icon-btn:hover {
  transform: scale(1.1);
  color: var(--color-white);
}

.linkedin:hover {
  background-color: #0077b5;
}
.angellist:hover {
  background-color: grey;
}
.github:hover {
  background-color: black;
}

/* Buttons - Read Me, Contact Us */

.readme {
  position: relative;
  padding: 11px 35px;
  background: var(--color-white);
  color: var(--color-button);
  border: 2px solid var(--color-white);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  display: inline-block;
  border-radius: 5px;
  -webkit-border-radius: 5px;
}

.contactme {
  position: relative;
  padding: 11px 35px;
  background: none;
  color: var(--color-white);
  border: 2px solid var(--color-white);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  display: inline-block;
  margin-top: 1.5em;
  border-radius: 5px;
  -webkit-border-radius: 5px;
}

.contactme:hover {
  color: var(--color-button);
  background-color: white;
}

/* Body */
body {
  color: var(--color-text-dark);
  font-size: 15px;
  font-family: "Roboto", sans-serif;
}

.flow-text,
.flow-text p,
.container p {
  font-size: 15px !important;
  margin: 10px 0 !important;
  line-height: 2 !important;
}

/* Links */
a {
  color: var(--color-link);
}

/* Blockquote */
blockquote {
  border-left: 5px solid var(--color-blockquote);
  color: var(--color-blockquote);
  font-size: 125%;
  font-weight: 400;
  margin: 20px 0;
  padding-left: 1.5rem;
}

blockquote * {
  font-size: inherit;
  line-height: inherit;
}

.text-center {
  text-align: center;
}

/* Nav */
nav {
  background: white;
  box-shadow: none;
  height: 0;
}

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

/* Main */
main {
  background: url(../../assets/img/bg.png) repeat;
  padding-left: 190px;
}

dl {
  margin-top: 0.5rem;
}
dd {
  display: inline-block;
  font-weight: 500;
  margin-left: 0;
}
dt {
  display: inline-block;
  margin-left: 0.5rem;
}

/* Side nav */
ul.side-nav {
  width: 190px;
}
ul.side-nav li {
  padding: 0;
}

ul.side-nav.fixed a {
  box-sizing: content-box;
  color: var(--color-navy-blue); /* was green */
  display: block;
  line-height: 100%;
  padding: 10px 0 12px;
}

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: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
  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: var(--color-surface);
  border-left: 3px solid var(--color-navy-blue);
}

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

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

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

.container {
  width: 95%;
}

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

.full-height {
  height: 100vh;
}

/* Intro */

#intro.section {
  background: var(--color-intro-bg) repeat;
  position: relative;
}

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

#intro.section .container *:not(span) {
  font-weight: 300;
  line-height: 150%;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

#intro.section .underline {
  border-bottom: 5px solid #24305e;
}

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

/* Overlay */
.overlay {
  background-color: rgba(0, 0, 0, 0.4);
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

/* Materialize waves ripple (already blue-ish) */
.waves-effect.waves-blue .waves-ripple {
  background-color: rgba(33, 150, 243, 0.2);
}

/* Metrics */


.metrics-main-div {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding: 0 20px;
  width: 100%;
  align-items: stretch;
}

.metrics-card {
  align-items: center;
  background: var(--color-dark-navy-blue);
  border: 1px solid #333;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 160px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  justify-content: flex-start; /* content starts at top */
}

.metrics-number {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.metrics-label {
  color: #e0e0e0;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 8px;
}

.metrics-description {
  color: #b0b0b0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.metrics-subtitle {
  color: #b0b0b0;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.metrics-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

/* Cards */

.card {
  margin-bottom: 60px;
}

.card .card-title {
  font-size: 18px;
}
.card .card-content .card-title {
  line-height: 1rem;
}

.card-content p {
  font-size: 15px !important;
  margin: 5px 0 !important;
  line-height: 1.5 !important;
}

.card .role {
  font-size: 1.25rem;
  position: absolute;
  right: 38px;
  top: 35px;
}

.card li a {
  margin-right: 0;
  color: var(--color-text-dark);
  border-bottom: 2px solid var(--color-card); /* was amber */
}

.card li a:hover {
  color: var(--color-text-dark);
  font-weight: 500;
}

.card .card-content {
  padding-bottom: 30px;
}
.card .card-content p {
  padding: 5px 0 0;
}

.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;
}

.card-action span {
  font-size: 85%;
  color: var(--color-muted);
}

.card ul {
  margin-bottom: 0;
}

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

.card ul li li {
  color: var(--color-muted);
  font-size: 13px;
}

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

.card-reveal ul {
  margin-top:5px; 
}

.card-reveal ul li {
  margin-bottom: 0;
  line-height: 1.2rem;
}

/* Hover underline */

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

a.hoverline:hover {
  border-bottom: 3px solid var(--color-button) !important;
}

span.hoverline {
  color: inherit;
  transition: 0.25s all;
  display: inline-block;
}

span.hoverline:hover {
  filter: brightness(1.8); /* makes it lighter */
}

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

#skills h4 {
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: 30px;
  padding-bottom: 20px;
}

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

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

#experience .card-content .row {
  border-bottom: 1px solid var(--color-divider);
  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 a:not(.btn-floating) {
  bottom: 6px;
  left: 20px;
  position: relative;
}

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

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

small {
  display: none;
}

.grey-text {
  color: var(--color-muted) !important;
}

.blue-text {
  color: var(--color-navy-blue) !important;
}
.blue {
  background-color: var(--color-navy-blue) !important;
}

/* Layout widths */
@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: 0px;
    padding-top: 64px;
  }
  ul.side-nav a {
    line-height: 100%;
    padding: 0;
    width: 100%;
  }
  nav {
    background: var(--color-white);
    height: 64px;
    position: absolute;
  }
  nav a.button-collapse,
  nav a.button-collapse i {
    color: var(--color-navy-blue);
    height: 56px;
    line-height: 56px;
  }

  
  .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;
  }
  .name-title span {
    display: block;
    font-size: 14px;
  }
  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%;
  }
}

/* Section Specifics */

#experience .card-action {
  background-color: rgba(0, 0, 0, 0.02);
  border: none;
}

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

#work .row {
  display: flex;
  flex-wrap: wrap;
}

#work .card-project {
  flex: 1 1 360; /* grow, shrink, basis */
  max-width: 360;
}

#work .card-action a.btn-floating {
  margin-right: 6px;
}