/*
 * Site styles. Plain CSS, no build step: edit and refresh.
 * Ported 1:1 from the CSS the old Jekyll theme actually served (assets/css/main.css),
 * with unused theme rules, Devicon and all but the 7 used Font Awesome icons removed.
 */

:root {
  --bg-dark: #1a222c;      /* hero background */
  --text: #555;            /* body copy */
  --heading: #333;
  --white: #fff;
  --breakpoint: 768px;     /* reference only: CSS can't use vars in media queries */
}

html { scroll-behavior: smooth; } /* replaces the sweet-scroll library for the down-arrow link */

/* Thinner, grayscale text rendering on macOS. Without it body text renders heavier
   and the bold labels in "Core Interests" stand out less. */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Font Awesome 4.7 (only the icons the page uses) ---------- */
/* Font Awesome 4.7.0 by @davegandy - Font: SIL OFL 1.1, CSS: MIT License */
@font-face {
  font-family: 'FontAwesome';
  src: url(../fonts/fontawesome-webfont.woff2?v=4.7.0) format("woff2"),
       url(../fonts/fontawesome-webfont.woff?v=4.7.0) format("woff"),
       url(../fonts/fontawesome-webfont.ttf?v=4.7.0) format("truetype");
  font-weight: 400;
  font-style: normal;
}
.fa {
  display: inline-block;
  font: 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.fa-user:before            { content: "\f007"; }
.fa-envelope:before        { content: "\f0e0"; }
.fa-twitter:before         { content: "\f099"; }
.fa-instagram:before       { content: "\f16d"; }
.fa-linkedin-square:before { content: "\f08c"; }
.fa-github-alt:before      { content: "\f113"; }
.fa-chevron-down:before    { content: "\f078"; }

/* ---------- Base ---------- */
body {
  margin: 0;
  padding: 0;
  font-size: 100%;
  line-height: 1.5;
  color: var(--text);
  font-family: 'Antic Slab', serif;
  font-weight: 400;
}
h1, h2, h3, h4 {
  margin-top: 1em;
  padding-top: 1em;
  line-height: 1.25;
  color: var(--heading);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1rem; }
figure, ol, p, ul {
  margin: 10px;
  list-style-type: none;
  padding: 0;
}
a img { border: none; }
sub, sup { line-height: 0; }

/* ---------- Hero (particles + name + icons) ---------- */
#particles-js {
  background: var(--bg-dark);
  display: flex;
  min-height: 100vh;
}
#particles-js .particles-js-canvas-el {
  height: 100vh !important;
}

.header {
  font-family: 'Montserrat', sans-serif;
  z-index: 1;
  text-align: center;
  color: var(--white);
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0 auto;
  transform: translate(-50%, -50%);
}
.header .site-title {
  font-size: 50px;
  display: block;
  line-height: 1;
  color: var(--white);
}
.header .site-description {
  font-size: 20px;
  display: block;
  line-height: 1;
  color: var(--white);
  margin-top: 10px;
}
@media only screen and (min-width: 768px) {
  .header .site-title { margin: 0; font-size: 76px; }
  .header .site-description { font-size: 34px; }
}

.header-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 10px; /* the old theme got this spacing from an empty "header-links" div */
}
.header-icons a { border: none !important; }
.header-icons .icon {
  color: var(--white);
  text-align: center;
  width: 20px;
  height: 20px;
  font-size: 20px;
  padding: 10px;
  margin: 5px;
  border-radius: 50%;
  border: 2px solid var(--white);
  transition: all .5s;
}
.header-icons .icon:hover,
.header-icons .icon:active {
  color: var(--bg-dark);
  background: var(--white);
}
@media only screen and (min-width: 768px) {
  .header-icons .icon { width: 30px; height: 30px; font-size: 30px; line-height: 30px; }
}

/* Bouncing "scroll down" chevron */
.down {
  color: var(--white);
  text-align: center;
  position: absolute;
  bottom: 25px;
  width: 100%;
  margin: 0 auto;
  display: block;
  font-size: 30px;
  line-height: 30px;
  cursor: pointer;
  border: none !important;
}
.down .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  animation: pulse 1.3s infinite;
}
.down .icon:hover,
.down .icon:active { color: #4b5664; }
@keyframes pulse {
  0%, 100% { opacity: .4; top: 0; }
  50%      { opacity: 1;  top: -10px; }
}

/* ---------- About section ---------- */
#about {
  font-size: 120%;
  width: 90%;
  margin: 0 auto;
  max-width: 960px;
}
@media only screen and (min-width: 768px) {
  #about { width: 80%; }
}

.user-details {
  text-align: center;
  margin: 5px auto;
}
.user-details h1 { font-weight: 400; }

.user {
  text-align: center;
  font-size: 60px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}
.user p { font-size: 16px; }
@media only screen and (min-width: 768px) {
  .user { flex-wrap: nowrap; font-size: 75px; }
}

.tech {
  margin: 10px;
  flex: 1 1 0;
}
.tech h2, .tech h3 { font-weight: 400; }
