/* PAGE STYLE */

html {
    color: white;
    font-family: "SUSE Mono";
    background-color: #080016;
    opacity: 1;
    background-image:  repeating-linear-gradient(45deg, #190032 25%, transparent 25%, transparent 75%, #190032 75%, #190032), repeating-linear-gradient(45deg, #190032 25%, #080016 25%, #080016 75%, #190032 75%, #190032);
    background-position: 0 0, 27px 27px;
    background-size: 54px 54px;
    text-align: center;
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1 {
    font-size: 2.5em;
}

/* NAVBAR */

.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    padding: 10px;
    z-index: 1000;
}

ul.navbar {
    margin: 0;
    border: 1px solid black;
    border-radius: 10px;
    padding: 0px 0px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    list-style: none;
    height: 50px;
    align-items: stretch;
    display: flex;
    overflow: hidden;
    padding-bottom: 1px;
}

ul.navbar li {
    display: flex;
    align-items: stretch;
    padding: 0;
    height: 100%;
}

ul.navbar li a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 15px;
    text-decoration: none;
    color: white;
}

ul.navbar li a.selected
{
    border-bottom: 1px solid hsla(270, 100%, 75%, 0.8);
    background: linear-gradient(0deg, rgba(128, 0, 255, 0.4) 0%, rgba(128, 0, 255, 0.05) 100%);
}

ul.navbar li a:hover {
    border-bottom: 1px solid hsla(0, 0%, 50%, 0.8);
    background: linear-gradient(0deg, rgba(128, 128, 128, 0.2) 0%, rgba(128, 128, 128, 0.05) 100%);
}

/* HERO SECTION */

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 350px;
    width: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    text-align: center;
    position: relative;
    border-bottom: 2px solid rgba(255, 255, 255, 0.07);
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: 1;
    background-image:  repeating-radial-gradient( circle at 0 0, #8000ff22 0px, #8000ffaa 1px, #8000ff22 40px );
    z-index: 0;
}

.hero-progressive-blur-container {
    position: absolute;
    top: 85%;
    left: 0;
    width: 100%;
    height: 40%;
    z-index: 0;
    pointer-events: none;
}
.hero-progressive-blur-container > .hero-progressive-blur {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}
.hero-progressive-blur-container > .hero-progressive-blur:nth-child(1) {
    backdrop-filter: blur(0.5px);
    mask: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 40%);
}
.hero-progressive-blur-container > .hero-progressive-blur:nth-child(2) {
  backdrop-filter: blur(4px);
  mask: linear-gradient(rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 50%);
}

.hero-progressive-blur-container > .hero-progressive-blur:nth-child(3) {
  backdrop-filter: blur(3px);
  mask: linear-gradient(rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 60%);
}

.hero-progressive-blur-container > .hero-progressive-blur:nth-child(4) {
  backdrop-filter: blur(2px);
  mask: linear-gradient(rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 70%);
}

.hero-progressive-blur-container > .hero-progressive-blur:nth-child(5) {
  backdrop-filter: blur(1px);
  mask: linear-gradient(rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 90%);
}

.hero-progressive-blur-container > .hero-progressive-blur:nth-child(6) {
  backdrop-filter: blur(0.5px);
  mask: linear-gradient(rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 1) 80%);
}

.hero-progressive-blur-container > .hero-progressive-blur:nth-child(7) {
  z-index: 10;
  backdrop-filter: blur(0.25px);
  mask: linear-gradient(rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 1) 100%)
}

.hero h1, .hero p {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    z-index: 1;
    animation-name: moveUpAndFadeIn;
    animation-duration: 0.5s;
    animation-timing-function: ease;
    animation-fill-mode: both;
}

.alternative-text {
    font-size: 10px;
    color: hsla(0, 0%, 100%, 0.75);
    bottom: 20px;
    right: 20px;
    position: absolute;
    margin: 0;
    text-align: right;
}

/* PAGE ELEMENTS */

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    margin: 20px auto;
    max-width: 50vw;
    flex-direction: column;
    align-items: center;
    display: flex;
    text-align: center;
    animation-name: bounceAndFadeIn;
    animation-duration: 0.5s;
    animation-timing-function: ease;
    animation-delay: 0.15s;
    animation-fill-mode: both;
    animation-play-state: paused;
}

.card h2 {
    margin-top: 0;
}

.spacer {
    top: 0;
    height: 54px;
}

button {
    font-family: "SUSE Mono";
    font-size: 0.9em;
}

.primary-button {
    background: linear-gradient(90deg, #8000ff 0%, #9500ff 100%);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 4px 2px;
    cursor: pointer;
    transition-duration: 0.4s;
    margin: 16px 8px 0px 8px;
}

.primary-button:hover {
    box-shadow: 0 0 25px 1px #8000ff;
    transition-duration: 0.4s;
}

.secondary-button {
    background: linear-gradient(90deg, #333333 0%, #444444 100%);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 4px 2px;
    cursor: pointer;
    transition-duration: 0.4s;
    margin: 16px 8px 0px 8px;
}

.secondary-button:hover {
    box-shadow: 0 0 25px 1px #333333;
    transition-duration: 0.4s;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    animation-name: zoomInFromTop;
    animation-duration: 0.3s;
    animation-timing-function: ease;
    animation-fill-mode: both;
    animation-play-state: paused;
}

/* BLOG */

.blog-spacer {
    top: 0;
    height: 50px;
}

.blog-date {
    color: hsla(0, 0%, 100%, 0.75);
    font-size: 0.75em;
    margin-top: -15px;
    margin-bottom: 20px;
}

.blog-container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    width: 100%;
}

.blog-index {
    top: 75px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: left;
    padding: 40px;
    margin: 20px;
    text-align: left;
    width: 10vw;
    position: sticky;
    height: 80vh;
    animation-delay: 0.2s;
    animation-name: moveUpAndFadeIn;
    animation-duration: 0.5s;
    animation-timing-function: ease;
    animation-fill-mode: both;
}

.blog-index h2 {
    margin-top: 0;
    margin-bottom: 40px;
}

.blog-index ul {
    padding-left: 0;
    list-style: inside;
}

.blog-index ul li {
    margin-bottom: 10px;
}

.blog-index ul li a {
    color: white;
    text-decoration: none;
}

.blog-content {
    flex-direction: column;
    align-items: center;
    display: flex;
    text-align: left;
    width: auto;
    margin: 0px 40px;
    animation-delay: 0.1s;
    animation-name: moveUpAndFadeIn;
    animation-duration: 0.5s;
    animation-timing-function: ease;
    animation-fill-mode: both;
}

.blog-content h2 {
    margin-top: 40px;
    margin-bottom: 0px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: auto;
    margin: 20px;
    justify-content: center;
}

.blog-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    margin: 10px;
    max-width: 50vw;
    flex-direction: column;
    align-items: center;
    display: flex;
    text-align: center;
    animation-name: bounceAndFadeIn;
    animation-duration: 0.5s;
    animation-timing-function: ease;
    animation-delay: 0.15s;
    animation-fill-mode: both;
    animation-play-state: paused;
}

.blog-card h2 {
    margin-top: 0;
}

.blog-summary {
    margin-top: 0px;
}

.animateOnView {
    opacity: 0; /* Removes flicker before animation starts */
}

/* ANIMATIONS */
@keyframes bounceAndFadeIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomInFromTop {
    from {
        transform: translateY(-20px) scale(0.5);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes moveUpAndFadeIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ANIMATION ON VIEWPORT ENTER */
@media (prefers-reduced-motion: no-preference) {
    .in-view {
        animation-play-state: running;
    }
}