* {
    box-sizing: border-box;
}

:root {
    /*========== Colors ==========*/
    --primary-color: #1e1d4b;
    --secondary-color: rgb(200, 209, 229);
    --third-color: rgb(20, 48, 180);
    --fourth-color: rgb(237, 243, 249);
    --fifth-color: #483EAD;
    --sixth-color: rgba(237, 243, 248, 1);
    --seventh-color: #7368E1;
}

body {
    font-family: 'Inter', sans-serif;
    min-width: 350px;
}

.main {
    overflow: hidden;
    position: relative;
    margin-top: -70px;
    padding-top: 70px;
}

.bg-fade {
    background: radial-gradient(50% 50% at 50% 50%, rgba(159, 188, 255, 0.5) 0%, rgba(159, 188, 255, 0) 100%);
    width: 600px;
    height: 600px;
    z-index: -1;
    position: absolute;
}

.bg-fade.p1 {
    top: -150px;
    left: -160px;
}

.bg-fade.p2 {
    top: 160px;
    right: 450px;
}

.bg-fade.p3 {
    bottom: 250px;
    left: -100px;
}

.bg-fade.p4 {
    bottom: -150px;
    right: -90px;
}

/* ------------------------Nav Bar-------------------------------- */
.nav-bar {
    background-color: white;
    padding: 1rem;
    width: 80%;
    top: 30px;
    left: 10%;
    border-radius: 20px;
    position: sticky;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    min-width: 350px;
}

.nav-bar a {
    padding: 0.25rem 1rem;
    text-decoration: none;
}

.nav-bar a:hover {
    text-decoration: none;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-name {
    font-family: Inter, serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 100%;
    color: var(--primary-color);
    flex: 1;
}

.nav-name span {
    font-weight: 500;
    color: #9FBCFF;
}

.nav-link-expand {
    display: flex;
    flex: 1;
}

.nav-link {
    padding: 0.25rem 2rem;
    margin-left: 3rem;
    display: flex;
    flex: auto;
    gap: 1.5rem;
    align-items: center;
}

.nav-link a {
    position: relative;
    display: block;
    text-decoration: none;
    color: #8A899E;
    font-family: Inter, sans-serif;
    font-size: 15px;
    transition: 0.5s;
}

/* Top and bottom border lines that animate in on hover */
.nav-link a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-top: 2px solid #9FBCFF;
    border-bottom: 2px solid #9FBCFF;
    transform: scaleY(1.5);
    opacity: 0;
    transition: 0.2s;
}

/* Black background that fills the link on hover */
.nav-link a::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #9FBCFF;
    transform: scale(0);
    opacity: 0;
    transition: 0.2s;
    z-index: -1;
}

.nav-link a:hover {
    color: #fff;
}

.nav-link a:hover::before {
    transform: scaleY(1);
    opacity: 1;
}

.nav-link a:hover::after {
    transform: scaleY(1);
    opacity: 1;
}

.nav-right {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0.5rem;
    justify-content: end;
}

.nav-signin {
    font-size: 16px;
    line-height: 100%;
    color: #12263A;
    white-space: nowrap;
}

.nav-demo {
    border-radius: 10px;
    border: 3px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #5D81D2 0%, #8B78FE 100%) border-box;
    white-space: nowrap;
    padding: 0.25rem 0.75rem;
    color: #5D81D2;
    transition: all 0.5s ease;
}

.nav-demo:hover {
    background: linear-gradient(90deg, #5D81D2 0%, #8B78FE 100%) border-box;
    color: white;
}

.nav-demo:active {
    transform: scale(0.98);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.header-demo-container {
    display: flex;
    align-items: center;
    margin-top: 3rem;
    gap: 3rem;
}

/* ------------------------Headline Section-------------------------------- */
#headline-section {
    padding: 3rem;
    flex: 1;
}

.headline-container {
    text-align: center;
}

.headline {
    font-size: 25px;
    font-weight: 400;
}

.meet-claudius {
    font-weight: 600;
    /* Instead of color: use a gradient as the background */
    background: linear-gradient(270deg, #5D81D2 22.41%, #8B78FE 54.6%, #40649E 79.28%);
    font-size: 50px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.headline-btn-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
}

.view-journals-btn {
    border-radius: 30px;
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #5D81D2 0%, #8B78FE 100%) border-box;
    padding: 0.5rem 2rem;
    color: #5D81D2;
    font-weight: 700;
    transition: all 0.5s ease;
    width: fit-content;
    white-space: nowrap;
}

.view-journals-btn:hover {
    transform: scale(1.02);
    background: linear-gradient(90deg, #5D81D2 0%, #8B78FE 100%) border-box;
    box-shadow: 0 0 10px rgba(139, 120, 254, 0.5);
    color: white;
    text-decoration: none;
}

.signup-btn {
    border-radius: 30px;
    background: linear-gradient(90deg, #5D81D2 0%, #8B78FE 100%);
    padding: 0.5rem 2rem;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    width: fit-content;
    white-space: nowrap;
    min-width: 100px;
}

.signup-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(0deg, transparent, transparent 30%, rgba(0, 255, 255, 0.3));
    transform: rotate(-45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.signup-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(139, 120, 254, 0.5);
    text-decoration: none;
    color: white;
}

.signup-btn:hover::before {
    opacity: 1;
    transform: rotate(-45deg) translateY(100%);
}

/* ------------------------Demo Section-------------------------------- */
#demo-section {
    background: linear-gradient(270deg, #9392D2 0%, #9FBCFF 100%);
    border-radius: 50px 0 0 50px;
    padding: 0 2rem 2rem;
    flex: 1;
    caret-color: transparent;
}

#demo-img {
    width: calc(100% + 15rem);
    margin-left: -10rem;

}

/* ------------------------Carousel Section-------------------------------- */
#carousel-section {
    margin: 2rem 0 1rem;
}

.carousel-header {
    color: #2C4681;
    text-align: center;
    font-size: 25px;
    font-weight: 600;
}

.carousel_wrapper {
    position: relative;
}

.carousel::before,
.carousel::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 50px;
    z-index: 2;
    top: 0;
    pointer-events: none;
}

.carousel::before {
    background: linear-gradient(270deg, rgba(245, 245, 245, 0) 0%, white 100%);
    left: 0;
}

.carousel::after {
    background: linear-gradient(270deg, white 0%, rgba(245, 245, 245, 0) 100%);
    right: 0;
}

.carousel {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1vh 0;
    overflow: hidden;
}

.mover {
    display: flex;
    flex-direction: row;
    transform: translateX(-50%);
    animation: move_x 90s linear 0s infinite normal none;
}

.journal-card {
    position: relative;
    width: 180px;
    color: #fff;
    margin: 1rem;
    padding: 1rem;
    border-radius: 5px;
    overflow: hidden;
    user-select: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.journal-card:hover {
    transform: scale(1.02);
    box-shadow: rgba(0, 0, 0, 0.16) 0 3px 6px, rgba(0, 0, 0, 0.23) 0 3px 6px;
}

.card-content {
    margin-bottom: 1rem;
}

.journal-img-wrapper {
    border-radius: 15px;
    justify-content: center;
    display: flex;
    overflow: hidden;
    height: 130px;
}

.journal-logo {
    max-width: 80%;
    display: block;
    object-fit: contain;
}

.journal-name {
    width: 80%;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
}

.ribbon-mark {
    position: absolute;
    border-bottom: 0;
    right: 30px;
    height: 30px;
}

@keyframes move_x {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

/* ------------------------Info Section-------------------------------- */
#info-section {
    margin: 0 3rem 3rem;
}

.info-wrapper {
    border-radius: 20px;
    background: #C3D5FF;
    padding: 3rem;
    display: flex;
    gap: 5rem;
    width: 85%;
    margin: 0 auto;
    min-height: 600px;
    align-items: stretch;
}

.info-title {
    color: #2C4681;
    font-size: 30px;
    font-weight: 600;
    flex: 1;
    display: flex;
    align-items: center;
    line-height: 1.6;
}

.info-list {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 1rem;
}

.info-container {
    border-radius: 20px;
    background: #fdfdfd;
    padding: 0.5rem 2rem;
    width: 100%;
    overflow-y: hidden;
    cursor: default;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.info-text {
    font-size: 16px;
    color: rgba(12, 10, 8, 0.6);
    margin-bottom: 0;
    line-height: 1.5;
    overflow-y: hidden;
    transition: opacity 0.2s, transform 0.2s, max-height 0.2s;
    opacity: 0;
    transform: translateY(100%);
    border-top: 4px solid lavender;
    max-height: 0;
    padding: 10px 20px 10px 0;
}

.info-container:hover .info-text {
    opacity: 1;
    transform: translateY(0);
    max-height: 300px;
    transition: opacity 0.7s, transform 0.45s ease-out, max-height 0.35s ease-out;
}

.info-container:hover .info-header {
    transform: translateY(0);
}

.info-container:hover svg {
    font-size: 6rem;
    transition: font-size 0.1s ease-out;
}

.info-container .info-header {
    font-size: 20px;
    position: relative;
    margin-bottom: 0;
    padding: 10px 0;
    transform: translateY(13px);
    transition: transform 0.6s;
    color: var(--primary-color);
    font-weight: 600;
}

.info-container svg {
    margin-left: 10px;
    font-size: 2.5rem;
    opacity: 0.4;
    color: var(--primary-color);
    transition: font-size 0.2s;
}

/* ------------------------Backer Section-------------------------------- */
#backer-section {
    margin: 2rem auto;
}

.backer-wrapper {
    display: flex;
    padding: 2rem 5rem;
    width: 80%;
    margin: auto;
    gap: 2rem;
    flex-wrap: wrap;
}

.backer-left {
    flex: 1;
}

.backer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}

.backer-title {
    color: #0E121D;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 3rem;
}

.backer-intro {
    color: #1E1E47;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.learn-more-btn {
    border-radius: 10px;
    background: linear-gradient(90deg, #5D81D2 0%, #8B78FE 100%);
    color: #FFF;
    width: fit-content;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    padding: 0.5rem 2rem;
    transition: all 0.5s ease;
    display: block
}

.learn-more-btn svg{
    transform: translateX(5px) translateY(1px);
    transition: transform 0.2s;
}

.learn-more-btn:hover {
    color: white;
    transform: scale(1.02);
    background: linear-gradient(90deg, #5D81D2 0%, #8B78FE 100%) border-box;
    box-shadow: 0 0 10px rgba(139, 120, 254, 0.5);
    text-decoration: none;
}

.learn-more-btn:hover svg{
    transform: translateX(10px) translateY(1px);
}

.backer-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.backer-row img{
    height: 120px;
}

/* ------------------------Request Demo Section-------------------------------- */
#request-demo-section {
    margin: 2rem auto;
    position: relative;
}

.request-demo-title {
    text-align: center;
    color: var(--gray-info);
    font-weight: 500;
    font-size: 30px;
    padding: 0 2rem;
}

.request-demo-title span:first-of-type {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 35px;
}

.request-demo-title span:last-of-type {
    font-weight: 600;
    color: #9FBCFF;
    font-size: 35px;
}

.demo-wrapper {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    background: linear-gradient(90deg, #5D81D2 0%, #8B78FE 100%);
    border-radius: 10px;
    padding: 3px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.demo-success {
    padding: 3rem 2rem;
    color: whitesmoke;
    display: none;
}

.demo-success h5{
    color: lightgrey;
}

.demo-form {
    background: white;
    color: var(--primary-color);
    padding: 2rem;
    border-radius: inherit;
}

.form-header {
    font-weight: 700;
}

.account-button {
    border: 1px solid #5D81D2 !important;
    color: #5D81D2;
    box-shadow: none !important;
    width: 100%;
}

.account-button:hover,
.account-button:active,
.account-button.active,
.account-button:focus{
    background: linear-gradient(200deg, #5D81D2 0%, #8B78FE 100%) !important;
}

.request-demo-send {
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(90deg, #5D81D2 0%, #8B78FE 100%) !important;
    color: #FFF;
    border-radius: 25px;
    font-weight: bold;
}

/* Footer styles */
.footer {
    background-color: #e6e8f7;
    overflow: hidden;
    padding: 3vh 10vw;
}

.links-wrapper {
    display: flex;
    margin-bottom: 2rem;
}

.links-header {
    font-weight: 800;
    color: var(--primary-color);
}

.links {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-link {
    width: fit-content;
    color: var(--gray-info);
    opacity:0.6;
}
.footer-link:hover {
    color: var(--gray-info);
    text-decoration: none;
    opacity:0.8;
}

.twitter-link {
    width: 50px;
    height: 50px;
    background-color: #fff;
    text-align: center;
    line-height: 45px;
    font-size: 25px;
    display: block;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 3px solid #fff;
    z-index: 1;
}

.twitter-link svg {
  position: relative;
  color: #262626;
  transition: all 0.5s;
  z-index: 3;
}

.twitter-link:hover svg {
  color: #fff;
  transform: rotateY(180deg);
}

.twitter-link:before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #474747;
  transition: 0.5s;
  z-index: 2;
}

.twitter-link:hover:before {
  top: 0;
}

.copyright {
    font-size: 0.7rem;
}

/* Width-adjustment styles */
@media screen and (max-width: 1400px) {
    .info-wrapper {
        padding: 2rem;
        width: 100%;
    }
}

@media screen and (max-width: 1200px) {
    .nav-bar {
        width: 90%;
        left: 5%;
    }

    .nav-link {
        margin-left: 0;
        padding: 0.25rem 0.75rem
    }

    .nav-bar a {
        padding: 0.25rem 0.75rem
    }

    .bg-fade.p2 {
        right: 0;
    }

    .header-demo-container {
        flex-direction: column;
        gap: 0;
    }

    #demo-section {
        border-radius: 50px;
        width: 90%;
        margin: 0 auto;
    }

    #demo-img {
        width: 100%;
        margin-left: 0;
    }

    .info-wrapper {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    #backer-section {
        margin: 2rem auto;
    }

    .backer-wrapper {
        padding: 2rem;
        width: 90%;
    }
}

@media screen and (max-width: 900px) {
    /* Let the nav-bar wrap content on smaller screens */
    .nav-logo-container {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Show hamburger icon */
    .menu-toggle {
        display: block;
    }

    /* Hide the .nav-link row by default on mobile */
    .nav-link-expand {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-link {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-right {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding-top: 1rem;
        border-top: 2px solid lightgrey;
    }

    /* Show .nav-link when it has .open class */
    .nav-link-expand.open {
        display: flex;
    }

    .nav-right {
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    #headline-section {
        padding: 3rem 2rem;
    }

    .headline {
        font-size: 15px;
    }

    .meet-claudius {
        font-size: 35px;
    }

    #demo-section {
        background: linear-gradient(270deg, #9392D2 0%, #9FBCFF 100%);
        border-radius: 50px;
        padding: 0 0 1rem;
    }

    .carousel-header {
        font-size: 20px;
    }

    #info-section {
        margin: 2rem 1rem;
    }

    .info-title {
        font-size: 25px;
    }

    .info-wrapper {
        padding: 2rem 1rem;
    }

    .info-container:hover svg {
        font-size: 3rem;
    }

    .backer-row img {
        height: 90px;
    }

    .headline-btn-container {
        gap: 2rem;
    }
    .backer-title {
        font-size: 30px;
    }

    #request-demo-section {
        margin: 2rem auto;
    }

    .demo-wrapper {
        width: 96%;
    }

    .demo-form {
        padding: 2rem 1rem;
    }

    .request-demo-title {
        font-size: 20px;
    }

    .request-demo-title span:first-of-type {
        font-size: 25px;
    }

    .request-demo-title span:last-of-type {
        font-size: 25px;
    }

    .account-button {
        font-size: 12px;
    }
}
