html {
    --background: #0f011a;
    --heading: #f7f7f7;
    --text: #b8b8b8;
    --accent: #0b9ecf;
    --secondary: #0b9ecf;
    --pop: #b1138f;
}

@font-face {
    font-family: "Rockwell";
    src: url("../assets/rockwell.ttf");
}

@font-face {
    font-family: Poppins;
    src: url("../assets/poppins.ttf");
}

@font-face {
    font-family: SpaceGrotesk;
    src: url("../assets/SpaceGrotesk-Regular.ttf");
}

@font-face {
    font-family: Renogare;
    src: url("../assets/Renogare-Regular.otf");
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--text);
    background: var(--background);
    font-family: Inter, 'Segoe UI', sans-serif;
    font-size: 14pt;
    scroll-behavior: smooth;
    line-height: 1.3;
}

@media screen and (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

.container {
    padding-left: 10%;
    padding-right: 10%;
    height: 100%;
    box-sizing: border-box;
    z-index: 999;
    width: 100%;
}

/* Heading */
.header {
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 20%;
    position: relative;
}

#heading-image {
    width: 100%;
    filter: drop-shadow(0px 0px 10px var(--secondary));
    transition: filter 0.2s;
}

#heading-image:hover {
    filter: drop-shadow(10px 10px 20px var(--accent));
}

#heading-text {
    font-family: 'Google Sans';
    font-size: 5vw; 
    margin: 0px;
    font-weight: 500;
    transition: text-shadow 0.3s;
    cursor: pointer;
}

@media screen and (max-width: 800px) {
    #heading-text {
        text-align: center;
        font-size: 8vw;
    }
}

#heading-star {
    display: inline-block;
    transition: transform 0.3s;
}

#heading-text:hover {
    text-shadow: none;
}

#heading-text:hover #heading-star {
    display: inline-block;
    transform: rotate(180deg);
}

.links {
    display: block;
    width: 100%;
    text-align: left;
}

.links a {
    margin-right: 10px;
}

#canvas-container {
    position: absolute;
}

.p5Canvas {
    z-index: -999;
}

#shadow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0px 0px 200px 100px var(--background), 0px 0px 200px var(--background);
}

@media screen and (max-height: 600px) {
    .header {
        display: block;
        margin-top: 10%;
        margin-bottom: 10%;
        height: auto;
    }
    #shadow-overlay {
        display: none;
    }
}

@media screen and (max-width: 800px) {
    .container {
        padding-left: 5%;
        padding-right: 5%;
    }
    .links a{
        display: block;
        margin-bottom: 10px;
    }
    .header {
        margin-right: 0%;
    }
    #shadow-overlay {
        display: none;
    }
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

#selfie {
    position: relative;
}

#selfie img {
    width: 100%;
    filter: drop-shadow(0px 0px 50px var(--secondary)) saturate(0.8);
    border-radius: 100%;
    border: 2px solid var(--accent);
}

#circle {
    display: block;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    position: absolute;
    top: 10px;
    left: 20px;
    box-sizing: border-box;
    border-radius: 100%;
}

#hexagon-wrapper {
    display: block;
    width: 30%;
    height: 30%;
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
}

#hexagon {
    stroke: var(--accent);
    stroke-width: 6px;
    fill: none;
}

@media screen and (max-width:800px) {
    .intro-grid {
        display: block;
    }
    #selfie {
        width: 50%;
        margin: auto;
        margin-bottom: 40px;
    }
}

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

/* Main Content */
p {
    font-size: 16pt;
}
a {
    color: var(--accent);
    text-decoration: none;
    /*font-family: Poppins, sans-serif;*/
    cursor: pointer;
    transition: all 0.1s;
    /*font-weight: 500;*/
    font-size: 16pt;
    display: inline;
}
a:hover {
    color: var(--heading);
    text-shadow: 0px 0px 20px var(--secondary);  
    letter-spacing: 0.05px;
}
hr {
    border: 0;
    height: 1px;
    background: var(--secondary);
    margin: 20px 0;
    box-shadow: 0px 0px 10px var(--secondary);
}
h1 {
    font-family: "Google Sans", Poppins, sans-serif;
    font-weight: 500;
    text-shadow: -20px -10px 30px var(--accent), 20px 10px 50px var(--pop);
    font-size: 70pt;
    transition: all 2s;
    color: var(--heading);
    margin-top: 200px;
}
@media screen and (max-width: 800px) {
    h1 {
        font-size: 30pt;
    }
    p, a {
        font-size: 16pt;
    }
}
h2 {
    font-family: SpaceGrotesk, Poppins, sans-serif;
    font-size: 40pt;
    font-weight: 400;
    color: var(--accent);
}

/* Cards */
.card-grid{
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(340px,1fr));
    gap:50px;
    width:100%;
    box-sizing: border-box;
    position: relative;
}
.card-grid-lg{
    display:block;
    width:100%;
    box-sizing: border-box;
    position: relative;
}
@media screen and (max-width: 800px) {
    .card-grid, .card-grid-lg{
        gap: 20px;
    }
}
@media screen and (max-width: 500px) {
    .card-grid{
        display: block;
    }
    .card {
        margin-bottom: 20px;
    }
}


.card{
    color:var(--text);
    background-color: var(--background);
    transition: all 0.2s;
    border-radius: 10px;
    border: 1px solid var(--secondary);
    display: block;
    z-index: 0;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    top: 0px;
    left: 0px;
}
.card-grid-lg .card {
    width: 50%;
    margin: 30px;
    display: inline-block;
}
.card-grid-g .card:nth-child(2n) {
    float: left;
    margin-left: 0px;
    clear: left;
}
.card-grid-g .card:nth-child(2n+1) {
    float: right;
    margin-right: 0px;
    clear: right;
}
.card:hover {
    /*box-shadow:0px 0px 20px var(--secondary);*/
    top: -10px;
    left: -10px;
    box-shadow:10px 10px 0px 0px #052d47;
}
.card::before {
    content: "";
    position: absolute;
    z-index: -100;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}
.card:hover::before {
    top: 12px;
    left: 12px;
}
@media screen and (max-width: 800px) {
    .card:hover {
        top: 0px;
        left: 0px;
    }
}
.card .card-img{
    width:calc(100% + 2px);
    height:150px;
    border-radius: 10px 10px 0px 0px;
    background-size:cover;
    background-position:center;
    border: 1px solid var(--secondary);
    box-sizing: border-box;
    left:-1px;
    top:-1px;
    position:relative;
    transform: left 0.5s right 0.5s !important;
}
.card-grid-lg .card .card-img {
    height: 300px;
}
.card-body {
    padding: 12px;
}
.card-body p{
    color: var(--text);
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 14pt;
}
.card-body a{
    display:block;
    background-color:transparent;
    font-size: 14pt;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: "SpaceGrotesk", Poppins, sans-serif;
    /*font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
}
.card-body .card-body-subtitle {
    color: gray;
    margin: 5px 0px;
    font-size: 12pt;
}

/* Showcases */
.showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    margin-bottom: 50px;
}

.showcase-item {
    display: flex;
    gap: 30px;
}

.showcase-item.reverse {
    flex-direction: row-reverse;
}

.showcase-img {
    width: 40%;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    border: 1px solid var(--secondary);
    box-sizing: border-box;
}

.showcase-body {
    width: 60%;
}

.showcase-body h3 {
    margin-top: -0.2em;
    margin-bottom: 10px;
    color: var(--accent);
    font-family: SpaceGrotesk, Poppins, sans-serif;
    font-weight: 400;
    font-size: 20pt;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.showcase-body p {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 14pt;
}

.showcase-link {
    font-size: 12pt;
    border: 1px solid var(--accent);
    padding: 5px 8px;
    border-radius: 5px;
    display: inline-block;
    margin-right: 10px;
    margin-top: 10px;
}

.showcase-link span {
    transition: 0.2s all;
    position: relative;
    top: -1px;
    left: 0px;
}

.showcase-link:hover {
    background-color: var(--secondary);
    color: var(--heading);
    letter-spacing: normal;
}

.showcase-link:hover span {
    top: -5px;
    left: 5px;
}

@media screen and (max-width: 800px) {
    .showcase-item, .showcase-item.reverse {
        flex-direction: column;
    }
    .showcase-img {
        width: 100%;
        height: 200px;
    }
    .showcase-body {
        width: 100%;
    }
}


/* That conway button */
#viz-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #052d47;
    border: 1px solid var(--secondary);
    width: 60px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s all;
}
#viz-toggle:hover {
    background-color: #0a5a8f;
    border: 2px solid var(--accent);
}
#viz-toggle img {
    width: 30px;
    height: 30px;
    margin: 0px;
    box-sizing: border-box;
}
@media screen and (max-width: 800px) {
    #viz-toggle {
        display: none;
    }
}

/* Footer */
.footer {
    color: var(--secondary);
    background-image: url("../assets/background.png");
}

/*AOS*/
[data-aos="fade-out"] {
    opacity: 1;
    transition-property: opacity;
    &.aos-animate {
      opacity: 0;
    }
}