* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

html {
    background-color: #000000;
    color-scheme: dark;
}

body {
    font-family: 'JetBrains Mono', 'Fira Mono', 'Menlo', 'Consolas', monospace;
    line-height: 1.7;
    color: #eaeaea;
    background: transparent;
    letter-spacing: 0.01em;
    cursor: none !important; /* Hide default cursor */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Hide all cursor variations */
*, *:hover, *:active, *:focus {
    cursor: none !important;
}

/* Override specific interactive elements */
a, button, input, textarea, select, [role="button"], [onclick], .clickable {
    cursor: none !important;
}

/* Override any remaining pointer cursors */
[style*="cursor: pointer"], [style*="cursor:pointer"] {
    cursor: none !important;
}

/* Override range slider cursors */
input[type="range"],
input[type="range"]::-webkit-slider-thumb,
input[type="range"]::-moz-range-thumb,
input[type="range"]::-ms-thumb {
    cursor: none !important;
}

/* Custom Cursor - Palantir/Futuristic Tech Style */
.custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease;
    perspective: 200px;
    transform-style: preserve-3d;
}

/* Cursor container for 3D rotation */
.cursor-3d-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    animation: cursorOrbit 8s linear infinite;
}

@keyframes cursorOrbit {
    0% { transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg); }
    25% { transform: translate(-50%, -50%) rotateX(5deg) rotateY(90deg); }
    50% { transform: translate(-50%, -50%) rotateX(0deg) rotateY(180deg); }
    75% { transform: translate(-50%, -50%) rotateX(-5deg) rotateY(270deg); }
    100% { transform: translate(-50%, -50%) rotateX(0deg) rotateY(360deg); }
}

/* Corner Brackets Border */
.corner-brackets {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9998;
}

.corner-brackets::before,
.corner-brackets::after,
.corner-brackets .bottom::before,
.corner-brackets .bottom::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: rgba(139, 233, 253, 0.5);
    border-style: solid;
    border-width: 0;
    transition: all 0.15s ease-out;
}

/* Active/held state - brackets pulse and expand */
.corner-brackets.active::before,
.corner-brackets.active::after,
.corner-brackets.active .bottom::before,
.corner-brackets.active .bottom::after {
    border-color: rgba(139, 233, 253, 1);
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 8px rgba(139, 233, 253, 0.8));
}

.corner-brackets.active::before {
    top: 10px;
    left: 10px;
}

.corner-brackets.active::after {
    top: 10px;
    right: 10px;
}

.corner-brackets.active .bottom::before {
    bottom: 10px;
    left: 10px;
}

.corner-brackets.active .bottom::after {
    bottom: 10px;
    right: 10px;
}

/* Top-left */
.corner-brackets::before {
    top: 15px;
    left: 15px;
    border-top-width: 2px;
    border-left-width: 2px;
}

/* Top-right */
.corner-brackets::after {
    top: 15px;
    right: 15px;
    border-top-width: 2px;
    border-right-width: 2px;
}

/* Bottom-left */
.corner-brackets .bottom::before {
    bottom: 15px;
    left: 15px;
    border-bottom-width: 2px;
    border-left-width: 2px;
}

/* Bottom-right */
.corner-brackets .bottom::after {
    bottom: 15px;
    right: 15px;
    border-bottom-width: 2px;
    border-right-width: 2px;
}

/* Core dot - pulsing center */
.custom-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    background: #8be9fd;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 8px #8be9fd,
        0 0 16px rgba(139, 233, 253, 0.6),
        0 0 24px rgba(139, 233, 253, 0.3);
    animation: corePulse 0.6s steps(3) infinite;
}

/* Outer scanning ring */
.custom-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: rgba(139, 233, 253, 0.9);
    border-right-color: rgba(139, 233, 253, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: scanRing 0.8s steps(8) infinite;
    box-shadow: 
        0 0 8px rgba(139, 233, 253, 0.4),
        inset 0 0 6px rgba(139, 233, 253, 0.1);
}

/* Secondary counter-rotating ring - HIDDEN */
.cursor-ring-outer {
    display: none;
}

.cursor-ring-outer::before {    
    display: none;
}

/* Corner brackets - 3D depth effect */
.cursor-bracket {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: #8be9fd;
    border-style: solid;
    border-width: 0;
    opacity: 0.9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    box-shadow: 
        0 0 6px rgba(139, 233, 253, 0.8),
        0 0 12px rgba(139, 233, 253, 0.4);
}

/* Individual bracket animations - snappy angular movements */
.cursor-bracket.tl {
    border-top-width: 2px;
    border-left-width: 2px;
    transform: translate(-50%, -50%) translate(-14px, -14px);
    animation: bracketSnapTL 1.5s steps(4) infinite;
}

.cursor-bracket.tr {
    border-top-width: 2px;
    border-right-width: 2px;
    transform: translate(-50%, -50%) translate(14px, -14px);
    animation: bracketSnapTR 1.5s steps(4) infinite;
}

.cursor-bracket.bl {
    border-bottom-width: 2px;
    border-left-width: 2px;
    transform: translate(-50%, -50%) translate(-14px, 14px);
    animation: bracketSnapBL 1.5s steps(4) infinite;
}

.cursor-bracket.br {
    border-bottom-width: 2px;
    border-right-width: 2px;
    transform: translate(-50%, -50%) translate(14px, 14px);
    animation: bracketSnapBR 1.5s steps(4) infinite;
}

@keyframes bracketSnapTL {
    0%, 100% { transform: translate(-50%, -50%) translate(-14px, -14px) rotateX(0deg) rotateY(0deg); }
    25% { transform: translate(-50%, -50%) translate(-16px, -12px) rotateX(-25deg) rotateY(25deg); }
    50% { transform: translate(-50%, -50%) translate(-14px, -14px) rotateX(0deg) rotateY(0deg); }
    75% { transform: translate(-50%, -50%) translate(-12px, -16px) rotateX(25deg) rotateY(-25deg); }
}

@keyframes bracketSnapTR {
    0%, 100% { transform: translate(-50%, -50%) translate(14px, -14px) rotateX(0deg) rotateY(0deg); }
    25% { transform: translate(-50%, -50%) translate(12px, -12px) rotateX(-25deg) rotateY(-25deg); }
    50% { transform: translate(-50%, -50%) translate(14px, -14px) rotateX(0deg) rotateY(0deg); }
    75% { transform: translate(-50%, -50%) translate(16px, -16px) rotateX(25deg) rotateY(25deg); }
}

@keyframes bracketSnapBL {
    0%, 100% { transform: translate(-50%, -50%) translate(-14px, 14px) rotateX(0deg) rotateY(0deg); }
    25% { transform: translate(-50%, -50%) translate(-12px, 16px) rotateX(25deg) rotateY(25deg); }
    50% { transform: translate(-50%, -50%) translate(-14px, 14px) rotateX(0deg) rotateY(0deg); }
    75% { transform: translate(-50%, -50%) translate(-16px, 12px) rotateX(-25deg) rotateY(-25deg); }
}

@keyframes bracketSnapBR {
    0%, 100% { transform: translate(-50%, -50%) translate(14px, 14px) rotateX(0deg) rotateY(0deg); }
    25% { transform: translate(-50%, -50%) translate(16px, 12px) rotateX(25deg) rotateY(-25deg); }
    50% { transform: translate(-50%, -50%) translate(14px, 14px) rotateX(0deg) rotateY(0deg); }
    75% { transform: translate(-50%, -50%) translate(12px, 16px) rotateX(-25deg) rotateY(25deg); }
}

/* Targeting lines */
.cursor-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(139, 233, 253, 0.6), transparent);
    transition: all 0.2s ease;
}

.cursor-line.horizontal {
    width: 50px;
    height: 1px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: lineFlicker 2s ease-in-out infinite;
}

.cursor-line.vertical {
    width: 1px;
    height: 50px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(180deg, transparent, rgba(139, 233, 253, 0.6), transparent);
    animation: lineFlicker 2s ease-in-out infinite 0.5s;
}

/* Hover state - expanded targeting mode */
.custom-cursor.hover {
    width: 16px;
    height: 16px;
}

.custom-cursor.hover::after {
    width: 6px;
    height: 6px;
    box-shadow: 
        0 0 15px #8be9fd,
        0 0 30px rgba(139, 233, 253, 0.6),
        0 0 45px rgba(139, 233, 253, 0.4);
}

.custom-cursor.hover::before {
    width: 26px;
    height: 26px;
    border-color: #8be9fd;
}

.custom-cursor.hover .cursor-ring-outer {
    width: 38px;
    height: 38px;
    border-color: rgba(139, 233, 253, 0.5);
}

.custom-cursor.hover .cursor-bracket {
    opacity: 1;
    box-shadow: 
        0 0 10px rgba(139, 233, 253, 1),
        0 0 20px rgba(139, 233, 253, 0.6),
        0 0 30px rgba(139, 233, 253, 0.3);
}

.custom-cursor.hover .cursor-bracket.tl {
    animation: bracketHoverTL 0.4s steps(2) infinite;
}

.custom-cursor.hover .cursor-bracket.tr {
    animation: bracketHoverTR 0.4s steps(2) infinite;
}

.custom-cursor.hover .cursor-bracket.bl {
    animation: bracketHoverBL 0.4s steps(2) infinite;
}

.custom-cursor.hover .cursor-bracket.br {
    animation: bracketHoverBR 0.4s steps(2) infinite;
}

@keyframes bracketHoverTL {
    0%, 100% { transform: translate(-50%, -50%) translate(-18px, -18px) rotateX(-35deg) rotateY(35deg); }
    50% { transform: translate(-50%, -50%) translate(-22px, -22px) rotateX(-50deg) rotateY(50deg); }
}

@keyframes bracketHoverTR {
    0%, 100% { transform: translate(-50%, -50%) translate(18px, -18px) rotateX(-35deg) rotateY(-35deg); }
    50% { transform: translate(-50%, -50%) translate(22px, -22px) rotateX(-50deg) rotateY(-50deg); }
}

@keyframes bracketHoverBL {
    0%, 100% { transform: translate(-50%, -50%) translate(-18px, 18px) rotateX(35deg) rotateY(35deg); }
    50% { transform: translate(-50%, -50%) translate(-22px, 22px) rotateX(50deg) rotateY(50deg); }
}

@keyframes bracketHoverBR {
    0%, 100% { transform: translate(-50%, -50%) translate(18px, 18px) rotateX(35deg) rotateY(-35deg); }
    50% { transform: translate(-50%, -50%) translate(22px, 22px) rotateX(50deg) rotateY(-50deg); }
}

.custom-cursor.hover .cursor-line.horizontal {
    width: 100px;
}

.custom-cursor.hover .cursor-line.vertical {
    height: 100px;
}

/* Clicked state - lock-on effect */
.custom-cursor.clicked::after {
    animation: lockOnPulse 0.3s ease-out;
    box-shadow: 
        0 0 20px #8be9fd,
        0 0 40px rgba(139, 233, 253, 0.8),
        0 0 60px rgba(139, 233, 253, 0.6);
}

.custom-cursor.clicked::before {
    animation: lockOnRing 0.3s ease-out;
}

.custom-cursor.clicked .cursor-bracket {
    border-color: #fff;
    box-shadow: 0 0 8px #8be9fd;
}

/* Animations */
@keyframes corePulse {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes scanRing {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotateCursor {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotateCursorReverse {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes lineFlicker {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.3;
    }
}

@keyframes lockOnPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes lockOnRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        border-width: 1px;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        border-width: 2px;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        border-width: 1px;
    }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Hero container for index page - top aligned compact layout */
.main-content .hero:only-of-type .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Hero container for subpages - simple layout */
.main-content .hero:not(:only-of-type) .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Hero Section */
.hero {
    background: transparent;
    color: #eaeaea;
    padding: 8px 0;
    text-align: center;
}

/* Index page hero - top aligned like other pages */
.main-content .hero:only-of-type {
    padding: 4px 0;
}

/* Subpage hero - compact */
.main-content .hero:not(:only-of-type) {
    padding: 4px 0;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.hero p {
    font-size: 1.05rem;
    color: #8be9fd;
    margin-bottom: 0;
}

/* Sections */
section {
    padding: 8px 0;
}

.section-title {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #eaeaea;
    font-weight: 600;
    border-left: 3px solid #8be9fd;
    padding-left: 0.75rem;
}

/* About Section (merged with PFP) */

.about-content {
    display: block;
}

.about-image {
    text-align: left;
    margin-bottom: 0.5rem;
}

/* PFP Section */
.pfp-section {
    background: transparent;
    padding: 0.5rem 0 0.5rem 0;
}

/* PFP Filter Buttons */
.pfp-filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 0.25rem 0;
}

.filter-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(139, 233, 253, 0.3);
    padding: 0;
    cursor: none !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.filter-btn:hover {
    border-color: #8be9fd;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(139, 233, 253, 0.3);
}

.filter-btn:hover img {
    transform: scale(1.1);
}

.filter-btn.active {
    border-color: #8be9fd;
    box-shadow: 
        0 0 20px rgba(139, 233, 253, 0.4),
        inset 0 0 20px rgba(139, 233, 253, 0.1);
    background: rgba(139, 233, 253, 0.05);
}

.filter-btn.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, #8be9fd, transparent, #8be9fd);
    z-index: -1;
    animation: rotate-border 2s linear infinite;
}

@keyframes rotate-border {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pfp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
}

.pfp-card {
    background: #000000;
    padding: 0;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #232323;
    box-shadow: none;
    transition: border 0.2s, transform 0.2s;
    cursor: none !important;
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
}

.pfp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 233, 253, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.pfp-card:hover {
    border: 1px solid #8be9fd;
}

.pfp-card:hover::before {
    left: 100%;
    transform: translateY(-2px);
}

.pfp-card img,
.pfp-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 8px;
    margin: 0;
}

/* Drag and drop effects for all PFP cards */
.pfp-card.drag-over {
    border: 2px solid #8be9fd !important;
    transform: scale(1.05) !important;
    box-shadow: 0 0 20px rgba(139, 233, 253, 0.4);
}

@keyframes pfpSwap {
    0% { transform: scale(1); }
    50% { transform: scale(1.1) rotate(2deg); }
    100% { transform: scale(1); }
}



/* PFP Popup */
.pfp-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.pfp-popup.active {
    display: flex;
}

.pfp-popup-content {
    background: #000000;
    border: 1px solid #232323;
    border-radius: 8px;
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pfp-popup img,
.pfp-popup video {
    width: auto;
    height: auto;
    max-width: 70vw;
    max-height: 60vh;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.pfp-popup h3 {
    color: #8be9fd;
    margin-bottom: 0.5rem;
}

.pfp-popup .artist {
    color: #bdbdbd;
    margin-bottom: 1rem;
}

.pfp-popup .description {
    color: #eaeaea;
    margin-bottom: 1.5rem;
}

.pfp-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #232323;
    color: #8be9fd;
    font-size: 1.5rem;
    cursor: none !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pfp-close:hover {
    background: rgba(139, 233, 253, 0.2);
    border-color: #8be9fd;
}

/* PFP Name Container with Inline Icons */
.pfp-name-container {
    text-align: center;
    margin-bottom: 0.5rem;
}

.pfp-icons-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.4rem;
}

.pfp-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pfp-icon-link:hover {
    background: rgba(139, 233, 253, 0.1);
    transform: scale(1.1);
}

.pfp-icon {
    width: 24px !important;
    height: 24px !important;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    max-width: 24px !important;
    max-height: 24px !important;
    display: inline-block;
}

.pfp-icon-link:hover .pfp-icon {
    opacity: 1;
}

.pfp-name-container h3 {
    margin: 0;
    text-align: center;
}

.enlarged-pic-container {
    display: none;
    margin-bottom: 1rem;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
}

.enlarged-pic-container.active {
    display: flex;
}

.enlarged-pic-info {
    flex: 1;
    padding-top: 0.5rem;
}

.enlarged-pic-info h4 {
    color: #8be9fd;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.enlarged-pic-info p {
    color: #bdbdbd;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.enlarged-pic-info a {
    color: #8be9fd;
    text-decoration: none;
    font-weight: 500;
}

.enlarged-pic-info a:hover {
    text-decoration: underline;
}

.profile-pics-row {
    display: none;
}

.profile-pic {
    display: none;
}

.profile-pic:hover {
    border: 1px solid #8be9fd;
    box-shadow: 0 0 0 2px #8be9fd33;
}

.profile-pic.enlarged {
    width: 100%;
    aspect-ratio: 1;
    min-width: 160px;
    max-width: 240px;
    border-color: #8be9fd;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: #bdbdbd;
}

/* Quote Block */
.quote-block {
    background: #000000;
    border: 1px solid #232323;
    border-left: 3px solid #8be9fd;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin: 1.5rem 0;
    font-style: italic;
}

.quote-text {
    color: #eaeaea;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.quote-attribution {
    color: #888;
    font-size: 0.85rem;
    font-style: normal;
}

.quote-attribution a {
    color: #8be9fd;
    text-decoration: none;
}

.quote-attribution a:hover {
    text-decoration: underline;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    grid-auto-flow: dense;
}

.skill-card {
    background: #000000;
    padding: 1rem;
    border-radius: 8px;
    text-align: left;
    border: 1px solid #232323;
    box-shadow: none;
    transition: border 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    height: 100px;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 233, 253, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-icon {
    display: none;
}

.skill-image {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
}

.skill-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skill-header {
    display: none;
}

.skill-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    min-width: 0;
}

.skill-card h3 {
    margin: 0 0 0.2rem 0;
    color: #8be9fd;
    font-size: clamp(0.85rem, 2vw, 1rem);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-card p {
    margin: 0;
    color: #bdbdbd;
    font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-card {
    cursor: grab;
    user-select: none;
}

.skill-card:active {
    cursor: grabbing;
}

.skill-card:hover {
    border: 1px solid #8be9fd;
    transform: translateY(-1px);
}

.skill-card.dragging {
    opacity: 0.5;
    transform: rotate(2deg) scale(0.95);
    z-index: 1000;
}

.skill-card.drag-over {
    border: 2px solid #8be9fd;
    background: rgba(139, 233, 253, 0.05);
}

/* Skill Popup */
.skill-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.skill-popup.active {
    display: flex;
}

.skill-popup-content {
    background: #000000;
    border: 1px solid #232323;
    border-radius: 8px;
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    width: 400px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.skill-popup-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skill-popup h3 {
    color: #8be9fd;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.skill-popup .description {
    color: #bdbdbd;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.skill-popup .link-button {
    background: #232323;
    border: 1px solid #8be9fd;
    color: #8be9fd;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.2s;
}

.skill-popup .link-button:hover {
    background: #8be9fd;
    color: #000;
}

.skill-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #8be9fd;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.skill-close:hover {
    color: #8be9fd;
}

/* KoL Badge Large Card */
.kol-badge {
    grid-column: span 3 !important;
    grid-row: span 2 !important;
    height: 220px !important;
    background: #000000 !important;
    border: 1px solid #232323;
    padding: 1rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0;
    position: relative;
    overflow: hidden;
    cursor: grab;
    transition: border 0.2s, transform 0.2s;
}

.kol-badge:active {
    cursor: grabbing;
}

.kol-badge.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.kol-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.kol-image {
    filter: invert(1) hue-rotate(180deg);
    border: 0;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.skill-card a:hover {
    border: 1px solid #8be9fd;
}

/* NFT Section */
.nfts {
    background: #000000;
    padding: 0.5rem 0 0.5rem 0;
}

.nft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-top: 0.5rem;
}

.nft-card {
    background: #000000;
    border-radius: 8px;
    padding: 1rem 0.8rem;
    border: 1px solid #232323;
    box-shadow: none;
    transition: border 0.2s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nft-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 233, 253, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.nft-card:hover {
    border: 1px solid #8be9fd;
}

.nft-card:hover::before {
    left: 100%;
}

.nft-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.nft-logo {
    width: 24px;
    height: 24px;
    border-radius: 0;
    background: #161616;
    object-fit: cover;
    border: 1px solid #232323;
}

.nft-title {
    color: #8be9fd;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.2rem 0;
}

.nft-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.nft-stat {
    background: #111;
    padding: 0.4rem 0.5rem;
    border-radius: 0;
    border: 1px solid #232323;
}

.nft-stat-label {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 0.1rem;
}

.nft-stat-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #8be9fd;
    line-height: 1.2;
    word-break: break-word;
}

.nft-description {
    color: #bdbdbd;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.nft-links {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.nft-link {
    color: #8be9fd;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid #232323;
    border-radius: 0;
    transition: border 0.2s;
}

.nft-link:hover {
    border: 1px solid #8be9fd;
}

.loading {
    color: #888;
    font-style: italic;
}

/* Urbit Embed Section */
.urbit-embed {
    background: #000000;
    padding: 32px 0;
}

.urbit-container {
    background: #000000;
    border-radius: 8px;
    padding: 1.2rem 1rem;
    border: 1px solid #232323;
}

.urbit-header {
    text-align: left;
    margin-bottom: 1.2rem;
}

.urbit-title {
    color: #8be9fd;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.urbit-subtitle {
    color: #888;
    font-size: 0.95rem;
}

.urbit-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #232323;
    background: #000000;
}

.urbit-iframe {
    width: 375px;
    height: 667px;
    border: none;
    border-radius: 0;
    transform: scaleX(2.2) scaleY(1.1) translate(0px, 0px);
    transform-origin: top left;
    margin: 0;
}

.urbit-link {
    text-align: left;
    margin-top: 0.7rem;
}

.urbit-link a {
    color: #8be9fd;
    text-decoration: none;
    font-weight: 500;
    padding: 0.3rem 0.7rem;
    border: 1px solid #232323;
    border-radius: 0;
    transition: border 0.2s;
}

.urbit-link a:hover {
    border: 1px solid #8be9fd;
}

/* Dual Card Container */
.dual-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 1rem auto 1rem auto;
    padding: 0 1rem;
}

.dual-card-container > div {
    display: flex;
    flex-direction: column;
}

.dual-card-container .remilia-id,
.dual-card-container .kol-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.dual-card-container .card-container,
.dual-card-container .kol-badge {
    width: 100%;
    box-sizing: border-box;
    flex: 1;
}

.dual-card-container .remilia-id {
    max-width: none !important;
    width: 100% !important;
    margin: 0;
}

.dual-card-container .card-wrapper {
    max-width: none !important;
    width: 100% !important;
    margin: 0;
}

/* Remilia card matching reference design */
.dual-card-container .card-container {
    padding: 0.5rem 0.6rem;
    display: flex;
    flex-direction: column;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

/* Header - centered cyan text */
.dual-card-container .card-header {
    text-align: center;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.4rem;
}

.dual-card-container .card-header span {
    font-size: 0.75rem;
    color: #8be9fd;
    font-weight: bold;
    letter-spacing: 0.05em;
}

/* Main content - profile left, info right */
.dual-card-container .card-main {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

/* Profile picture - larger, left side */
.dual-card-container .profile-picture {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dual-card-container .profile-picture-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Right section - info and QR */
.dual-card-container .card-right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

/* User info rows */
.dual-card-container .user-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.dual-card-container .user-info .section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.15rem;
}

.dual-card-container .user-info .section span:first-child {
    color: #888;
    min-width: 28px;
}

.dual-card-container .user-info .section span:last-child {
    color: #eaeaea;
}

/* QR row - QR code and description side by side */
.dual-card-container .qr-row {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

.dual-card-container .qr-code {
    flex-shrink: 0;
}

.dual-card-container .qr-code svg {
    width: 32px;
    height: 32px;
    filter: invert(1);
}

.dual-card-container .card-description {
    font-size: 0.5rem;
    color: #666;
    line-height: 1.4;
    flex: 1;
}

/* Footer */
.dual-card-container .footer {
    font-size: 0.55rem;
    padding: 0.3rem 0 0 0;
    margin-top: 0.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
}

.dual-card-container .footer .not-for-sale {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.1rem 0.3rem;
    font-size: 0.5rem;
}

/* KoL Container */
.dual-card-container .kol-container {
    flex: 1;
    margin: 0;
}

/* KoL Badge compact */
.dual-card-container .kol-badge {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.4rem;
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
}

.dual-card-container .kol-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.dual-card-container .kol-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 2px;
}

/* Original Remilia ID Card Section (for other uses) */
.remilia-id {
    max-width: 420px;
    width: fit-content;
    margin: 0 auto;
}

.card-wrapper {
    max-width: 400px;
    margin: 0 auto;
    cursor: none !important;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.card-wrapper:hover {
    transform: translateY(-3px);
}

.card-wrapper:hover .card-container {
    border: 1px solid #8be9fd;
}

.card-container {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #232323;
    border-radius: 8px;
    padding: 1rem;
    color: #eaeaea;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.card-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 233, 253, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.card-wrapper:hover .card-container::before {
    left: 100%;
}

.card-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.card-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.card-header {
    font-size: 0.75rem;
    color: #8be9fd;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 0.3rem;
}

.profile-picture {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #8be9fd;
    box-shadow: 0 0 15px rgba(139, 233, 253, 0.2);
    flex-shrink: 0;
}

.profile-picture-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.card-info {
    flex: 1;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.user-info .section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.user-info .section span:first-child {
    color: #888;
    font-weight: 500;
    min-width: 30px;
}

.user-info .section span:last-child,
.username-text {
    color: #8be9fd;
    font-weight: 600;
}

.card-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.code {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(139, 233, 253, 0.03);
    border-radius: 6px;
    border: 1px solid #232323;
}

.code svg {
    filter: invert(1);
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.code p {
    font-size: 0.7rem;
    color: #bdbdbd;
    line-height: 1.3;
    margin: 0;
    font-style: italic;
    max-width: 200px;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.6rem;
    color: #666;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.silver-plaque {
    position: absolute;
    bottom: -15px;
    right: 1rem;
    background: linear-gradient(45deg, #2a2a2a, #3a3a3a);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    border: 1px solid #444;
    font-size: 0.6rem;
    color: #ccc;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

/* Main content area */
.main-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* Radbro Filler Section */
.radbro-filler-container {
    flex: 1 1 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
    padding: 0 1rem;
    position: relative;
}

.radbro-filler {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
    opacity: 0.9;
    transition: opacity 0.15s ease, transform 0.1s ease;
    image-rendering: pixelated;
    filter: invert(1);
    transform: scale(2);
    transform-origin: bottom center;
}

.radbro-filler-container.hidden {
    display: none;
}

/* CEG Filler Section */
.ceg-filler-container {
    flex: 1 1 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
    padding: 0;
}

.ceg-filler {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
    opacity: 0.9;
}

.ceg-filler-container.hidden {
    display: none;
}

/* Footer */
footer {
    background: transparent;
    color: #bdbdbd;
    text-align: left;
    padding: 0.15rem 0;
    flex-shrink: 0;
}

/* Animations removed for minimalism */

/* Lazy Loading Styles */
.pfp-card img.lazy,
.pfp-card video.lazy {
    filter: blur(2px);
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.pfp-card img.loaded,
.pfp-card video.loaded {
    filter: none;
}

/* Loading placeholder animation */
.pfp-card img[src*="data:image/svg+xml"] {
    background: linear-gradient(90deg, #111 25%, #222 50%, #111 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 2s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Performance optimization for animations */
.pfp-card, .filter-btn, .skill-card, .nft-card {
    will-change: transform;
}

.pfp-card:hover, .filter-btn:hover {
    transform: translateZ(0); /* Force hardware acceleration */
}

/* Preload indicator */
.preloading {
    position: relative;
}

.preloading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #8be9fd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
/* Large screen adjustments - maintain top alignment */
@media (min-width: 1200px) {
    .hero {
        padding: 6px 0; /* Slightly more padding on large screens */
    }
}

/* Ultra-wide/heavy zoom out adjustments - maintain top alignment */
@media (min-width: 1400px) and (min-height: 800px) {
    .hero {
        padding: 8px 0; /* Still compact but with minimal breathing room */
    }
}

/* Tablet and Medium Screen Adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero {
        padding: 4px 0; /* Maintain compact padding on tablets */
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-flow: dense;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    /* Mobile Remilia ID Card */
    .dual-card-container .card-container {
        padding: 0.75rem;
    }
    
    .dual-card-container .card-main {
        gap: 0.5rem;
    }
    
    .dual-card-container .profile-picture {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }
    
    .dual-card-container .card-header span {
        font-size: 0.85rem;
    }
    
    .dual-card-container .user-info .section {
        font-size: 0.7rem;
    }
    
    .dual-card-container .card-right {
        display: block; /* Keep QR visible on mobile */
    }
    
    .dual-card-container .card-motto {
        display: block; /* Keep motto visible */
    }
    
    .dual-card-container .card-description {
        display: none; /* Hide Chinese description on mobile */
    }
    
    .dual-card-container .footer {
        font-size: 0.6rem;
        padding: 0.4rem 0 0 0;
        margin-top: 0.4rem;
    }
    
    .hero {
        padding: 2px 0; /* Very minimal padding on mobile */
    }
    
    .hero h1 {
        font-size: 1.3rem;
    }
    .section-title {
        font-size: 1.1rem;
    }
    .container {
        padding: 0 8px;
    }
    
    /* Mobile PFP Layout */
    .pfp-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.4rem;
    }
    
    .pfp-card {
        padding: 0;
        aspect-ratio: 1;
    }
    
    .pfp-card img {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 8px;
    }
    
    /* Mobile Filter Buttons */
    .pfp-filter-buttons {
        gap: 1rem;
        margin-bottom: 1rem;
        padding: 0.1rem 0;
    }
    
    .filter-btn {
        width: 45px;
        height: 45px;
    }
    
    .filter-btn img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Mobile Skills Layout */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        grid-auto-flow: dense;
    }
    
    .skill-card {
        padding: 0.8rem;
        gap: 0.8rem;
        height: 95px;
    }
    
    .skill-image {
        width: 40px;
        height: 40px;
    }
    
    .skill-content {
        flex: 1;
        overflow: hidden;
        min-width: 0;
    }
    
    .skill-card h3 {
        font-size: clamp(0.75rem, 2.5vw, 0.9rem);
        margin-bottom: 0.15rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .skill-card p {
        font-size: clamp(0.65rem, 2vw, 0.75rem);
        margin-bottom: 0;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .skill-card a {
        font-size: 0.65rem;
        padding: 0.1rem 0.3rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    /* Mobile header layout */
    .skills-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.8rem !important;
    }
    
    .skills-filter-buttons {
        align-self: center;
    }
    
    /* Mobile KoL Badge */
    .kol-container {
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .kol-badge {
        width: 100% !important;
        height: 160px !important;
        padding: 0.5rem;
        margin: 2rem 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .kol-link {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .kol-image {
        max-width: 95%;
        max-height: 95%;
    }
    
    /* Mobile skill popup adjustments */
    .skill-popup-content {
        padding: 1.5rem;
        max-width: 95vw;
        width: auto;
        min-width: 280px;
    }
    
    .skill-popup-image {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .skill-popup h3 {
        font-size: 1.1rem;
    }
    
    .skill-popup .description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .skill-popup .link-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Mobile popup adjustments */
    .pfp-popup-content {
        padding: 1.5rem;
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .pfp-popup img,
    .pfp-popup video {
        max-width: 85vw;
        max-height: 70vh;
    }
    
    .pfp-close {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    /* Mobile popup adjustments */
    .pfp-name-container {
        margin-bottom: 0.4rem;
    }
    
    .pfp-icons-container {
        gap: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .pfp-icon-link {
        padding: 0.05rem;
    }
    
    .pfp-icon {
        width: 20px !important;
        height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
    }
    
    .pfp-name-container h3 {
        font-size: 1.1rem;
    }
    
    /* Mobile Remilia ID Card */
    .card-wrapper {
        max-width: 95vw;
        margin: 0 auto;
    }
    
    .card-container {
        padding: 0.8rem;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .card-left {
        justify-content: center;
        text-align: center;
    }
    
    .card-right {
        justify-content: center;
    }
    
    .profile-picture {
        width: 50px;
        height: 50px;
    }
    
    .user-info .section {
        font-size: 0.75rem;
        justify-content: center;
        gap: 0.3rem;
    }
    
    .code {
        padding: 0.6rem;
    }
    
    .code svg {
        width: 30px;
        height: 30px;
    }

    .code p {
        font-size: 0.65rem;
        max-width: 150px;
    }
    
    .silver-plaque {
        font-size: 0.5rem;
        padding: 0.25rem 0.6rem;
        bottom: -12px;
        right: 0.5rem;
    }
    
    /* Mobile Urbit iframe - responsive sizing */
    .urbit-iframe-wrapper {
        height: auto;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        aspect-ratio: 375 / 667;
        max-height: 70vh;
    }
    
    .urbit-iframe {
        transform: none;
        width: 100%;
        height: 100%;
        min-height: 400px;
    }
    
    /* Disable custom cursor on mobile */
    body {
        cursor: auto !important;
    }
    
    *, *:hover, *:active, *:focus {
        cursor: auto !important;
    }
    
    a, button, input, textarea, select, [role="button"], [onclick], .clickable {
        cursor: pointer !important;
    }
    
    .custom-cursor {
        display: none !important;
    }
}

/* Page Navigation Styles */
.page-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.nav-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #eaeaea;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-home:hover {
    color: #8be9fd;
}

.nav-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Guest Book Styles */
.guestbook {
    padding: 0.5rem 0 0.5rem 0;
}

.guestbook .container {
    max-width: 500px; /* Much more compact than the default 900px */
    margin: 0 auto;
}

.urbit-embed {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 0.5rem;
    margin: 0 auto;
}

.embed-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #8be9fd;
    margin-bottom: 1rem;
    margin-top: 0;
}

.embed-description {
    color: #aaa;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.urbit-info {
    margin-bottom: 1rem;
}

.urbit-id {
    display: inline-flex;
    align-items: center;
    background: rgba(139, 233, 253, 0.1);
    border: 1px solid rgba(139, 233, 253, 0.3);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.urbit-prefix {
    color: #8be9fd;
    font-weight: bold;
}

.urbit-name {
    color: #eaeaea;
    margin-left: 0.2rem;
}

.urbit-description {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
}

.iframe-container {
    width: 100%;
    height: 400px; /* Use mobile-friendly height on desktop too */
    max-width: 375px; /* Constrain width to mobile size on desktop */
    margin: 2rem auto; /* Center the container */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.urbit-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.urbit-link {
    color: #8be9fd;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(139, 233, 253, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.urbit-link:hover {
    background: rgba(139, 233, 253, 0.1);
    border-color: #8be9fd;
}

/* Contact Methods */
.contact-methods {
    margin-bottom: 0.2rem;
    margin-top: 0.1rem;
}

.contact-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 0.1rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 233, 253, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.contact-card:hover {
    border-color: rgba(139, 233, 253, 0.5);
    background: rgba(139, 233, 253, 0.05);
    transform: translateY(-2px);
}

.contact-card:hover::before {
    left: 100%;
}

.contact-icon {
    width: 40px;
    height: 40px;
    color: #8be9fd;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-info {
    position: relative;
    z-index: 2;
}

.contact-info h4 {
    font-size: 1rem;
    color: #eaeaea;
    margin-bottom: 0.3rem;
}

.contact-info a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #8be9fd;
}

.contact-info span {
    color: #aaa;
    font-size: 0.9rem;
}

/* Icon-only Contact Links */
.contact-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #8be9fd;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-icon-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 233, 253, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.contact-icon-link:hover {
    border-color: rgba(139, 233, 253, 0.5);
    background: rgba(139, 233, 253, 0.05);
    transform: translateY(-3px) scale(1.05);
    color: #8be9fd;
}

.contact-icon-link:hover::before {
    left: 100%;
}

.contact-icon-link svg {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.contact-icon-link:hover svg {
    transform: rotate(5deg);
}

.contact-icon-link:hover img {
    transform: rotate(5deg);
}

/* Message Form */
.message-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #eaeaea;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8be9fd;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background: linear-gradient(135deg, #8be9fd, #50fa7b);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 233, 253, 0.3);
}

/* Page Navigation Cards */
.page-navigation {
    margin: 1.5rem 0 0 0; /* Consistent spacing from social icons */
    padding-top: 0;
}

.nav-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #8be9fd;
    margin-bottom: 1rem;
    text-align: center;
}

.nav-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.nav-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 233, 253, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.nav-card:hover {
    border-color: rgba(139, 233, 253, 0.5);
    background: rgba(139, 233, 253, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 233, 253, 0.15);
}

.nav-card:hover::before {
    left: 100%;
}

.nav-card-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 233, 253, 0.1);
    position: relative;
    z-index: 2;
    border-radius: 50%;
    flex-shrink: 0;
}

.nav-card-content {
    position: relative;
    z-index: 2;
}

.nav-card-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #eaeaea;
    margin-bottom: 0.5rem;
}

.nav-card-content p {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.4;
    margin: 0;
}

/* Tablet breakpoint for contact grid */
@media (max-width: 1024px) and (min-width: 769px) {
    .contact-grid {
        gap: 1.5rem;
    }
}

/* Responsive adjustments for new pages */
@media (max-width: 768px) {
    .guestbook {
        padding: 3rem 0 1.5rem 0;
    }
    
    .guestbook .container {
        max-width: none; /* Remove width constraint on mobile */
    }
    
    .urbit-embed,
    .message-form {
        padding: 1.5rem;
    }
    
    .contact-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 1.2rem;
        justify-content: center;
        margin: 0 auto;
    }
    
    .contact-grid .contact-icon-link {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .contact-grid .contact-icon-link svg,
    .contact-grid .contact-icon-link img {
        width: 28px !important;
        height: 28px !important;
    }
    
    /* Stack dual cards vertically on mobile */
    .dual-card-container {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    /* Mobile responsive for dual cards */
    .dual-card-container .remilia-id,
    .dual-card-container .kol-container {
        height: auto; /* Remove fixed height on mobile */
    }
    
    .dual-card-container .card-container {
        padding: 1.5rem;
        font-size: 1rem;
        height: auto;
    }
    
    .dual-card-container .card-main {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .dual-card-container .profile-picture {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
    
    .dual-card-container .qr-code {
        display: none; /* Hide QR on small mobile */
    }
    
    .dual-card-container .card-description {
        display: none; /* Hide description on small mobile */
    }
    
    .dual-card-container .card-header span {
        font-size: 0.7rem;
    }
    
    .dual-card-container .user-info .section {
        font-size: 0.65rem;
    }
    
    .dual-card-container .kol-badge {
        height: auto;
        padding: 0.5rem;
    }
    
    .urbit-links {
        flex-direction: column;
    }
    
    .urbit-link {
        text-align: center;
    }
    
    .iframe-container {
        height: 400px;
        max-width: none; /* Remove width constraint on mobile */
        margin: 2rem 0; /* Remove auto centering on mobile */
    }
    
    .nav-links {
        grid-template-columns: 1fr;
    }
    
    .nav-card {
        padding: 1.25rem;
    }
    
    .nav-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Floating Return Home Button */
.floating-home {
    position: fixed;
    top: 62px;
    right: 62px;
    z-index: 9997;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(139, 233, 253, 0.3);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.floating-home:hover {
    border-color: rgba(139, 233, 253, 0.8);
    background: rgba(139, 233, 253, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 233, 253, 0.15);
}

.floating-home-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.floating-home-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.floating-home-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.floating-home-text {
    display: flex;
    flex-direction: column;
}

.floating-home-text h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #eaeaea;
    margin: 0 0 0.15rem 0;
}

.floating-home-text p {
    font-size: 0.6rem;
    color: #aaa;
    margin: 0;
}

/* Tablet adjustments for floating button */
@media (max-width: 768px) {
    .floating-home {
        top: 50px;
        right: 24px;
        padding: 0.45rem 0.6rem;
        border-radius: 8px;
    }
    
    .floating-home-content {
        gap: 0.35rem;
    }
    
    .floating-home-icon {
        width: 20px;
        height: 20px;
    }
    
    .floating-home-text h4 {
        font-size: 0.65rem;
    }
    
    .floating-home-text p {
        font-size: 0.5rem;
    }
}

/* Small mobile adjustments for floating button */
@media (max-width: 500px) {
    .floating-home {
        top: 40px;
        right: 22px;
        padding: 0.35rem 0.5rem;
    }
    
    .floating-home-icon {
        width: 18px;
        height: 18px;
    }
    
    .floating-home-text h4 {
        font-size: 0.6rem;
    }
    
    .floating-home-text p {
        display: none;
    }
}

/* ===== Bracket Content Containment ===== */
/* Constrains page content within corner brackets while background particles remain fullscreen */

.bracket-contained {
    overflow: hidden !important;
}

.bracket-content-area {
    position: fixed;
    top: 55px;
    left: 55px;
    right: 55px;
    bottom: 55px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 233, 253, 0.3) transparent;
}

.bracket-content-area::-webkit-scrollbar {
    width: 4px;
}

.bracket-content-area::-webkit-scrollbar-track {
    background: transparent;
}

.bracket-content-area::-webkit-scrollbar-thumb {
    background: rgba(139, 233, 253, 0.3);
    border-radius: 2px;
}

.bracket-content-area::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 233, 253, 0.5);
}

/* Responsive bracket content area */
@media (max-width: 768px) {
    .bracket-content-area {
        top: 45px;
        left: 20px;
        right: 20px;
        bottom: 45px;
    }
}

@media (max-width: 500px) {
    .bracket-content-area {
        top: 35px;
        left: 18px;
        right: 18px;
        bottom: 35px;
    }
}
/* Footer particle count slider (shared across all pages; extracted from inline <style> blocks) */
#particleSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #8be9fd;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(139, 233, 253, 0.5);
    transition: all 0.2s ease;
}
#particleSlider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(139, 233, 253, 0.8);
}
#particleSlider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #8be9fd;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(139, 233, 253, 0.5);
}

/* Global animation pause, toggled by tapping the particle slider thumb
   (see slider handler in js/script.js) */
body.animations-paused *,
body.animations-paused *::before,
body.animations-paused *::after {
    animation-play-state: paused !important;
}
/* Entrance reveals must still complete while paused, otherwise content that
   starts at opacity: 0 (e.g. index bento cards) never appears */
body.animations-paused .bento-item {
    opacity: 1 !important;
    transform: none !important;
}
/* Blackout: hide the 3D background canvas entirely and kill the scanline */
body.animations-paused {
    background: #000 !important;
}
body.animations-paused #bg3d-canvas,
body.animations-paused .scanline,
body.animations-paused .scanline-popup {
    display: none !important;
}
body.animations-paused #particleSlider::-webkit-slider-thumb {
    background: #555;
    box-shadow: none;
}
body.animations-paused #particleSlider::-moz-range-thumb {
    background: #555;
    box-shadow: none;
}
