/* ===========================
   style.css — Light & Dark 
   - Black & white dark mode
   - Blue links and skill bar colors
   
   =========================== */

/* ---------------------------
   Root variables (Light)
   --------------------------- */
:root {
    --bg: #f6f8fb;
    --card: #ffffff;
    --surface: #ffffff;
    /* panels / card color in light */
    --surface-text: #0f172a;
    /* text color on panels in light */
    --text: #0f172a;
    --muted: #64748b;
    --accent: #0ea5e9;
    /* primary accent used for buttons/accents */
    --link: #0b84ff;
    /* proper blue for links */
    --glass: rgba(15, 23, 42, 0.04);
    --radius: 12px;
    --container: 1100px;

    /* skill bar colors (light) */
    --bar-bg: #e2e8f0;
    --skill-start: #0ea5e9;
    --skill-end: #6ee7f4;

    --btn-text: #ffffff;
    /* default button text color (keeps blue contrast) */

    /* keep --card for backward compatibility */
    --card: var(--surface);
}

/* Prevent horizontal scroll caused by decorative elements */
html,
body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    font-family: Inter, ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
    color: var(--text);
    line-height: 1.5;
}

/* subtle dot texture */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -2;
}

/* Typography scaling */
h1 {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    margin: 0;
    color: var(--text);
}

h2 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    margin: 0 0 8px 0;
    color: var(--text);
}

/* Layout container */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px;
}

/* Basic reset */
* {
    box-sizing: border-box;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

/* Header inner layout */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}

.brand {
    font-weight: 600;
    font-size: 18px;
    color: var(--text);
}

.brand strong {
    color: var(--link);
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 14px;
    align-items: center;
}

.main-nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
}

.main-nav a:hover {
    color: var(--text);
    background: rgba(14, 165, 233, 0.08);
}

.main-nav .cta {
    background: var(--accent);
    color: #06111a;
    padding: 8px 14px;
    border-radius: 8px;
}

/* Mobile nav toggle */
#nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    align-items: center;
    padding: 60px 0;
    position: relative;
}

.hero .lead {
    color: var(--muted);
    margin-top: 6px;
    max-width: 60ch;
}

.accent {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--btn-text);
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform .22s ease, box-shadow .22s ease;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.22);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.28);
}

.btn-outline {
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: var(--text);
    background: rgba(255, 255, 255, 0.85);
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background .18s ease, border-color .18s ease;
}

.btn-outline:hover {
    background: rgba(14, 165, 233, 0.08);
    border-color: var(--accent);
}

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

/* Card base */
.card {
    position: relative;
    background: var(--surface);
    color: var(--surface-text);
    padding: 18px;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.card .card-actions {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Glass panels */
.glass {
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: var(--surface-text);
}

/* Light default support card (fixes dark-only showing in light) */
/* ===============================
   SUPPORT CARD — PREMIUM VERSION
   =============================== */

.support-card {
    position: relative;
    padding: 28px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(245, 248, 252, 0.9));
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow:
        0 20px 60px rgba(10, 30, 60, 0.08),
        0 4px 14px rgba(10, 30, 60, 0.05);
    transition: transform .35s cubic-bezier(.2, .9, .28, 1),
        box-shadow .35s ease;
    backdrop-filter: blur(10px);
}

.support-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 30px 80px rgba(10, 30, 60, 0.12),
        0 10px 30px rgba(10, 30, 60, 0.08);
}

.support-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text);
}

.support-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 18px;
}

/* Buy Me a Coffee button */
.bmc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.25);
    transition:
        transform .25s cubic-bezier(.2, .9, .28, 1),
        box-shadow .25s ease,
        background .25s ease;
}

.bmc-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.35);
}

/* Subtle response note */
.support-card small {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
}

/* Small utilities */
.peek {
    margin-top: 10px;
}

.mini-contact .glass {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* Skills */
.skill {
    margin-bottom: 14px;
}

.skill-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: var(--muted);
}

.bar {
    background: var(--bar-bg);
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
}

.bar div {
    height: 100%;
    background: linear-gradient(90deg, var(--skill-start), var(--skill-end));
    border-radius: 10px;
    transition: width .8s ease;
}

/* Tools list */
.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

/* Forms */
.form label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: var(--surface);
    color: var(--surface-text);
}

/* Form actions & message */
.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

#form-msg {
    color: var(--muted);
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    margin-top: 40px;
    padding: 18px 0;
    color: var(--muted);
}

/* Modal (light theme) */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.30);
    backdrop-filter: blur(6px);
    z-index: 60;
}

.modal[aria-hidden="false"] {
    display: flex;
}

.modal-body {
    background: var(--surface);
    color: var(--surface-text);
    padding: 18px;
    border-radius: 12px;
    max-width: 920px;
    width: 100%;
    position: relative;
}

#modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 18px;
    cursor: pointer;
}

/* Timeline */
.timeline {
    position: relative;
    margin-top: 30px;
    padding-left: 20px;
    border-left: 2px solid rgba(15, 23, 42, 0.08);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    left: -10px;
    top: 10px;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
}

.timeline-content {
    padding: 15px;
}

/* Status badges */
.status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: 600;
}

.completed {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.working {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.planned {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

/* Connect grid & handles */
.connect-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 20px;
}

.handles {
    list-style: none;
    padding: 0;
}

.handles li {
    margin-bottom: 12px;
    font-size: 14px;
}

.handles a {
    color: var(--link);
    text-decoration: none;
}

.handles a:hover {
    text-decoration: underline;
}

/* Background decorative blobs */
.bg-decoration {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.22;
    mix-blend-mode: multiply;
    animation: float 18s ease-in-out infinite alternate;
}

.blob-1 {
    background: #38bdf8;
    top: -150px;
    left: -150px;
}

.blob-2 {
    background: #818cf8;
    bottom: -200px;
    right: -150px;
    animation-duration: 22s;
}

.blob-3 {
    background: #06b6d4;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 26s;
}

@keyframes float {
    from {
        transform: translateY(-40px) translateX(0px);
    }

    to {
        transform: translateY(40px) translateX(40px);
    }
}

/* Section underline */
section {
    position: relative;
}

section::after {
    content: "";
    position: absolute;
    bottom: -40px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(15, 23, 42, 0.08), transparent);
}

/* Hero focal glow */
.hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.18), transparent 70%);
    top: -200px;
    left: -200px;
    z-index: -1;
}

/* Heading underline for H2 */
h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 50%;
    height: 3px;
    background: linear-gradient(to right, var(--link), transparent);
    border-radius: 4px;
}

/* Scroll reveal helper */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Make sure cards are full width on small containers */
.card {
    width: 100%;
}

/* ===========================
   Responsive rules (mobile)
   =========================== */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px 0;
    }

    .hero-left h1 {
        font-size: 1.8rem;
    }

    .hero .lead {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-ctas {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .meta-list {
        padding-left: 0;
        list-style-position: inside;
    }

    /* Mobile nav toggle visible */
    #nav-toggle {
        display: block;
    }

    /* Mobile nav hidden by default, appears when .open class added */
    .main-nav {
        position: absolute;
        top: 64px;
        right: 16px;
        background: var(--surface);
        flex-direction: column;
        padding: 12px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        display: none;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        display: block;
        padding: 8px 8px;
        white-space: nowrap;
    }

    .hero-right {
        margin-top: 20px;
        display: flex;
        justify-content: center;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .mini-contact .glass {
        flex-direction: column;
        text-align: center;
    }

    .container {
        padding: 16px;
    }
}

/* Small screens */
@media (max-width: 600px) {

    .btn,
    .btn-outline {
        width: 100%;
        text-align: center;
    }

    .timeline {
        padding-left: 15px;
    }

    .timeline-dot {
        left: -8px;
    }

    .hero::before {
        width: 420px;
        height: 420px;
        top: -120px;
        left: -120px;
        opacity: 0.9;
    }
}

/* small visual polish */
a {
    transition: color .15s ease, background .15s ease;
    color: var(--link);
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================= THEME SYSTEM ================= */
/* Smooth theme transition */
html,
body,
.card,
.site-header,
.main-nav,
.glass {
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ---------------------------
   DARK THEME (BLACK & WHITE)
   Activate with: <html data-theme="dark">
   --------------------------- */
:root[data-theme="dark"] {
    /* black & white theme variables */
    --bg: #000000;
    --surface: #0b0b0b;
    /* panels / card color in dark */
    --card: var(--surface);
    --surface-text: #f3f4f6;
    /* text color on panels in dark */
    --text: #f3f4f6;
    --muted: #9aa3a0;
    --accent: #f5f5f5;
    --link: #0ea5e9;
    --glass: rgba(255, 255, 255, 0.02);

    --bar-bg: #0f1720;
    /* skill bar colors (dark) */
    --skill-start: #0b84ff;
    --skill-end: #38bdf8;

    --btn-text: #000000;
    /* invert button text in dark-buttons if required */
}

:root[data-theme="dark"] .support-card {
    background: linear-gradient(145deg, #0f0f0f, #080808);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

:root[data-theme="dark"] .support-card h3 {
    color: #f3f4f6;
}

:root[data-theme="dark"] .support-card p,
:root[data-theme="dark"] .support-card small {
    color: #9aa3a0;
}

/* Body background override for dark theme */
:root[data-theme="dark"] body {
    background: linear-gradient(180deg, #000000 0%, #070707 100%);
    color: var(--text);
}

/* Header dark */
:root[data-theme="dark"] .site-header {
    background: rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Navigation links (dark) */
:root[data-theme="dark"] .main-nav a {
    color: var(--muted);
}

:root[data-theme="dark"] .main-nav a:hover {
    background: rgba(255, 255, 255, 0.02);
    color: #ffffff;
}

/* Brand in dark */
:root[data-theme="dark"] .brand strong {
    color: var();
}

/* Cards & panels in dark */
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .glass,
:root[data-theme="dark"] .mobile-nav-panel,
:root[data-theme="dark"] .hire-modal-panel,
:root[data-theme="dark"] .upi-modal-content,
:root[data-theme="dark"] .modal-body {
    background: linear-gradient(180deg, var(--surface), #0a0a0a);
    border: 1px solid rgba(255, 255, 255, 0.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    color: var(--surface-text);
}

/* Remove colored border glow only in dark theme */
:root[data-theme="dark"] .card::before {
    background: transparent;
    -webkit-mask: none;
    mask: none;
}

/* Headings inside dark */
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2 {
    color: var(--text);
}

/* H2 underline tweak for dark */
:root[data-theme="dark"] h2::after {
    background: linear-gradient(to right, var(--link), rgba(255, 255, 255, 0.06));
}

/* Links — blue on dark */
:root[data-theme="dark"] a {
    color: var(--link);
}

:root[data-theme="dark"] a:hover {
    color: #7fe0ff;
    text-decoration: underline;
}

/* Muted text in dark */
:root[data-theme="dark"] .muted,
:root[data-theme="dark"] .support-card p,
:root[data-theme="dark"] .mini-contact p,
:root[data-theme="dark"] .card p {
    color: var(--muted);
}

/* Buttons — dark monochrome with blue links accent */
:root[data-theme="dark"] .btn {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.04));
    color: var(--surface-text);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(255, 255, 255, 0.03);
}

/* Outline buttons in dark */
:root[data-theme="dark"] .btn-outline {
    background: transparent;
    color: var(--surface-text);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .btn-outline:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Support card (dark override) */
:root[data-theme="dark"] .support-card {
    background: linear-gradient(180deg, #0c0c0c, #0a0a0a);
    border: 1px solid rgba(255, 255, 255, 0.02);
    color: var(--surface-text);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
}

:root[data-theme="dark"] .support-card h3 {
    color: var(--surface-text);
}

/* Buy-me-a-coffee button — keep an energetic blue */
.bmc-btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--link), #2563eb);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.bmc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Inputs in dark */
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select {
    background: #070708;
    border-color: rgba(255, 255, 255, 0.04);
    color: var(--surface-text);
    transition: background 0.28s ease, border-color 0.28s ease;
}

/* Status badges in dark (subtle) */
:root[data-theme="dark"] .status {
    background: rgba(255, 255, 255, 0.03);
    color: var(--surface-text);
}

:root[data-theme="dark"] .completed {
    background: rgba(255, 255, 255, 0.02);
    color: #c6f0d1;
}

:root[data-theme="dark"] .planned {
    background: rgba(255, 255, 255, 0.02);
    color: #d6d6d6;
}

:root[data-theme="dark"] .working {
    background: rgba(255, 255, 255, 0.02);
    color: #f0e7cf;
}

/* Timeline dot in dark */
:root[data-theme="dark"] .timeline-dot {
    background: var(--link);
}

/* Remove hero glow & decorative blobs in monochrome dark */
:root[data-theme="dark"] .hero::before {
    display: none !important;
}

:root[data-theme="dark"] .blob {
    opacity: 0 !important;
    pointer-events: none;
}

/* Modal/backdrop tweaks to match black */
.modal,
.upi-modal,
.hire-modal {
    background: rgba(0, 0, 0, 0.6);
}

.upi-modal-content,
.hire-modal-panel {
    background: linear-gradient(180deg, #0c0c0c, #070707);
}

/* Mobile nav panel: dark */
:root[data-theme="dark"] .mobile-nav-panel {
    background: linear-gradient(180deg, #070707, #0b0b0b);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

:root[data-theme="dark"] .mobile-brand {
    color: var(--btn-text);
}

:root[data-theme="dark"] .mobile-nav-list a {
    color: var(--surface-text);
}

:root[data-theme="dark"] .mobile-nav-list a:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Footer dark */
:root[data-theme="dark"] .site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    color: var(--muted);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.02));
}

/* Reduce excessive colored glows previously used */
.card:hover,
.btn:hover {
    transform: translateY(-6px);
}

/* Accessibility: focus ring visible in dark */
:root[data-theme="dark"] a:focus,
:root[data-theme="dark"] button:focus,
:root[data-theme="dark"] input:focus {
    outline: 2px solid rgba(255, 255, 255, 0.06);
    outline-offset: 2px;
}

/* Handles links contrast in dark */
.handles a,
.handles a:visited {
    color: var(--link);
    text-decoration: none;
}

.handles a:hover {
    text-decoration: underline;
    color: #7fe0ff;
}

/* Responsive tweak */
@media (max-width: 700px) {
    .nav-avatar {
        width: 34px;
        height: 34px;
    }

    .hero-avatar {
        width: 30px;
        height: 30px;
    }

    .support-card {
        max-width: 100%;
    }
}

/* Modal / UPI / Hire sections (shared behaviour) */
.upi-modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 999;
}

.upi-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.upi-modal-content {
    background: var(--surface);
    color: var(--surface-text);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 28px;
    border-radius: 18px;
    text-align: center;
    max-width: 340px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: scale(0.85) translateY(20px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(.22, .61, .36, 1);
}

.upi-modal.active .upi-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.upi-qr {
    width: 2000px;
    border-radius: 14px;
    margin: 18px 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.upi-modal-content button {
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: var(--link);
    color: white;
    font-weight: 500;
    transition: 0.2s ease;
}

.upi-modal-content button:hover {
    transform: translateY(-2px);
}

/* Connect button base */
/* ==============================
   CONNECT BUTTON — FIXED
   ============================== */

/* ==============================
   CONNECT BUTTON
   ============================== */

.btn-connect,
.main-nav .cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    border: none;

    /* BLUE IN LIGHT MODE */
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #ffffff;

    box-shadow:
        0 8px 20px rgba(14, 165, 233, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.06);

    transition:
        transform .25s cubic-bezier(.2, .9, .28, 1),
        box-shadow .25s ease,
        opacity .2s ease;
}

.btn-connect:hover,
.main-nav .cta:hover {
    transform: translateY(-3px);
    box-shadow:
        0 14px 35px rgba(14, 165, 233, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Remove accidental disabled look */
.btn-connect:disabled,
.main-nav .cta:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .btn-connect {
        display: block;
        width: 100%;
        margin: 10px 0 0 0;
        text-align: center;
    }
}

/* Hire modal - panel */
.hire-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 1500;
    pointer-events: none;
    opacity: 0;
    transition: opacity .28s ease;
}

.hire-modal[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.hire-modal-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 15, 20, 0.32), rgba(7, 15, 20, 0.36));
    backdrop-filter: blur(8px) saturate(1.05);
    -webkit-backdrop-filter: blur(8px) saturate(1.05);
    transition: opacity .28s ease;
}

.hire-modal-panel {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 250, 252, 0.88));
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(8, 20, 40, 0.16);
    padding: 20px;
    transform: translateY(12px) scale(.97);
    opacity: 0;
    transition: transform .36s cubic-bezier(.2, .9, .28, 1), opacity .28s ease;
}

.hire-modal[aria-hidden="false"] .hire-modal-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.hire-head {
    text-align: left;
    margin-bottom: 12px;
}

.hire-head h2 {
    margin: 0 0 4px;
    font-size: 18px;
}

.muted {
    color: #6b7280;
    font-size: 13px;
}

/* Hire grid cards */
.hire-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 8px 0 6px;
}

.hire-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 250, 252, 0.96));
    border: 1px solid rgba(14, 42, 71, 0.04);
    box-shadow: 0 8px 20px rgba(12, 24, 40, 0.04);
    transition: transform .14s cubic-bezier(.2, .9, .28, 1), box-shadow .14s ease;
}

.hire-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(10, 30, 60, 0.12);
}

.hire-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 20px;
    background: linear-gradient(180deg, #f6fbff, #eef7ff);
    border: 1px solid rgba(10, 100, 200, 0.04);
}

.hire-card-body strong {
    display: block;
    font-size: 15px;
}

.hire-card-body small {
    color: #6b7280;
}

@media (max-width:640px) {
    .hire-grid {
        grid-template-columns: 1fr;
    }

    .hire-modal-panel {
        padding: 16px;
        margin: 14px;
    }
}

/* Mobile menu (hamburger + panel) */
.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 34px;
    border-radius: 10px;
    border: none;
    background: transparent;
    display: inline-grid;
    place-items: center;
    padding: 6px;
    cursor: pointer;
    position: relative;
    transition: transform .12s ease;
}

.mobile-menu-btn:active {
    transform: translateY(1px);
}

.mobile-menu-btn .bar {
    display: block;
    width: 22px;
    height: 2.6px;
    margin: 3px 0;
    background: #0b6fb6;
    border-radius: 2px;
    transition: transform .28s cubic-bezier(.2, .9, .28, 1), opacity .18s ease;
}

.mobile-menu-btn.open .bar-1 {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.open .bar-2 {
    opacity: 0;
    transform: scaleX(.6);
}

.mobile-menu-btn.open .bar-3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav panel + backdrop (hidden by default) */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 1400;
    pointer-events: none;
    opacity: 0;
    transition: opacity .28s ease;
    font-family: inherit;
}

.mobile-nav[aria-hidden="false"] {
    pointer-events: auto;
    opacity: 1;
}

.mobile-nav-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 12, 18, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity .28s ease;
}

.mobile-nav-panel {
    position: absolute;
    right: 12px;
    top: 60px;
    width: calc(100% - 40px);
    max-width: 360px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 251, 255, 0.94));
    border-radius: 12px;
    box-shadow: 0 22px 50px rgba(10, 20, 40, 0.14);
    transform: translateY(-6px) translateX(10px) scale(.98);
    opacity: 0;
    transition: transform .36s cubic-bezier(.2, .9, .28, 1), opacity .28s ease;
    padding: 18px;
    pointer-events: auto;
    overflow: hidden;
}

.mobile-nav[aria-hidden="false"] .mobile-nav-panel {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 1;
}

.mobile-nav-close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    display: grid;
    place-items: center;
    font-size: 20px;
    cursor: pointer;
}

.mobile-brand {
    font-weight: 700;
    color: #0b6fb6;
    margin-bottom: 12px;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 6px 0 12px;
    display: grid;
    gap: 8px;
}

.mobile-nav-list a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
    transition: background .12s ease, transform .12s ease;
}

.mobile-nav-list a:hover {
    background: rgba(14, 165, 233, 0.06);
    transform: translateY(-2px);
}

/* ==================================
   MOBILE CONNECT — MATCH NAV STYLE
   ================================== */

.mobile-nav-list .mobile-cta {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #ffffff;
    box-shadow:
        0 8px 20px rgba(14, 165, 233, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.08);
    transition:
        transform .25s cubic-bezier(.2, .9, .28, 1),
        box-shadow .25s ease;
}

.mobile-nav-list .mobile-cta:hover {
    transform: translateY(-3px);
    box-shadow:
        0 14px 35px rgba(14, 165, 233, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

:root[data-theme="dark"] .mobile-nav-list .mobile-cta {
    background: linear-gradient(135deg, #ffffff, #e5e7eb);
    color: #000000;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.12);
}

.mobile-footer {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
}

.mobile-footer .btn {
    padding: 8px 12px;
    font-size: 14px;
}

@media (max-width: 900px) {
    .mobile-menu-btn {
        display: inline-grid;
        margin-left: 10px;
    }

    .main-nav {
        display: none;
    }
}

@media (min-width: 901px) {
    .mobile-nav {
        display: none !important;
    }
}

/* small utilities */
.muted {
    color: #6b7280;
    font-size: 13px;
}

/* ------------------------------
   Theme toggle button (single icon)
   ------------------------------ */
.theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 34px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--muted);
    transition: background 0.22s ease, color 0.22s ease, transform 0.12s ease;
    padding: 6px;
}

.theme-toggle:focus {
    outline: 3px solid rgba(14, 165, 233, 0.14);
    outline-offset: 2px;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    color: var(--link);
    background: rgba(14, 165, 233, 0.04);
}

.theme-toggle img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.theme-toggle:active img {
    transform: rotate(20deg) scale(0.95);
}

/* ------------------------------
   smoother hover for cards & sections
   ------------------------------ */
.card {
    transition: transform 0.28s cubic-bezier(.2, .9, .28, 1), box-shadow 0.28s cubic-bezier(.2, .9, .28, 1), border-color 0.28s ease;
}

/* Slightly smaller lift, more subtle shadow for a cleaner look */
.card:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.12);
}

/* Section links and headings hover smoothing */
h2::after {
    transition: width .36s cubic-bezier(.2, .9, .28, 1), background .28s ease;
}

/* ------------------------------
   Skill bar smoother animation
   ------------------------------ */
.bar {
    background: var(--bar-bg);
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
    will-change: contents;
}

.bar div {
    height: 100%;
    background: linear-gradient(90deg, var(--skill-start), var(--skill-end));
    border-radius: 10px;
    transition: width 1.1s cubic-bezier(.2, .9, .28, 1), transform 0.6s ease;
    will-change: width, transform;
    transform-origin: left center;
}

/* Animate bars on page load: add a small scaleX micro animation so they feel lively */
.bar div.animate {
    transform: scaleX(1);
}

/* initially slightly squashed for animation kickoff if you want a JS trigger */
.bar div.init {
    transform: scaleX(0.98);
}

/* Accessibility: stronger focus outlines for cards and buttons */
.card:focus-within,
.card:focus {
    outline: 3px solid rgba(14, 165, 233, 0.08);
    outline-offset: 6px;
}

.main-nav .cta {
    padding: 8px 14px;
    font-size: 13.5px;
    border-radius: 8px;
}

/* ------------------------------
   small fixes for inputs & selects in dark
   ------------------------------ */
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select {
    background: #070708;
    border-color: rgba(255, 255, 255, 0.04);
    color: var(--surface-text);
    transition: background 0.28s ease, border-color 0.28s ease;
}

:root[data-theme="dark"] .btn-connect,
:root[data-theme="dark"] .main-nav .cta {
    background: linear-gradient(135deg, #ffffff, #e5e7eb);
    color: #000000;
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.15);
}

/* ==================================
   SKILL BARS — DARK THEME (MONOCHROME)
   ================================== */

:root[data-theme="dark"] .bar {
    background: #1a1a1a;
    /* dark grey track */
    border: 1px solid rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .bar div {
    background: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.12);
}

/* ==================================
   BMC BUTTON — DARK THEME OVERRIDE
   White button with black text
   ================================== */

:root[data-theme="dark"] .bmc-btn {
    background: linear-gradient(135deg, #ffffff, #f3f4f6);
    color: #000000;
    box-shadow:
        0 8px 20px rgba(255, 255, 255, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] .bmc-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 28px rgba(255, 255, 255, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Ensure hover shadows are subtle in dark */
:root[data-theme="dark"] .card:hover {
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
}

/* Minor: reduce the hero glow & blobs animation intensity to avoid visual noise */
.blob {
    transition: opacity 0.6s ease;
}

/* smoother hover polish */
.hover-smooth {
    transition: transform 0.28s cubic-bezier(.2, .9, .28, 1), box-shadow 0.28s cubic-bezier(.2, .9, .28, 1), background 0.18s ease, opacity 0.18s ease;
}

.card.hover-smooth:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(10, 30, 60, 0.12);
}

.btn.hover-smooth:hover,
.btn-outline.hover-smooth:hover {
    transform: translateY(-3px);
}

.hero-right {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .hero-right {
        justify-content: center;
    }
}

/* Hide hamburger by default (desktop) */
.mobile-menu-btn {
    display: none;
}

/* Show only on mobile */
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: inline-grid;
        margin-left: 10px;
    }

    .main-nav {
        display: none;
        /* hide desktop nav on mobile */
    }
}

/* ==================================
   HERO — MOBILE REDESIGN
   ================================== */

@media (max-width: 900px) {

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 0 20px;
    }

    .hero-left h1 {
        font-size: 1.9rem;
        margin-bottom: 10px;
    }

    .hero .lead {
        font-size: 14.5px;
        line-height: 1.6;
        margin-bottom: 24px;
        color: var(--muted);
    }

    /* Button container */
    .hero-ctas {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 340px;
        margin: 0 auto 24px;
    }

    /* Make first button primary */
    .hero-ctas .btn:first-child {
        background: linear-gradient(135deg, #0ea5e9, #2563eb);
        color: #ffffff;
        font-weight: 600;
    }

    /* Secondary buttons cleaner */
    .hero-ctas .btn-outline,
    .hero-ctas .btn:not(:first-child) {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: var(--surface-text);
        box-shadow: none;
    }

    .hero-ctas .btn,
    .hero-ctas .btn-outline {
        width: 100%;
        padding: 12px;
        border-radius: 12px;
        font-size: 14px;
        transition: transform .2s ease, background .2s ease;
    }

    .hero-ctas .btn:hover,
    .hero-ctas .btn-outline:hover {
        transform: translateY(-3px);
    }

    /* Meta list spacing */
    .meta-list {
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.6;
    }

    .meta-list li {
        margin-bottom: 6px;
    }
}

@media (max-width: 900px) {

    :root[data-theme="dark"] .hero-ctas .btn-outline,
    :root[data-theme="dark"] .hero-ctas .btn:not(:first-child) {
        background: #111111;
        border: 1px solid rgba(255, 255, 255, 0.06);
        color: #f3f4f6;
    }
}

/* =====================================
   🔥 FINAL CLEAN FIX PATCH
   ===================================== */

/* Fix broken brand color */
:root[data-theme="dark"] .brand strong {
    color: var(--text);
}

/* Clean hamburger visibility */
.mobile-menu-btn {
    display: none;
}

@media (max-width: 900px) {
    .mobile-menu-btn {
        display: inline-grid;
        margin-left: 10px;
    }

    .main-nav {
        display: none;
    }
}

/* =====================================
   HERO MOBILE — CLEAN VERSION
   ===================================== */

@media (max-width: 900px) {

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 0 25px;
    }

    .hero-left h1 {
        font-size: 1.9rem;
        margin-bottom: 12px;
    }

    .hero .lead {
        font-size: 14.5px;
        line-height: 1.6;
        margin-bottom: 26px;
        max-width: 100%;
    }

    .hero-ctas {
        display: flex;
        flex-direction: column;
        gap: 14px;
        width: 100%;
        max-width: 360px;
        margin: 0 auto 26px;
    }

    /* PRIMARY BUTTON */
    .hero-ctas .btn:first-child {
        background: linear-gradient(135deg, #0ea5e9, #2563eb);
        color: #ffffff;
        font-weight: 600;
    }

    /* SECONDARY BUTTONS — LIGHT MODE */
    :root:not([data-theme="dark"]) .hero-ctas .btn:not(:first-child),
    :root:not([data-theme="dark"]) .hero-ctas .btn-outline {
        background: #ffffff;
        border: 1px solid rgba(15, 23, 42, 0.08);
        color: var(--text);
        box-shadow: none;
    }

    /* SECONDARY BUTTONS — DARK MODE */
    :root[data-theme="dark"] .hero-ctas .btn:not(:first-child),
    :root[data-theme="dark"] .hero-ctas .btn-outline {
        background: #111111;
        border: 1px solid rgba(255, 255, 255, 0.06);
        color: #f3f4f6;
        box-shadow: none;
    }

    .hero-ctas .btn,
    .hero-ctas .btn-outline {
        width: 100%;
        padding: 13px;
        border-radius: 14px;
        font-size: 14px;
        transition: transform .2s ease;
    }

    .hero-ctas .btn:hover,
    .hero-ctas .btn-outline:hover {
        transform: translateY(-3px);
    }

    .meta-list {
        margin-top: 14px;
        font-size: 14px;
        line-height: 1.6;
    }
}

/* =========================================
   MOBILE HERO — CLEAN MODERN REDESIGN
   ========================================= */

@media (max-width: 900px) {

    .hero {
        padding: 50px 0 30px;
        text-align: center;
    }

    .hero-left h1 {
        font-size: 1.85rem;
        line-height: 1.3;
        margin-bottom: 14px;
    }

    .hero .lead {
        font-size: 14.5px;
        line-height: 1.6;
        max-width: 95%;
        margin: 0 auto 28px;
    }

    /* BUTTON WRAPPER */
    .hero-ctas {
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-width: 320px;
        margin: 0 auto 30px;
    }

    /* ALL BUTTONS BASE */
    .hero-ctas .btn,
    .hero-ctas .btn-outline {
        width: 100%;
        padding: 14px;
        border-radius: 16px;
        font-size: 14px;
        font-weight: 600;
        box-shadow: none;
        transition: transform .2s ease, background .2s ease, border .2s ease;
    }

    .hero-ctas .btn:hover,
    .hero-ctas .btn-outline:hover {
        transform: translateY(-3px);
    }

    /* PRIMARY BUTTON */
    .hero-ctas .btn:first-child {
        background: linear-gradient(135deg, #0ea5e9, #2563eb);
        color: #ffffff;
    }

    /* SECONDARY BUTTONS — LIGHT MODE */
    :root:not([data-theme="dark"]) .hero-ctas .btn:not(:first-child),
    :root:not([data-theme="dark"]) .hero-ctas .btn-outline {
        background: transparent;
        border: 1px solid rgba(15, 23, 42, 0.1);
        color: var(--text);
    }

    /* SECONDARY BUTTONS — DARK MODE */
    :root[data-theme="dark"] .hero-ctas .btn:not(:first-child),
    :root[data-theme="dark"] .hero-ctas .btn-outline {
        background: #111111;
        border: 1px solid rgba(255, 255, 255, 0.06);
        color: #f3f4f6;
    }

    /* Meta list cleaner */
    .meta-list {
        margin-top: 10px;
        font-size: 14px;
        line-height: 1.7;
        opacity: 0.85;
    }

    .meta-list li {
        margin-bottom: 6px;
    }

    /* Remove hero glow on mobile */
    .hero::before {
        display: none;
    }
}

/* ===============================
   🚀 HARD RESET — MOBILE HERO
   =============================== */

@media (max-width: 900px) {

    /* Reset hero buttons completely */
    .hero-ctas .btn,
    .hero-ctas .btn-outline {
        all: unset;
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px;
        border-radius: 14px;
        font-weight: 600;
        font-size: 14px;
        cursor: pointer;
        transition: transform .2s ease, background .2s ease, border .2s ease;
    }

    /* Primary */
    .hero-ctas .btn:first-child {
        background: linear-gradient(135deg, #0ea5e9, #2563eb);
        color: #ffffff;
    }

    /* Secondary Light */
    html:not([data-theme="dark"]) .hero-ctas .btn:not(:first-child),
    html:not([data-theme="dark"]) .hero-ctas .btn-outline {
        background: #ffffff;
        border: 1px solid rgba(15, 23, 42, 0.08);
        color: #0f172a;
    }

    /* Secondary Dark */
    html[data-theme="dark"] .hero-ctas .btn:not(:first-child),
    html[data-theme="dark"] .hero-ctas .btn-outline {
        background: #111111;
        border: 1px solid rgba(255, 255, 255, 0.06);
        color: #f3f4f6;
    }

    .hero-ctas {
        max-width: 340px;
        margin: 0 auto 28px;
        gap: 14px;
    }

}

/* ---------------------------
   MOBILE HERO + BMC BUTTON FIXES
   
   --------------------------- */

/* ===== Buy Me a Coffee (dark mode) - stronger specificity ===== */
:root[data-theme="dark"] .support-card .bmc-btn,
html[data-theme="dark"] .support-card .bmc-btn {
    background: linear-gradient(135deg, #ffffff, #f3f4f6) !important;
    color: #000000 !important;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.45),
        0 4px 10px rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

/* keep hover crisp */
:root[data-theme="dark"] .support-card .bmc-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.5),
        0 6px 14px rgba(255, 255, 255, 0.06);
}

/* ===== Hero mobile buttons — unified, animated, responsive ===== */
@media (max-width: 900px) {
    .hero-ctas {
        max-width: 360px;
        margin: 0 auto 28px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0 12px;
    }

    /* base for all mobile hero CTAs */
    .hero-ctas .btn,
    .hero-ctas .btn-outline {
        width: 100%;
        padding: 12px 18px;
        border-radius: 14px;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 0.2px;
        border: none;
        box-shadow: 0 6px 18px rgba(10, 30, 60, 0.06);
        transition: transform .22s cubic-bezier(.2, .9, .28, 1), box-shadow .22s ease, opacity .22s ease;
        will-change: transform, opacity;
        opacity: 0;
        transform: translateY(14px) scale(.995);
        outline: none;
    }

    /* staggered entrance */
    .hero-ctas .btn:nth-child(1) {
        animation: hero-btn-in .48s ease forwards .04s;
    }

    .hero-ctas .btn:nth-child(2) {
        animation: hero-btn-in .48s ease forwards .12s;
    }

    .hero-ctas .btn:nth-child(3) {
        animation: hero-btn-in .48s ease forwards .20s;
    }

    .hero-ctas .btn:nth-child(4) {
        animation: hero-btn-in .48s ease forwards .28s;
    }

    @keyframes hero-btn-in {
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* Primary (first) button styling — blue in light, white in dark */
    :root:not([data-theme="dark"]) .hero-ctas .btn:first-child {
        background: linear-gradient(135deg, #0ea5e9, #2563eb);
        color: #fff;
        box-shadow: 0 10px 30px rgba(14, 165, 233, 0.20);
    }

    :root[data-theme="dark"] .hero-ctas .btn:first-child {
        background: linear-gradient(135deg, #111111, #131313);
        color: #ffffff;
        box-shadow: 0 8px 20px rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.02);
    }

    /* Secondary buttons: white card on light, darker transparent on dark */
    :root:not([data-theme="dark"]) .hero-ctas .btn:not(:first-child),
    :root:not([data-theme="dark"]) .hero-ctas .btn-outline {
        background: #ffffff;
        color: var(--text);
        border: 1px solid rgba(15, 23, 42, 0.06);
        box-shadow: 0 6px 18px rgba(12, 24, 40, 0.04);
    }

    :root[data-theme="dark"] .hero-ctas .btn:not(:first-child),
    :root[data-theme="dark"] .hero-ctas .btn-outline {
        background: linear-gradient(180deg, #0e0e0e, #0a0a0a);
        color: #f3f4f6;
        border: 1px solid rgba(255, 255, 255, 0.04);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    }

    /* hover / active micro-interactions */
    .hero-ctas .btn:hover,
    .hero-ctas .btn-outline:hover {
        transform: translateY(-3px) scale(1.01);
        box-shadow: 0 14px 36px rgba(10, 30, 60, 0.10);
    }

    .hero-ctas .btn:active,
    .hero-ctas .btn-outline:active {
        transform: translateY(-1px) scale(.999);
    }

    /* focus visible */
    .hero-ctas .btn:focus {
        outline: 3px solid rgba(14, 165, 233, 0.12);
        outline-offset: 4px;
    }

    /* slightly reduced radii for very narrow screens */
    @media (max-width: 360px) {

        .hero-ctas .btn,
        .hero-ctas .btn-outline {
            padding: 11px 14px;
            border-radius: 12px;
            font-size: 14px;
        }
    }
}

/* ===== Mobile nav Connect button — match small rounded style ===== */
.mobile-nav-list .mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    min-height: 44px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* Light theme mobile connect */
:root:not([data-theme="dark"]) .mobile-nav-list .mobile-cta {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.18);
}

/* Dark theme mobile connect — white pill with black text (keeps shape) */
:root[data-theme="dark"] .mobile-nav-list .mobile-cta {
    background: linear-gradient(135deg, #ffffff, #f3f4f6);
    color: #000;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* ensure the connect button doesn't get full-width weirdness inside the menu */
.mobile-nav-list .mobile-cta {
    width: auto;
    white-space: nowrap;
}

/* small hover polish for the mobile connect */
.mobile-nav-list .mobile-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* ===== small fixes: make sure support-card uses the same inner padding on mobile so button sits nicely ===== */
@media (max-width: 480px) {
    .support-card {
        padding: 20px;
        border-radius: 12px;
    }

    .support-card .bmc-btn {
        padding: 10px 16px;
        border-radius: 10px;
    }
}

/* =======================================
   HERO MOBILE — PROPER CLEAN REDESIGN
   ======================================= */

@media (max-width: 900px) {

    .hero {
        padding: 40px 0 20px;
    }

    .hero-ctas {
        max-width: 330px;
        margin: 0 auto 26px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hero-ctas .btn,
    .hero-ctas .btn-outline {
        width: 100%;
        padding: 11px 16px;
        border-radius: 12px;
        font-size: 14.5px;
        font-weight: 600;
        letter-spacing: .2px;
        transition: all .25s cubic-bezier(.2, .9, .28, 1);
        opacity: 0;
        transform: translateY(10px);
        animation: heroFade .5s ease forwards;
    }

    .hero-ctas .btn:nth-child(1) {
        animation-delay: .05s
    }

    .hero-ctas .btn:nth-child(2) {
        animation-delay: .12s
    }

    .hero-ctas .btn:nth-child(3) {
        animation-delay: .19s
    }

    .hero-ctas .btn:nth-child(4) {
        animation-delay: .26s
    }

    @keyframes heroFade {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Primary button */
    .hero-ctas .btn.primary,
    .hero-ctas .btn:first-child {
        background: linear-gradient(135deg, #0ea5e9, #2563eb);
        color: #fff;
        box-shadow: 0 10px 26px rgba(14, 165, 233, .2);
    }

    /* Light secondary */
    html:not([data-theme="dark"]) .hero-ctas .btn:not(.primary):not(:first-child),
    html:not([data-theme="dark"]) .hero-ctas .btn-outline {
        background: #ffffff;
        border: 1px solid rgba(15, 23, 42, .06);
        color: var(--text);
        box-shadow: none;
    }

    /* Dark secondary */
    html[data-theme="dark"] .hero-ctas .btn:not(.primary):not(:first-child),
    html[data-theme="dark"] .hero-ctas .btn-outline {
        background: #111111;
        border: 1px solid rgba(255, 255, 255, .06);
        color: #f3f4f6;
        box-shadow: none;
    }

    /* Hover */
    .hero-ctas .btn:hover {
        transform: translateY(-3px);
    }

    .meta-list {
        margin-top: 16px;
        font-size: 13.8px;
        line-height: 1.6;
    }

}

/* ==============================
   LIGHT THEME — BLACK & WHITE OVERRIDE
   
   ============================== */

:root {
    /* change the default accent used across the light theme to black */
    --accent: #000000;
    --btn-text: #ffffff;
    --skill-start: #000000;
    --skill-end: #555555;
    --bar-bg: #eef2f4;
    --glass: rgba(0, 0, 0, 0.03);
}

/* Make sure blobs / hero glow are grayscale in light theme */
.bg-decoration .blob-1 {
    background: #0b0b0b;
    opacity: 0.12;
}

.bg-decoration .blob-2 {
    background: #4a4a4a;
    opacity: 0.08;
}

.bg-decoration .blob-3 {
    background: #8a8a8a;
    opacity: 0.06;
}

/* Remove blue hero glow in light theme */
.hero::before {
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.06), transparent 70%);
}

/* Buttons — primary & generic (light mode) should use the new black accent */
:root:not([data-theme="dark"]) .btn {
    background: linear-gradient(135deg, var(--accent), #111111);
    color: var(--btn-text);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Make hover subtle and consistent with black theme */
:root:not([data-theme="dark"]) .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

/* Outline buttons (secondary) — white card with black border */
:root:not([data-theme="dark"]) .btn-outline {
    background: #ffffff;
    color: var(--text);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 18px rgba(10, 20, 30, 0.04);
}

:root:not([data-theme="dark"]) .btn-outline:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
}

/* Buy-me-a-coffee (support) - match the black theme */
:root:not([data-theme="dark"]) .bmc-btn {
    background: linear-gradient(135deg, #0b0b0b, #222222);
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Make title highlights (brand strong) black in light mode */
:root:not([data-theme="dark"]) .brand strong {
    color: var(--text);
}

/* Replace any explicit blue hover background (nav) with neutral in light */
.main-nav a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text);
}

/* Keep inline links blue — do NOT change; these remain the same */
a {
    color: var(--link);
}

a:hover {
    color: #0a7fe6;
}

/* BUT make the Connect CTA and .btn-connect black (special case) in light mode */
:root:not([data-theme="dark"]) .btn-connect,
:root:not([data-theme="dark"]) .main-nav .cta {
    background: linear-gradient(135deg, #111111, #000000);
    color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.20);
}

:root:not([data-theme="dark"]) .btn-connect:hover,
:root:not([data-theme="dark"]) .main-nav .cta:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    transform: translateY(-3px);
}

/* Timeline dot uses the accent (now black) */
.timeline-dot {
    background: var(--accent);
}

/* Card subtle border glow: remove blue tint, use neutral */
.card::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), transparent 60%);
}

/* Skill bars (light) — monochrome */
.bar {
    background: var(--bar-bg);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.bar div {
    background: linear-gradient(90deg, var(--skill-start), var(--skill-end));
    box-shadow: none;
}

/* Make mobile hamburger bars neutral */
.mobile-menu-btn .bar {
    background: #0b0b0b;
}

/* Hero buttons sizing & layout (desktop + responsive) — nicer spacing & animation */
.hero-buttons,
.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-buttons .btn,
.hero-ctas .btn {
    min-width: 150px;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
}

/* Slight staggered entrance for hero buttons (desktop & mobile) */
.hero-buttons .btn:nth-child(1) {
    animation: hb-in .36s ease .03s both;
}

.hero-buttons .btn:nth-child(2) {
    animation: hb-in .36s ease .10s both;
}

.hero-buttons .btn:nth-child(3) {
    animation: hb-in .36s ease .18s both;
}

.hero-buttons .btn:nth-child(4) {
    animation: hb-in .36s ease .26s both;
}

@keyframes hb-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.995);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Reduce bright blue card glow shadow used earlier */
:root:not([data-theme="dark"]) .card:hover {
    box-shadow: 0 20px 46px rgba(12, 24, 40, 0.08);
}

/* Accessibility: adjust focus ring to neutral */
:root:not([data-theme="dark"]) a:focus,
:root:not([data-theme="dark"]) button:focus,
:root:not([data-theme="dark"]) input:focus {
    outline: 3px solid rgba(0, 0, 0, 0.06);
    outline-offset: 3px;
}

/* small: ensure mobile connect uses black pill style on small screens in light */
@media (max-width: 900px) {
    :root:not([data-theme="dark"]) .mobile-nav-list .mobile-cta {
        background: linear-gradient(135deg, #111111, #000000);
        color: white;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
        border: 1px solid rgba(0, 0, 0, 0.08);
    }

    /* keep hero button stacking tidy */
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        min-width: auto;
        width: 100%;
    }
}

/* ======= Local color overrides: change "blue" accents for both themes =======
   
   - Light theme: links -> black; lines -> greyish-black; dots -> dark
   - Dark theme: links -> light grey; lines -> light grey; dots -> light grey
   - Keeps button text & original blue button gradients unchanged.
   ================================================================ */

/* --- define new variables (light default) --- */
:root {
    /* link text color (used for <a>) */
    --link: #000000;

    /* h2 underline color and section rule color (slightly softer) */
    --h2-underline-color: rgba(0, 0, 0, 0.85);
    --section-line-color: rgba(0, 0, 0, 0.08);

    /* subtle card edge / decorative gradient used instead of blue */
    --card-edge: rgba(0, 0, 0, 0.06);

    /* timeline / tiny dots */
    --timeline-dot: #0b0b0b;

    /* decorative background blobs */
    --blob-1: rgba(0, 0, 0, 0.06);
    --blob-2: rgba(0, 0, 0, 0.04);
    --blob-3: rgba(0, 0, 0, 0.03);
}

/* --- dark theme values (light greys) --- */
:root[data-theme="dark"] {
    --link: #d1d5db;
    /* light grey link text */
    --h2-underline-color: rgba(209, 213, 219, 0.7);
    --section-line-color: rgba(255, 255, 255, 0.06);
    --card-edge: rgba(255, 255, 255, 0.02);
    --timeline-dot: rgba(209, 213, 219, 0.92);
    --blob-1: rgba(255, 255, 255, 0.02);
    --blob-2: rgba(255, 255, 255, 0.01);
    --blob-3: rgba(255, 255, 255, 0.01);
}

/* ---------------- apply variables to visual elements ---------------- */

/* links */
a {
    color: var(--link) !important;
}

/* keep hover underline behavior but with the chosen color */
a:hover {
    text-decoration: underline;
    color: var(--link);
}

/* H2 underline — use the new underline color */
h2::after {
    background: linear-gradient(to right, var(--h2-underline-color), transparent);
}

/* section horizontal line / subtle divider */
section::after {
    background: linear-gradient(to right, transparent, var(--section-line-color), transparent);
}

/* card edge gradient (replace the blue glow used earlier) */
.card::before {
    background: linear-gradient(135deg, var(--card-edge), transparent 60%);
}

/* timeline dot (the small round markers) */
.timeline-dot {
    background: var(--timeline-dot) !important;
    box-shadow: none;
    /* remove any colored glow if present */
}

/* mobile hamburger bars: keep them consistent */
.mobile-menu-btn .bar {
    background: var(--timeline-dot) !important;
}

/* decorative blobs use variables now (overrides previous hard-coded blues) */
.blob-1 {
    background: var(--blob-1) !important;
}

.blob-2 {
    background: var(--blob-2) !important;
}

.blob-3 {
    background: var(--blob-3) !important;
}

/* handles / profile links (uses var(--link) already) */
.handles a,
.handles a:visited {
    color: var(--link) !important;
}

/* project "Read more" and other small link styles */
.card a,
.cards-grid a,
.connect-grid a {
    color: var(--link) !important;
}

/* small footer links */
.site-footer a {
    color: var(--link) !important;
    text-decoration: underline;
}

/* Fix components that accidentally used --link as a button background:
   ensure modal/upi buttons keep the intended blue gradient (explicit override) */
.upi-modal-content button,
.upi-modal-content button:hover {
    background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
}

/* If any other component used var(--link) as a background unintentionally,
   this keeps primary buttons visually unchanged (safe fallback for .btn-connect). */
.btn-connect,
.main-nav .cta {
    /* don't change these; keep original gradient if present */
    /* (no changes here; leaving for clarity) */
}

/* Accessibility: when focused the link color should still be visible */
a:focus {
    outline: 3px solid rgba(0, 0, 0, 0.06);
    outline-offset: 2px;
}


/* =========================================
   🔥 BUTTON VISIBILITY FIX (SAFE OVERRIDE)
   Place at VERY END of file
   ========================================= */

/* Ensure all main buttons always show text */
.btn,
.btn-connect,
.main-nav .cta,
.mobile-nav-list .mobile-cta,
.bmc-btn {
    color: #ffffff !important;
}

/* Dark theme buttons should invert text */
:root[data-theme="dark"] .btn,
:root[data-theme="dark"] .btn-connect,
:root[data-theme="dark"] .main-nav .cta,
:root[data-theme="dark"] .mobile-nav-list .mobile-cta {
    color: #000000 !important;
}

/* Outline buttons stay readable */
.btn-outline {
    color: var(--text) !important;
}

:root[data-theme="dark"] .btn-outline {
    color: #f3f4f6 !important;
}

/* =========================================
   🎯 FIX LIGHT MODE CONNECT BUTTON LOOK
   ========================================= */

:root:not([data-theme="dark"]) .btn-connect,
:root:not([data-theme="dark"]) .main-nav .cta {
    background: linear-gradient(135deg, #111111, #000000);
    color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.20);
}

/* ✨ NEW — Hover effect for Connect (LIGHT MODE ONLY) */
:root:not([data-theme="dark"]) .btn-connect:hover,
:root:not([data-theme="dark"]) .main-nav .cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.30);
    background: linear-gradient(135deg, #000000, #111111);
}

/* =========================================
   🎯 FIX "Contact Me" CTA (bottom section)
   ========================================= */

:root:not([data-theme="dark"]) .mini-contact .btn,
:root:not([data-theme="dark"]) .mini-contact .btn-connect {
    background: linear-gradient(135deg, #111111, #000000);
    color: #ffffff !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

/* =========================================
   Prevent link override from affecting buttons
   ========================================= */

.btn a,
.btn-connect a,
.main-nav .cta a {
    color: inherit !important;
}

/* =========================================
   🎯 FIX DARK THEME BAD BUTTONS
   Make them white with black text
   ========================================= */

:root[data-theme="dark"] .btn,
:root[data-theme="dark"] .btn-connect,
:root[data-theme="dark"] .mini-contact .btn,
:root[data-theme="dark"] .hero-ctas .btn,
:root[data-theme="dark"] .form .btn {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* Hover for dark theme white buttons */
:root[data-theme="dark"] .btn:hover,
:root[data-theme="dark"] .btn-connect:hover,
:root[data-theme="dark"] .mini-contact .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* =========================================
   🎯 FIX LIGHT THEME INVISIBLE BUTTON
   ========================================= */

:root:not([data-theme="dark"]) .mini-contact .btn,
:root:not([data-theme="dark"]) .form .btn {
    background: linear-gradient(135deg, #111111, #000000);
    color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* =========================================
   🔥 Ensure text is ALWAYS visible
   ========================================= */

.btn,
.btn-connect {
    color: inherit;
}

.btn span,
.btn-connect span {
    color: inherit;
}

/* ===============================
   CUSTOM PATCH — BUTTON FIXES
   Place this at the end of style.css
   =============================== */

/* -----------------------------
   1) Fix "Send Message" (Direct Communication) in LIGHT theme
   ----------------------------- */
:root:not([data-theme="dark"]) .mini-contact .btn,
:root:not([data-theme="dark"]) .support-card .mini-contact .btn,
:root:not([data-theme="dark"]) .form .btn,
:root:not([data-theme="dark"]) .connect-grid .btn {
    background: linear-gradient(135deg, #111111, #000000) !important;
    color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18) !important;
    padding: 10px 16px;
    border-radius: 10px;
}

:root:not([data-theme="dark"]) .mini-contact .btn:hover,
:root:not([data-theme="dark"]) .support-card .mini-contact .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28) !important;
}

/* Ensure anchors inside buttons inherit correctly */
.btn a,
.mini-contact .btn a,
.form .btn a {
    color: inherit !important;
    text-decoration: none !important;
}

/* -----------------------------
   2) Alternate hero/home buttons in LIGHT theme
   (1=white/black, 2=black/white, 3=white/black, 4=black/white)
   Targets both .hero-buttons and .hero-ctas variants.
   ----------------------------- */
:root:not([data-theme="dark"]) .hero-buttons .btn:nth-child(1),
:root:not([data-theme="dark"]) .hero-ctas .btn:nth-child(1) {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 6px 18px rgba(12, 24, 40, 0.04);
}

:root:not([data-theme="dark"]) .hero-buttons .btn:nth-child(2),
:root:not([data-theme="dark"]) .hero-ctas .btn:nth-child(2) {
    background: linear-gradient(135deg, #111111, #000000) !important;
    color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

:root:not([data-theme="dark"]) .hero-buttons .btn:nth-child(3),
:root:not([data-theme="dark"]) .hero-ctas .btn:nth-child(3) {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 6px 18px rgba(12, 24, 40, 0.04);
}

:root:not([data-theme="dark"]) .hero-buttons .btn:nth-child(4),
:root:not([data-theme="dark"]) .hero-ctas .btn:nth-child(4) {
    background: linear-gradient(135deg, #111111, #000000) !important;
    color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

/* Add small hover polish for hero buttons (light theme) */
:root:not([data-theme="dark"]) .hero-buttons .btn:hover,
:root:not([data-theme="dark"]) .hero-ctas .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.20);
}

/* -----------------------------
   3) Keep DARK theme hero buttons consistent (white bg, black text)
   (explicit stable override so nothing changes unexpectedly)
   ----------------------------- */
:root[data-theme="dark"] .hero-buttons .btn,
:root[data-theme="dark"] .hero-ctas .btn,
:root[data-theme="dark"] .mini-contact .btn,
:root[data-theme="dark"] .form .btn {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35) !important;
}

/* Hover for dark theme white buttons (keep text readable) */
:root[data-theme="dark"] .hero-buttons .btn:hover,
:root[data-theme="dark"] .hero-ctas .btn:hover,
:root[data-theme="dark"] .mini-contact .btn:hover,
:root[data-theme="dark"] .form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45) !important;
}

/* -----------------------------
   4) CONNECT button (dark theme) — hover should switch to black bg + white text
   Prevents "all black (text unreadable)" hover effect
   ----------------------------- */
:root[data-theme="dark"] .btn-connect,
:root[data-theme="dark"] .main-nav .cta {
    /* keep base as white pill in dark (existing look) */
    background: linear-gradient(135deg, #ffffff, #f3f4f6) !important;
    color: #000000 !important;
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
}

/* Hover: switch to black + white text (explicit) */
:root[data-theme="dark"] .btn-connect:hover,
:root[data-theme="dark"] .main-nav .cta:hover {
    background: linear-gradient(135deg, #000000, #111111) !important;
    color: #ffffff !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6) !important;
    transform: translateY(-2px) !important;
}

/* Ensure nav CTA anchor inherits */
.btn-connect a,
.main-nav .cta a {
    color: inherit !important;
    text-decoration: none !important;
}

/* -----------------------------
   5) Accessibility & disabled states — make sure disabled still readable
   ----------------------------- */
.btn:disabled,
.btn-connect:disabled,
.main-nav .cta:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* -----------------------------
   6) Small protective rule: always force visible contrast on button text
   (final safeguard to avoid invisible/black-on-black)
   ----------------------------- */
.btn,
.btn-connect,
.main-nav .cta,
.mini-contact .btn,
.form .btn,
.bmc-btn {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   HERO BUTTONS — BWBW (Light)
   WBWB (Dark)
   ========================================= */

/* ================= LIGHT THEME ================= */
/* 1 & 3 → BLACK */
:root:not([data-theme="dark"]) .hero-ctas .btn:nth-child(1),
:root:not([data-theme="dark"]) .hero-ctas .btn:nth-child(3),
:root:not([data-theme="dark"]) .hero-buttons .btn:nth-child(1),
:root:not([data-theme="dark"]) .hero-buttons .btn:nth-child(3) {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

/* 2 & 4 → WHITE */
:root:not([data-theme="dark"]) .hero-ctas .btn:nth-child(2),
:root:not([data-theme="dark"]) .hero-ctas .btn:nth-child(4),
:root:not([data-theme="dark"]) .hero-buttons .btn:nth-child(2),
:root:not([data-theme="dark"]) .hero-buttons .btn:nth-child(4) {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* ================= DARK THEME ================= */
/* 1 & 3 → WHITE */
:root[data-theme="dark"] .hero-ctas .btn:nth-child(1),
:root[data-theme="dark"] .hero-ctas .btn:nth-child(3),
:root[data-theme="dark"] .hero-buttons .btn:nth-child(1),
:root[data-theme="dark"] .hero-buttons .btn:nth-child(3) {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* 2 & 4 → BLACK */
:root[data-theme="dark"] .hero-ctas .btn:nth-child(2),
:root[data-theme="dark"] .hero-ctas .btn:nth-child(4),
:root[data-theme="dark"] .hero-buttons .btn:nth-child(2),
:root[data-theme="dark"] .hero-buttons .btn:nth-child(4) {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Subtle hover lift (keeps contrast safe) */
.hero-ctas .btn:hover,
.hero-buttons .btn:hover {
    transform: translateY(-3px);
}

/* =========================================
   CONNECT BUTTON — SMART INVERT SYSTEM
   Light + Dark with visible outlines
   ========================================= */

/* ================= LIGHT THEME ================= */

/* Base (Light theme = black button) */
:root:not([data-theme="dark"]) .btn-connect,
:root:not([data-theme="dark"]) .main-nav .cta {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
    transition: all .25s ease;
}

/* Hover → invert to white */
:root:not([data-theme="dark"]) .btn-connect:hover,
:root:not([data-theme="dark"]) .main-nav .cta:hover {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
    /* outline appears when white */
}

/* ================= DARK THEME ================= */

/* Base (Dark theme = white button) */
:root[data-theme="dark"] .btn-connect,
:root[data-theme="dark"] .main-nav .cta {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
    transition: all .25s ease;
}

/* Hover → invert to black */
:root[data-theme="dark"] .btn-connect:hover,
:root[data-theme="dark"] .main-nav .cta:hover {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    /* outline appears when black */
}

/* Subtle lift effect */
.btn-connect:hover,
.main-nav .cta:hover {
    transform: translateY(-3px);
}

/* Prevent anchor inside button from breaking color */
.btn-connect a,
.main-nav .cta a {
    color: inherit !important;
}

/* =========================================
   HIRE MODAL — CLEAN PROFESSIONAL REDESIGN
   ========================================= */

/* ===== Modal backdrop ===== */
.hire-modal {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* ===== LIGHT THEME PANEL ===== */
:root:not([data-theme="dark"]) .hire-modal-panel {
    background: #ffffff !important;
    color: #111111 !important;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

/* Cards inside modal — Light */
:root:not([data-theme="dark"]) .hire-card {
    background: #f8f9fb !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #111111 !important;
}

:root:not([data-theme="dark"]) .hire-card:hover {
    background: #ffffff !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

/* ===== DARK THEME PANEL ===== */
:root[data-theme="dark"] .hire-modal-panel {
    background: #0b0b0b !important;
    color: #f3f4f6 !important;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

/* Cards inside modal — Dark */
:root[data-theme="dark"] .hire-card {
    background: #111111 !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #f3f4f6 !important;
}

:root[data-theme="dark"] .hire-card:hover {
    background: #161616 !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

/* ===== Remove close button completely (safety) ===== */
#modal-close {
    display: none !important;
}

/* ===== Exit note styling ===== */
.modal-exit-note {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    opacity: 0.6;
    letter-spacing: 0.3px;
    transition: opacity 0.2s ease;
}

.modal-exit-note:hover {
    opacity: 0.9;
}

/* Dark mode note color */
:root[data-theme="dark"] .modal-exit-note {
    color: #aaaaaa;
}

:root:not([data-theme="dark"]) .modal-exit-note {
    color: #555555;
}

/* ===============================
   HIRE MODAL ICON STYLING
   =============================== */

.hire-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

/* Light theme */
:root:not([data-theme="dark"]) .hire-card-icon {
    background: #f1f3f6;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

:root:not([data-theme="dark"]) .hire-card-icon svg {
    width: 22px;
    height: 22px;
    stroke: #000000;
}

/* Dark theme */
:root[data-theme="dark"] .hire-card-icon {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

:root[data-theme="dark"] .hire-card-icon svg {
    width: 22px;
    height: 22px;
    stroke: #ffffff;
}

/* ===============================
   THEME TOGGLE — LUCIDE VERSION
   =============================== */

.theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: transparent;
    cursor: pointer;
    transition: all .25s ease;
}

/* Light mode */
:root:not([data-theme="dark"]) .theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: #000000;
}

/* Dark mode */
:root[data-theme="dark"] .theme-toggle {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
}

/* Hover animation */
.theme-toggle:hover {
    transform: translateY(-2px) rotate(8deg);
}

.brand {
    text-decoration: none;
    color: inherit;
    font-weight: inherit;
}

.brand:hover {
    text-decoration: none;
    color: inherit;
}

/* ============== end of patch ============== */
/* final: ensure skill bars show intended percentages via inline style or width set in markup */
/* Example usage: <div class="bar"><div style="width:90%"></div></div> */