/* 
 * LUNA SERAFINA - Simplified Site structure
 */

:root {
    --bg-void: #000000;
    --accent-red: #ff2a2a;
    --accent-green: #39ff14;
    --hr-crimson: #8b0000;
    --hr-blood: #660000;
    --hr-text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.7);
    --font-heading: 'Orbitron', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    --font-horror: 'Cinzel', serif;
}

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

body.dg-body {
    background-color: var(--bg-void);
    color: var(--hr-text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background FX Layers */
.dg-hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), 
                url('https://horrorcore-reshare.com/assets/images/matrixseraphimthrone.png') center top / cover no-repeat;
    z-index: -2;
}

.dg-overlay-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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");
    opacity: 0.05;
    pointer-events: none;
    z-index: 100;
}

.dg-scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 101;
}

/* Updated Header & Centered Nav */
.hr-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,0,0,0.2);
    z-index: 1000;
}

.hr-nav { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.hr-nav a {
    color: #fff;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
    opacity: 0.6;
    padding: 10px 0;
}
.hr-nav a:hover, .hr-nav a.act { opacity: 1; color: var(--accent-red); text-shadow: 0 0 10px var(--accent-red); }

/* Placeholder Home View */
.view-home-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
}

.home-logo-text {
    font-family: var(--font-heading);
    font-size: clamp(40px, 10vw, 120px);
    letter-spacing: 15px;
    text-transform: uppercase;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 40px var(--accent-red);
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.8; transform: scale(1); }
    to { opacity: 1; transform: scale(1.02); }
}

/* Views Logic */
.dv-view { display: none; }
.dv-view.active { display: block; }

/* Existing Typography & Sections (Retained for Matrix view) */
.dg-glitch-title {
    font-family: var(--font-horror);
    font-size: clamp(40px, 8vw, 90px);
    text-shadow: 0 0 20px var(--accent-red);
    position: relative;
    animation: glitch 3s infinite;
    color: #fff;
    margin-bottom: 40px;
}

@keyframes glitch {
    0% { transform: translate(0); text-shadow: 0 0 20px var(--accent-red); }
    20% { transform: translate(-2px, 2px); text-shadow: 2px 0 var(--accent-green), -2px 0 var(--accent-red); }
    40% { transform: translate(-2px, -2px); text-shadow: -2px 0 var(--accent-green), 2px 0 var(--accent-red); }
    60% { transform: translate(2px, 2px); text-shadow: 2px 0 var(--accent-green), -2px 0 var(--accent-red); }
    80% { transform: translate(2px, -2px); text-shadow: -2px 0 var(--accent-green), 2px 0 var(--accent-red); }
    100% { transform: translate(0); text-shadow: 0 0 20px var(--accent-red); }
}

.dg-section-title {
    font-family: var(--font-horror);
    color: #fff;
    border-bottom: 2px solid var(--hr-crimson);
    display: inline-block;
    margin-bottom: 30px;
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.dg-card {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 0, 0, 0.2);
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.dg-trait-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--accent-red);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: 0.3s;
    background: rgba(139, 0, 0, 0.15);
}
.dg-trait-btn:hover { background: var(--hr-crimson); box-shadow: 0 0 20px var(--accent-red); color: #fff; }

/* Mobile Adjustments */
@media (max-width: 900px) {
    .hr-header { height: auto; min-height: 60px; padding: 10px 2%; }
    .hr-nav { gap: 15px; }
    .hr-nav a { font-size: 10px; letter-spacing: 1px; padding: 5px 0; }
    .dg-glitch-title { font-size: 2.2rem; }
    .home-logo-text { font-size: 2.2rem; letter-spacing: 4px; }
}

/* ── Malleable Reality UI Elements ── */
.dir-eye {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: radial-gradient(circle, #d91c1c 20%, #4a0000 100%);
    border-radius: 50%;
    border: 3px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(217, 28, 28, 0.5);
    animation: dir-eye-pulse 4s ease-in-out infinite alternate;
}

.dir-eye .pupil {
    width: 20px;
    height: 58px;
    background: #000;
    border-radius: 50%;
}

@keyframes dir-eye-pulse {
    0%  { transform: scale(1);    box-shadow: 0 0 20px rgba(217,28,28,0.4); }
    100%{ transform: scale(1.06); box-shadow: 0 0 50px rgba(217,28,28,0.9); }
}

.dir-title {
    font-family: 'Cinzel Decorative', cursive;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f4ecf9, #A855F7, #BE18D1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

/* ── Malleable Reality Card Components ── */
.dir-super-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(92,24,168,0.25) 0%, rgba(15,5,25,0.75) 50%, rgba(217,28,28,0.15) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(168,85,247,0.5);
    box-shadow: 0 0 60px rgba(168,85,247,0.35), 0 15px 40px rgba(0,0,0,0.6);
    padding: 3rem 3.5rem;
    margin-bottom: 2.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    text-align: left;
}

.dir-super-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(168,85,247,0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.dir-super-card > * {
    position: relative;
    z-index: 2;
}

.dir-super-card > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.dir-super-card.mr-featured {
    background-image: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.85)), url('https://www.malleable-reality.com/directory-assets/malleable-reality-bg.png');
}

.dir-super-card.divinity-featured {
    background-image: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.85)), url('https://www.malleable-reality.com/directory-assets/divinity.gif');
    filter: grayscale(100%);
    border-color: rgba(255,255,255,0.3);
}

.dir-super-card:hover {
    transform: translateY(-6px);
    border-color: rgba(168,85,247,0.65);
    box-shadow: 0 0 80px rgba(168,85,247,0.35), 0 25px 60px rgba(0,0,0,0.7);
}

.dir-super-pfp {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #A855F7;
    box-shadow: 0 0 30px #A855F7;
}

.dir-super-badge {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #A855F7;
    background: rgba(168,85,247,0.12);
    border: 1px solid rgba(168,85,247,0.3);
    border-radius: 4px;
    padding: 0.3rem 0.75rem;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.dir-super-title {
    font-family: 'Cinzel Decorative', cursive;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(168,85,247,0.5);
}

.dir-super-desc {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.dir-super-action {
    font-family: 'Cinzel Decorative', cursive;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 0.8rem 2rem;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    transition: all 0.4s ease;
}

.dir-super-card.mr-featured .dir-super-action {
    background: linear-gradient(135deg, rgba(217, 28, 28, 0.8), rgba(92, 24, 168, 0.8));
    border-color: rgba(255, 204, 0, 0.4);
    box-shadow: 0 0 20px rgba(217, 28, 28, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.5);
    color: #ffcc00;
}

.dir-super-card.mr-featured:hover .dir-super-action {
    background: linear-gradient(135deg, rgba(92, 24, 168, 0.9), rgba(217, 28, 28, 0.9));
    border-color: rgba(255, 204, 0, 0.8);
    box-shadow: 0 0 35px rgba(255, 204, 0, 0.6), inset 0 0 15px rgba(0, 0, 0, 0.6);
    color: #ffcc00;
}

.dir-super-card:not(.mr-featured):hover .dir-super-action {
    background: #fff;
    color: #000;
    box-shadow: 0 0 30px #fff;
}

@media (max-width: 768px) {
    .dir-super-card { flex-direction: column; text-align: center; padding: 2rem; gap: 1.5rem; }
    .dir-super-card > div { align-items: center; }
}



/* ── Services Page: Aesthetic Protocol ── */
.svc-aes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
    text-align: center;
}

.svc-aes-section {
    margin-bottom: 120px;
}

.svc-aes-label {
    font-family: var(--font-mono);
    color: var(--accent-red);
    font-size: 0.8rem;
    letter-spacing: 12px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

.svc-aes-title {
    font-family: 'Cinzel Decorative', cursive;
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 20px;
    margin-bottom: 40px;
    text-shadow: 0 0 30px var(--accent-red);
}

.svc-aes-header {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.svc-aes-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
}

.svc-aes-text {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #fff;
    text-transform: none;
    letter-spacing: 2px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.svc-aes-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0;
    max-width: 1000px;
}

.svc-aes-list li {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #fff;
    text-transform: none;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    transition: 0.3s;
}

.svc-aes-list li:hover {
    background: rgba(255, 0, 0, 0.05);
    border-color: rgba(255, 0, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.1);
}

.svc-aes-footer {
    margin-top: 100px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-red);
    letter-spacing: 5px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .svc-aes-container { padding: 60px 15px; }
    .svc-aes-title { letter-spacing: 8px; }
    .svc-aes-header { font-size: 1.2rem; }
}

/* --- CINEMATIC POP SUITE --- */

@keyframes svcReveal {
    from { opacity: 0; transform: translateY(30px); filter: blur(10px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

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

.svc-reveal {
    opacity: 0;
    animation: svcReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.svc-delay-1 { animation-delay: 0.2s; }
.svc-delay-2 { animation-delay: 0.4s; }
.svc-delay-3 { animation-delay: 0.6s; }
.svc-delay-4 { animation-delay: 0.8s; }

.svc-aes-title {
    font-family: var(--font-heading);
    font-weight: 900;
    letter-spacing: 15px;
    background: linear-gradient(90deg, #ff0000, var(--accent-red), #ff0000);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleShimmer 4s linear infinite;
    text-shadow: 0 0 40px rgba(255, 0, 0, 0.5);
}

.svc-aes-container {
    position: relative;
    overflow: hidden;
}

/* Atmospheric Ambient Glows */
.svc-aes-container::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(139, 0, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.svc-aes-section {
    position: relative;
    z-index: 5;
    margin-bottom: 80px;
}

.svc-aes-header {
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
    color: var(--accent-red);
}

.svc-aes-header::after {
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-red) 50%, 
        transparent 100%);
    box-shadow: 0 0 15px var(--accent-red);
}

.svc-aes-list li {
    border: 1px solid rgba(255, 0, 0, 0.1);
    background: rgba(5, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
    margin-bottom: 12px;
    padding: 20px 30px;
    border-radius: 2px;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
}

.svc-aes-list li:hover {
    background: rgba(139, 0, 0, 0.1);
    border-color: var(--accent-red);
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.2);
}

/* --- 3D PRINTING & ABOUT SCOPED OVERRIDES --- */
#view-3d .svc-aes-text {
    text-align: center;
    text-transform: uppercase;
}

#view-about .svc-aes-text {
    text-align: center;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.8;
    letter-spacing: 1px;
}

#view-3d .svc-aes-list li {
    text-align: center;
    text-transform: uppercase;
}

/* --- THE VOID PROTOCOL (V3 OVERDRIVE) --- */

@keyframes energyFlicker {
    0%, 100% { opacity: 1; filter: brightness(1); }
    33% { opacity: 0.8; filter: brightness(1.2) contrast(1.2); }
    66% { opacity: 0.9; filter: brightness(0.9); }
}

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

/* Background Monolith Underlay */
.svc-bg-mark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    font-size: 25vw;
    font-weight: 900;
    font-family: var(--font-heading);
    color: rgba(255, 0, 0, 0.03);
    text-transform: uppercase;
    letter-spacing: 50px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
    user-select: none;
}

.svc-v3-header {
    text-shadow: 
        0 0 10px var(--accent-red),
        0 0 40px var(--accent-red),
        0 0 80px var(--accent-red);
    animation: energyFlicker 4s linear infinite;
    letter-spacing: 12px;
    color: var(--accent-red);
}

.svc-v3-laser {
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-red) 50%, 
        transparent 100%);
    background-size: 200% auto;
    animation: energyRun 3s linear infinite;
    box-shadow: 0 0 25px var(--accent-red), 0 0 45px var(--accent-red);
}

.svc-aes-list li {
    border-left: 4px solid transparent;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.svc-aes-list li:hover {
    background: rgba(139, 0, 0, 0.2);
    border-left: 4px solid var(--accent-red);
    box-shadow: 0 0 50px rgba(139, 0, 0, 0.4);
    transform: translateX(20px) scale(1.02);
    filter: brightness(1.3);
}

.svc-reveal-v3 {
    opacity: 0;
    filter: blur(20px);
    transform: scale(0.9);
    animation: svcRevealV3 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes svcRevealV3 {
    to { opacity: 1; filter: blur(0); transform: scale(1); }
}

/* Monolith Box Architecture */
.svc-monolith-box {
    background: #000;
    border: 4px solid var(--accent-red);
    padding: 80px 60px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    box-shadow: 0 0 100px rgba(0,0,0,1), 0 0 30px rgba(255, 0, 0, 0.2);
    text-align: center;
}

@media (max-width: 768px) {
    .svc-monolith-box {
        padding: 40px 15px;
        border-width: 2px 0; /* Only top/bottom borders for edge-to-edge look */
        margin: 0;
    }
    .svc-aes-container {
        padding: 0;
    }
    .svc-aes-title {
        letter-spacing: 4px;
        font-size: 2rem;
    }
}

/* --- HOMEPAGE CARD PROTOCOL --- */
.hp-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hp-card {
    position: relative;
    height: 450px;
    background: #050505;
    border: 1px solid rgba(255, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-align: center;
    z-index: 10;
}

.hp-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-red);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 40px rgba(255, 0, 0, 0.2);
}

.hp-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.9) 100%);
    z-index: 2;
}

.hp-card-title {
    position: relative;
    z-index: 5;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.2rem;
    letter-spacing: 6px;
    color: #fff;
    text-transform: uppercase;
    transition: 0.4s;
}

.hp-card:hover .hp-card-title {
    color: var(--accent-red);
    text-shadow: 0 0 25px var(--accent-red);
}

/* Variant: Matrix */
.hp-card-matrix {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7)), url('https://horrorcore-reshare.com/assets/images/matrixseraphimthrone.png');
    background-size: cover;
    background-position: center 15%;
}

/* Variant: Malleable */
.hp-card-malleable {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7)), url('https://www.malleable-reality.com/directory-assets/malleable-reality-bg.png');
    background-size: cover;
    background-position: center;
}

.hp-card-malleable .hp-card-title {
    font-family: 'Cinzel Decorative', cursive;
    background: linear-gradient(135deg, #f4ecf9, #A855F7, #BE18D1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
    letter-spacing: 2px;
}

/* Variant: Scanline (Services/About) */
.hp-card-scanline {
    background: radial-gradient(circle at center, #111 0%, #000 100%);
}

.hp-card-scanline .hp-card-title {
    color: var(--accent-red);
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
    letter-spacing: 12px;
}

.hp-card-scanline::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 1px, rgba(0,0,0,0) 2px);
    pointer-events: none;
    z-index: 3;
    opacity: 0.6;
}

/* Variant: 3D Printing */
.hp-card-3d {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7)), url('/images/3d-printing/IMG_1800.jpg?v=1730');
    background-size: cover;
    background-position: center;
}

.hp-card-3d .hp-card-title {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .hp-card-grid { grid-template-columns: 1fr; padding: 20px; }
    .hp-card { height: 280px; }
    .hp-card-title { font-size: 1.4rem; letter-spacing: 2px; }
}

/* --- LIGHTBOX PROTOCOL --- */
.dg-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.dg-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.dg-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 1);
    transform: scale(0.9);
    transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.dg-lightbox.active img {
    transform: scale(1);
}

.dg-lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    letter-spacing: 4px;
    opacity: 0.6;
}

/* ── 3D Price Calculator Architecture: PROTOCOL V3 ── */
.calc-container {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid var(--accent-red);
    padding: 50px 40px;
    margin: 60px auto;
    max-width: 650px;
    position: relative;
    box-shadow: 
        0 0 50px rgba(0, 0, 0, 0.8),
        inset 0 0 30px rgba(255, 0, 0, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Scanlines for the box */
.calc-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 0, 0, 0.03) 3px
    );
    pointer-events: none;
    z-index: 1;
}

/* Corner Decorators */
.calc-container::after {
    content: '';
    position: absolute;
    top: 10px; right: 10px;
    width: 20px; height: 20px;
    border-top: 2px solid var(--accent-red);
    border-right: 2px solid var(--accent-red);
    opacity: 0.5;
}

.calc-corner-bl {
    position: absolute;
    bottom: 10px; left: 10px;
    width: 20px; height: 20px;
    border-bottom: 2px solid var(--accent-red);
    border-left: 2px solid var(--accent-red);
    opacity: 0.5;
}

.calc-status {
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--accent-red);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.calc-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-red);
    animation: energyFlicker 1s infinite;
}

.calc-range-wrapper {
    margin: 40px 0;
    position: relative;
    z-index: 2;
}

/* Premium Laser Slider */
.calc-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 40px; /* Larger hit area */
    background: transparent;
    outline: none;
    margin: 10px 0;
    cursor: pointer;
    position: relative;
}

/* Visual Track */
.calc-slider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255, 0, 0, 0) 0%, 
        var(--accent-red) 50%, 
        rgba(255, 0, 0, 0) 100%);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    pointer-events: none;
    transform: translateY(-50%);
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-red); /* Constant red background */
    border: 2px solid #fff;
    transform: rotate(45deg);
    cursor: pointer;
    box-shadow: 0 0 20px var(--accent-red), 0 0 40px var(--accent-red); /* Heavier constant glow */
    transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    z-index: 5;
}

.calc-slider::-webkit-slider-thumb:hover {
    background: #fff;
    border-color: var(--accent-red);
    box-shadow: 0 0 30px var(--accent-red), 0 0 60px var(--accent-red);
    transform: rotate(45deg) scale(1.3);
}

.calc-labels {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 2px;
}

.calc-result-box {
    margin-top: 50px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.calc-total-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 5px;
    color: var(--accent-red);
    margin-bottom: 20px;
    opacity: 0.8;
}

.calc-total-value {
    font-family: 'Cinzel Decorative', cursive;
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: #fff;
    text-shadow: 0 0 30px var(--accent-red);
    margin-bottom: 10px;
}

.calc-info {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .calc-container { 
        padding: 40px 20px; 
        margin: 40px 0;
        border-width: 1px 0;
    }
    .calc-total-value { font-size: 2rem; }
}

/* --- THE MALLEABLE BUTTON PROTOCOL --- */
.mr-btn-protocol {
    display: inline-block;
    padding: 20px 60px;
    font-size: 16px;
    font-family: var(--font-mono);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-decoration: none;
    position: relative;
    background: #000;
    border: 1px solid #BE18D1;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 25px rgba(190, 24, 209, 0.3), inset 0 0 15px rgba(190, 24, 209, 0.1);
    z-index: 1;
    cursor: pointer;
}

/* CRT Scanline Overlay */
.mr-btn-protocol::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0.4) 1px,
        rgba(0, 0, 0, 0) 2px
    );
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
}

/* Light Sweep Effect */
.mr-btn-protocol::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(190, 24, 209, 0.4),
        transparent
    );
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.mr-btn-protocol:hover {
    box-shadow: 0 0 50px rgba(190, 24, 209, 0.6), 0 0 120px rgba(190, 24, 209, 0.3);
    border-color: #fff;
    transform: translateY(-3px) scale(1.03);
    color: #fff;
    text-shadow: 0 0 15px #fff;
}

.mr-btn-protocol:hover::after {
    left: 150%;
}

.mr-btn-protocol:active {
    transform: translateY(-1px) scale(0.98);
    filter: brightness(1.2);
}

@media (max-width: 768px) {
    .mr-btn-protocol {
        padding: 15px 35px;
        font-size: 13px;
        letter-spacing: 3px;
    }
}
