/* ML Theme: Supplementary dark-mode overrides for cards, components, and animations */

/* ─── Navbar ─── */
.navbar-dark-ml {
    background: #000000 !important;
    border-bottom: 1px solid #1a1a1a !important;
}

.navbar-dark-ml .navbar-brand {
    color: #e8e8ed !important;
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.navbar-dark-ml .nav-link {
    color: #9898a8 !important;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.navbar-dark-ml .nav-link:hover {
    color: #ffffff !important;
}

.navbar-dark-ml .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-dark-ml .nav-link:hover::after {
    width: 80%;
}

/* ─── Footer ─── */
.footer-dark-ml {
    background: #000000 !important;
    border-top: 1px solid #1a1a1a !important;
}

.footer-dark-ml small,
.footer-dark-ml a {
    color: #6b6b7a !important;
    transition: color 0.3s ease;
}

.footer-dark-ml a:hover {
    color: #ffffff !important;
}

/* ─── Social Buttons ─── */
.btn-social {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #e8e8ed;
    border: 1px solid #333333;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-social:hover {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #555555;
}

/* ─── Section Headings ─── */
.section-heading {
    color: #e8e8ed;
    position: relative;
}

.section-heading::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #ffffff;
    margin-top: 0.5rem;
    border-radius: 2px;
}

/* ─── Cards (Projects) ─── */
.card-dark-ml {
    background: #0a0a0a !important;
    border: 1px solid #1a1a1a !important;
    border-radius: 12px !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-dark-ml:hover {
    border-color: #333333 !important;
    transform: translateY(-4px);
}

.card-dark-ml .card-body {
    background: #0a0a0a;
}

.card-dark-ml .card-title {
    color: #e8e8ed !important;
    font-family: "JetBrains Mono", monospace;
    font-weight: 600;
}

.card-dark-ml .card-text {
    color: #9898a8 !important;
}

.card-dark-ml .text-muted {
    color: #6b6b7a !important;
}

.card-dark-ml .rounded-start {
    border-radius: 12px 0 0 12px !important;
}

.card-dark-ml img {
    height: 100%;
    object-fit: cover;
}

/* ─── Badges / Pills ─── */
.badge-ml {
    background: #1a1a1a !important;
    color: #9898a8 !important;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.4em 0.8em;
    border: 1px solid #333333;
}

/* ─── Buttons ─── */
.btn-ml {
    background: transparent;
    color: #e8e8ed;
    border: 1px solid #333333;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-ml:hover {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #555555;
}

/* ─── Projects Section ─── */
.projects-dark-ml {
    background: #000000 !important;
}

.projects-dark-ml .display-4 {
    color: #e8e8ed;
    position: relative;
}

.projects-dark-ml .display-4::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #ffffff;
    margin-top: 0.5rem;
    border-radius: 2px;
}

/* ─── Resume Section ─── */
.resume-dark-ml {
    background: #000000 !important;
}

.resume-dark-ml h1 {
    color: #e8e8ed;
}

.resume-dark-ml .display-6 {
    color: #e8e8ed;
    font-family: "JetBrains Mono", monospace;
}

.resume-dark-ml p,
.resume-dark-ml li {
    color: #9898a8;
}

.resume-dark-ml b {
    color: #e8e8ed;
}

/* ─── Code blocks ─── */
pre,
code {
    background: #0a0a0a !important;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    color: #e8e8ed !important;
}

pre {
    padding: 1.2rem;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #333333;
}

/* ─── Selection ─── */
::selection {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ─── Smooth scroll ─── */
html {
    scroll-behavior: smooth;
}

/* ─── Links in sections ─── */
.projects-dark-ml a {
    color: #9898a8;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
}

.projects-dark-ml a:hover {
    color: #ffffff;
}

/* ─── Accordion (Research Talk) ─── */
.accordion-item {
    border-radius: 12px !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background: #0a0a0a !important;
    color: #ffffff !important;
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    background: #0a0a0a;
    color: #9898a8;
}

/* ─── Responsive tweaks ─── */
@media (max-width: 768px) {
    .card-dark-ml img {
        height: 200px;
    }

    .navbar-dark-ml .nav-link {
        font-size: 0.7rem;
        padding: 0.5rem 0.5rem !important;
    }
}