@import url('https://fonts.googleapis.com/css2?family=Carter+One&family=Changa+One:ital@0;1&family=Luckiest+Guy&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --bg: #1f1f38;
    --bgVariant: #2c2c6c;
    --primary: #4db5ff;
    --primaryVariant: rgba(77, 181, 255, 0.4);
    --colorWhite: #fff;
    --colorWhiteLight: rgba(255, 255, 255, 0.93);
    --colorWhiteDark: rgba(255, 255, 255, 0.6);
    --animateColor: #2c4c9c;
    --g: no-repeat radial-gradient(circle closest-side, #f0f0f0 90%, #0000);

    --smallScreen: 5%;
    --mediumScreen: 10%;
    --largeScreen: 20%;
}

* {
    padding: 0;
    margin: 0;
    font-family: 'Poppins';
    color: var(--colorWhite);
    outline: none;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-rows: max-content 1fr;
    background: var(--bg);
}

canvas {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    z-index: -100;
}

.navigation {
    width: 100%;
    padding: 1.5rem 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    background: var(--bg);
}

.navTitle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}

.navLogo {
    width: 3.6rem;
    aspect-ratio: 1/1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1.5px solid var(--primary);
    overflow: hidden;
}

.navLogo img {
    width: 100%;
    height: 100%;
}

.menuBtn {
    display: none;
}

.menuBtn i {
    font-size: 1.6rem;
}

.navigation .navLinks {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navLinks li {
    font-size: 1.4rem;
    padding: 5px 10px;
}

.navLinks .tools {
    border-radius: 5px;
    color: var(--colorWhite);
    animation: colorWave 5s infinite;
    background: linear-gradient(to right, var(--bg), var(--animateColor), var(--bg));
    background-size: 500% 100%;
    box-shadow: 0 0 5px var(--primary);
}

.navLinks li:hover {
    border-radius: 5px;
    color: var(--bg);
    background: var(--primary);
}

.navLinks .testimonialsBtn {
    display: none;
}

.container {
    width: 100%;
    height: 100%;
    position: relative;
}

.cleo {
    width: 100%;
    height: 100vh;
    text-align: center;
    display: grid;
    grid-template-rows: 7rem 1fr;

}

.cleoBody {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: max-content 1fr;
    overflow: auto;
    scroll-behavior: smooth;
}

.cleoBody .alignTitle,
.CBtools .alignTitle {
    width: 100%;
    padding: 0 1rem 0.5rem;
}

.alignTitle h3 {
    width: 100%;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.45rem 0;
    border-radius: 5px;
    background: var(--primary);
}

.cleoContents {
    width: 100%;
    padding: 0 1rem 30rem;
    position: relative;
    overflow: auto;
    scroll-behavior: smooth;
}

.cleoResponse,
.promptCleo {
    width: max-content;
    min-width: 10rem;
    max-width: 50rem;
    margin-top: 10px;
    padding: 0.6rem 0.7rem;
    border: 0;
    border-radius: 7px;
    text-align: left;
    background: var(--primaryVariant);
}

.promptCleo img{
    width: 100%;
}

.cleoResponse pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.cleoResponseWidth {
    min-width: 5rem;
}

.alignPrompt {
    width: 100%;
    display: flex;
    justify-content: right;
}

.copyDetails {
    width: 100%;
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
}

.copyDetails p {
    font-size: 14px;
}

.copy {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 5px;
}

.inputField {
    width: 100%;
    padding: 0.8rem 0.7rem 1.5rem;
    display: grid;
    grid-template-columns: 3rem 1fr 8rem;
    gap: 6px;
    position: fixed;
    bottom: 0;
    left: 0;
    background: var(--bg);
}

.inputField .addImage {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    background: var(--primaryVariant);
}

.inputField .addImage i {
    color: #fff;
    font-weight: 600;
}

.inputField input {
    width: 100%;
    padding: 1rem;
    color: #000;
    border: 0;
    border-radius: 5px;
    background: var(--colorWhite);
}

.inputField button {
    font-weight: 600;
    color: var(--colorWhite);
    border: 0;
    border-radius: 5px;
    background: var(--primary);
}

.inputImageContainer {
    width: 100%;
    padding: 0 0.7rem;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 0;
    transition: 0.6s;
}

.inputImageContainer .inputImage {
    width: 100%;
    padding: 0.5rem;
    display: grid;
grid-template-columns: 4.5rem 1fr auto;
gap: 5px;
    margin: 0 auto;
    border-radius: 5px;
    background: var(--bgVariant);
}

.inputImageContainer input {
width: 100%;
    padding: 0.8rem;
    color: gray;
    border: 0;
    border-radius: 5px;
    background: var(--colorWhite);
}

.inputImageContainer button{
padding: 0.5rem;
border-radius: 5px;
background: var(--bgVariant);
}

.toggleAddImage {
    bottom: 78px;
}

.sendPrompt {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sendPrompt i {
    font-size: 1.1rem;
    pad: 0 0 2px 0;
}

.loader {
    width: 50px;
    aspect-ratio: 2;
    margin: 0 auto;
    background:
        var(--g) 0% 50%,
        var(--g) 50% 50%,
        var(--g) 100% 50%;
    background-size: calc(100%/3) 50%;
    animation: l3 1s infinite linear;
}

@keyframes l3 {
    20% {
        background-position: 0% 0%, 50% 50%, 100% 50%
    }

    40% {
        background-position: 0% 100%, 50% 0%, 100% 50%
    }

    60% {
        background-position: 0% 50%, 50% 100%, 100% 0%
    }

    80% {
        background-position: 0% 50%, 50% 50%, 100% 100%
    }
}

@keyframes colorWave {
    0% {
        background-position: 0 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}


@media screen and (max-width: 900px) {
    .navigation {
        padding: 0.7rem;
    }

    .navTitle {
        gap: 0.5rem;
    }

    .navTitle h1 {
        width: 100%;
        font-size: 1.3rem;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .navLogo {
        width: 2.1rem;
    }

    .homepage h1 {
        font-size: 1.8rem;
    }

    .navigation .menuBtn {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .navigation .navLinks {
        width: 50%;
        height: 0;
        border-radius: 10px;
        display: inline-block;
        position: absolute;
        bottom: 0rem;
        right: 0.4rem;
        transform: translateY(100%);
        background: transparent;
        backdrop-filter: blur(2.8rem);
        box-shadow: 0 0 3px var(--primary);
        overflow: auto;
        transition: 0.6s;
    }

    .navLinks li {
        font-size: 1rem;
        font-weight: 500;
        padding: 0.5rem 1rem;
        text-align: center;
        border-radius: 5px;
        margin: 8px 8px 0.8rem;
    }

    .navLinks .tools {
        padding: 0.5rem 1rem;
        border-radius: 5px;
        font-weight: 600;
        margin: 8px;
        border: 1px solid var(--primary);
        color: var(--primary);
        animation: colorWave 5s infinite;
        background: linear-gradient(to right, var(--bg), var(--animateColor), var(--bg));
        background-size: 500% 100%;
    }

    .navLinks li:hover {
        color: var(--colorWhite);
        background: var(--primary);
    }

    .navLinks .testimonialsBtn {
        display: block;
    }


    .cleo {
        grid-template-rows: 56px 1fr;
    }

    .cleoContents {
        padding: 0 1rem 1rem;
    }

    .cleoBody .alignTitle,
    .CBtools .alignTitle {
        padding: 0 0.5rem 0.5rem;
    }

    .cleoResponse,
    .promptCleo {
        max-width: 15rem;
    }

    .inputField {
        grid-template-columns: 2.8rem 1fr 3.5rem;
    }

    .inputField input {
        padding: 0.6rem;
    }
}