@import url('https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700|Roboto+Mono:300,500&display=swap');


html {
    margin: 0;
    background-color: white;
    font-family: 'Roboto', sans-serif;
    color: #222;
}

body {
    margin: 0;
    position: relative;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: underline dotted;
}

a:hover {
    text-decoration: underline;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem;
}

.header-nav > .nav {
    display: flex;
    gap: 1rem;
}

.header-nav .header-title {
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: none;
}
.header-nav .header-title:hover {
    text-decoration: none;
}

.header-nav .header-button {
    position: relative;
    margin: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 1.25rem;
    font-weight: 400;
    text-decoration: none;
    transition: 0.3s;
}

.header-nav .header-button:hover {
    text-decoration: none;
}

.header-nav .header-button:after{
    content: "";
    bottom: -0.25rem;
    height: 0.1rem;
    left: 0;
    position: absolute;
    background: #333;
    transition: 0.3s;
    width: 0%;
}

.header-nav .header-button:hover::after {
    width: 100%;
}

.vstack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 250px);
}

.center-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.material-symbols-outlined {
    top: 0.25rem;
    position: relative;
}

.main-button {
    position: relative;
    width: 18rem;
    margin: 0.5rem;
    border-radius: 2rem;
    border: 0.1rem dashed #aaa;
    font-size: 1.25rem;
    font-weight: 400;
    transition: 0.3s;
}

.main-button .button-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    z-index: -1;
    transition: 0.3s;
}

.main-button:hover {
    border-color: transparent;
    color: white;
}
.main-button:hover .button-background {
    background: #679aec;
    width: 100%;
}

.main-button a {
    display: block;
    position: relative;
    width: 100%;
    padding: 1rem 2rem;
    box-sizing: border-box;
    border-radius: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
}

.main-button a .material-symbols-outlined {
    margin-right: 0.5rem;
}

.main-button a:hover {
    /* padding-right: 3rem;
    padding-left: 1rem; */
    text-decoration: none;
}

.main-button:after {
  font-family: 'Material Symbols Outlined';
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -moz-font-feature-settings: 'liga';
  -moz-osx-font-smoothing: grayscale;
  content: 'arrow_forward';
  position: absolute;
  opacity: 0;  
  top: 1.25rem;
  right: -0.25rem;
  transition: 0.3s;
}

.main-button:hover:after {
    opacity: 1;
    right: 2rem;
}

#logo {
    margin: 4rem;
    width: 16rem;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.3));
    transition: 0.3s;
}

#logo:hover {
    transform: scale(1.06) rotate(-6deg);
}

/* Hero (logo + intro text) */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1rem 0 0 0;
}

.hero-title {
    margin: 0 1rem;
    font-weight: 300;
    font-size: 2rem;
    line-height: 1.3;
}

.hero b {
    font-weight: 500;
}

.hero #logo {
    margin: 1rem;
    width: 10rem;
}

.profile-img {
    margin: 1rem;
    width: 14rem;
    border-radius: 1rem;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.1));
    transition: 0.3s;
}

.profile-img:hover {
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.3));
}

table {
    border-collapse: collapse;
}

.big-title {
    padding: 1rem;
    margin-left: 1rem;
    margin-top: 4rem;
    font-weight: 500;
    font-size: 2rem;
}

.cvtable {
    margin: 0 4rem;
    width: calc(100% - 8rem);
}

.cvtable tr {
    border-bottom: 1px dashed gray;
    transition: 0.3s;
}

.cvtable tr:nth-child(even) {
    background-color: #00000007;
}

.cvtable tr:hover {
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
}

.cvtable th {
    font-weight: bold;
    width: 8rem;
}

.cvtable th, .cvtable td {
    padding: 1rem;
}

.cvtable ul {
    margin: 0.5rem 0;
}

.small-icon {
    height: 1rem;
}

.textlink {
    color: black;
    text-decoration: underline dotted 2px;
}

.textlink:hover {
    font-weight: bold;
}

.selection {
    float: left;
}

.cbutton {
    width: 8rem;
    margin: 2rem;
    padding: 1rem;
    border: none;
    text-align: center;
    border-radius: 3px;
    background: #fafafa;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    font-weight: 700;
    transition: 0.3s;
}

.cbutton:hover {
    cursor: pointer;
    transform: scale(1.1);
    background: #679aec;
    color: white;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.2);
}

.pbutton, .pbutton:hover {
    background: #ec5c5c;
    color: white;
}

.share {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    margin: 0 4rem 2rem 4rem;
    font-size: 1rem;
    font-weight: 400;
}

.share a {
    text-decoration: none;
}

.share .material-file {
    display: flex;
}
.share .material-symbols-outlined {
    margin-right: 0.5rem;
    line-height: 0.5;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, 32rem);
    margin: 3rem;
    justify-content: center;
}

.project-item {
    margin: 2.25rem 3rem;
    border-radius: 16px;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.project-item:hover {
    cursor: pointer;
    background: #679aec;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.2);
}

.project-item h2 {
    font-weight: 500;
}

.project-item p:not(.project-item-date) {
    color: #555;
}

.project-item-date {
    font-family: 'Roboto Mono', monospace;
    color: #888;
    font-size: 0.75rem;
    margin: -0.75rem 0 0 0;
    font-weight: 300;
}

.project-item:hover p {
    color: white;
}

.project-item img {
    object-fit: cover;
    width: 100%;
    height: 16rem;
    border-radius: 1rem 1rem 0 0;
}

.project-item-inner {
    margin: 1.5rem;
}

.project-background {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: min(50%, 100vh);
    z-index: -1;
    position: absolute;
}

.project-content-parent {
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-content {
    top: 8rem;
    max-width: 75rem;
    margin: 4rem;
    margin-bottom: 8rem;
    padding: 4rem;
    position: relative;
    background: white;
    border-radius: 48px;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.2);
}

.project-html-container {
    text-align: justify;
    margin-top: 48px;
    color: #444;
}

.materials-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(48rem, 1fr));
    margin: 3rem;
}

.material-item {
    display: flex;
    margin: 2.25rem 3rem;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.material-item:hover {
    cursor: pointer;
    background: #679aec;
    transform: scale(1.05);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.2);
}

.material-item h2 {
    font-weight: 500;
}

.material-item:hover h2,
.material-item:hover p {
    color: white;
}

.material-item img {
    object-fit: cover;
    width: 6rem;
    height: 6rem;
    margin: auto 1.5rem auto 0;
    border-radius: 1rem;
}

.material-file {
    display: inline-block;
    background: #eee;
    color: #222;
    padding: 0.5rem 1rem;
    width: fit-content;
    border-radius: 1.5rem;
    margin: 0.5rem;
    transition: 0.3s;
}

.material-file:hover {
    background: #444;
    color: white;
}

.material-link::before {
    content: '';
    display: inline-block;
    background: url('/static/icons/link.png');
    background-size: 1.25rem 1.25rem;
    height: 1.25rem;
    width: 1.25rem;
    margin-bottom: -0.25rem;
}

.material-link:hover::before {
    background: url('/static/icons/link_white.png');
    background-size: 1.25rem 1.25rem;
}

.material-file-pdf::before {
    content: '';
    display: inline-block;
    background: url('/static/icons/pdf_red.png');
    background-size: 1.25rem 1.25rem;
    height: 1.25rem;
    width: 1.25rem;
    margin-bottom: -0.25rem;
}

.material-file-pdf:hover {
    background: #ec5c5c;
    color: white;
}

.material-file-pdf:hover::before {
    background: url('/static/icons/pdf_white.png');
    background-size: 1.25rem 1.25rem;
}

.material-file-py::before,
.material-file-ipynb::before {
    content: '';
    display: inline-block;
    background: url('/static/icons/python.png');
    background-size: 1.25rem 1.25rem;
    height: 1.25rem;
    width: 1.25rem;
    margin-bottom: -0.25rem;
}

.material-file-py:hover,
.material-file-ipynb:hover {
    background: #ffd800;
    color: #8f5913;
}

.material-file-py:hover::before,
.material-file-ipynb:hover::before {
    background: url('/static/icons/python_dark.png');
    background-size: 1.25rem 1.25rem;
}

.material-file-youtube::before {
    content: '';
    display: inline-block;
    background: url('/static/icons/youtube.png');
    background-size: 1.25rem 1.25rem;
    height: 1.25rem;
    width: 1.25rem;
    margin-bottom: -0.25rem;
}
.material-file-youtube:hover {
    background: #ec5c5c;
    color: white;
}
.material-file-youtube:hover::before {
    background: url('/static/icons/youtube_white.png');
    background-size: 1.25rem 1.25rem;
}

.material-file-linkedin::before {
    content: '';
    display: inline-block;
    background: url('/static/icons/linkedin.png');
    background-size: 1.25rem 1.25rem;
    height: 1.25rem;
    width: 1.25rem;
    margin-right: 0.5rem;
    margin-bottom: -0.25rem;
}
.material-file-linkedin:hover {
    background: #0077b5;
    color: white;
}
.material-file-linkedin:hover::before {
    background: url('/static/icons/linkedin_white.png');
    background-size: 1.25rem 1.25rem;
}

.material-file-github::before {
    content: '';
    display: inline-block;
    background: url('/static/icons/github.png');
    background-size: 1.25rem 1.25rem;
    height: 1.25rem;
    width: 1.25rem;
    margin-right: 0.5rem;
    margin-bottom: -0.25rem;
}

.material-file-github:hover::before {
    background: url('/static/icons/github_white.png');
    background-size: 1.25rem 1.25rem;
}

.material-file-gitlab::before {
    content: '';
    display: inline-block;
    background: url('/static/icons/gitlab.png');
    background-size: 1.25rem 1.25rem;
    height: 1.25rem;
    width: 1.25rem;
    margin-bottom: -0.25rem;
}

.material-file-gitlab:hover {
    background: #ec672a;
    color: white;
}

.material-file-gitlab:hover::before {
    background: url('/static/icons/gitlab_white.png');
    background-size: 1.25rem 1.25rem;
}

footer {
    width: 100%;
    position: absolute;
    bottom: 0;
}

#foot {
    width: 100%;
    position: relative;
    left: 0;
    margin-bottom: -3%;
    transform: scaleY(0.6);
}

b {
    font-weight: 700;
}

.footer {
    margin: 0;
    padding: 0 4rem 2rem 4rem;
    width: calc(100% - 8rem);
    position: relative;
    left: 0;
    display: flex;
    background: #679aec;
    color: white;
}

.footer p::before {
    content: '';
    display: inline-block;
    background: url('/static/icons/mail.png');
    background-size: 1.25rem 1.25rem;
    height: 1.25rem;
    width: 1.25rem;
    margin-bottom: -0.25rem;
    margin-right: 0.5rem;
}

.footer-subdiv {
    width: 50%;
}


/* ----------- */
.waves {
  position:relative;
  width: 100%;
  height:15vh;
  margin-bottom:-7px; /*Fix for safari gap*/
  min-height:100px;
  max-height:150px;
}

.content {
  position:relative;
  height:20vh;
  text-align:center;
  background-color: white;
}

/* Animation */

.parallax > use {
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5)     infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}
@keyframes move-forever {
  0% {
   transform: translate3d(-90px,0,0);
  }
  100% { 
    transform: translate3d(85px,0,0);
  }
}
