/* ============================================
   ART-ULL v2 — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- Variables --- */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1c1c1c;
    --bg-input: #0d0d0d;
    --bg-overlay: rgba(0, 0, 0, 0.92);

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);

    --accent: #ffcc00;
    --accent-dim: rgba(255, 204, 0, 0.15);
    --accent-glow: rgba(255, 204, 0, 0.3);

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    --danger: #ef4444;
    --success: #22c55e;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(255, 204, 0, 0.08);

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Theme: Light --- */
body.theme-light {
    --bg-primary: #f8f9fb;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f2f5;
    --bg-input: #ffffff;
    --bg-overlay: rgba(255, 255, 255, 0.95);

    --border-subtle: rgba(0, 0, 0, 0.05);
    --border-default: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);

    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #888888;

    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
}

body.theme-light .hero::after {
    opacity: 0.05;
    mix-blend-mode: multiply;
}

body.theme-light .card-img-placeholder {
    background: linear-gradient(135deg, #f0f2f5, #e0e4e9);
}

/* --- Artist Bar (Top) --- */
.artist-bar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 0;
    z-index: 1000;
}

.artist-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.artist-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.artist-avatar,
.artist-avatar-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
}

.artist-name a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 1;
}

body.theme-light .artist-bar {
    background: rgba(248, 249, 251, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.theme-light footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- Vision Layer --- */
#vision-container {
    position: absolute;
    top: 50px;
    /* Offset to center on logo */
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 1px;
    pointer-events: none;
    z-index: 5;
}

/* --- Vision Triangle --- */
#vision-cone {
    position: absolute;
    top: 0;
    left: 50%;
    width: 300px;
    height: 400px;
    transform-origin: top center;
    transform: translateX(-50%) rotate(0deg);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);

    /* Vibrant Gradient & Glow */
    background: linear-gradient(to top,
            rgba(255, 204, 0, 0.45) 0%,
            rgba(0, 229, 255, 0.15) 60%,
            transparent 100%);
    border-left: 1px solid rgba(255, 204, 0, 0.6);
    border-right: 1px solid rgba(0, 229, 255, 0.4);

    filter: drop-shadow(0 0 15px rgba(255, 204, 0, 0.2));
    opacity: 0.7;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 5;
}

body.theme-light #vision-cone {
    opacity: 0.3;
}

/* --- Particles --- */
.interaction-buffer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    /* CRITICAL: Allow thoughts to float outside */
    z-index: 20;
}

.chat-particle {
    position: absolute;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;

    /* Glassmorphism Thought Bubble */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.theme-light .chat-particle {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

@keyframes flowUp {
    0% {
        opacity: 0;
        transform: translateY(40px) translateX(0) scale(0.8);
    }

    20% {
        opacity: 0.9;
        transform: translateY(0px) translateX(calc(var(--dx) * 0.2)) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-140px) translateX(var(--dx)) scale(1.1);
    }
}

/* Hero layering fix */
/* Hero layout optimization */
.hero {
    position: relative;
    z-index: 10;
    overflow: hidden;
    padding: 60px 0;
    /* Reduced from 100px */
    text-align: left;
}

.hero-inner {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align items to the right */
    text-align: right;
}

.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align items to the left */
    text-align: left;
}

#hero-logo-img {
    margin: 0 0 12px auto !important;
    /* Force logo to the right */
}

.hero-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border-hover), transparent);
    align-self: stretch;
    opacity: 0.6;
    flex-shrink: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-hover) 50%, transparent 100%);
    opacity: 0.2;
}

.hero-logo {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.hero h1 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.5rem, 6vw, 4.2rem) !important;
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.02em;
    line-height: 0.9;
    margin: 0;
    color: var(--text-primary);
}

.hero-desc-box {
    max-width: 480px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
}

.hero-desc-box p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.75;
    letter-spacing: 0.02em;
    margin: 0;
}

@media (max-width: 992px) {
    .hero {
        text-align: center;
        padding: 60px 20px;
    }

    .hero-inner {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .hero-divider {
        display: none;
    }

    .hero-left,
    .hero-right {
        align-items: center;
        text-align: center;
    }

    #hero-logo-img {
        margin: 0 auto 12px !important;
    }

    .hero-desc-box p {
        text-align: center;
    }
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* --- Grain Overlay --- */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.02;
    /* Reduced from 0.04 */
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

body.theme-light .grain-overlay {
    opacity: 0.03;
    /* Reduced from 0.06 */
}

.grid-obras {
    position: relative;
    z-index: 20;
}

/* --- Perspective Grid --- */
.perspective-grid-bg {
    position: fixed;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%) perspective(800px) rotateX(65deg);
    width: 200%;
    height: 600px;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 204, 0, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 204, 0, 0.15) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 80%);
    opacity: 0.8;
}

body.theme-light .perspective-grid-bg {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    opacity: 0.5;
}

/* --- Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

/* --- Typography --- */
.text-xs {
    font-size: 0.7rem;
}

.text-sm {
    font-size: 0.8rem;
}

.text-md {
    font-size: 0.9rem;
}

.text-lg {
    font-size: 1.1rem;
}

.text-xl {
    font-size: 1.5rem;
}

.text-2xl {
    font-size: 2rem;
}

.text-3xl {
    font-size: 2.8rem;
}

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

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.font-light {
    font-weight: 300;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Layout --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background: #ffe04a;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 204, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.7rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 0.85rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
}

.btn:disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px var(--accent-glow);
}

.card:hover .card-img {
    transform: scale(1.08);
}

.card-img {
    width: 100%;
    height: 240px;
    /* Slightly taller */
    object-fit: cover;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    gap: 8px;
}

/* --- Inputs --- */
.input,
.textarea,
.select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    transition: var(--transition);
}

.input:focus,
.textarea:focus,
.select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.input::placeholder,
.textarea::placeholder {
    color: var(--text-muted);
}

.textarea {
    resize: vertical;
    min-height: 80px;
}

.label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group {
    margin-bottom: 16px;
}

/* --- Tags --- */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tag-accent {
    background: var(--accent-dim);
    color: var(--accent);
}

.tag-muted {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

/* --- Modal / Overlay --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    width: 90vw;
    max-width: 600px;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

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

/* --- Social Icons --- */
.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    font-size: 0.75rem;
    transition: var(--transition);
}

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

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.6);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(255, 204, 0, 0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade {
    animation: fadeIn 0.5s ease both;
}

.animate-slide-right {
    animation: slideInRight 0.4s ease both;
}

/* --- Grid --- */
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

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

    .text-3xl {
        font-size: 2rem;
    }

    .card-img {
        height: 180px;
    }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* --- Toast notifications --- */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    animation: fadeIn 0.3s ease, fadeOut 0.3s ease 2.7s both;
    pointer-events: none;
}

.toast-success {
    background: var(--success);
    color: white;
}

.toast-error {
    background: var(--danger);
    color: white;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(12px);
    }
}

/* --- Empty state --- */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* --- Divider --- */
.divider {
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 20px 0;
    border-radius: 2px;
}

/* --- Premium Section Headers --- */
.section-header-premium {
    text-align: center;
    max-width: 800px;
    margin: 80px auto 40px;
    padding: 0 24px;
}

.section-header-premium h2 {
    font-family: 'Instrument Serif', serif;
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.1;
}

.section-header-premium .subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
    font-weight: 700;
}

.section-header-premium p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

#featured-3d-section {
    position: relative;
    z-index: 10;
    margin-bottom: 100px;
    animation: fadeIn 1s ease both;
}

/* --- Featured 3D Screen --- */
.featured-section {
    margin-top: 80px;
    margin-bottom: 100px;
    animation: fadeIn 1s ease both;
}

.screen-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    background: #000;
    border-radius: 24px;
    padding: 12px;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-default);
    overflow: hidden;
}

.screen-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.screen-bezel {
    position: absolute;
    bottom: 20px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    pointer-events: none;
}

.screen-led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: led-pulse 2s infinite;
}

.screen-brand {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
}

@keyframes led-pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
        box-shadow: 0 0 15px var(--accent);
    }
}

@media (max-width: 768px) {
    .featured-section {
        margin: 40px -16px 60px;
        /* Bleed to full width */
        padding: 0;
    }

    .screen-container {
        aspect-ratio: auto;
        height: 70vh;
        /* More height on mobile */
        padding: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .screen-frame {
        border-radius: 0;
        border: none;
    }

    .screen-bezel {
        bottom: 10px;
        right: 15px;
    }

    .screen-brand {
        display: none;
    }
}

/* --- Contact Section --- */
.contact-section {
    padding: 120px 0;
    text-align: center;
}

.contact-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-perspective {
    perspective: 1200px;
    width: 100%;
    max-width: 380px;
}

.contact-card {
    background: var(--bg-card);
    padding: 50px 40px;
    border-radius: 0;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    transform-style: preserve-3d;
    position: relative;
    border: 1px solid var(--border-subtle);
    text-align: left;
    backdrop-filter: blur(20px);
    transition: transform 0.1s ease;
}

body.theme-light .contact-card {
    background: #ffffff;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
    border-color: #f0f0f0;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 200px solid var(--accent-dim);
    filter: blur(20px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.contact-card-header {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 45px;
}

.card-logo {
    max-width: 180px;
    height: auto;
    margin: 0 auto;
}

.card-tagline {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 15px;
    font-weight: 500;
}

.contact-profile-info {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    transform: translateZ(20px);
}

.card-name {
    font-family: 'Instrument Serif', serif;
    font-size: 2.2rem;
    font-weight: 400;
    font-style: italic;
    margin: 0;
    line-height: 1;
    color: var(--text-primary);
}

.card-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 2;
    transform: translateZ(40px);
}

.contact-link-btn {
    padding: 14px 20px;
    border: 1px solid var(--border-default);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    background: rgba(255, 255, 255, 0.02);
}

body.theme-light .contact-link-btn {
    background: transparent;
    border-color: #eee;
}

.btn-ig:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #000 !important;
}

.btn-mail:hover {
    border-color: #ff00ff;
    background: #ff00ff;
    color: #000 !important;
}

.btn-web:hover {
    border-color: #00e5ff;
    background: #00e5ff;
    color: #000 !important;
}

.btn-tel:hover {
    border-color: var(--success);
    background: var(--success);
    color: #000 !important;
}

/* Enhanced specificity to ensure solid background in all themes */
.contact-card .contact-link-btn.btn-save {
    background: var(--text-primary) !important;
    color: var(--bg-primary) !important;
    border-color: var(--text-primary) !important;
    margin-top: 15px;
    justify-content: center;
    font-weight: 800;
    opacity: 1 !important;
}

.contact-card .contact-link-btn.btn-save:hover {
    background: var(--accent) !important;
    color: #000 !important;
    border-color: var(--accent) !important;
    transform: translateY(-2px);
}

.card-footer-brand {
    margin-top: 50px;
    font-size: 0.55rem;
    color: var(--text-muted);
    letter-spacing: 0.25em;
    text-align: center;
    text-transform: uppercase;
    opacity: 0.6;
}

/* --- Gallery & Page Layout --- */
.gallery-section {
    position: relative;
    z-index: 20;
    background: var(--bg-primary);
    padding-bottom: 80px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-top: 40px;
}

.gallery-header h2 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.gallery-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 12px;
    border-radius: 20px;
}

body.theme-light .gallery-count {
    background: rgba(0, 0, 0, 0.04);
}

.card-img-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--bg-secondary), #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.3;
}

.card-meta {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* --- Stagger animation --- */
.card {
    animation: fadeIn 0.5s ease both;
}

.card:nth-child(1) {
    animation-delay: 0.05s;
}

.card:nth-child(2) {
    animation-delay: 0.1s;
}

.card:nth-child(3) {
    animation-delay: 0.15s;
}

.card:nth-child(4) {
    animation-delay: 0.2s;
}

.card:nth-child(5) {
    animation-delay: 0.25s;
}

.card:nth-child(6) {
    animation-delay: 0.3s;
}
/* --- El Latido del Muro (Universe Reax) --- */
.universe-section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
    background: transparent;
}

.festival-universe-container {
    width: 100%;
    max-width: 1200px;
    height: 600px;
    margin: 0 auto;
    background: #050505;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

/* --- Vignette & Depth --- */
.festival-universe-container::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.6) 100%);
    z-index: 5;
}

body.theme-light .festival-universe-container {
    background: #fdfdfd;
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .festival-universe-container::after {
    background: radial-gradient(circle at center, transparent 40%, rgba(255,255,255,0.4) 100%);
}

.universe-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image: radial-gradient(var(--accent) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.1;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
    animation: particle-float 20s linear infinite;
}

@keyframes particle-float {
    from { background-position: 0 0; }
    to { background-position: 80px 80px; }
}

.reax-node {
    position: absolute;
    pointer-events: auto;
    z-index: 10;
    opacity: 0;
    transition: 
        opacity 0.8s ease, 
        transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        filter 0.5s ease,
        z-index 0s;
    transform: translate(-50%, -50%) scale(var(--b-scale, 1));
    transform-origin: center center;
    filter: var(--b-blur, none);
}

.reax-node.visible {
    opacity: var(--b-opacity, 1);
}

.reax-node:hover {
    z-index: 1000 !important;
    transform: translate(-50%, -50%) scale(1.15) !important;
    filter: none !important;
    opacity: 1 !important;
    animation: none !important; /* Prevent flickering during interaction */
}

.reax-node-content {
    pointer-events: auto;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.82rem;
    white-space: nowrap;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    max-width: 280px;
}

.node-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    width: 100%;
}

.node-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.node-message {
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    transition: all 0.4s ease;
}

.reax-node:hover .reax-node-content {
    padding: 24px !important;
    border-radius: 32px !important;
    background: #ffffff !important;
    color: #111111 !important;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,0,0,0.05);
}

.reax-node:hover .reax-node-content.type-image .node-link-wrapper,
.reax-node:hover .reax-node-content.type-audio {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.reax-node:hover .reax-node-content.type-image .node-meta {
    margin-bottom: 12px;
}

.reax-node:hover .reax-node-content.type-audio .node-play-btn {
    margin: 12px 0;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
}

body.theme-dark .reax-node:hover .reax-node-content {
    background: linear-gradient(145deg, #161618, #0a0a0b) !important;
    color: #ffffff !important;
    border-color: rgba(255, 204, 0, 0.2);
    box-shadow: 
        0 40px 100px rgba(0,0,0,0.9), 
        0 0 0 1px rgba(255,255,255,0.05),
        0 0 30px rgba(255, 204, 0, 0.05);
}

/* Adaptive Sizes on Hover */
.reax-node:hover .reax-node-content.type-audio,
.reax-node:hover .reax-node-content.type-text {
    min-width: 180px !important;
    max-width: 240px !important;
}

.reax-node:hover .reax-node-content.type-image {
    min-width: 220px !important;
    max-width: 320px !important;
}

.reax-node:hover .node-author,
.reax-node:hover .node-message {
    max-width: none !important;
    white-space: normal !important;
}

.reax-node:hover .node-message {
    white-space: normal !important;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 4px;
    opacity: 0.9;
}

.node-author {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 2px;
    transition: all 0.4s ease;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
.reax-node-content.type-image .node-author,
.reax-node-content.type-image .node-message {
    max-width: 140px;
}
.node-author {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 2px;
    transition: all 0.4s ease;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
.node-message {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.reax-node:hover .node-author {
    font-size: 0.72rem;
    margin-bottom: 8px;
    letter-spacing: 0.15em;
}

.node-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.reax-node:hover .node-thumbnail {
    width: 200px !important;
    height: 150px !important;
    border-radius: 16px !important;
    margin-bottom: 16px;
}

.node-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.node-play-btn:hover {
    transform: scale(1.1);
    background: var(--text-primary);
}

@keyframes float-reax {
    0% { transform: translate(0, 0); }
    50% { transform: translate(5px, -15px); }
    100% { transform: translate(0, 0); }
}

@media (max-width: 768px) {
    .festival-universe-container {
        height: 500px;
        border-radius: 0;
    }
}

