/* =========================================================
   Sachin Pathak - portfolio visual overrides
   Loaded after style.min.css
   ========================================================= */

/* ---- Service cards: equal height (icons keep the template rotate-on-hover) ---- */
.service-area .service_card { height: 100%; }
.service-area .service_card .content { margin-bottom: 0; }

/* ---- Services page: centered heading + glassy intro capsule ---- */
.svc-page .section-title { display: block; text-align: center; }
.svc-intro-wrap { text-align: center; margin-top: 1.5rem; }
.svc-intro-capsule {
    position: relative;
    display: inline-block;
    max-width: 760px;
    margin: 0 auto;
    padding: 14px 34px;
    border-radius: 999px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    text-align: center;
    font-family: "Sora", sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    color: #4b2e83;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.12));
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.7),
                inset 0 -1px 0 rgba(var(--accent-rgb), 0.08);
}
html.dark .svc-intro-capsule {
    color: #e7ddff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
/* card-style hover: gentle zoom + glow */
.svc-intro-capsule:hover {
    transform: scale(1.035);
    border-color: rgba(var(--accent-2-rgb), 0.7);
    box-shadow: 0 0 0 1.5px rgba(var(--accent-2-rgb), 0.40),
                0 18px 42px rgba(var(--accent-rgb), 0.30);
}
html.dark .svc-intro-capsule:hover {
    border-color: rgba(var(--accent-2-rgb), 0.7);
    box-shadow: 0 0 0 1.5px rgba(var(--accent-2-rgb), 0.45),
                0 18px 42px rgba(0, 0, 0, 0.45);
}
@media (max-width: 575.98px) {
    .svc-intro-capsule { border-radius: 22px; padding: 12px 20px; font-size: 13.5px; }
}

/* ---- Services page: same card style as homepage + image kept on top ---- */
/* a little more compact than the homepage cards (smaller card, larger image) */
.svc-page .service_card { padding: 1.75rem; }
.svc-page .service_card .svc-media { margin-bottom: 1rem; }
.service_card .svc-media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
}
html.dark .service_card .svc-media {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
}
/* placeholder icon until a real image is supplied */
.service_card .svc-media::before {
    content: "\f03e";
    font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    font-size: 32px;
    color: rgba(var(--accent-rgb), 0.35);
}
html.dark .service_card .svc-media::before { color: rgba(255, 255, 255, 0.35); }
.service_card .svc-media .svc-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* ---- Interest section: image icons in floating morphing bubbles ---- */
.interest-area .interest-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px 52px;
    margin-top: 2.5rem;
}
.interest-area .single-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}
.interest-area .single-item .title { margin: 0; font-size: 1rem; font-weight: 600; }
.interest-bubble {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #efedfb 100%);
    border: 1px solid rgba(var(--accent-rgb), 0.14);
    box-shadow: 0 12px 26px rgba(var(--accent-rgb), 0.18);
    border-radius: 60% 40% 70% 30% / 60% 65% 40% 40%;
    animation: bubble-morph 8s ease-in-out infinite, bubble-float 5s ease-in-out infinite;
    transition: box-shadow .3s ease;
}
.interest-bubble img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: transform .3s ease;
}
.interest-area .single-item:hover .interest-bubble {
    box-shadow: 0 0 0 1.5px rgba(var(--accent-2-rgb), 0.7), 0 20px 42px rgba(var(--accent-rgb), 0.30);
}
.interest-area .single-item:hover .interest-bubble img { transform: scale(1.12); }
html.dark .interest-bubble {
    background: linear-gradient(135deg, #3d1c87 0%, #2b1a5e 100%);
    border-color: rgba(199, 178, 255, 0.20);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.40);
}
/* stagger so they don't bob in lockstep */
.interest-area .single-item:nth-child(2) .interest-bubble { animation-delay: -1.2s, -.8s; }
.interest-area .single-item:nth-child(3) .interest-bubble { animation-delay: -2.4s, -1.6s; }
.interest-area .single-item:nth-child(4) .interest-bubble { animation-delay: -0.6s, -2.2s; }
.interest-area .single-item:nth-child(5) .interest-bubble { animation-delay: -3.1s, -1.0s; }
.interest-area .single-item:nth-child(6) .interest-bubble { animation-delay: -1.7s, -2.5s; }
.interest-area .single-item:nth-child(7) .interest-bubble { animation-delay: -2.9s, -0.5s; }
@keyframes bubble-morph {
    0%, 100% { border-radius: 60% 40% 70% 30% / 60% 65% 40% 40%; }
    33%      { border-radius: 40% 60% 35% 65% / 55% 45% 55% 45%; }
    66%      { border-radius: 50% 50% 60% 40% / 40% 60% 45% 55%; }
}
@keyframes bubble-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
    .interest-bubble { animation: none; }
}

/* ---- Skills: uniform logo above each Cloud & Platforms circle ---- */
.coding-skills .wrapper .card .icon {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.coding-skills .wrapper .card .icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

/* ---- Honeypot anti-spam field (hidden from humans, visible to bots) ---- */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ---- Contact form status message ---- */
.contact-status {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    min-height: 1em;
}
.contact-status.is-success { color: #16a34a; }
.contact-status.is-error { color: #e0245e; }
html.dark .contact-status.is-success { color: #4ade80; }
html.dark .contact-status.is-error { color: #ff6b8a; }

/* ---- GitHub activity cards (match blog/portfolio cards, theme-aware) ---- */
.gh-card {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 1px solid transparent;
    border-radius: 16px;
    /* light mode (matches blog/portfolio light cards) */
    background: linear-gradient(to right, var(--accent-soft-2) 90%, #FFFFFF) padding-box,
                linear-gradient(to right, #ffffff, #ffffff) border-box;
    box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.08);
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.gh-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(#ffffff, #ffffff) padding-box,
                linear-gradient(45deg, var(--accent), var(--accent-soft)) border-box;
    box-shadow: 0 18px 42px rgba(var(--accent-rgb), 0.20);
}
html.dark .gh-card {
    background: linear-gradient(to right, var(--accent), #0B0020) padding-box,
                linear-gradient(to right, #0B0020, #0B0020) border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.40);
}
html.dark .gh-card:hover {
    background: linear-gradient(#0B0020, #0B0020) padding-box,
                linear-gradient(45deg, var(--accent), var(--accent-soft)) border-box;
    box-shadow: 0 18px 42px rgba(124, 58, 237, 0.30);
}
.gh-card img { width: 100%; height: auto; border-radius: 8px; }
/* show the light widget by default, dark widget in dark mode
   (use .gh-card prefix so these beat the .gh-card img rule's specificity) */
.gh-card .gh-img-light { display: block; }
.gh-card .gh-img-dark { display: none; }
html.dark .gh-card .gh-img-light { display: none; }
html.dark .gh-card .gh-img-dark { display: block; }

/* ---- Interactive terminal ---- */
.terminal {
    max-width: 760px;
    margin: 2.5rem auto 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(124, 92, 255, 0.30);
    background: #0d0a1f;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    text-align: left;
    font-family: "SF Mono", "JetBrains Mono", Consolas, Menlo, Monaco, "Courier New", monospace;
}
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 15px;
    background: #1a1336;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.terminal-bar .t-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-bar .t-dot.red { background: #ff5f56; }
.terminal-bar .t-dot.yellow { background: #ffbd2e; }
.terminal-bar .t-dot.green { background: #27c93f; }
.terminal-title { margin-left: 10px; color: rgba(255, 255, 255, 0.55); font-size: 12.5px; }
.terminal-body {
    height: 340px;
    overflow-y: auto;
    padding: 16px 18px;
    font-size: 13.5px;
    line-height: 1.75;
    color: #cfcbe4;
    cursor: text;
}
.term-block { margin-bottom: 6px; word-break: break-word; }
.terminal .t-prompt { color: #7c5cff; }
.terminal .t-cmd { color: #ffffff; }
.terminal .t-cmd-name { color: #c4b5fd; font-weight: 600; }
.terminal .t-muted { color: #837ea3; }
.terminal .t-accent { color: var(--accent-2); }
.terminal .t-banner { display: block; white-space: pre; color: #9b7cff; line-height: 1.15; font-size: 12px; margin-bottom: 2px; }
.terminal .t-ok { color: #4ade80; }
.terminal .t-err { color: #ff6b8a; }
.terminal-body a { color: #9b7cff; text-decoration: underline; }
.terminal-body a:hover { color: #c4b5fd; }
.terminal-input-line { display: flex; align-items: center; }
.terminal-prompt { color: #7c5cff; white-space: nowrap; margin-right: 8px; }
.terminal-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: 0;
    color: #ffffff;
    font: inherit;
    caret-color: #7c5cff;
}
/* slim scrollbar */
.terminal-body::-webkit-scrollbar { width: 8px; }
.terminal-body::-webkit-scrollbar-thumb { background: rgba(124, 92, 255, 0.4); border-radius: 8px; }

/* ---- Resume access popup modal ---- */
.resume-modal { position: fixed; inset: 0; z-index: 9999; display: none; }
.resume-modal.open { display: block; }
.resume-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 0, 32, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.resume-modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(440px, 92vw);
    border-radius: 20px;
    padding: 30px 28px 26px;
    font-family: "Sora", sans-serif;
    animation: rf-pop .25s ease;
    /* glassy card */
    color: #1f1640;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.30));
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: border-color .3s ease, box-shadow .3s ease;
}
html.dark .resume-modal-dialog {
    color: #f0ebff;
    background: linear-gradient(135deg, rgba(82, 46, 150, 0.40), rgba(22, 11, 48, 0.55));
    border-color: rgba(var(--accent-2-rgb), 0.35);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.60),
                inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
/* blog-card style glowing purple border on hover */
.resume-modal-dialog:hover {
    border-color: rgba(var(--accent-2-rgb), 0.95);
    box-shadow: 0 0 0 1.5px rgba(var(--accent-2-rgb), 0.60),
                0 30px 80px rgba(0, 0, 0, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
html.dark .resume-modal-dialog:hover {
    border-color: rgba(var(--accent-2-rgb), 0.95);
    box-shadow: 0 0 0 1.5px rgba(var(--accent-2-rgb), 0.70),
                0 30px 80px rgba(0, 0, 0, 0.60),
                inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
@keyframes rf-pop {
    from { opacity: 0; transform: translate(-50%, -46%) scale(.96); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.resume-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: 0;
    font-size: 26px;
    line-height: 1;
    color: #8a8f99;
    cursor: pointer;
}
.resume-modal-close:hover { color: var(--accent); }
html.dark .resume-modal-close:hover { color: #c4b5fd; }
.resume-modal-title { margin: 0 0 6px; font-size: 22px; font-weight: 700; color: #3d1c87; }
html.dark .resume-modal-title { color: #ffffff; }
.resume-modal-sub { margin: 0 0 20px; font-size: 14px; color: #4a3d6b; }
html.dark .resume-modal-sub { color: #cabef0; }
.resume-modal-dialog label { color: #2a1d52; }
html.dark .resume-modal-dialog label { color: #e7ddff; }
.rf-field { margin-bottom: 14px; }
.rf-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.rf-field input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid rgba(var(--accent-rgb), 0.30);
    background: rgba(255, 255, 255, 0.55);
    color: #161b2e;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
html.dark .rf-field input {
    background: rgba(255, 255, 255, 0.08);
    color: #f4f0ff;
    border-color: rgba(199, 178, 255, 0.35);
}
.rf-field input::placeholder { color: #8c83a8; }
html.dark .rf-field input::placeholder { color: rgba(244, 240, 255, 0.55); }
.rf-field input:focus { background: rgba(255, 255, 255, 0.75); }
html.dark .rf-field input:focus { background: rgba(255, 255, 255, 0.12); }
.rf-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}
.rf-field input.rf-invalid { border-color: #e0245e; box-shadow: 0 0 0 3px rgba(224, 36, 94, 0.12); }
.rf-error { display: block; color: #e0245e; font-size: 12px; margin-top: 5px; min-height: 15px; }
.rf-actions { display: flex; gap: 12px; margin-top: 8px; }
.rf-actions button {
    flex: 1;
    justify-content: center;
    cursor: pointer;
    border: 0;
    padding: 12px 16px;
    font-size: 14px;
}

/* ---- Typography: use the template's Sora font everywhere (per docs) ---- */
/* form controls don't inherit body font by default, so set them explicitly */
input,
textarea,
select,
button,
optgroup {
    font-family: "Sora", sans-serif;
}

/* ---- Collapsible desktop nav (icon-rail <-> full) ---- */
.sidebar-collapse-btn {
    display: none;            /* only shown on desktop where the sidebar is a panel */
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    margin-right: 9px;        /* keep it off the logo */
    border-radius: 8px;
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.sidebar-collapse-btn:hover { background: rgba(var(--accent-rgb), 0.10); }
html.dark .sidebar-collapse-btn { color: #c4b5fd; border-color: rgba(199, 178, 255, 0.28); }
html.dark .sidebar-collapse-btn:hover { background: rgba(var(--accent-2-rgb), 0.14); }

@media screen and (min-width: 992px) {
    .sidebar-collapse-btn { display: inline-flex; }

    body.nav-collapsed .sidebar-menu {
        width: 5.5rem !important;
        flex: 0 0 5.5rem !important;
        padding-left: 0;
        padding-right: 0;
        align-items: center;
    }
    body.nav-collapsed main { margin-right: 5.5rem !important; }

    /* hide text, keep icons (font-size trick avoids editing every nav item) */
    body.nav-collapsed .sidebar-menu .brand-text,
    body.nav-collapsed .sidebar-menu .copyright-content { display: none !important; }
    body.nav-collapsed .sidebar-menu .sidebar-header {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        padding-left: 0;
        padding-right: 0;
    }
    body.nav-collapsed .sidebar-menu .nav-link {
        font-size: 0 !important;
        justify-content: center;
        padding-left: 0 !important;
        padding-right: 0 !important;
        gap: 0;
    }
    body.nav-collapsed .sidebar-menu .nav-link i {
        font-size: 19px !important;
        margin: 0 !important;
    }
}

/* ---- Refined sidebar nav (premium feel: pills, accent, soft hover) ---- */
.sidebar-menu .sidebar-header {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 1.25rem;
    margin-bottom: .25rem;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.12);
}
html.dark .sidebar-menu .sidebar-header { border-bottom-color: rgba(255, 255, 255, 0.10); }
/* keep the brand on two tidy lines: "Sachin Pathak" / "DEVOPS ENGINEER" */
.sidebar-menu .logo a { gap: 8px; }
.sidebar-menu .brand-mark { width: 34px; height: 34px; font-size: 13px; }
.sidebar-menu .brand-name { white-space: nowrap; font-size: 16px; }
.sidebar-menu .brand-role { white-space: nowrap; letter-spacing: 1.8px; }

.sidebar-menu .nav-menu { padding: 1.25rem 0; }
.sidebar-menu .nav-menu li .nav-link {
    border-top: 0 !important;
    margin: 3px 14px;
    padding: 11px 16px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: .2px;
    gap: 13px;
    color: #6f54c9;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
html.dark .sidebar-menu .nav-menu li .nav-link { color: #c9bdf0; }
.sidebar-menu .nav-menu li:last-child .nav-link { border-bottom: 0 !important; }
.sidebar-menu .nav-menu li .nav-link i {
    font-size: 17px;
    width: 20px;
    text-align: center;
    flex: 0 0 auto;
}
.sidebar-menu .nav-menu li .nav-link:hover {
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
}
html.dark .sidebar-menu .nav-menu li .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}
/* active: soft gradient pill + left accent bar */
.sidebar-menu .nav-menu li .nav-link.active {
    background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.04));
    color: var(--accent) !important;
    box-shadow: inset 3px 0 0 0 var(--accent);
}
html.dark .sidebar-menu .nav-menu li .nav-link.active {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
    color: #ffffff !important;
    box-shadow: inset 3px 0 0 0 #c4b5fd;
}

/* collapsed rail: centered filled highlight for the active icon */
@media screen and (min-width: 992px) {
    body.nav-collapsed .sidebar-menu .nav-menu li .nav-link {
        margin: 4px 12px;
        padding: 11px 0 !important;
        box-shadow: none !important;
        background: transparent;
    }
    body.nav-collapsed .sidebar-menu .nav-menu li .nav-link.active {
        background: linear-gradient(135deg, var(--accent), #3d1c82);
        color: #fff !important;
        box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.35) !important;
    }
    html.dark body.nav-collapsed .sidebar-menu .nav-menu li .nav-link.active {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
        box-shadow: none !important;
    }
    body.nav-collapsed .sidebar-menu .nav-menu li .nav-link i { width: auto; }
    body.nav-collapsed .sidebar-menu .sidebar-header { gap: 14px; padding-bottom: 1rem; }
    body.nav-collapsed .sidebar-collapse-btn { margin-right: 0; }
}

/* ---- Brand logo (HTML, on-theme, Sora) ---- */
.logo a {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    font-family: "Sora", sans-serif;
    line-height: 1;
}
.brand-mark {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent) 55%, #3d1c82 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .5px;
    box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.40);
}
html.dark .brand-mark {
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.50);
    border: 1px solid rgba(199, 178, 255, 0.30);
}
.brand-text {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
}
.brand-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.2px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
html.dark .brand-name {
    background: linear-gradient(90deg, var(--accent-soft) 0%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand-role {
    margin-top: 3px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--accent);
}
html.dark .brand-role { color: var(--accent-2); }

/* ---- Social icons: clearer + consistent sizing ---- */
.social-icon a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.social-icon a svg {
    width: 20px;
    height: 20px;
}

/* ---- Tools & Platforms marquee: fit colourful logos inside the pill ---- */
.client-area .logo-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}
.client-area .logo-slider .bd-btn-present {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 12px 20px;
    width: 100%;
}
.client-area .logo-slider .bd-btn-present img {
    height: 44px !important;
    width: auto !important;
    max-width: 120px !important;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform .25s ease;
}
.client-area .logo-slider .bd-btn-present:hover img {
    transform: scale(1.08);
}
/* keep the colourful brand logos in dark mode too (template forces them white) */
html.dark .client-area .logo-slider a img {
    filter: none;
}

/* ---- Portfolio architecture covers: crisp fit in the card ---- */
/* ===== Project cards (image + body) — themed, light/dark aware ===== */
.proj-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid transparent;
    background: linear-gradient(to right, var(--accent-soft-2) 90%, #FFFFFF) padding-box,
                linear-gradient(to right, #ffffff, #ffffff) border-box;
    box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.08);
    font-family: "Sora", sans-serif;
    transition: transform .28s ease, box-shadow .28s ease;
}
/* hover: solid fill + purple gradient border (exactly like the blog cards) */
.proj-card:hover {
    transform: translateY(-6px);
    background: linear-gradient(#ffffff, #ffffff) padding-box,
                linear-gradient(45deg, var(--accent), var(--accent-soft)) border-box;
    box-shadow: 0 22px 50px rgba(var(--accent-rgb), 0.20);
}
.proj-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #2b1a5e;
}
.proj-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}
.proj-card:hover .proj-card-media img { transform: scale(1.06); }
/* "View Details" floating bubble — matches the BPRO template exactly */
.proj-view {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    text-align: center;
    transform: translateY(-50%) scale(0.5);
    opacity: 0;
    transition: all .25s ease;
    pointer-events: none;
}
.proj-card:hover .proj-view {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}
.proj-view-blob {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1.9;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid #fff;
}
.proj-view-blob::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 11rem;
    height: 9rem;
    background: var(--accent-2);
    border-radius: 60% 40% 70% 30% / 60% 65% 40% 40%;
    animation: link-radius 3s ease-out infinite;
}
@keyframes link-radius {
    0%   { border-radius: 54% 46% 30% 70% / 45% 41% 59% 55%; }
    30%  { border-radius: 34% 66% 51% 49% / 45% 41% 59% 55%; }
    50%  { border-radius: 34% 66% 51% 49% / 67% 41% 59% 33%; }
    80%  { border-radius: 34% 66% 19% 81% / 67% 41% 59% 33%; }
    100% { border-radius: 54% 46% 30% 70% / 45% 41% 59% 55%; }
}
.proj-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(var(--accent-rgb), 0.92);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    padding: 5px 13px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.35);
}
.proj-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 18px 20px;
}
.proj-title { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.25; }
.proj-title a { color: var(--accent); transition: color .2s ease; }
.proj-title a:hover { color: var(--accent); }
.proj-desc {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: #5b6270;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.proj-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.proj-chips span {
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 8px;
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.16);
}
.proj-chips .more { background: transparent; color: #8a8f99; border-color: rgba(0, 0, 0, 0.10); }

/* dark mode */
html.dark .proj-card {
    background: linear-gradient(to right, var(--accent), #0B0020) padding-box,
                linear-gradient(to right, #0B0020, #0B0020) border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.40);
}
html.dark .proj-card:hover {
    background: linear-gradient(#0B0020, #0B0020) padding-box,
                linear-gradient(45deg, var(--accent), var(--accent-soft)) border-box;
    box-shadow: 0 18px 42px rgba(124, 58, 237, 0.30);
}
html.dark .proj-title a { color: #ffffff; }
html.dark .proj-title a:hover { color: #e6dbff; }
html.dark .proj-desc { color: rgba(255, 255, 255, 0.82); }
html.dark .proj-chips span {
    background: rgba(var(--accent-2-rgb), 0.14);
    color: #c4b5fd;
    border-color: rgba(var(--accent-2-rgb), 0.26);
}
html.dark .proj-chips .more { color: #8a8f99; border-color: rgba(255, 255, 255, 0.12); }

/* ---- Project detail: pointwise feature blocks ---- */
.project-details-content .block-title {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--accent);
    color: #161b2e;
}
html.dark .project-details-content .block-title {
    color: #eef1f8;
}
.project-details-content .feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}
.project-details-content .feature-list li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 13px;
    line-height: 1.65;
}
.project-details-content .feature-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(var(--accent-rgb), .35);
}
.project-details-content .feature-list li strong {
    font-weight: 700;
}

/* ---- Project detail: highlighted credit / note callout ---- */
.project-details-content .project-note {
    margin: 28px 0;
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
    line-height: 1.65;
}
html.dark .project-details-content .project-note {
    background: rgba(var(--accent-rgb), 0.20);
}

/* ---- Blog "like" heart: interactive with flash effect ---- */
.post-react button {
    position: relative;
    background: transparent;
    border: none;
    padding: 6px;
    line-height: 0;
    cursor: pointer;
}
.post-react button i {
    font-size: 20px;
    color: #9aa0ac;
    transition: color .2s ease, transform .2s ease;
}
.post-react button:hover i { color: #e0245e; }
.post-react button.liked i { color: #e0245e; }
html.dark .post-react button i { color: #8a8f99; }
html.dark .post-react button:hover i,
html.dark .post-react button.liked i { color: #ff4d6d; }

/* pop the heart on click */
.post-react button.like-burst i { animation: like-pop .45s ease; }
@keyframes like-pop {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.4); }
    60%  { transform: scale(.88); }
    100% { transform: scale(1); }
}
/* radiating ring flash on click */
.post-react button.like-burst::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #e0245e;
    animation: like-ring .5s ease-out forwards;
    pointer-events: none;
}
@keyframes like-ring {
    0%   { width: 8px;  height: 8px;  opacity: .7; }
    100% { width: 48px; height: 48px; opacity: 0; }
}

/* ---- Hero image: photo circle + concentric back circle (equal on all sides) ---- */
.hero-area .hero-img-float {
    position: relative;
    display: inline-block;
    line-height: 0;
    border-radius: 50%;
    animation: hero-float 6s ease-in-out infinite;
}
.hero-area .hero-img-float img {
    display: block;
    width: 22rem;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    border: 6px solid var(--accent);     /* purple boundary on the photo */
    background: #fff;
    box-shadow: 0 22px 50px rgba(var(--accent-rgb), 0.28);
    will-change: transform;
}
@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-16px); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-area .hero-img-float { animation: none; }
}

/* ---- Typing capsule (one-liner that types & cycles) ---- */
.about_me_area .right-info .hero-capsule { margin-bottom: 18px; }
.hero-capsule {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    line-height: 1;
    padding: 0 18px;
    border-radius: 999px;
    font-family: "Sora", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #4b2e83;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.12));
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.7),
                inset 0 -1px 0 rgba(var(--accent-rgb), 0.08);
    max-width: 100%;
}
html.dark .hero-capsule {
    color: #e7ddff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
/* glossy shine sweep across the glassy capsule */
.hero-capsule::after {
    content: "";
    position: absolute;
    top: 0;
    left: -85%;
    width: 55%;
    height: 100%;
    background: linear-gradient(120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0) 100%);
    transform: skewX(-22deg);
    pointer-events: none;
    z-index: 2;
    animation: btn-shine 3.6s ease-in-out infinite;
}
@keyframes btn-shine {
    0%   { left: -85%; }
    55%  { left: 135%; }
    100% { left: 135%; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-capsule::after { animation: none; opacity: 0; }
}
.hero-capsule-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.5);
    animation: capsule-pulse 1.8s ease-out infinite;
}
html.dark .hero-capsule-dot { background: var(--accent-2); }
@keyframes capsule-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.45); }
    70%  { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}
/* reserve fixed text width so the capsule never resizes while typing */
.hero-capsule .typed-line {
    display: inline-block;
    width: 17ch;
    white-space: nowrap;
    vertical-align: middle;
}
.hero-capsule .type-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 3px;
    background: var(--accent);
    transform: translateY(0.15em);
    animation: type-blink 1s steps(1) infinite;
}
html.dark .hero-capsule .type-cursor { background: var(--accent-2); }
@keyframes type-blink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}
@media (max-width: 575.98px) {
    .hero-capsule { font-size: 12px; }
}

/* ---- Hero CTA buttons: glowing gradient pills ---- */
.hero-area .button-groups .btn-primary-gradient {
    padding: 14px 32px;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(var(--accent-rgb), 0.45);
    transition: background-position .4s ease, transform .25s ease, box-shadow .25s ease;
}
.hero-area .button-groups .btn-primary-gradient:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(var(--accent-rgb), 0.55);
}
.hero-area .button-groups .btn-primary-gradient i { margin-left: 2px; }

.btn-soft-gradient {
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 50px;
    background: linear-gradient(to right, #7b41d6 0%, #c4b1f0 51%, #7b41d6 100%) border-box;
    background-size: 200% auto;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 12px 30px rgba(150, 110, 230, 0.40);
    transition: background-position .4s ease, transform .25s ease, box-shadow .25s ease;
}
.btn-soft-gradient:hover {
    background-position: right center;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(150, 110, 230, 0.52);
}

/* ---- Blog comment thread counter badge ---- */
.comment-wrapper > .title .comment-tally {
    display: inline-block;
    margin-left: 12px;
    font-family: "Sora", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.16);
    border-radius: 999px;
    padding: 5px 13px;
    vertical-align: middle;
}
html.dark .comment-wrapper > .title .comment-tally {
    color: #c4b5fd;
    background: rgba(var(--accent-2-rgb), 0.14);
    border-color: rgba(var(--accent-2-rgb), 0.26);
}
.comment-tally.tally-bump { animation: like-pop .45s ease; }

/* ---- Blog banner: visible purple meta bar (author / category / date) ---- */
.blog-details-area .banner-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}
.blog-details-area .banner-wrapper .meta-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 34px 22px 14px;
    background: linear-gradient(to top, rgba(61, 28, 130, 0.97) 0%, rgba(97, 43, 204, 0.85) 55%, rgba(97, 43, 204, 0) 100%);
    font-family: "Sora", sans-serif;
    z-index: 2;
}
.blog-details-area .banner-wrapper .meta-info .single-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.blog-details-area .banner-wrapper .meta-info .single-meta .text {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}
/* keep meta icons small (the cover-fill rule must not stretch them) */
.blog-details-area .banner-wrapper .meta-info img {
    width: auto;
    height: auto;
    max-height: 22px;
    object-fit: contain;
}
.blog-details-area .banner-wrapper .meta-info .single-meta img.rounded-circle {
    width: 30px;
    height: 30px;
    max-height: none;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

/* ---- Blog article: Key Takeaways callout ---- */
.blog-description .blog-takeaways {
    margin: 30px 0;
    padding: 24px 26px 18px;
    border-radius: 14px;
    background: rgba(var(--accent-rgb), 0.06);
    border: 1px solid rgba(var(--accent-rgb), 0.16);
    font-family: "Sora", sans-serif;
}
html.dark .blog-description .blog-takeaways {
    background: rgba(var(--accent-2-rgb), 0.10);
    border-color: rgba(var(--accent-2-rgb), 0.22);
}
.blog-description .blog-takeaways .block-title { margin-top: 0; }
.blog-description .feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-description .feature-list li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 13px;
    line-height: 1.65;
}
.blog-description .feature-list li:last-child { margin-bottom: 0; }
.blog-description .feature-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(var(--accent-rgb), .35);
}
.blog-description .feature-list li strong { font-weight: 700; }

/* ---- Blog article: code blocks ---- */
.blog-description .code-block {
    background: #0f1117;
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    border-radius: 10px;
    padding: 16px 18px;
    margin: 18px 0 26px;
    overflow-x: auto;
}
.blog-description .code-block code {
    color: #e6edf3;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.65;
    white-space: pre;
}
.blog-description .block-title { font-size: 20px; font-weight: 700; margin: 28px 0 14px; }
html.dark .blog-description .block-title { color: #ffffff; }

/* Blog article in-content diagram images (alternating layout) */
.blog-description .blog-split { margin: 26px 0 30px; }
.blog-description .image {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    box-shadow: 0 12px 30px rgba(13, 17, 23, 0.14);
}
.blog-description .image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .4s ease;
}
.blog-description .image:hover img { transform: scale(1.03); }
.blog-description .blog-split .block-title { margin-top: 0; }

/* Blog cover images fill their thumbnails cleanly */
.single-blog .blog-img img,
.post-item .post-thumbnail img,
.blog-details-area .banner-wrapper > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Real logo cover images (cv-*) show fully, on white, instead of cropped */
.single-blog .blog-img img[src*="/cv-"],
.post-item .post-thumbnail img[src*="/cv-"] {
    object-fit: contain;
    background: #ffffff;
    padding: 16px;
}
.blog-details-area .banner-wrapper > img[src*="/cv-"] {
    object-fit: contain;
    background: #ffffff;
    padding: 24px;
    max-height: 320px;
}

/* Blog post cards: small fixed square thumbnail + equal-height cards */
.post-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.post-item .post-body { flex: 1 1 auto; }
.post-item .post-thumbnail {
    min-width: 11rem;
    width: 11rem;
    height: 11rem;
    flex-shrink: 0;
}
.post-item .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-item .post-thumbnail img[src*="/cv-"] {
    object-fit: contain;
    background: #ffffff;
    padding: 12px;
}
@media (max-width: 575.98px) {
    .post-item .post-body { flex-direction: column; }
    .post-item .post-thumbnail { width: 100%; height: 12rem; }
}

/* Working blog pagination active state */
.pagination-wrapper .pagination { gap: 6px; }
.pagination-wrapper .page-item .page-link {
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s ease;
}
.pagination-wrapper .page-item.active .page-link {
    background: #ffffff;
    color: var(--accent);
    font-weight: 700;
}
.pagination-wrapper .page-item:not(.active) .page-link:hover {
    background: rgba(124, 58, 237, .18);
}

/* ---- Project detail: framed, polished screenshots ---- */
.project-details-content .image-group .image {
    display: block;
    border-radius: 14px;
    overflow: hidden;
}
.project-details-content .image-group .image img,
.project-details-content .protfolio-details-slider .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    box-shadow: 0 14px 34px rgba(13, 17, 23, 0.12);
}
.project-details-content .protfolio-details-slider {
    border-radius: 14px;
}
html.dark .project-details-content .image-group .image img,
html.dark .project-details-content .protfolio-details-slider .swiper-slide img {
    border-color: rgba(122, 71, 255, 0.30);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
/* a touch more breathing room between detail blocks */
.project-details-content .image-group {
    margin: 26px 0 30px;
}

/* =========================================================
   Accent theming - colour presets + picker (not light/dark)
   Every accent value in the site reads these variables.
   ========================================================= */
:root,
html[data-accent="purple"] {
    --accent: #5E27CB;        --accent-rgb: 94, 39, 203;
    --accent-2: #a78bfa;      --accent-2-rgb: 167, 139, 250;
    --accent-soft: #E7DBFF;   --accent-soft-2: #F4F0FD;
}
html[data-accent="blue"] {
    --accent: #2f6df6;        --accent-rgb: 47, 109, 246;
    --accent-2: #7aa2ff;      --accent-2-rgb: 122, 162, 255;
    --accent-soft: #dde8ff;   --accent-soft-2: #eef4ff;
}
html[data-accent="indigo"] {
    --accent: #5b5bd6;        --accent-rgb: 91, 91, 214;
    --accent-2: #9aa0ff;      --accent-2-rgb: 154, 160, 255;
    --accent-soft: #e0e1ff;   --accent-soft-2: #f0f1ff;
}
html[data-accent="teal"] {
    --accent: #0fb5a6;        --accent-rgb: 15, 181, 166;
    --accent-2: #5fded3;      --accent-2-rgb: 95, 222, 211;
    --accent-soft: #d2f6f1;   --accent-soft-2: #ecfbf9;
}
html[data-accent="green"] {
    --accent: #22a85b;        --accent-rgb: 34, 168, 91;
    --accent-2: #74d99a;      --accent-2-rgb: 116, 217, 154;
    --accent-soft: #d6f3e1;   --accent-soft-2: #edfaf2;
}
html[data-accent="orange"] {
    --accent: #f4744f;        --accent-rgb: 244, 116, 79;
    --accent-2: #ffa98c;      --accent-2-rgb: 255, 169, 140;
    --accent-soft: #ffe1d6;   --accent-soft-2: #fff2ec;
}
html[data-accent="rose"] {
    --accent: #e3417f;        --accent-rgb: 227, 65, 127;
    --accent-2: #ff86b3;      --accent-2-rgb: 255, 134, 179;
    --accent-soft: #ffdbe8;   --accent-soft-2: #fff0f5;
}

/* ---- Colour picker widget ---- */
.tc-toggle {
    position: fixed; left: 0; top: 50%; transform: translateY(-50%);
    z-index: 99990; width: 42px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; color: #fff;
    background: var(--accent);
    border-radius: 0 12px 12px 0;
    box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.45);
    transition: transform .25s ease, box-shadow .25s ease;
}
.tc-toggle:hover { transform: translateY(-50%) scale(1.06); }
.tc-toggle i { font-size: 18px; animation: tc-spin 6s linear infinite; }
@keyframes tc-spin { to { transform: rotate(360deg); } }

.tc-panel {
    position: fixed; left: 0; top: 50%; transform: translateY(-50%) translateX(-115%);
    z-index: 99991; width: 184px; padding: 16px 18px;
    border-radius: 0 16px 16px 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,255,255,0.65));
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 12px 0 40px rgba(0,0,0,0.18);
    transition: transform .32s cubic-bezier(.2,.8,.2,1);
    font-family: "Sora", sans-serif;
}
html.dark .tc-panel {
    background: linear-gradient(135deg, rgba(30,18,60,0.92), rgba(11,0,32,0.86));
    border-color: rgba(255,255,255,0.12);
}
.tc-panel.open { transform: translateY(-50%) translateX(0); }
.tc-panel h6 {
    margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .3px;
    color: #2a1b4d; text-transform: uppercase;
}
html.dark .tc-panel h6 { color: #e7ddff; }
.tc-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tc-swatch {
    width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
    border: 2px solid rgba(255,255,255,0.85);
    box-shadow: 0 3px 10px rgba(0,0,0,0.22);
    position: relative; transition: transform .2s ease;
}
.tc-swatch:hover { transform: scale(1.15); }
.tc-swatch.active::after {
    content: "\2713"; position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
@media (max-width: 575.98px) {
    .tc-panel { width: 160px; }
    .tc-swatches { grid-template-columns: repeat(3, 1fr); }
}
