/* ============================================================
   PORTFOLIO — BRAIAN MURILLO COPA
   style.css — v20260522-premium
   Dark-first · Indigo Electric · Premium Design System
   ============================================================ */


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */

:root[data-theme="dark"] {
    --figure-card-bg: rgba(255, 255, 255, 0.03);
    --figure-card-border: rgba(255, 255, 255, 0.1);
    --bg-core:         #080B14;
    --bg-card:         #0D1117;
    --bg-elevated:     #111827;
    --bg-modal:        #0D1117;
    --border:          rgba(99, 102, 241, 0.12);
    --border-hover:    rgba(99, 102, 241, 0.30);
    --text-main:       #F0F4FF;
    --text-secondary:  #8892A4;
    --text-muted:      #4B5568;
    --accent:          #6366F1;
    --accent-hover:    #818CF8;
    --accent-glow:     rgba(99, 102, 241, 0.20);
    --accent-bg:       rgba(99, 102, 241, 0.08);
    --accent-bg-hover: rgba(99, 102, 241, 0.14);
    --modal-overlay:   rgba(4, 6, 16, 0.92);
    --modal-bg:        #0D1117;
    --code-bg:         #010409;
    --code-text:       #E6EDF3;
    --figure-bg:       #0D1117;
    --figure-text:     #F0F4FF;
    --grad-1:          rgba(99, 102, 241, 0.06);
    --grad-2:          rgba(139, 92, 246, 0.04);
    --grad-3:          rgba(67, 56, 202, 0.03);

    --syntax-key:     #c084fc;
    --syntax-str:     #86efac;
    --syntax-num:     #fb923c;
    --syntax-comment: #475569;
    --syntax-func:    #67e8f9;

    --shadow-sm:     0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md:     0 4px 16px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
    --shadow-lg:     0 12px 40px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-xl:     0 24px 60px rgba(0, 0, 0, 0.7), 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 0 40px rgba(99, 102, 241, 0.15), 0 8px 24px rgba(0, 0, 0, 0.5);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 220ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 380ms cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft:       cubic-bezier(0.34, 1.56, 0.64, 1);
}

:root[data-theme="light"] {
    --figure-card-bg: rgba(15, 23, 42, 0.03);
    --figure-card-border: rgba(15, 23, 42, 0.08);
    --bg-core:         #F8FAFC;
    --bg-card:         #FFFFFF;
    --bg-elevated:     #F1F5F9;
    --bg-modal:        #FFFFFF;
    --border:          rgba(99, 102, 241, 0.14);
    --border-hover:    rgba(99, 102, 241, 0.35);
    --text-main:       #0F172A;
    --text-secondary:  #475569;
    --text-muted:      #94A3B8;
    --accent:          #4F46E5;
    --accent-hover:    #4338CA;
    --accent-glow:     rgba(79, 70, 229, 0.12);
    --accent-bg:       rgba(79, 70, 229, 0.06);
    --accent-bg-hover: rgba(79, 70, 229, 0.10);
    --modal-overlay:   rgba(248, 250, 252, 0.96);
    --modal-bg:        #FFFFFF;
    --code-bg:         #F6F8FA;
    --code-text:       #24292F;
    --figure-bg:       #F8FAFC;
    --figure-text:     #0F172A;
    --grad-1:          rgba(79, 70, 229, 0.0);
    --grad-2:          rgba(139, 92, 246, 0.0);
    --grad-3:          rgba(67, 56, 202, 0.0);

    --syntax-key:     #7c3aed;
    --syntax-str:     #059669;
    --syntax-num:     #d97706;
    --syntax-comment: #94a3b8;
    --syntax-func:    #0891b2;

    --shadow-sm:     0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md:     0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg:     0 12px 40px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-xl:     0 24px 60px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-accent: 0 0 30px rgba(79, 70, 229, 0.10), 0 8px 24px rgba(0, 0, 0, 0.08);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 220ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 380ms cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft:       cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */

html {
    scroll-behavior: smooth;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Dark mode: reactive gradient mesh background */
:root[data-theme="dark"] body {
    background:
        radial-gradient(circle, rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        radial-gradient(
            circle 800px at var(--mx, 20%) var(--my, 30%),
            var(--grad-1) 0%,
            transparent 60%
        ),
        radial-gradient(
            circle 600px at calc(var(--mx, 20%) + 40%) calc(var(--my, 30%) + 20%),
            var(--grad-2) 0%,
            transparent 60%
        ),
        radial-gradient(
            circle 400px at calc(var(--mx, 20%) - 20%) calc(var(--my, 30%) + 50%),
            var(--grad-3) 0%,
            transparent 60%
        ),
        var(--bg-core);
    background-size: 24px 24px, auto, auto, auto, auto;
}

/* Light mode: clean flat background */
:root[data-theme="light"] body {
    background-color: #f5f4ff;
    background-image: radial-gradient(circle, rgba(99, 102, 241, 0.18) 1px, transparent 1px);
    background-size: 24px 24px;
}

body {
    background-color: #f5f4ff;
    background-image: radial-gradient(circle, #c4b5fd 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(15px, 1vw + 0.5rem, 16px);
    line-height: 1.6;
    transition: background-color var(--transition-slow), color var(--transition-slow);
    overflow-x: hidden;
    padding-bottom: clamp(28px, 4vw, 40px);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.005em;
}

p {
    font-size: clamp(0.9rem, 1vw, 0.95rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

h2 {
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    margin-bottom: 32px;
    font-weight: 700;
    letter-spacing: -0.025em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    color: var(--text-main);
    position: relative;
    line-height: 1.3;
}

.section-item-title {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    margin: 0 0 8px 0;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.015em;
    line-height: 1.4;
}

html.theme-initialized body {
    opacity: 1;
}


/* ============================================================
   3. UTILITIES
   ============================================================ */

.text-muted      { color: var(--text-muted); }
.text-95         { font-size: 0.95rem; }
.text-90         { font-size: 0.9rem; }
.lh-150          { line-height: 1.5; }
.text-main-color { color: var(--text-main); }
.break-all       { word-break: break-all; }

/* Screen-reader only */
.sr-only {
    position: absolute;
    width: 1px;
    
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus,
.sr-only:focus-visible {
    position: fixed;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 12px;
    overflow: visible;
    clip: auto;
    white-space: normal;
    z-index: 10001;
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

/* Underline accent link */
.link-accent {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent);
    position: relative;
    transition: color 250ms ease;
}

.link-accent:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

.link-accent::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    
    background: var(--accent);
    transition: width 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.link-accent:hover::after {
    width: 100%;
}

/* Section labels */
.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
    letter-spacing: 0.04em;
}

.label-caps {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
}

/* Icon size helpers */
.icon-md  { font-size: 1.2rem; }
.icon-lg  { font-size: 1.3rem; }
.icon-xl  { font-size: 1.5rem; }

/* Icon color helpers */
.icon-accent      { color: var(--accent); }
.icon-award       { font-size: 1.5rem; color: #D97706; flex-shrink: 0; }
.icon-cert-blue   { font-size: 1.5rem; color: #3B82F6; flex-shrink: 0; }
.icon-cert-indigo { font-size: 1.5rem; color: #6366F1; flex-shrink: 0; }
.icon-cert-green  { font-size: 1.5rem; color: #10B981; flex-shrink: 0; }

/* Row body (flex: 1 in award/cert rows) */
.row-body { flex: 1; }

/* Small muted subtitle in rows */
.item-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* CTA text inside an award-row */
.link-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin-left: 10px;
    transition: color var(--transition-fast);
}

.link-cta:hover {
    color: var(--accent-hover);
}


/* ============================================================
   4. LAYOUT
   ============================================================ */

.container {
    width: 92%;
    max-width: 1200px;
    margin: clamp(32px, 5vw, 48px) auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: clamp(32px, 4vw, 48px);
    align-items: start;
}

.container[aria-hidden="true"] {
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-width: 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.timeline-wrapper {
    margin-left: 10px;
}


/* ============================================================
   5. COMPONENT — CARD
   ============================================================ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(20px, 2vw, 28px);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base),
        border-color var(--transition-base),
        background-color var(--transition-slow);
    position: relative;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

/* Compact padding variant */
.card--compact {
    padding: 20px;
}

/* Profile name heading */
.profile-name {
    font-size: 1.4rem;
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

/* Bio paragraph below name */
.profile-bio {
    margin-top: 20px;
}

/* Tech stack wrapper */
.tech-block {
    margin-top: 25px;
}

/* Contact links inside compact card */
.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.contact-link:hover {
    opacity: 0.8;
    color: var(--accent);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    margin-top: 10px;
}


/* ============================================================
   6. COMPONENT — AVATAR & THEME TOGGLE
   ============================================================ */

.avatar-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.avatar {
    width: 64px;
    
    border-radius: 50%;
    border: 2px solid var(--border-hover);
    object-fit: cover;
    display: block;
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-md), 0 0 0 4px var(--accent-bg);
    transition: all 350ms var(--ease-soft);
}

.avatar:hover {
    transform: scale(1.08);
    filter: brightness(1.06);
    border-color: var(--accent);
    box-shadow: var(--shadow-accent), 0 0 0 4px var(--accent-bg);
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 220ms var(--ease-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    perspective: 200px;
}

.theme-toggle:hover {
    background: var(--accent-bg);
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.1) rotate(20deg);
    box-shadow: var(--shadow-accent);
}

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

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.theme-toggle.is-flipping {
    animation: themeFlip 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes themeFlip {
    0%   { transform: scale(1) rotateY(0deg); }
    50%  { transform: scale(1.15) rotateY(90deg); }
    100% { transform: scale(1) rotateY(0deg); }
}


/* ============================================================
   7. COMPONENT — BADGE & TECH PILLS
   ============================================================ */

.badge {
    display: inline-block;
    padding: 5px 13px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    background: var(--accent-bg);
    color: var(--accent);
    margin-top: 12px;
    border: 1px solid rgba(99, 102, 241, 0.30);
    transition: all 220ms var(--ease-soft);
    letter-spacing: 0.04em;
}

.badge:hover {
    background: var(--accent);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tech-pill {
    font-size: 0.78rem;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 220ms var(--ease-soft);
    background: transparent;
    font-weight: 500;
    letter-spacing: -0.005em;
}

.tech-pill:hover {
    border-color: var(--border-hover);
    color: var(--accent);
    background: var(--accent-bg);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}


/* ============================================================
   8. COMPONENT — BUTTONS
   ============================================================ */

.btn-primary {
    width: 100%;
    background: var(--accent);
    color: #FFFFFF;
    border: none;
    padding: clamp(13px, 1.5vw, 16px) 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: clamp(0.9rem, 1vw, 1rem);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-top: 24px;
    transition: all 220ms var(--ease-soft);
    box-shadow: var(--shadow-md);
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-accent);
    background: var(--accent-hover);
}

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

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 600ms, height 600ms;
    pointer-events: none;
}

.btn-primary:active::after {
    width: 200px;
    
}

.btn-icon {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    color: var(--text-main);
    margin-right: 6px;
    display: flex;
    align-items: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}

.btn-icon:hover {
    background: var(--accent-bg);
    border-color: var(--border-hover);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-icon:active {
    transform: translateY(0);
}

.btn-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    transform: translate(-50%, -50%);
    transition: width 600ms, height 600ms;
    pointer-events: none;
}

.btn-icon:active::after {
    width: 200px;
    
}


/* ============================================================
   9. COMPONENT — MARQUEE
   ============================================================ */

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding-bottom: 12px;
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.marquee-track {
    display: inline-flex;
    gap: 48px;
    padding-left: 24px;
    padding-right: 24px;
    animation: scroll 40s linear infinite;
    will-change: transform;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
    cursor: default;
}

.marquee-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.83rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-base), transform 250ms ease;
}

.marquee-item b {
    color: var(--text-main);
    font-weight: 600;
}

.marquee-item:hover {
    color: var(--accent);
    transform: scale(1.04);
}

@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ============================================================
   10. COMPONENT — TIMELINE
   ============================================================ */

.timeline-item {
    border-left: 2px solid var(--border);
    padding-left: 28px;
    padding-bottom: 32px;
    position: relative;
    margin-left: 6px;
    transition: all 250ms var(--ease-soft);
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    flex: 1;
    min-width: 280px;
    width: 100%;
}

.timeline-item::before {
    pointer-events: none;
    content: '';
    position: absolute;
    left: -9px;
    top: 6px;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background: var(--bg-core);
    border: 2.5px solid var(--accent);
    z-index: 1;
    transition: all 250ms var(--ease-soft);
    box-shadow: 0 0 0 3px var(--bg-card);
}

.timeline-item::before {
    pointer-events: none;
}

.timeline-item:hover {
    border-left-color: var(--accent);
    background: var(--accent-bg);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.timeline-item:hover::before {
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 0 3px var(--bg-card), 0 0 12px var(--accent);
}

.timeline-item:last-child {
    border-left: 2px solid transparent;
}

/* Offset section-item-title top margin inside timeline */
.timeline-item .section-item-title {
    margin-top: 5px;
}

.timeline-date--active {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

.timeline-date--past {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.timeline-desc {
    margin-top: 5px;
}


/* ============================================================
   11. COMPONENT — PROJECT CARDS
   ============================================================ */

.project-card {
    --rx: 0deg;
    --ry: 0deg;
    --cx: 50%;
    --cy: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(16px, 1.8vw, 22px);
    padding-bottom: clamp(40px, 3.8vw, 48px);
    transition:
        transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 220ms cubic-bezier(0.4, 0, 0.2, 1),
        border-color 220ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: auto !important;
    min-height: 100%;
    width: 100%;
    text-align: left;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
    will-change: transform;
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
    backface-visibility: hidden;
    touch-action: manipulation;
    overflow: hidden;
}

/* Radial glow halo that follows mouse cursor */
.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle 150px at var(--cx, 50%) var(--cy, 50%),
        var(--accent-bg) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-accent);
}

.project-card:active {
    transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateY(2px);
}

.project-card:focus-visible {
    outline: 2px solid rgba(106, 17, 203, 0.3);
    outline-offset: 4px;
}

.project-card::after {
    content: "Ver Detalle \2192";
    position: absolute;
    bottom: clamp(14px, 1.8vw, 20px);
    right: clamp(14px, 1.8vw, 20px);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-6px);
    transition: all 220ms var(--ease-soft);
    letter-spacing: -0.01em;
    z-index: 1;
}

.project-card:hover::after,
.project-card:focus-visible::after {
    opacity: 1;
    transform: translateX(0);
}

.project-card h3 {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    margin-bottom: 12px;
    font-weight: 700;
    border: none;
    padding: 0;
    letter-spacing: -0.022em;
    color: var(--text-main);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.project-card > p {
    flex: 1;
    position: relative;
    z-index: 1;
}

.p-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.p-icon {
    font-size: 1.75rem;
    color: var(--accent);
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.p-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.63rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    background: var(--accent-bg);
    padding: 4px 9px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}


/* ============================================================
   11b. COMPONENT — GROUP SEPARATOR
   ============================================================ */

.group-separator {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    margin: 16px 0 8px;
    padding: 0 2px;
}

.group-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--accent);
    white-space: nowrap;
    opacity: 0.9;
    text-transform: uppercase;
}

.group-line {
    
    background: linear-gradient(90deg, var(--border-hover) 0%, transparent 100%);
    border-radius: 1px;
}


/* ============================================================
   12. COMPONENT — AWARD & CERT ROWS
   ============================================================ */

.award-row,
.cert-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: all var(--transition-base);
    width: 100%;
    text-align: left;
    font: inherit;
}

button.award-row {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.award-row {
    border: 1px solid rgba(251, 191, 36, 0.22);
    background: rgba(251, 191, 36, 0.05);
}

.award-row:hover {
    border-color: rgba(251, 191, 36, 0.42);
    background: rgba(251, 191, 36, 0.09);
    transform: translateX(3px);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.08);
}

.cert-row {
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.cert-row:hover {
    border-color: var(--border-hover);
    background: var(--accent-bg);
    transform: translateX(3px);
    box-shadow: var(--shadow-md);
}

/* Centered CTA variant (e.g. "Ver Portfolio de Diplomas") */
.award-row--cta {
    justify-content: center;
    cursor: pointer;
    margin-top: 25px;
}

/* Light mode award-row overrides */
:root[data-theme="light"] .award-row {
    background: rgba(251, 191, 36, 0.05);
    border-color: rgba(251, 191, 36, 0.25);
}

:root[data-theme="light"] .award-row:hover {
    background: rgba(251, 191, 36, 0.10);
    border-color: rgba(251, 191, 36, 0.45);
}


/* ============================================================
   13. COMPONENT — MODAL
   ============================================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-overlay);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    align-items: center;
    justify-content: center;
    animation: fadeIn var(--transition-slow) cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
    overscroll-behavior: contain;
}

.modal-content {
    background: var(--modal-bg);
    border-radius: var(--radius-xl);
    position: relative;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideIn var(--transition-slow) cubic-bezier(0.16, 1, 0.3, 1);
}

.project-detail {
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Fija el banner superior y el botón de cerrar */
    padding: 0;       /* Permite que el banner sangre (Full-Bleed) al 100% de los bordes */
}

.project-hero {
    min-height: 120px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #0f172a 100%);
    display: flex;
    align-items: center;
    padding: 2rem clamp(28px, 4vw, 48px) 1.5rem clamp(28px, 4vw, 48px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.20);
    position: relative;
    overflow: hidden;
}

.project-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.25) 0%, transparent 55%),
        radial-gradient(circle at 15% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 45%);
    pointer-events: none;
}

.hero-title {
    color: #FFFFFF !important;
    margin: 0;
    border: none;
    padding: 0;
    padding-top: 0.5rem;
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-badge {
    background: rgba(99, 102, 241, 0.25);
    backdrop-filter: blur(8px);
    color: #E0E7FF;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(99, 102, 241, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-family: 'JetBrains Mono', monospace;
}

.project-body {
    padding: clamp(28px, 4vw, 48px);
    padding-top: 1.5rem;
    flex: 1 1 auto;
    overflow-y: auto;
    max-height: 100%;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.project-body p {
    margin: 0 0 16px 0;
    text-align: left;
    -webkit-hyphens: auto;
    hyphens: auto;
}
.project-body p:last-child {
    margin-bottom: 0;
}

.project-body h3 {
    font-size: 1.15rem;
    margin-top: 32px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.project-body ul    { padding-left: 20px; margin-bottom: 20px; }
.project-body li    { margin-bottom: 10px; text-align: left; -webkit-hyphens: auto; hyphens: auto; }
.project-body strong,
.project-body b     { color: var(--text-main); font-weight: 600; }

.close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: rgba(255, 255, 255, 0.75);
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    z-index: 10000;
    transition: all var(--transition-base);
    padding: 6px 10px;
    line-height: 1;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.close-btn:hover {
    background: rgba(99, 102, 241, 0.25);
    color: #FFFFFF;
    border-color: rgba(99, 102, 241, 0.45);
    transform: scale(1.06);
}

.close-btn:active {
    transform: scale(0.95);
}

.pdf-content {
    width: 95%;
    height: 90%;
    max-width: 1200px;
}

.pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
}


/* ============================================================
   13b. COMPONENT — METRIC GRID (nuevo, en modales)
   ============================================================ */

.metric-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 20px 0 28px;
}

.metric-item {
    background: var(--accent-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    min-width: 88px;
    min-height: 80px;
    flex: 0 0 auto;
    transition: border-color 200ms cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.metric-item:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-accent);
}

.metric-value {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.metric-label {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}


/* ============================================================
   14. COMPONENT — FIGURES & PROJECT IMAGES
   ============================================================ */

.figure-card {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.figure-card:hover {
    box-shadow: none !important;
    border-color: transparent !important;
}

.figure-card strong {
    color: var(--figure-text);
    display: block;
    margin-bottom: 10px;
}

.project-img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    mix-blend-mode: multiply;
    background: linear-gradient(
        90deg,
        var(--bg-core) 0%,
        var(--bg-elevated) 50%,
        var(--bg-core) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.project-img:hover {
    transform: scale(1.02);
}

.project-img[src] {
    animation: none;
    background: transparent;
}

:root[data-theme="dark"] .project-img {
    mix-blend-mode: normal;
}

:root[data-theme="dark"] .project-img[src] {
    filter: brightness(0.90) contrast(0.92) saturate(0.96);
    box-shadow: 0 0 0 1px var(--border);
}

.img-caption {
    font-size: 0.82rem;
    color: var(--figure-text);
    opacity: 0.65;
    margin-top: 12px;
    display: block;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.5;
}

.img-error {
    opacity: 0.35;
    filter: grayscale(1) contrast(0.8);
    border: 2px dashed var(--border);
    background: var(--bg-core);
}


/* ============================================================
   15. COMPONENT — CODE WINDOW
   ============================================================ */

.code-window {
    background: var(--code-bg);
    border-radius: 12px;
    margin-top: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(99, 102, 241, 0.10);
    overflow: hidden;
    text-align: left;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
}

:root[data-theme="light"] .code-window {
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

.code-header {
    background: #161b22;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(48, 54, 61, 0.8);
}

:root[data-theme="light"] .code-header {
    background: rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid var(--border);
}

.window-dots { display: flex; gap: 6px; }
.dot         { width: 10px;  border-radius: 50%; }
.red         { background: #ff5f56; }
.yellow      { background: #ffbd2e; }
.green       { background: #27c93f; }

.language-label {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.06em;
    opacity: 0.7;
}

.code-content {
    padding: 20px;
    overflow-x: auto;
    color: var(--code-text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.84rem;
    line-height: 1.7;
    margin: 0;
}

/* Syntax highlight tokens */
.c-key     { color: var(--syntax-key); font-weight: bold; }
.c-str     { color: var(--syntax-str); }
.c-num     { color: var(--syntax-num); }
.c-comment { color: var(--syntax-comment); font-style: italic; }
.c-func    { color: var(--syntax-func); }


/* ============================================================
   16. COMPONENT — SCROLL PROGRESS BAR
   ============================================================ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    
    z-index: 9999;
    background: transparent;
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #a78bfa, #818cf8);
    transform-origin: 0 0;
    transform: scaleX(0);
    transition: transform 80ms linear;
}


/* ============================================================
   17. COMPONENT — REVEAL ON SCROLL
   ============================================================ */

[data-reveal] {
    /* opacity: 0; removed to avoid blank page if JS fails */
    transform: translateY(24px);
    transition:
        opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

/* Staggered delays for grid items */
[data-reveal][data-delay='1'] { transition-delay: 80ms; }
[data-reveal][data-delay='2'] { transition-delay: 160ms; }
[data-reveal][data-delay='3'] { transition-delay: 240ms; }
[data-reveal][data-delay='4'] { transition-delay: 320ms; }


/* ============================================================
   18. ANIMATIONS
   ============================================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0%   { background-position: -1000px 0; }
    100% { background-position:  1000px 0; }
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Section entry animations */
section              { animation: fadeIn 600ms ease-out both; }
section:nth-child(2) { animation-delay: 100ms; }
section:nth-child(3) { animation-delay: 200ms; }
section:nth-child(4) { animation-delay: 300ms; }

.modal         { animation: fadeIn 400ms ease; }
.modal-content { animation: fadeInUp 400ms ease; }

/* Theme transition: targeted to avoid jank */
body,
.card,
.btn-primary {
    transition:
        background-color var(--transition-slow),
        color var(--transition-slow),
        border-color var(--transition-slow);
}


/* ============================================================
   19. ACCESSIBILITY & FOCUS
   ============================================================ */

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html { scroll-behavior: auto; }

    .marquee-track {
        animation: none !important;
        transform: none !important;
    }

    .project-img,
    .modal,
    .modal-content {
        animation: none !important;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}


/* ============================================================
   20. TOUCH / HOVER MEDIA QUERIES
   ============================================================ */

@media (hover: none) {
    .marquee-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .marquee-track {
        animation: none;
        will-change: auto;
    }

    .project-card::after {
        opacity: 1;
        transform: translateX(0);
        bottom: 16px;
        right: 16px;
    }

    .project-card::before {
        display: none;
    }
}


/* ============================================================
   21. RESPONSIVE — max-width 900px
   ============================================================ */

@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
        margin: 20px auto;
        gap: 24px;
        width: 94%;
    }

    .sidebar {
        position: relative;
        top: 0;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-card {
        height: auto !important;
        min-height: 100%;
    }

    .project-hero {
        padding: 2rem 20px 1.5rem 20px;
        min-height: 100px;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .project-body {
        padding: 24px 20px;
        padding-top: 1.5rem;
        overflow-y: auto;
    }

    .modal {
        padding: 12px;
    }

    .close-btn {
        top: 12px;
        right: 12px;
    }

    .metric-grid {
        gap: 1rem;
        justify-content: center;
    }

    .metric-item {
        padding: 1rem;
        min-width: 76px;
        min-height: 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .group-separator {
        margin: 12px 0 6px;
    }
}


/* ============================================================
   22. CUSTOM SCROLLBAR
   ============================================================ */

.project-body::-webkit-scrollbar {
    width: 6px;
}

.project-body::-webkit-scrollbar-track {
    background: transparent;
    border-radius: var(--radius-sm);
}

.project-body::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 99px;
    transition: background var(--transition-base);
}

.project-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}


/* ============================================================
   23. BILINGUAL SYSTEM & INTEGRATED CONTROLES
   ============================================================ */

.sidebar-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-selector-pill {
    display: flex;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 2px;
    border-radius: 99px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.lang-selector-pill:hover {
    border-color: var(--border-hover);
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 5px 10px;
    border-radius: 99px;
    font-size: 0.68rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--accent), #818cf8);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.lang-btn:hover:not(.active) {
    color: var(--text-main);
    transform: scale(1.05);
}

.lang-btn:active {
    transform: scale(0.95);
}

/* Transición fluida de idioma */
.lang-es, .lang-en {
    transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-switching .lang-es,
.lang-switching .lang-en {
    opacity: 0 !important;
}

html[data-lang="es"] .lang-en {
    display: none !important;
}

html[data-lang="en"] .lang-es {
    display: none !important;
}


/* ============================================================
   22. BENTO GRID SYSTEM & DECORATIVE LAYOUTS
   ============================================================ */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 32px;
}

.bento-pair {
    display: contents;
}

.bento-grid--3col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 32px;
}

.bento-card--highlight {
    /* Uniformidad con el fondo base neutro: el resaltado solo se activa en :hover */
}

@media (max-width: 1024px) {
    .bento-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-body h3 {
        margin-top: 24px;
        margin-bottom: 10px;
        padding-bottom: 6px;
    }
}

@media (max-width: 900px) {
    .bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 32px;
}
    .bento-pair {
    display: contents;
}
    .bento-grid--3col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .bento-card--highlight {
        /* Desactivado para mantener uniformidad */
    }
    .project-body h3 {
        margin-top: 20px;
        margin-bottom: 8px;
    }
}

.timeline-item *, .timeline-item::before, .timeline-item::after { pointer-events: auto; }

.timeline-item::before, .timeline-item::after { pointer-events: none !important; }

.sidebar-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 100;
}
.lang-selector-pill {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    z-index: 100;
}

.project-card, .bento-pair__card {
    height: auto !important;
    min-height: 100%;
    display: flex !important;
    flex-direction: column !important;
}
.project-card > p, .bento-pair__card > p {
    flex: 1; /* Pushes content and ensures no cut */
}

.stat-card, .metric-box, .stat-item, .metric-card, .modal-stats > div, .project-stat, .metric-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* ============================================================
   22. AD-HOC USABILITY ENHANCEMENTS
   ============================================================ */
html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 80px;
}

.marquee-link {
    display: contents;
    text-decoration: none;
    color: inherit;
}

.marquee-item {
    cursor: pointer;
}

@media (min-width: 1024px) {
    .sidebar {
        position: sticky;
        top: 2rem;
        align-self: start;
    }
}


/* ============================================================
   24. CUSTOM MAGNETIC CURSOR EFFECTS (desktops only)
   ============================================================ */

.custom-cursor-dot, .custom-cursor-ring {
    display: none;
}

@media (min-width: 769px) {
    body {
        cursor: none !important;
    }
    
    body a, body button, body [role="button"], body .close-btn, body .lang-btn, body .theme-toggle {
        cursor: none !important;
    }
    
    .custom-cursor-dot {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        z-index: 99999;
        pointer-events: none;
        transform: translate3d(0, 0, 0) translate(-50%, -50%);
        will-change: transform;
    }
    
    .custom-cursor-ring {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background-color: transparent;
        z-index: 99998;
        pointer-events: none;
        transform: translate3d(0, 0, 0) translate(-50%, -50%) scale(1);
        will-change: transform;
        transition: width 200ms cubic-bezier(0.16, 1, 0.3, 1), 
                    height 200ms cubic-bezier(0.16, 1, 0.3, 1), 
                    border-color 200ms cubic-bezier(0.16, 1, 0.3, 1), 
                    background-color 200ms cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    /* Responsive colors per theme */
    :root[data-theme="dark"] .custom-cursor-dot {
        background-color: #ffffff;
    }
    :root[data-theme="dark"] .custom-cursor-ring {
        border: 1px solid rgba(255, 255, 255, 0.6);
    }
    
    :root[data-theme="light"] .custom-cursor-dot {
        background-color: #111111;
    }
    :root[data-theme="light"] .custom-cursor-ring {
        border: 1px solid #999999;
    }
}
