@import url('fonts.css');

html {
    width: 100%;
}

body {
    font-family: 'Geist Sans', sans-serif;
    background: black;
    color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.body__container {
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    height: 100%;
    flex-direction: column;
    overflow-x: hidden;
    width: 100vw;
}

/* HEADER */
.header {
    width: 100%;
    padding: 2px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #323232;
    background: linear-gradient(180deg, #000000, #181818);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
}

.header__title { 
    margin: 0;
    font-size: 24px;
    background: -webkit-linear-gradient(280deg, #ffffff, #4d4d4d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media screen and (min-width: 425px) {
    .header__title {
        margin: 0;
    }
}

.header__nav {
    display: none;
}

/* MOBILE ACTIVE STATE - centered column */
@media (max-width: 1039px) {
    .header__nav.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 20px 0;
        gap: 1.5rem;
    }
}

.header__link {
    color: #8a8a8a;
    text-decoration: none;
    font-size: 16px;
}

.header__link:hover {
    color: #fff
}

.header__auth {
    display: flex;
    align-items: center;
    margin-right: 20px;
    padding: 20px 0;
}

.header__button {
    background-color: transparent;
    color: #fff;
    font-size: 1rem;
    font-family: "Geist Sans", sans-serif;
    border-radius: 0.5rem;
    border: 1px solid #525252;
    padding: 10px 20px;
    transition: all 0.2s linear;
    cursor: pointer;
    margin-left: 10px;
}

.header__inner {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 20px 0;
    margin: 0 auto;
    transition: all 0.2s linear;
}

.header__inner-left {
    display: flex;
    align-items: center;
}

.header__button:hover {
    background-color: #262626;
    color: #fff;
    border: 1px solid #a4a4a4;
}

.header__button--sign-in {
    background-color: #035600;
}

/* MOBILE MENU */
.mobile-menu-icon {
    display: block;
    cursor: pointer;
    font-size: 24px;
    margin-right: 20px;
    color: #fff;
}

@media (min-width: 500px) {
    .header__inner {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
    }
}

@media (min-width: 1040px) {
    .header__inner {
        flex-direction: row;
        text-align: center;
        justify-content: space-between;
        padding: 0 20px;
    }

    .header__nav {
        display: flex;
        justify-content: row;
        gap: 2rem;
    }
    .header__auth {
        display: flex;
        padding: 20px 0;
    }

    .header__title {
        margin: 10px 0;
    }

    .mobile-menu-icon {
        display: none;
    }
}

/* TODO - resolve why right padding isn't working on buttons from header-inner */
@media (min-width: 1030px) and (max-width: 1220px) {
    .header__auth {
        padding-right: 20px;
    }
}

/*CONTAINER*/
.hero {
    position: relative;
    top: 5rem;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 90px 0;
    padding-bottom: 20px;
    z-index: 1;
}

.hero:before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

@media (max-width: 970px) {
    .hero__title.hidden {
        display: none;
    }
}

.hero__title {
    font-size: 55px;
    margin: 20px 5%;
    color: #ffffff;
}

.hero__description {
    font-size: 18px;
    font-family: "Geist Sans", sans-serif;
    color: #bbb;
    margin: 20px 5%;
}

.hero__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    width: auto;
}

.hero__button {
    margin: 10px;
    padding: 10px 20px;
    background-color: #ffffff;
    font-family: "Geist Sans", sans-serif;
    font-size: 16px;
    border: 1px solid transparent;
    transition: all 0.2s linear;
    border-radius: 8px;
    color: #222;
}

.hero__button:hover {
    background-color: #262626;
    border: 1px solid #d7d7d7;
    color: #fff;
    cursor: pointer;
}

/* VIEW DOCS BUTTON*/
.hero__button.hero__button--view-docs {
    background: transparent;
    color: white;
    border: 1px solid transparent;
}

button.hero__button--view-docs::before,
button.hero__button--view-docs::after {
    content: "";
    width: 0;
    height: 2px;
    position: absolute;
    transition: all 0.2s linear;
    background: #3f3f3f;
}

button.hero__button--view-docs span::before,
button.hero__button--view-docs span::after {
    content: "";
    width: 2px;
    height: 0;
    position: absolute;
    transition: all 0.2s linear;
    background: #a4a4a4;
}

button.hero__button--view-docs:hover::before,
button.hero__button--view-docs:hover::after {
    width: 100%;
}

button.hero__button--view-docs:hover span::before,
button.hero__button--view-docs:hover span::after {
    height: 100%;
}

button.hero__button--view-docs::after {
    right: 0;
    bottom: 0;
    transition-duration: 0.4s;
}

button.hero__button--view-docs span::after {
    right: 0;
    bottom: 0;
    transition-duration: 0.4s;
}

button.hero__button--view-docs::before {
    left: 0;
    top: 0;
    transition-duration: 0.4s;
}

button.hero__button--view-docs span::before {
    left: 0;
    top: 0;
    transition-duration: 0.4s;
}

button.hero__button--view-docs {
    display: flex;
    align-items: center;
    position: relative;
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    margin: 0;
    background: #1a2929;
    font-family: "Geist Sans", sans-serif;
}
/* GET DOCS BUTTON - arrow spacing */
button.hero__button--view-docs span {
    display: block;
    padding: 2px 10px;
}

.code-container {
    background: radial-gradient(#444444, #000000);
    border: 1px solid #282828;
    border-radius: 10px;
    padding: 25px 0 0 0;
    width: 100%;
    max-width: 375px;
    margin: 120px auto 0 auto; /*leave this tight for max code space on mobile*/
}

@media (min-width: 500px) {
    .code-container {
        max-width: 500px;
    }
}

@media (min-width: 1050px) {
    .code-container {
        max-width: 960px;
    }
}

.code-container__tabs {
    display: flex;
    justify-content: start;
    border-radius: 5px;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0 10px;
}

.code-container__tab {
    background-color: #121212;
    padding: 10px 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border: 1px solid #323232;
    color: #4d4d4d;
    cursor:pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-container__tab--active {
    color: #d2d2d2;
    background: radial-gradient(circle, #2f2f2f, #121212);
}

.code-container__icon {
    font-size: 20px;
    filter: grayscale(100%);
}

.code-container__content {
    position: relative;
    background: linear-gradient(180deg, #191919, #000000);
    border-radius: 10px;
    padding: 20px;
    height: 500px;
    overflow-y: scroll;
}

.code-container__code {
    display: none;
    background-color: transparent !important;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-container__code--active {
    display: block;
}

pre[class*="language-"] {
    background: transparent;
    padding: 0;
    margin: 0;
}

.code-container__content pre[class*="language-"] {
    padding: 10px;
    border-radius: 5px;
}

/* LINE NUMBERS */
pre[class*="language-"].line-numbers {
    position: relative;
    padding: 3.8em;
    counter-reset: linenumber;
}

pre[class*="language-"].line-numbers > code {
    position: relative;
    white-space: inherit;
}

.line-numbers .line-numbers-rows {
    position: absolute;
    pointer-events: none;
    top: 0;
    font-size: 100%;
    left: -3.8em; /*match to padding above for alignment*/
    width: 3em; /* add 1em each for four digits plus*/
    letter-spacing: -1px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.line-numbers-rows > span {
    display: block;
    counter-increment: linenumber;
}

.line-numbers-rows > span:before {
    content: counter(linenumber);
    color: #4f4f4f;
    display: block;
    padding-right: 0.8em;
    text-align: right;
}

/* THEME OVERRIDE - LIYU DEV */
code[class*="language-"],
pre[class*="language-"] {
    color: #FDFAF4;  /* Light cream - main text */
    text-shadow: none;
    font-family: 'Inconsolata', 'Monaco', 'Menlo', monospace;
    letter-spacing: 0.3px;
    word-spacing: 1px;
}

.code-container-bg-blur {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 130vw;
    height: 1000px;
    background: radial-gradient(circle, rgba(46, 46, 46, 0.9), rgba(0, 0, 0, 0.2));
    z-index: -2;
}

@media (min-width: 500px) {
    .code-container-bg-blur {
    width: 110vw;

    }
}

/* THEME COLOR OVERRIDE - CLAUDE AI */
/* Selection */
code[class*="language-"]::-moz-selection,
pre[class*="language-"]::-moz-selection {
    background: #264F78 !important;  /* Dark blue selection */
}

code[class*="language-"]::selection,
pre[class*="language-"]::selection {
    background: #264F78 !important;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #6A9955 !important;  /* Muted green */
    font-style: italic;
}

.token.string,
.token.attr-value {
    color: #CE9178 !important;  /* Peachy orange */
}

.token.keyword {
    color: #C586C0 !important;  /* Soft purple/magenta */
}

.token.operator {
    color: #D4D4D4 !important;  /* Light gray - same as main text */
}

.token.function {
    color: #DCDCAA !important;  /* Pale yellow */
    font-style: normal;
}

.token.number {
    color: #B5CEA8 !important;  /* Light mint green */
}

.token.boolean,
.token.null,
.token.atom {
    color: #569CD6 !important;  /* Sky blue */
}

.token.variable {
    color: #9CDCFE !important;  /* Bright cyan */
}

.token.property {
    color: #9CDCFE !important;  /* Bright cyan */
}

.token.class-name {
    color: #4EC9B0 !important;  /* Teal/turquoise */
}

.token.punctuation {
    color: #D4D4D4 !important;  /* Light gray */
}

.token.tag {
    color: #569CD6 !important;  /* Sky blue */
}

.token.attr-name {
    color: #9CDCFE !important;  /* Bright cyan */
}

.token.builtin,
.token.selector {
    color: #4EC9B0 !important;  /* Teal/turquoise */
}

.token.regex,
.token.important {
    color: #D16969 !important;  /* Salmon red */
}

.token.namespace {
    opacity: 0.7 !important;
}

.copy-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.25rem;
    width: 2rem;
    height: 2rem;
    color: #3b3b3b;
    z-index: 2;
}

.copy-icon:hover,
.fa-copy:hover {
    color: #828282;
    cursor: pointer;
}

/* OPEN SOURCE SECTION */
.open-source-section {
    text-align: center;
    padding: 50px 0;
    width: 100%;
    margin: 0 auto;
    z-index: 1;
}
.open-source-text {
    padding: 0 5%;
}

.section-subtitle {
    font-size: 18px;
    color: #888888;
    margin-bottom: 10px;
}

.section-title {
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 20px;
}

.section-description {
    font-size: 18px;
    color: #bbbbbb;
    margin-bottom: 30px;
}

.github-button {
    background-color: #1a2929;
    border: 2px solid #3f3f3f;
    color: #fff;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s linear;
    display: inline-flex;
    align-items: center;
}

.github-button i{
    margin-right: 10px;
    font-size: 20px;
}

.github-button:hover {
    border-color: #a4a4a4;
}

.gitPulse {
    position: relative;
    padding: 100px 0;
}

.gitPulse img{
    width: 100%;
    max-width: 600px;
    border-radius: 29px; /* rounded the corners to match the border within the graphic */
}

/* GITPULSE BACKGROUND */
.gitPulse__bg {
    top: -200px;
    left: 0;
    margin: 140px 0 70px 20px;
    opacity: 0.2;
    background-image: url("../images/circuits.jpg");
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: -1;
    -moz-filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale");
    -o-filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale");
    -webkit-filter: grayscale(100%);
    filter: gray;
    filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale");
}

/* FOOTER */
.footer {
    padding-top: 10rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: hidden;
}

.footer__inner {
    position: absolute;
    display: flex;
    gap: 10px;
    margin-top: 5rem;
}

@media screen and (min-width:768px) {
    .footer__inner {
        margin-top: 1rem;
        overflow-y: hidden;
        height: 155px;
        }
    }

.footer__inner span {
    font-size: 15vw;
    font-weight: bold;
    letter-spacing: -0.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in, transform 0.5s ease-out;
    background: linear-gradient(to right, #404040, #212121);
    background-clip: text;
    color: transparent;
}

.footer__inner span.animate {
    opacity: 0.75;
    transform: translateY(0);
}

@keyframes fall {
    0% {
        transform: translateY(-10vh);
        opacity: 0;
    }
    10% {
        opacity: 0.75;
    }
    100% {
        transform: translateY(110vh);
        opacity: 0;
    }
}

/* FALLING STARS */
.star {
    position: fixed;
    top: -10vh;
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, white, transparent);
    opacity: 0;
    animation: fall 3s linear infinite;
}

@keyframes twinkling {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.star::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100px;
    background: linear-gradient(to top, white, white, transparent);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: twinkling 4.5s infinite;
}