/*#region global*/
body {
    background: #0d0d0d;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    font-family: 'Roboto', sans-serif;

}

section {
    height: auto;
}

a {
    text-decoration: none;
}

/*#endregion*/

/*#region navbar*/
.navbar {
    background: rgba(10, 10, 10, 0.95);

    backdrop-filter: blur(12px);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    padding: 0.8rem 1rem;

    border-bottom: 1px solid rgba(168, 85, 247, 0.3);

}

.navbar.scrolled {
    background: rgba(15, 15, 15, 0.95);

    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25);

}

.navbar-brand {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.navbar-brand img {
    width: 32px;
    height: 32px;
    margin-right: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.navbar-brand span {
    color: #bbb;
    font-weight: 700;
    font-size: 1.2rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.navbar-brand:hover img {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.8);
}

.navbar-brand:hover span {
    color: #fff;
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.9);
}

.navbar .nav-link {
    position: relative;
    color: #bbb !important;
    margin-left: 1rem;
    transition: color 0.2s ease, text-shadow 0.3s ease;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background-color: #a855f7;
    transition: width 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.7);
}

.navbar .nav-link:hover::after {
    width: 100%;
}

/*#endregion*/

/*#region hero*/
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 6rem;
    padding-bottom: 2rem;
    background: linear-gradient(135deg, #1a0a2c, #0d0d0d);
    background-size: 300% 300%;
    animation: gradientShift 20s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    margin-top: 0.5rem;
    text-shadow: 0 0 5px rgba(168, 85, 247, 0.5);
}

.hero-btn {
    margin-top: 20px;
    background: none;
    border: 2px solid #a855f7;
    color: #a855f7;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background-color: #a855f7;
    color: #fff;
    box-shadow: 0 0 20px #a855f7;
    transform: scale(1.05);
}

/*#endregion*/

/*#region docs*/
.docs-container {
    display: flex;
    gap: 2rem;
    padding: 3rem 2rem;
    /* Adds space inside container */
    margin-top: 3rem;
    margin-bottom: 3rem;
    /* Space from hero or previous sections */
    background: #fff;
    color: #111;
    border-radius: 10px;
}


/* Sidebar */
.docs-sidebar {
    flex: 0 0 220px;
    position: sticky;
    top: calc(6rem + 2rem);
    /* 6rem navbar + 2rem top padding */
    border-right: 1px solid #ddd;
    padding-right: 1rem;
}


.docs-sidebar ul {
    list-style: none;
    padding: 0;
}

.docs-sidebar li {
    margin-bottom: 12px;
}

.docs-sidebar a {
    color: #4c1d95;
    font-weight: 600;
    display: block;
    padding: 6px 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.docs-sidebar a:hover,
.docs-sidebar a.active {
    background-color: #4c1d95;
    color: #fff;
}

/* Docs content */
.docs-content {
    flex-grow: 1;
}

/* Accordion customization */
.accordion-button {
    background: #f5f5f5;
    color: #111;
    border: 1px solid #ddd;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background: #4c1d95;
    color: #fff;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    background: #fafafa;
    color: #111;
}

.docs-content pre {
    background: #f0f0f0;
    color: #4c1d95;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
}

.code-block {
    position: relative;
    margin-bottom: 1rem;
}

.code-block .copy-btn {
    position: absolute;
    top: 50%;                   /* vertical center */
    right: 0.5rem;              /* keep it at the right edge */
    transform: translateY(-50%); /* adjust for exact vertical center */
    color: #fff;
    border: none;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}
/*#endregion*/

/*#region footer*/
.footer {
    background: linear-gradient(180deg, #0d0d0d, #1a0a2c);
    color: #ccc;
    padding: 1.5rem 1rem;
    position: relative;
    border-top: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 -2px 15px rgba(168, 85, 247, 0.2);
}

.footer::before {
    content: "";
    display: block;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, #a855f7, transparent);
    position: absolute;
    top: 0;
    left: 0;
    animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.2;
        box-shadow: 0 0 6px #a855f7, 0 0 12px #a855f7;
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 15px #a855f7, 0 0 30px #a855f7;
    }
}


.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
}

.footer-icons {
    margin-top: 0.5rem;
}

.footer-icons a {
    color: #a855f7;
    margin: 0 10px;
    font-size: 1.4rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-icons a:hover {
    color: #fff;
    transform: scale(1.2);
}

/*#endregion*/