@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* =========================================================================
   BotsNBytes — "Brand Technical" design system
   Keyed to the logo octagon: blue -> violet -> magenta.
     primary  = indigo-violet   (trust / structure)
     accent   = magenta-pink    (warm / human highlight)
     support  = cyan-blue        (technical signal: code, tags, metrics)
   Light + dark values live here; Tailwind reads them via var(--token).
   ========================================================================= */
:root {
    /* Typography */
    --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

    /* Brand — light */
    --paper: #FBFAF7;      /* warm off-white page */
    --surface: #FFFFFF;    /* cards */
    --surface-2: #F3F2ED;  /* subtle raised / alt band */
    --ink: #141821;        /* body text */
    --muted: #5B6472;      /* secondary text */
    --line: #E7E5DE;       /* borders / hr */

    --primary: #5B34D6;        /* indigo-violet */
    --primary-hover: #4A28B8;
    --primary-soft: #EFEAFB;   /* violet tint fill */
    --accent: #C030D8;         /* magenta-pink */
    --accent-hover: #A824C0;
    --support: #2F84CC;        /* cyan-blue */

    /* Legacy token remaps (kept so existing markup stays coherent) */
    --primary-text-color: var(--ink);
    --bg-color: var(--paper);

    --btn-color: #ffffff;   /* text on primary button */
    --btn-bg: var(--primary);

    --header-link-hover: var(--ink);
    --header-link-hover-bg: rgba(91, 52, 214, 0.09);

    --input-hover-bd-color: var(--primary);

    --dropdown-bg: var(--surface);
    --dropdown-hover-bg: rgba(91, 52, 214, 0.08);

    --faq-h-text: var(--ink);
    --faq-content-text: var(--muted);

    --hr-color: var(--line);

    --footer-link: var(--muted);
    --footer-link-hover: var(--ink);

    --header-bg: rgba(251, 250, 247, 0.85);
    --hero-gradient: var(--paper);
    --hero-bg-img: url("../assets/images/background/dots-dark.cda4d1087f2f.svg");
}

.dark {
    /* Brand — dark (accent/support brightened from the same hues) */
    --paper: #0B0D12;
    --surface: #14171D;
    --surface-2: #1B1F27;
    --ink: #EDEEF0;
    --muted: #9BA3B0;
    --line: #242A33;

    --primary: #8F6DF5;
    --primary-hover: #A488F7;
    --primary-soft: rgba(143, 109, 245, 0.14);
    --accent: #D860F0;
    --accent-hover: #E483F5;
    --support: #48A8D8;

    --btn-color: #0B0D12;   /* dark ink on the lighter primary */
    --btn-bg: var(--primary);

    --header-link-hover: var(--ink);
    --header-link-hover-bg: rgba(143, 109, 245, 0.16);

    --dropdown-bg: var(--surface);
    --dropdown-hover-bg: rgba(143, 109, 245, 0.14);

    --header-bg: rgba(20, 23, 29, 0.82);
    --hero-gradient: var(--paper);
    --hero-bg-img: url("../assets/images/background/dots.e6f7727f8b2a.svg");
}


html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
}

h1, h2, h3, h4, h5, .font-display {
    font-family: var(--font-display);
}

body.modal-open {
    overflow: hidden;
}

header>.collapsible-header {
    display: flex;
    gap: 1rem;
    width: 100%;
    background-color: inherit;
    place-content: center;
    overflow: hidden;
    transition: width 0.3s ease, height 0.3s ease;
}

hr {
    border-color: var(--hr-color);
    border-style: solid;
}

.animated-collapse {
    transition: width 0.3s ease;
}


.header-links {
    position: relative;
    display: flex;
    align-items: center;
    min-width: fit-content;
    padding: 8px 15px;
    z-index: 2;
    cursor: pointer;
    transition: background-color 0.5s, color 0.3s;
}

.header-links::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    /* color: var(--header-link-hover); */
    background-color: var(--header-link-hover-bg);
    transform: scale(40%);
    opacity: 0;
    border-radius: 8px;
    transition: all 300ms;
}

.header-links:hover {
    color: var(--header-link-hover);
}

.header-links:hover::after {
    transform: scale(100%);
    opacity: 1;
}

.hero-section {
    background-image: var(--hero-bg-img);
    background-position: center;
    /* Center the image */
    background-repeat: no-repeat;
    /* Do not repeat the image */
    background-size: cover;
}

.hero-bg-gradient {
    /* background: linear-gradient(180deg, var(--hero-gradient) 13%, rgba(0,0,0,0.258140756302521) 87%); */
    background: linear-gradient(180deg, var(--hero-gradient) 23%, rgba(0, 0, 0, 0) 87%, var(--hero-gradient) 97%);
}


.gradient-text {
    background: rgb(215, 215, 215);
    background: linear-gradient(90deg, rgba(215, 215, 215, 1) 18%, rgba(136, 136, 136, 1) 71%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.purple-bg-grad {
    background: rgb(126, 34, 206);
    background: linear-gradient(90deg, #7e22ce91 8%, #625aafae 31%, #7badbbbc 76%, #54d2d0ca 89%);
    filter: blur(50px);
    opacity: 0.5;
}

/* Form fields (styled here, not via Tailwind, since widget classes live in
   forms.py which the Tailwind content globs don't scan). */
.form-field {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field::placeholder { color: var(--muted); }
.form-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

/* Rich text rendered from the CMS (summernote / admin HTML). */
.richtext { color: var(--ink); line-height: 1.75; }
.richtext > * + * { margin-top: 1.1em; }
.richtext h1, .richtext h2, .richtext h3, .richtext h4 {
    font-family: var(--font-display); font-weight: 600; color: var(--ink);
    line-height: 1.25; margin-top: 1.6em;
}
.richtext h1 { font-size: 1.9rem; }
.richtext h2 { font-size: 1.5rem; }
.richtext h3 { font-size: 1.25rem; }
.richtext p, .richtext li { color: var(--ink); }
.richtext a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.richtext a:hover { color: var(--accent); }
.richtext ul { list-style: disc; padding-left: 1.4em; }
.richtext ol { list-style: decimal; padding-left: 1.4em; }
.richtext li { margin-top: 0.4em; }
.richtext img { border-radius: 12px; max-width: 100%; height: auto; margin: 1.4em 0; }
.richtext blockquote {
    border-left: 3px solid var(--primary); padding-left: 1em;
    color: var(--muted); font-style: italic;
}
.richtext pre {
    font-family: var(--font-mono); font-size: 0.9em; background: var(--surface-2);
    border: 1px solid var(--line); border-radius: 10px; padding: 1em; overflow-x: auto;
}
.richtext code { font-family: var(--font-mono); font-size: 0.9em; }
.richtext hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* Restrained brand glow — the single primary-tinted ambient light. */
.brand-glow {
    background: radial-gradient(closest-side, var(--primary), transparent);
    filter: blur(70px);
    opacity: 0.18;
    pointer-events: none;
}

.dark .brand-glow {
    opacity: 0.26;
}

#dashboard {
    /* transform-origin: bottom center; */
    transform: perspective(1200px) translateX(0px) translateY(12px) scale(0.8) rotate(0deg) rotateX(70deg);
    transition: transform 0.5;
}

.opacity-0 {
    opacity: 0 !important;
}

.opacity-100 {
    opacity: 100 !important;
}

.btn {
    padding: 10px 15px;
    width: max-content;
    border-radius: 10px;
    color: var(--btn-color);
    background-color: var(--btn-bg);
    justify-content: center;
    align-items: center;
    display: flex;
    cursor: pointer;
}

.btn:hover {}

.btn:disabled {
    cursor: default;
}

.input {
    padding: 10px;
    background-color: transparent;
    border-radius: 5px;
    outline: none;
    min-width: 100px;
    border: 1px solid #979797;
    transition: border 0.3s;
}

.input:active,
.input:focus,
.input:focus-within {
    border: 1px solid var(--input-hover-bd-color) !important;
}

/* ------------------- scrollbar ------------- */
.scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 20px;
}

.scrollbar::-webkit-scrollbar-track {
    border-radius: 25px;
    /* background: #f7f4ed; */
}

.scrollbar::-webkit-scrollbar-thumb {
    background: #d7d7d7;
    border-radius: 25px;
}


/* ---------------- dropdown --------------------- */
.dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-toggle {
    width: 100%;
    outline: none;
    /* background-color: #000; */
    /* border: 1px solid #ccc; */
}

.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1;
    background-color: var(--dropdown-bg);
    /* border: 1px solid #c9c9c9; */
    list-style-type: none;
    padding: 0;
    width: 100%;
    left: 0px;
    /* top: 105%; */
    border-radius: 10px;
    overflow: hidden;
}

.dropdown-menu li {
    padding: 8px 12px;
    cursor: pointer;
}

.dropdown-menu li:hover {
    background-color: var(--dropdown-hover-bg);
}

/* -------------- carousel ------------------*/
.carousel-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    max-width: 800px;
}

.carousel {
    display: inline-block;
    animation: scroll 10s linear infinite;
}

.carousel-img {
    display: inline-block;
    margin: 0 20px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* ------ animated border ------- */

.animated-border {
    position: relative;
    overflow: visible;
}


.animated-border::after {
    content: '';
    position: absolute;
    top: 0px;
    left: -100%;
    width: 30%;
    height: 100%;
    border-radius: inherit;
    /* background: linear-gradient(#6366f1 23%, rgba(124,190,255,0) 87%); */
    background-color: #6366f1;
    background-repeat: no-repeat;
    /* background-size: 200% 200%; */
    background-position: 0% 0%;
    filter: blur(1.5rem);
    opacity: 0.8;
    box-shadow: inset 0px 0px 20px 5px #6366f1;
    /* transform: rotate(90deg); */
    z-index: -2;
    pointer-events: none;
    animation: slide 10s ease-in-out infinite;

}

.animated-border::before {
    filter: blur(1.5rem);
    opacity: 0.3;
    will-change: transform;
}

@keyframes slide {
    0% {
        left: -100%;
        /* Start completely outside the left edge */
        right: 100%;
        /* End completely outside the right edge */
    }

    100% {
        left: 100%;
        /* Move completely outside the right edge */
        right: -100%;
        /* End completely outside the left edge */
    }
}

.footer-link {
    width: -moz-fit-content;
    width: fit-content;
    color: var(--footer-link);
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--footer-link-hover);
}


/* Style for the collapsible content such as faq commonly known as: accordion */

.faq-accordion {
    background-color: inherit;
    color: var(--faq-h-text);
    cursor: pointer;
    padding: 15px 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    transition: height 0.4s;
}

.faq .content {
    padding: 0px 18px;
    color: var(--faq-content-text);
    height: max-content;
    overflow: hidden;
    background-color: transparent;
    text-align: justify;
    max-height: 0px;
    transition: max-height 0.4s, padding 0.4s;
}


@media not all and (min-width: 1024px) {
    header .collapsible-header {
        position: fixed;
        top: 60px;
        left: 0px;
        flex-direction: column;
        opacity: 0;
        height: 0vh;
        min-height: 0vh;
        /* height: 100dvh; */
        width: 100vw;
        justify-content: space-between;
        padding: 5px;
        padding-top: 5%;
        padding-bottom: 5%;
        place-items: center;
        text-align: center;
        background-color: var(--header-bg);
        /* color: #373636; */
        overflow-y: auto;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        box-shadow: 0px 2px 3px 2px #9f9f9f7c;
    }

    /* .header-links{
        color: var(--he);
    } */

}