/* 🔥 IMPORT GOOGLE FONT */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&display=swap');

/* 🔥 GLOBAL DARK THEME */
:root {
    --md-default-bg-color: #0b0f14;
    --md-default-fg-color: #e6edf3;
    --bg: #050508;
    --violet: #8b5cf6;
    --violet-glow: 0 0 20px rgba(139, 92, 246, 0.6);
    --text: #e5e5e5;
    --muted: #9ca3af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #0b0f14, #0d1117);
}

.md-grid {
    max-width: 95% !important;
}

/* 🔥 REMOVE LEFT SIDEBAR HEADER BG */
.md-nav__title {
    background: transparent !important;
    box-shadow: none !important;
}

/* 🔥 REMOVE RIGHT TOC BOX BG */
.md-sidebar--secondary .md-nav {
    background: transparent !important;
    box-shadow: none !important;
}

/* 🔥 REMOVE EXTRA CARD EFFECT (if still visible) */
.md-sidebar--secondary {
    background: transparent !important;
}

/*  REMOVE ALL SHADOWS */
.md-nav,
.md-sidebar,
.md-content,
.md-tabs {
    box-shadow: none !important;
}

.md-nav i {
    color: #3b82f6;
    /* padding: 0 6px; */

}

/* 🔥 Default nav links (smaller & cleaner) */
.md-nav__link {
    color: #9ca3af !important;
    font-weight: 500;
    font-size: 0.70rem;
    letter-spacing: 0.2px;
    transition: all 0.25s ease;
    border-radius: 5px;
    padding: 4px 8px;
}

/* 🔥 Hover */
.md-nav__link:hover {
    color: #ffffff !important;
    background: rgba(59, 130, 246, 0.08);
    transform: translateX(3px);
}

/* 🔥 Active */
.md-nav__link--active {
    color: #3b82f6 !important;
    font-weight: 600;
    background: rgba(58, 126, 236, 0.332);
    border-left: 2px solid #3b82f6;
    padding-left: 6px;
}

/* 🔥 Section titles */
.md-nav__title {
    color: #d1d5db !important;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

/* 🔥 Sub menu items */
.md-nav__item .md-nav__link {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* 🔥 Smooth slide animation */
.md-nav__item--nested>.md-nav__list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

/* 🔥 When active */
.md-nav__item--nested.md-nav__item--active>.md-nav__list {
    max-height: 500px;
    /* enough for items */
}

/* 🔥 Smooth feel */
.md-nav__item--nested {
    transition: all 0.3s ease;
}

/* 🔥 Icon spacing */
/* FIX ICON ALIGNMENT */
.md-nav__link {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.md-nav__link i {
    margin-right: 8px;
    margin-left: 0;
    padding: 0;
    font-size: 0.75rem;
    width: 16px;         /* fixed width */
    text-align: center;  /* center icon */
    display: inline-block;
}

.md-header__button.md-logo img {
    height: 40px;
}

@media screen and (max-width: 768px) {
    .md-header__button.md-logo img {
        height: 30px;
    }
}

.md-header__title {
    font-family: rajdhani, sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--violet);
    text-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

/*  HEADER (TOP BAR) */
.md-header {
    background: rgba(10, 10, 20, 0.55) !important;
    border-bottom: 1px solid #1f2933;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.15), 0 10px 30px rgba(0, 0, 0, 0.4);
}

/*  HEADER LAYOUT FIX */
.md-header__inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

/*  SEARCH BAR FIX */
.md-search {
    margin-left: auto;
}

.md-search__form {
    background: #0b0f14;
    border: 1px solid #1f2933;
    border-radius: 6px;
    transition: 0.25s;
}

.md-search__input {
    color: #e5e7eb;
    font-family: 'Rajdhani', sans-serif;
}

.md-search__input::placeholder {
    color: #6b7280;
}

.md-search__input:focus {
    outline: none;
    box-shadow: none;
}

.md-search__form:hover {
    border-color: #8b5cf6;
}

.md-search__form:focus-within {
    border-color: #8b5cf6;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.md-search__icon {
    color: #9ca3af;
}

.md-search__icon:hover {
    color: #ffffff;
}

/*  BUTTON CONTAINER */
.custom-header-buttons {
    display: flex;
    gap: 14px;
    margin-left: 12px;
    align-items: center;
}

.join-btn {
    color: #9ca3af;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 6px 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.25s ease;
    white-space: nowrap;
}

/*  HOVER EFFECT */
.join-btn:hover {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

/*  HIDE HEADER LINKS IN MOBILE */
@media screen and (max-width: 768px) {
    .custom-header-buttons {
        display: none !important;
    }
}


/* 🔥 GLASS + BASE */
.custom-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #0f0f0fd0;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
    font-family: 'Rajdhani', sans-serif;
    overflow: hidden;
}

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

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

/* 🔥 LEFT */
.footer-left {
    color: #6b7280;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* 🔥 CENTER */
.footer-center {
    color: #d1d5db;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ❤️ HEART GLOW */
.footer-center span {
    color: #ef4444;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* 🔥 RIGHT LINKS */
.footer-right {
    display: flex;
    gap: 22px;
}

/* 🔥 CYBER BUTTON LINKS */
.footer-right a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.8rem;
    position: relative;
    padding: 4px 6px;
    transition: 0.3s ease;
}

.footer-right a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* 🔥 UNDERLINE GLOW */
.footer-right a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 1px;
    background: #8b5cf6;
    transition: 0.3s;
}

.footer-right a:hover::after {
    width: 100%;
}

@media screen and (max-width: 768px) {

    .custom-footer {
        flex-direction: column;
        gap: 14px;
        text-align: center;
        padding: 20px 10px;
    }

    .footer-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

}

/* navigation footer */
/* 🔥 Container */
.md-footer__inner {
    display: flex;
    gap: 20px;
}

/* 🔥 Card Style */
.md-footer__link {
    flex: 1;
    border-radius: 12px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: 0.3s ease;
}

/* 🔥 Hover Effect */
.md-footer__link:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

/* 🔥 Text Styling */
.md-footer__title {
    font-size: 0.9rem;
    opacity: 0.7;
}

.md-footer__direction {
    font-size: 1.1rem;
    font-weight: 500;
}

/* 🔥 Arrows */
.md-footer__button {
    opacity: 0.6;
}


/* extra styling  */

/* 🔥 Command box styling */
.md-typeset pre code {
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    padding: 12px;
    font-size: 0.8rem;
    color: #e5e7eb;
}

/* 🔥 Copy button glow */
.md-clipboard {
    color: #3b82f6 !important;
}

.md-clipboard:hover {
    color: #60a5fa !important;
    transform: scale(1.1);
}

.md-typeset .admonition.example {
    border-left: 3px solid #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}


/* 🔥 MAIN MENU ICON COLOR */
.md-nav__item > .md-nav__link i {
    color: #3b82f6 !important;   /* bright blue */
}

/* 🔥 SUB MENU ICON COLOR */
.md-nav__item .md-nav__item .md-nav__link i {
    color: #6b7280 !important;   /* muted gray */
}
