/* ==========================================================================
   HANDCRAFTED BENTO BOX PORTFOLIO STYLES (HARSHIT-EXE INSPIRED)
   Developer: Sahil
   Theme: Deep Obsidian • Dual Tech Marquee • Handwritten Accents • Colored Blocks
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Reset & Variables
   -------------------------------------------------------------------------- */
*, *::before, *::after, ::-webkit-scrollbar, ::-webkit-scrollbar-thumb, ::-webkit-scrollbar-track {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important; /* Custom cursor everywhere */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg-main: #06090e;
    --bg-secondary: #0d131f;
    --card-bg: rgba(16, 24, 39, 0.7);
    --card-bg-hover: rgba(26, 36, 56, 0.9);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(255, 0, 51, 0.4);
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-red: #ff0033;
    --accent-cyan: #00e5ff;
    --accent-green: #10b981;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', 'Inter', sans-serif;
    --font-handwrite: 'Patrick Hand', cursive;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --shadow-glow: 0 0 14px rgba(255, 0, 51, 0.12);
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Zero scroll on desktop & mobile */
    background-color: var(--bg-main);
    font-family: var(--font-body);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    touch-action: none !important;
}

/* --------------------------------------------------------------------------
   2. Background Radial Glows & Custom Cursor
   -------------------------------------------------------------------------- */
.bg-radial-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.glow-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--accent-red) 0%, rgba(255,0,51,0) 70%);
}

.glow-2 {
    width: 550px;
    height: 550px;
    bottom: -150px;
    right: -100px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, rgba(0,229,255,0) 70%);
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    margin-left: -7px;
    background: var(--accent-red);
    border-radius: 50%;
    pointer-events: none;
    z-index: 100000;
    will-change: transform;
    transition: width 0.15s ease, height 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, margin 0.15s ease, opacity 0.15s ease, visibility 0.15s ease;
    box-shadow: 0 0 12px var(--accent-red);
}

.custom-cursor.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}

.custom-cursor.hover {
    width: 32px;
    height: 32px;
    margin-top: -16px;
    margin-left: -16px;
    background: rgba(0, 229, 255, 0.3);
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 20px var(--accent-cyan);
}

/* Real-time Tech Stack Name Popup Tooltip (Handwritten Doodle Style) */
.tech-tooltip-popup {
    position: fixed;
    top: 0;
    left: 0;
    padding: 4px 14px;
    background: rgba(10, 15, 26, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255, 215, 0, 0.65);
    border-radius: 14px 6px 16px 8px;
    color: #ffd700;
    font-family: var(--font-handwrite), cursive;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transform: translate(-50%, -100%) rotate(-3deg) scale(0.85);
    transition: opacity 0.12s ease, transform 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 16px rgba(255, 215, 0, 0.3);
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.tech-tooltip-popup.is-visible {
    opacity: 1;
    transform: translate(-50%, -125%) rotate(-3deg) scale(1);
}

@media (hover: none) and (pointer: coarse) {
    .custom-cursor { display: none !important; }
    .tech-tooltip-popup { display: none !important; }
    * { cursor: auto !important; }
}

/* --------------------------------------------------------------------------
   3. Main Viewport & Bento Grid Layout
   -------------------------------------------------------------------------- */
.bento-viewport {
    position: relative;
    z-index: 1;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    perspective: 1000px;
}

.bento-container {
    width: 100%;
    max-width: 1160px;
    max-height: 94vh;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    perspective: 1000px;
}

/* --------------------------------------------------------------------------
   4. Bento Card Base Styling & Pressure Effect
   -------------------------------------------------------------------------- */
.bento-card {
    position: relative;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    overflow: visible;
    box-shadow: var(--shadow-card);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
    -webkit-user-drag: none;
    user-drag: none;
    touch-action: none;
    transition: border-color 0.15s ease,
                background-color 0.15s ease,
                box-shadow 0.15s ease;
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--touch-x, 50%) var(--touch-y, 50%), rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 55%);
    opacity: var(--touch-opacity, 0);
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.bento-card:hover, .bento-card.is-touch-pressed {
    border-color: rgba(255, 255, 255, 0.22);
    background: var(--card-bg-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    --touch-opacity: 1;
}

.bento-card.is-held {
    z-index: 100 !important;
    border-color: rgba(0, 229, 255, 0.6) !important;
    background: rgba(20, 30, 50, 0.95) !important;
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 229, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    cursor: grabbing !important;
}

.bento-card.is-repelled {
    z-index: 20;
    border-color: rgba(255, 255, 255, 0.2);
}

.bento-card.is-displaced {
    z-index: 10;
}



/* --------------------------------------------------------------------------
   6. Hero / Main Profile Card
   -------------------------------------------------------------------------- */
.bento-hero {
    grid-column: span 3;
    grid-row: span 2;
    background: linear-gradient(145deg, rgba(20, 29, 47, 0.85) 0%, rgba(10, 15, 26, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    justify-content: space-between;
    gap: 0.75rem;
}

.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-expand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    font-family: var(--font-handwrite);
    font-size: 1.05rem;
    color: #ffd700;
    letter-spacing: 0.03em;
    backdrop-filter: blur(8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    transform: rotate(-2deg);
}

.bento-hero:hover .hero-expand-badge {
    background: rgba(0, 229, 255, 0.14);
    border: 1px solid rgba(0, 229, 255, 0.45);
    color: var(--accent-cyan);
    transform: rotate(0deg) scale(1.06);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.28);
}

.avatar-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-red);
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.4);
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: var(--accent-green);
    border: 2px solid var(--bg-main);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    font-family: var(--font-mono);
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 5px 10px;
    border-radius: 20px;
}

.badge-status .dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.1;
}

.hero-name .accent-text {
    color: var(--accent-red);
}

.hero-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
}

.hero-bio {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.handwritten-inline {
    font-family: var(--font-handwrite);
    font-size: 0.98rem;
    color: #ffd700;
    letter-spacing: 0.02em;
    display: inline-block;
    transform: rotate(-2deg);
}

.hero-location {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-location i {
    color: var(--accent-red);
}

.hero-footer {
    display: flex;
    gap: 0.75rem;
}

/* Apple Specular Button Glare */
.bento-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.55rem 1.1rem;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
    transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.28s ease, background-color 0.28s ease, border-color 0.28s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
    z-index: 5;
}

.bento-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--btn-x, 50%) var(--btn-y, 50%), rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 65%);
    opacity: var(--btn-shine-opacity, 0);
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.btn-primary {
    background: var(--accent-red);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 0, 51, 0.35);
}

.btn-primary:hover, .btn-primary.is-btn-active {
    background: #ff1a47;
    box-shadow: 0 12px 28px rgba(255, 0, 51, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    transform: scale(1.12) translateY(-2px);
    --btn-shine-opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover, .btn-secondary.is-btn-active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 12px 28px rgba(255, 255, 255, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transform: scale(1.12) translateY(-2px);
    --btn-shine-opacity: 1;
}

/* --------------------------------------------------------------------------
   7. GitHub Banner Card with Stats & Watermark
   -------------------------------------------------------------------------- */
.bento-github-card {
    grid-column: span 3;
    grid-row: span 1;
    background: linear-gradient(135deg, rgba(22, 27, 34, 0.95) 0%, rgba(13, 17, 23, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    justify-content: flex-start;
    align-self: start;
    height: auto;
    max-height: fit-content;
    gap: 0.35rem;
    padding: 0.75rem 1rem 0.65rem 1rem;
}

.github-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.75rem;
}

.github-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.github-icon-bubble {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
    flex-shrink: 0;
}

.github-brand-text {
    display: flex;
    flex-direction: column;
}

.github-title-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.github-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.github-handle {
    font-family: var(--font-handwrite);
    font-size: 0.95rem;
    color: #ffd700;
    letter-spacing: 0.02em;
    transform: rotate(-3deg);
}

.github-sub {
    font-size: 0.74rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.github-quick-stats {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.stat-chip i {
    color: var(--accent-cyan);
    font-size: 0.68rem;
}

/* Minimal GitHub Green Contribution Grid */
.github-minimal-grid {
    display: grid;
    grid-template-columns: repeat(28, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 3px;
    width: 100%;
    padding: 0.35rem 0.5rem;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    margin-top: 0;
    margin-bottom: 0;
}

.gh-box {
    aspect-ratio: 1;
    border-radius: 2px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.gh-box.lvl-0 { background: rgba(255, 255, 255, 0.04); }
.gh-box.lvl-1 { background: #0e4429; }
.gh-box.lvl-2 { background: #006d32; }
.gh-box.lvl-3 { background: #2ea043; box-shadow: 0 0 3px rgba(46, 160, 67, 0.4); }
.gh-box.lvl-4 { background: #39d353; box-shadow: 0 0 6px rgba(57, 211, 83, 0.7); }

.bento-github-card:hover .gh-box.lvl-3,
.bento-github-card:hover .gh-box.lvl-4 {
    transform: scale(1.2);
}

/* --------------------------------------------------------------------------
   8. Dual Infinite Tech Stack Icon Marquee (One Left, One Right)
   -------------------------------------------------------------------------- */
.bento-tech-marquee {
    grid-column: span 3;
    grid-row: span 1;
    padding: 0.5rem 0.5rem;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
}

.tech-marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    padding: 8px 0;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 1) 12%, rgba(0, 0, 0, 1) 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 1) 12%, rgba(0, 0, 0, 1) 88%, transparent 100%);
}

.marquee-row {
    display: flex;
    overflow: visible;
    width: 100%;
    position: relative;
    padding: 2px 0;
}

.marquee-track-js {
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    overflow: visible;
}

.marquee-group {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    padding-right: 2.25rem;
    flex-shrink: 0;
    overflow: visible;
}

.marquee-group i {
    font-size: 2.1rem;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s ease;
    transform-origin: center center;
}

.marquee-group i.tech-active {
    transform: scale(1.32) !important;
    filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.95)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.7)) !important;
    position: relative;
    z-index: 10;
}

/* --------------------------------------------------------------------------
   9. Colored Social Block Cards with Handwritten Subtitles
   -------------------------------------------------------------------------- */
.bento-social-block {
    grid-column: span 2;
    grid-row: span 1;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
    padding: 0.85rem 0.5rem;
    border-radius: var(--radius-lg);
}

.bento-social-block i {
    font-size: 1.75rem;
    transition: transform 0.25s ease;
}

.bento-social-block:hover i {
    transform: scale(1.18);
}

.handwritten-sub {
    font-family: var(--font-handwrite);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transform: rotate(-2deg);
    line-height: 1;
}

/* Custom Colored Blocks */
.block-linkedin {
    background: #2867b2;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.block-linkedin .handwritten-sub { color: rgba(255, 255, 255, 0.9); }

.block-x {
    background: #1c1d1f;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.block-x .handwritten-sub { color: rgba(255, 255, 255, 0.65); }

.block-discord {
    background: #5865f2;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.block-discord .handwritten-sub { color: rgba(255, 255, 255, 0.9); }

.block-instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.block-instagram .handwritten-sub { color: rgba(255, 255, 255, 0.92); }

.block-youtube {
    background: #cc0000;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.block-youtube .handwritten-sub { color: rgba(255, 255, 255, 0.9); }

.block-reddit {
    background: #ff4500;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.block-reddit .handwritten-sub { color: rgba(255, 255, 255, 0.95); }
.block-reddit .funny-popover { border-color: #ff4500; }
.block-reddit .funny-popover::after { border-top-color: #ff4500; }



/* --------------------------------------------------------------------------
   11. MOBILE SINGLE-SCREEN LAYOUT (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    html, body {
        overflow: hidden !important;
        height: 100% !important;
    }

    .bento-viewport {
        padding: 0.4rem;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    .bento-container {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: auto auto auto auto;
        gap: 0.4rem;
        max-height: 100%;
        height: 100%;
    }

    .bento-card {
        padding: 0.65rem 0.75rem;
        border-radius: 16px;
        overflow: visible !important;
    }

    /* 1. Hero Card on Mobile */
    .bento-hero {
        grid-column: span 6;
        grid-row: span 1;
        gap: 0.35rem;
        padding: 0.75rem;
    }

    .avatar-wrapper {
        width: 44px;
        height: 44px;
    }

    .hero-name {
        font-size: 1.4rem;
    }

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

    .hero-bio {
        font-size: 0.75rem;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-location {
        font-size: 0.7rem;
    }

    .hero-footer {
        gap: 0.4rem;
        margin-top: 0.2rem;
    }

    .bento-btn {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
    }

    .badge-status {
        padding: 3px 8px;
        font-size: 0.65rem;
    }

    /* 2. GitHub Card on Mobile */
    .bento-github-card {
        grid-column: span 6;
        grid-row: span 1;
        padding: 0.55rem 0.65rem 0.45rem 0.65rem;
        justify-content: flex-start;
        align-self: start;
        height: auto;
        max-height: fit-content;
        gap: 0.3rem;
    }

    .github-card-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 0.4rem;
    }

    .github-icon-bubble {
        width: 32px;
        height: 32px;
        font-size: 1.05rem;
    }

    .github-title {
        font-size: 0.88rem;
    }

    .github-handle {
        font-size: 0.8rem;
    }

    .github-sub {
        font-size: 0.68rem;
    }

    .stat-chip {
        padding: 0.15rem 0.45rem;
        font-size: 0.65rem;
        gap: 0.2rem;
    }

    .github-minimal-grid {
        grid-template-columns: repeat(28, 1fr);
        gap: 2px;
        padding: 0.25rem 0.4rem;
        margin: 0;
    }

    .stat-item {
        font-size: 0.68rem;
    }

    /* 3. Tech Stack Marquee on Mobile */
    .bento-tech-marquee {
        grid-column: span 6;
        grid-row: span 1;
        padding: 0.5rem 0.4rem;
    }

    .marquee-track {
        gap: 1.25rem;
    }

    .marquee-track i {
        font-size: 1.5rem;
    }

    /* 4. Social Blocks on Mobile (2 columns x 3 rows) */
    .bento-social-block {
        grid-column: span 3;
        grid-row: span 1;
        flex-direction: column;
        justify-content: center;
        gap: 0.2rem;
        padding: 0.45rem 0.5rem;
        border-radius: 14px;
    }

    .bento-social-block i {
        font-size: 1.35rem;
    }

    .handwritten-sub {
        font-size: 0.8rem;
    }

    /* 5. Contact Card on Mobile */
    .bento-contact {
        grid-column: span 6;
        grid-row: span 1;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .contact-icon-bubble {
        width: 32px;
        height: 32px;
        font-size: 0.88rem;
        flex-shrink: 0;
    }

    .contact-label {
        font-size: 0.62rem;
    }

    .contact-email {
        font-size: 0.75rem;
    }

    .contact-action-badge {
        padding: 0.3rem 0.65rem;
        font-size: 0.7rem;
    }

    /* Mobile Full-Screen Expanded Modal */
    .modal-backdrop {
        padding: 0 !important;
    }

    .modal-container {
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-width: 100vw !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
}

/* Disable sticky hover highlights on touch devices when tapping/clicking links, but allow touch press popover */
@media (hover: none) {
    .bento-card:not(.is-touch-pressed):hover {
        transform: none;
        border-color: var(--card-border);
        background: var(--card-bg);
        box-shadow: var(--shadow-card);
    }

    .bento-card:not(.is-touch-pressed):hover .funny-popover {
        opacity: 0 !important;
        transform: translateX(-50%) translateY(4px) rotate(-4deg) scale(0.85) !important;
    }
}

/* --------------------------------------------------------------------------
   Modal Backdrop & Expanded About Card View
   -------------------------------------------------------------------------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(4, 7, 13, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    will-change: opacity;
}

.modal-backdrop.is-open {
    visibility: visible;
    pointer-events: auto;
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 860px;
    max-height: 88vh;
    background: var(--bg-main);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    will-change: transform;
    transform-origin: center center;
}

/* Home Page Matching Red & Cyan/Blue Background Radial Glows */
.modal-container::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-red) 0%, rgba(255, 0, 51, 0) 70%);
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

.modal-container::after {
    content: '';
    position: absolute;
    bottom: -120px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-cyan) 0%, rgba(0, 229, 255, 0) 70%);
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(255, 0, 51, 0.2);
    border-color: var(--accent-red);
    color: #fff;
    transform: rotate(90deg) scale(1.1);
}

.modal-header {
    position: relative;
    z-index: 1;
    padding: 1.75rem 2rem 1.25rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.modal-header-profile {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.modal-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
}

.modal-header-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.modal-name {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.modal-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.35rem;
}

.modal-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.modal-pill.pill-status {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--accent-green);
}

.modal-body {
    position: relative;
    z-index: 1;
    padding: 1.75rem 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-height: calc(88vh - 170px);
}

/* Custom Scrollbar for Modal */
.modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

.modal-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-section-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: 0.3px;
}

.modal-section-title i {
    color: var(--accent-cyan);
    font-size: 1.1rem;
}

/* Who Am I Grid */
.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.bio-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.bio-card strong {
    color: var(--text-primary);
}

.bio-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.highlight-item:hover {
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateX(4px);
}

.highlight-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.highlight-title {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.highlight-desc {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Projects Grid */
.modal-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.modal-project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.modal-project-card:hover {
    border-color: rgba(255, 0, 51, 0.4);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.project-link-icon {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.project-link-icon:hover {
    color: #fff;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.project-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.4rem;
}

.project-tech span {
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

/* Hackathons List */
.modal-hackathons-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.hackathon-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.hackathon-card:hover {
    border-color: rgba(0, 229, 255, 0.3);
}

.hackathon-badge {
    padding: 0.4rem 0.75rem;
    background: rgba(255, 0, 51, 0.12);
    border: 1px solid rgba(255, 0, 51, 0.3);
    color: var(--accent-red);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.hackathon-badge.badge-cyan {
    background: rgba(0, 229, 255, 0.12);
    border-color: rgba(0, 229, 255, 0.3);
    color: var(--accent-cyan);
}

.hackathon-details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hackathon-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.hackathon-meta {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.hackathon-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.hackathon-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.hackathon-tags span {
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

/* Modal Footer */
.modal-footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .modal-backdrop {
        padding: 0.75rem;
    }
    .modal-container {
        max-height: 94vh;
    }
    .modal-header {
        padding: 1.25rem 1.25rem 1rem 1.25rem;
    }
    .modal-body {
        padding: 1.25rem;
        gap: 1.5rem;
    }
    .bio-grid, .modal-projects-grid {
        grid-template-columns: 1fr;
    }
    .hackathon-card {
        flex-direction: column;
        gap: 0.75rem;
    }
    .modal-footer {
        padding: 1rem 1.25rem;
        flex-direction: column;
    }
}

/* --------------------------------------------------------------------------
   GPU Hardware Acceleration & Multi-Pass Blur Optimization when Modal Active
   -------------------------------------------------------------------------- */
body.modal-active {
    overflow: hidden !important;
}

.bento-viewport {
    transition: filter 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
}

.bento-viewport.is-paused {
    pointer-events: none !important;
    filter: blur(10px) brightness(0.45) saturate(0.85);
    transform: scale(0.96);
    opacity: 0.85;
}

body.modal-active .bento-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    will-change: auto !important;
}

/* ==========================================================================
   SPOTIFY MUSIC PLAYER WIDGET (BOTTOM-RIGHT CORNER HOVER POP-UP)
   ========================================================================== */

:root {
    --spotify-green: #1ed760;
    --spotify-green-glow: rgba(30, 215, 96, 0.4);
    --spotify-dark: #0d131f;
    --spotify-surface: rgba(16, 24, 39, 0.94);
    --spotify-border: rgba(30, 215, 96, 0.3);
}

.spotify-widget-container {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 9995;
    font-family: var(--font-body);
}

/* --------------------------------------------------------------------------
   Mini Resting Pill (Floating in bottom-right corner)
   -------------------------------------------------------------------------- */
.spotify-mini-pill {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 0.9rem 0.4rem 0.45rem;
    background: rgba(10, 15, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid var(--spotify-border);
    border-radius: 50px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.8),
                0 0 18px rgba(30, 215, 96, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
    will-change: transform, opacity;
    transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.2s ease,
                box-shadow 0.2s ease,
                opacity 0.14s ease;
    user-select: none;
    -webkit-user-select: none;
}

.spotify-widget-container:hover .spotify-mini-pill,
.spotify-widget-container.is-active .spotify-mini-pill {
    border-color: var(--spotify-green);
    box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.9),
                0 0 24px rgba(30, 215, 96, 0.35);
}

.spotify-mini-vinyl-wrap {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.spotify-mini-sticker {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.is-playing .spotify-mini-sticker {
    animation: spinVinyl 5s linear infinite;
}

.mini-vinyl-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #06090e;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.spotify-mini-meta {
    display: flex;
    flex-direction: column;
    min-width: 90px;
    max-width: 130px;
    overflow: hidden;
}

.spotify-mini-header {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.spotify-icon {
    font-size: 0.75rem;
    color: var(--spotify-green);
}

.spotify-mini-tag {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spotify-mini-song {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Mini Equalizer Bars */
.spotify-mini-eq {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
    padding: 0 2px;
}

.spotify-mini-eq .eq-bar {
    width: 2.5px;
    height: 4px;
    background: var(--spotify-green);
    border-radius: 2px;
    transition: height 0.2s ease;
}

.is-playing .spotify-mini-eq .eq-bar:nth-child(1) { animation: eqBounce 0.8s ease-in-out infinite alternate; }
.is-playing .spotify-mini-eq .eq-bar:nth-child(2) { animation: eqBounce 1.1s ease-in-out 0.2s infinite alternate; }
.is-playing .spotify-mini-eq .eq-bar:nth-child(3) { animation: eqBounce 0.7s ease-in-out 0.4s infinite alternate; }
.is-playing .spotify-mini-eq .eq-bar:nth-child(4) { animation: eqBounce 0.95s ease-in-out 0.1s infinite alternate; }

.spotify-mini-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--spotify-green);
    border: none;
    color: #06090e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(30, 215, 96, 0.4);
}

.spotify-mini-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px var(--spotify-green);
}

.spotify-mini-btn i {
    margin-left: 1px;
}

.is-playing .spotify-mini-btn i {
    margin-left: 0;
}

.spotify-mini-chevron {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
    margin-left: 0.15rem;
}

.spotify-widget-container:hover .spotify-mini-chevron {
    color: var(--spotify-green);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Full Glassmorphic Spotify Player Card (Instant Smooth Pop-Up)
   -------------------------------------------------------------------------- */
.spotify-card {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 320px;
    background: rgba(11, 17, 28, 0.94);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1.5px solid var(--spotify-border);
    border-radius: 24px;
    padding: 1.15rem;
    box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.9),
                0 0 35px rgba(30, 215, 96, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    transform-origin: bottom right;
    transform: translate3d(0, 10px, 0) scale(0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    will-change: transform, opacity;
    transition: opacity 0.16s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.16s;
    overflow: hidden;
    z-index: 2;
}

/* Instant trigger on Hover or Active Class */
.spotify-widget-container:hover .spotify-card,
.spotify-widget-container.is-active .spotify-card {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0) scale(1);
    pointer-events: auto;
}

.spotify-widget-container:hover .spotify-mini-pill,
.spotify-widget-container.is-active .spotify-mini-pill {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* Card Header */
.spotify-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.spotify-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spotify-glow-icon {
    font-size: 1.3rem;
    color: var(--spotify-green);
    filter: drop-shadow(0 0 8px rgba(30, 215, 96, 0.5));
}

.spotify-brand-text {
    display: flex;
    flex-direction: column;
}

.spotify-brand-title {
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.spotify-brand-status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pulsing-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--spotify-green);
    box-shadow: 0 0 6px var(--spotify-green);
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.6; }
}

.spotify-header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.spotify-icon-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    transition: all 0.2s ease;
}

.spotify-icon-btn:hover {
    background: rgba(30, 215, 96, 0.15);
    color: var(--spotify-green);
    border-color: rgba(30, 215, 96, 0.3);
}

.spotify-icon-btn.is-pinned {
    background: rgba(30, 215, 96, 0.25);
    color: var(--spotify-green);
    border-color: var(--spotify-green);
    box-shadow: 0 0 10px rgba(30, 215, 96, 0.3);
}

/* --------------------------------------------------------------------------
   Die-Cut Sticker & Vinyl Disc Section
   -------------------------------------------------------------------------- */
.spotify-artwork-area {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.6rem 0 0.4rem;
    perspective: 800px;
}

.spotify-sticker-diecut {
    position: relative;
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-2.5deg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.spotify-widget-container:hover .spotify-sticker-diecut {
    transform: rotate(0deg) translateY(-2px);
}

/* Vinyl Disc peeking from underneath */
.spotify-vinyl-disc {
    position: absolute;
    width: 154px;
    height: 154px;
    border-radius: 50%;
    background: radial-gradient(circle, #222 0%, #111 60%, #080808 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
    top: 8px;
    right: -14px;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.is-playing .spotify-vinyl-disc {
    right: -24px;
    animation: spinVinyl 4s linear infinite;
}

.vinyl-grooves {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.03),
                inset 0 0 0 8px rgba(0, 0, 0, 0.5),
                inset 0 0 0 12px rgba(255, 255, 255, 0.03);
}

/* Sticker Card */
.sticker-card {
    position: relative;
    width: 156px;
    height: 156px;
    border-radius: 16px;
    border: 3.5px solid #ffffff;
    background: #0f172a;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.7),
                0 0 20px rgba(30, 215, 96, 0.2);
    overflow: hidden;
    z-index: 2;
    transition: box-shadow 0.3s ease;
}

.sticker-highlight {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.08) 100%);
    pointer-events: none;
    z-index: 3;
}

.sticker-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.spotify-sticker-diecut:hover .sticker-img {
    transform: scale(1.04);
}

.sticker-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: var(--spotify-green);
    color: #06090e;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 4;
    letter-spacing: 0.03em;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Track Details & Heart Button
   -------------------------------------------------------------------------- */
.spotify-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.spotify-text-details {
    flex: 1;
    overflow: hidden;
}

.spotify-title-scroller {
    overflow: hidden;
    white-space: nowrap;
}

.spotify-track-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.spotify-track-artist {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-heart-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.15rem;
    padding: 4px;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease;
    flex-shrink: 0;
}

.spotify-heart-btn:hover {
    color: var(--spotify-green);
    transform: scale(1.15);
}

.spotify-heart-btn.is-liked {
    color: var(--spotify-green);
    animation: heartBounce 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   Progress Bar & Timestamps
   -------------------------------------------------------------------------- */
.spotify-progress-section {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.spotify-progress-bar-wrap {
    width: 100%;
    height: 14px;
    display: flex;
    align-items: center;
    padding: 4px 0;
}

.spotify-progress-rail {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    overflow: visible;
    transition: height 0.15s ease;
}

.spotify-progress-bar-wrap:hover .spotify-progress-rail {
    height: 6px;
}

.spotify-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--text-primary);
    border-radius: 4px;
    transition: background-color 0.15s ease;
}

.spotify-progress-bar-wrap:hover .spotify-progress-fill {
    background: var(--spotify-green);
    box-shadow: 0 0 10px var(--spotify-green);
}

.spotify-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    transition: transform 0.15s ease;
    pointer-events: none;
}

.spotify-progress-bar-wrap:hover .spotify-progress-handle {
    transform: translate(-50%, -50%) scale(1);
}

.spotify-time-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Playback Controls
   -------------------------------------------------------------------------- */
.spotify-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.2rem 0.5rem;
}

.spotify-controls-row.streamlined {
    justify-content: center;
    gap: 2.2rem;
    padding: 0.35rem 0;
}

.spotify-ctrl-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.spotify-ctrl-btn.secondary {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.spotify-ctrl-btn.secondary:hover {
    color: var(--text-primary);
}

.spotify-ctrl-btn.secondary.is-active {
    color: var(--spotify-green);
    text-shadow: 0 0 8px rgba(30, 215, 96, 0.4);
}

.spotify-ctrl-btn.step-btn {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.spotify-ctrl-btn.step-btn:hover {
    color: var(--spotify-green);
    transform: scale(1.15);
}

.spotify-ctrl-btn.step-btn:active {
    transform: scale(0.92);
}

.play-master-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--spotify-green);
    color: #06090e;
    font-size: 1.05rem;
    box-shadow: 0 4px 16px rgba(30, 215, 96, 0.4);
}

.play-master-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--spotify-green);
    background: #22f06b;
}

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

.play-master-btn i {
    margin-left: 2px;
}

.is-playing .play-master-btn i {
    margin-left: 0;
}

/* --------------------------------------------------------------------------
   Bottom Tooling: Volume & Equalizer
   -------------------------------------------------------------------------- */
.spotify-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    gap: 0.6rem;
}

.spotify-volume-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
}

.spotify-vol-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    transition: color 0.2s ease;
}

.spotify-vol-btn:hover {
    color: var(--spotify-green);
}

.spotify-vol-slider-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    max-width: 90px;
}

.spotify-vol-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    outline: none;
    transition: background 0.2s ease;
}

.spotify-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.spotify-vol-slider:hover::-webkit-slider-thumb {
    transform: scale(1.25);
    background: var(--spotify-green);
}

.spotify-footer-eq {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.spotify-footer-eq .eq-col {
    width: 2px;
    height: 3px;
    background: var(--spotify-green);
    border-radius: 2px;
    transition: height 0.2s ease;
}

.is-playing .spotify-footer-eq .eq-col:nth-child(1) { animation: eqBounce 0.7s ease-in-out infinite alternate; }
.is-playing .spotify-footer-eq .eq-col:nth-child(2) { animation: eqBounce 1.2s ease-in-out 0.15s infinite alternate; }
.is-playing .spotify-footer-eq .eq-col:nth-child(3) { animation: eqBounce 0.85s ease-in-out 0.3s infinite alternate; }
.is-playing .spotify-footer-eq .eq-col:nth-child(4) { animation: eqBounce 1.05s ease-in-out 0.1s infinite alternate; }
.is-playing .spotify-footer-eq .eq-col:nth-child(5) { animation: eqBounce 0.65s ease-in-out 0.25s infinite alternate; }

.spotify-track-counter {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Queue / Playlist Drawer (Slide-over inside card)
   -------------------------------------------------------------------------- */
.spotify-queue-drawer {
    position: absolute;
    inset: 0;
    background: rgba(11, 17, 28, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-radius: 24px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s;
    z-index: 10;
}

.spotify-queue-drawer.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.queue-header h5 {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    color: var(--text-primary);
}

.queue-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.queue-close-btn:hover {
    color: var(--text-primary);
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    overflow-y: auto;
    max-height: 310px;
    padding-right: 4px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.55rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.queue-item:hover {
    background: rgba(30, 215, 96, 0.1);
    border-color: rgba(30, 215, 96, 0.3);
}

.queue-item.is-active {
    background: rgba(30, 215, 96, 0.18);
    border-color: var(--spotify-green);
}

.queue-thumb {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.queue-meta {
    flex: 1;
    overflow: hidden;
}

.queue-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item.is-active .queue-title {
    color: var(--spotify-green);
}

.queue-artist {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 1px 5px;
    border-radius: 4px;
    flex-shrink: 0;
}

.queue-item.is-active .queue-tag {
    background: var(--spotify-green);
    color: #06090e;
    font-weight: 700;
}

/* Animations */
@keyframes spinVinyl {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes eqBounce {
    0% { height: 3px; }
    50% { height: 12px; }
    100% { height: 6px; }
}

/* --------------------------------------------------------------------------
   Responsive Rules for Spotify Widget
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .spotify-widget-container {
        bottom: 12px;
        right: 12px;
    }

    .spotify-card {
        width: min(310px, calc(100vw - 24px));
        padding: 1rem;
        gap: 0.75rem;
    }

    .spotify-sticker-diecut {
        width: 144px;
        height: 144px;
    }

    .sticker-card {
        width: 132px;
        height: 132px;
    }

    .spotify-vinyl-disc {
        width: 130px;
        height: 130px;
    }

    .spotify-mini-pill {
        padding: 0.35rem 0.75rem 0.35rem 0.4rem;
    }

    .spotify-mini-meta {
        max-width: 100px;
    }
}


/* Keep the mobile bento on one screen without the overlapping music widget. */
@media (max-width: 768px) {
    .spotify-widget-container { display: none !important; }
    .bento-container {
        min-height: 0;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-template-rows: auto auto auto repeat(3, minmax(0, 1fr)) auto;
    }
    .bento-card { min-width: 0; min-height: 0; }
    .hero-title, .hero-location, .github-sub { overflow-wrap: anywhere; }
    .github-card-top, .github-title-row { flex-wrap: wrap; }
    .github-quick-stats { flex-shrink: 0; }
    .bento-tech-marquee { overflow: hidden !important; }
    .hero-footer { flex-wrap: wrap; }
}

/* Short phones need smaller decoration, not a scrollable page. */
@media (max-width: 768px) and (max-height: 650px) {
    .bento-viewport { padding: 5px; }
    .bento-container { gap: 5px; }
    .bento-card { padding: 5px 8px; }
    .bento-hero { gap: 3px; }
    .avatar-wrapper { width: 32px; height: 32px; }
    .hero-name { font-size: 1.2rem; }
    .hero-expand-badge { font-size: 0.85rem; }
    .hero-bio { -webkit-line-clamp: 1; }
    .tech-marquee-wrapper { gap: 4px; padding: 2px 0; }
    .marquee-group i { font-size: 1.4rem; }
    .bento-social-block i { font-size: 1.1rem; }
    .handwritten-sub { font-size: 0.7rem; }
}
