:root {
  --header-gradient: linear-gradient(to bottom right, rgba(37, 36, 43, 0.6),rgba(21, 25, 26, 0.6));
  --background: #111616
}

body {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  background-color: #111616;
  text-rendering: optimizeLegibility;
}

header {
    position: fixed;
    width: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap; /* stops the text from wrapping viewport shrinks*/ 
    top: 0px;
    background: var(--header-gradient);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* 2px thick, solid line, white color */
    justify-content: center;
    padding: 20px 0px;
    backdrop-filter: blur(8px);
    z-index: 999;
}

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* 2px thick, solid line, white color */
    display: flex;
    align-items: center;
    white-space: nowrap; /* stops the text from wrapping viewport shrinks*/ 
    justify-content: center;
    padding: 20px 0px;
    margin-top: 200px;
}

.header-spacer {
    flex: 1 1 330px;       /* grow, shrink, preferred width */
    max-width: 330px;
    min-width: 20px;       /* how small the gap is allowed to get */
}

.container {
	display: block;
	max-width: 1000px;
	margin: 0 auto;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 50px 69px;
    justify-content: center; /* center cards if less than 2 fit */
}

.card{
  display: flex;
  flex-direction: column;
  color: aquamarine;
}

.subhead {
    display: block;
    width: 100%;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
    margin-bottom: 30px;
}

.card hgroup {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0px;
    background-color: var(--background);
    border-top-right-radius: 8px;
    width: fit-content;
    height: 50px;
    padding-right: 18px;
    z-index: 1;
}

h1 {
	font-size: 32px;
	line-height: 100%;
	font-weight: 700;
	color: #ffffff;
    margin: 0;
}

h2 {
	font-size: 20px;
	line-height: 100%;
	font-weight: 400;
	color: #ffffff;
    margin: 0;
}

h3 {
    font-family: "Inter", sans-serif;
	font-size: 32px;
	line-height: 100%;
	font-weight: 700;
	color: #ffffff;
    margin: 0;
}

h4 {
    font-family: "Inter", sans-serif;
	font-size: 24px;
	line-height: 120%;
	font-weight: 700;
	color: #ffffff;
    margin: 0;
}

h5 {
    font-family: "Inter", sans-serif;
	font-size: 16px;
	line-height: 100%;
	font-weight: 700;
	color: #929292;
    margin: 2px 0px;
}

p {
    font-family: "Inter", sans-serif;
	font-size: 20px;
	font-weight: 400;
	color: #ffffff;
    margin: 0;
}

nav {
    padding-right: 40px;
}

nav li {
    font-size: 20px;
    font-weight: 700;
    list-style: none;
}

nav ul {
    display: flex;
    gap: 40px;
}

nav ul li a.nav-link:hover {
        color: white;
        transition: color 0.1s; /* smooth transition */
}

* {
  scrollbar-width: thin;
  scrollbar-color: #444 #111;
}

.social-container {
    display: flex;
    justify-content: flex-end; /* pushes content to the right */
    gap: 0.5em;
    padding-top: 1em;
}

.social-button {
    background-color: #15191A;
    border: 2px solid rgba(255, 255, 255, 0.1); /* white with 50% opacity */
    fill: #ffffff;
    display: flex;
    padding: 0.5em;
    border-radius: 50%;
    height: 50px;
    width: 50px;
    box-sizing: border-box;
    flex-shrink: 0;
    place-items: center;
    justify-content: center;
}

.social-button:hover {
    fill: #7c7c7c;
}

.card-media {
    position: relative;
    object-fit: cover;
    width: 100%;
    height: 200px;
}

.card-media-corner-bl{
  position: absolute;
  bottom: 0px;
  height: 8px;
  width: 8px;
  fill: var(--background);
}

.card-media-corner-br{
  position: absolute;
  bottom: 11px;
  right: -8px;
  height: 8px;
  width: 8px;
  fill: rgb(255, 0, 0);
}

.card-image, .card-image-only, .card-video{
    position: absolute;
    width: 100%;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    opacity: 100%;
}

.card-video {
    pointer-events: none;
    z-index: -2;
}

.card hgroup, .card p {
    transition: padding-left 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-image, .card-video, .card-image-only {
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover hgroup {
    padding-left: 3px;
}

.card:hover .card-image{
    height: 255px;
    opacity: 0;
}

.card:hover .card-image-only{
    height: 255px;
}

.card:hover .card-video{
    height: 255px;
    opacity: 100%;
}

.section-padding {
	padding: 20px 20px;
}

.nav-link {
    color: #929292;
    text-decoration: none;
}

.link-full {
    position: absolute;
    inset: 0;  
    width: 100%;
    height: 255px;
    z-index: 1;
}

.header-top {
    padding-left: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.hamburger-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding-right: 20px;
}

.hamburger-icon span {
  width: 25px;
  height: 3px;
  background: white;
  transition: 0.3s ease;
  transform-origin: center;
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-icon.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 778px) {

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 16px;
    }

    h3 {
        font-size: 28px;
    }

    p {
        font-size: 16px;
    }

    header nav {
        display: none;
    }

    header {
        flex-wrap: wrap;
    }

    .header-top {
        justify-content: space-between;
        width: 100%;
    }

    nav.open {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding-top: 20px;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .hamburger-icon {
        display: flex;
    }

    .card-media.in-view .card-image {
        opacity: 0%;
        height: 255px;
    }

    .card-media.in-view .card-video {
        height: 255px;
        opacity: 100%;
    }
}