@charset "UTF-8";

/* =========================================
   1. VARIABLES (Shared with Feed)
   ========================================= */
:root {
    /* Fonts */
    --font-display: 'Orbitron', sans-serif;
    --font-ui: 'Roboto', sans-serif;

    /* Palette - Dark/Base */
    --rift-black: #050508;
    --rift-smog: #0F1926;
    --rift-concrete: #2B2F33;
    --rift-grime: #3A5F3A;

    /* Palette - Neon/Accents */
    --rift-cyan: #00F5FF;
    --rift-magenta: #FF00FF;
    --rift-purple: #711C91;
    --rift-acid: #FFED00;

    /* Palette - Warm/Safe */
    --rift-rust: #F57D1F;
    --rift-red: #FF204E;
    --rift-beige: #D7BFA2;
    --rift-text: #E0E0E0;
}

/* =========================================
   2. RESET & BASE
   ========================================= */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--rift-black);
    overflow: hidden;
    /* Prevent scrolling on home page (video is fullscreen) */
}

body.rift-home {
    font-family: var(--font-ui);
    color: var(--rift-text);
}

/* =========================================
   3. HEADER / NAVBAR (Copied from Feed)
   ========================================= */
.feed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    z-index: 10001;
    /* High z-index */
    background: rgba(5, 5, 8, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rift-concrete);
}

.feed-logo-text {
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    height: 30px;
    /* Base height to anchor the image */
}

.feed-logo-text img {
    height: 50px;
    /* Fits comfortably in the navbar */
    width: auto;
    object-fit: contain;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    z-index: 10;
}

.feed-logo-text:hover img {
    transform: translateY(-50%) scale(1.05);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
}

/* Desktop Nav */
.feed-desktop-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-display);
    color: var(--rift-text);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
    outline: none;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--rift-cyan);
    text-shadow: 0 0 5px var(--rift-cyan);
}

.nav-link.highlight {
    color: var(--rift-red);
    border: 1px solid var(--rift-red);
    padding: 6px 16px;
    transition: all 0.3s;
}

.nav-link.highlight:hover {
    background: var(--rift-red);
    color: #000;
    box-shadow: 0 0 10px var(--rift-red);
}

/* Hamburger */
.feed-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 10002;
}

.feed-hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--rift-red);
    transition: all 0.3s ease;
}

/* Mobile Rules for Navbar */
@media (max-width: 1100px) and (orientation: portrait) {
    .feed-header {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 20px;
    }

    .feed-desktop-nav {
        display: none;
    }

    .feed-logo-text {
        height: 25px;
    }

    .feed-logo-text img {
        height: 40px;
    }

    .feed-hamburger {
        display: flex;
        margin-right: 0;
    }

    /* Hamburger Animation */
    .feed-hamburger.is-open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 8px);
    }

    .feed-hamburger.is-open span:nth-child(2) {
        opacity: 0;
    }

    .feed-hamburger.is-open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -8px);
    }
}

/* =========================================
   4. FULLSCREEN MENU (Mobile - Copied/Adapted)
   ========================================= */
.feed-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.feed-menu-backdrop {
    position: absolute;
    inset: 0;
    /* Updated Path for Home: relative to /sito/ */
    background-image: url('img/img-hamburguer-agenzia-digital-social-media-the-rift-studio-comunicazione.webp');
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    z-index: -1;
}

.feed-menu-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    align-items: flex-start;
}

.feed-menu-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

@media (max-width: 1100px) and (orientation: portrait) {
    .feed-menu-logo {
        top: 5vh !important;
    }
}


@media (max-width: 1100px) and (orientation: portrait) {
    .feed-menu-logo {
        top: 5vh !important;
    }
}


.feed-menu-logo img {
    height: 100px;
    max-width: 80%;
    filter: drop-shadow(0 0 15px var(--rift-rust));
    object-fit: contain;
}

.feed-menu-item {
    background: var(--rift-smog);
    color: var(--rift-beige);
    font-family: var(--font-display);
    font-size: 24px;
    text-transform: uppercase;
    padding: 15px 30px;
    border: 1px solid var(--rift-rust);
    border-left: 4px solid var(--rift-rust);
    width: 100%;
    text-align: left;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.feed-menu-item:hover,
.feed-menu-item.is-active,
.feed-menu-item:focus {
    background: var(--rift-rust);
    color: var(--rift-black);
    padding-left: 50px;
    box-shadow: 0 0 15px var(--rift-rust);
}

.feed-menu-start {
    margin-top: 20px;
    background: transparent;
    border: 1px solid var(--rift-cyan);
    color: var(--rift-cyan);
    clip-path: none;
}

.feed-menu-start:hover {
    background: var(--rift-cyan);
    color: var(--rift-black);
}

/* =========================================
   5. HOME SPECIFIC: LAYOUT & VIDEOS
   ========================================= */
.home-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Below Header (z:10001) */
    overflow: hidden;
}

.home-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.home-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    /* Hidden by default */
}

/* Video visibility managed by JS (desktop vs mobile), but default via CSS helps */
@media (min-width: 1101px),
(orientation: landscape) {
    .home-video-desktop {
        display: block;
    }
}

@media (max-width: 1100px) and (orientation: portrait) {
    .home-video-mobile {
        display: block;
    }
}

/* JS will strictly enforce play/pause/display */

/* DO NOT USE AUTOPLAY. It's user initiated. */

/* HITBOX FOR DOOR */
.home-door-hitbox {
    position: absolute;
    /* Centered for now - Needs adjustment based on video content */
    /* Assuming the door is roughly central. */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* Size - Adjust as needed */
    width: 30%;
    height: 40%;

    background: rgba(255, 0, 0, 0.0);
    /* Transparent */
    border: 2px solid transparent;
    /* Helper for debug if needed */
    /* Custom Cracked Circle Cursor */
    cursor: url('data:image/svg+xml;utf8,<svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><circle cx="16" cy="16" r="13" stroke="%2300F5FF" stroke-width="2" fill="none"/><path d="M16 3L14 10L19 16L13 22L16 29" stroke="%2300F5FF" stroke-width="2" stroke-linecap="round"/></svg>') 16 16, pointer;
    /* Debug hover effect */
    /* transition: background 0.3s; */
    z-index: 10;
}

/*
.home-door-hitbox:hover {
  background: rgba(0, 245, 255, 0.1); 
  border-color: var(--rift-cyan);
}
*/

/* =========================================
   6. PRELOAD OVERLAY (ROBOT UPDATE)
   ========================================= */
.home-preload {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--rift-text);
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s;
    pointer-events: auto;
    cursor: url('data:image/svg+xml;utf8,<svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><circle cx="16" cy="16" r="13" stroke="%2300F5FF" stroke-width="2" fill="none"/><path d="M16 3L14 10L19 16L13 22L16 29" stroke="%2300F5FF" stroke-width="2" stroke-linecap="round"/></svg>') 16 16, pointer;
}

.home-preload.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.home-preload-inner {
    position: relative;
    max-width: 600px;
    width: 90%;
    background: rgba(15, 25, 38, 0.6);
    border: 1px solid var(--rift-concrete);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.15);
}

.home-preload-welcome {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--rift-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(0, 245, 255, 0.5);
    margin: 0;
    position: relative;
    display: inline-block;
    animation: glitch-skew 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

.home-preload-welcome::before,
.home-preload-welcome::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    /* Assuming container bg handles visibility */
}

.home-preload-welcome::before {
    left: 2px;
    text-shadow: -2px 0 var(--rift-red);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.home-preload-welcome::after {
    left: -2px;
    text-shadow: -2px 0 var(--rift-acid);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(32px, 9999px, 86px, 0);
        transform: skew(0.85deg);
    }

    5% {
        clip: rect(69px, 9999px, 20px, 0);
        transform: skew(0.85deg);
    }

    10% {
        clip: rect(6px, 9999px, 6px, 0);
        transform: skew(0.31deg);
    }

    15% {
        clip: rect(98px, 9999px, 89px, 0);
        transform: skew(0.04deg);
    }

    20% {
        clip: rect(27px, 9999px, 7px, 0);
        transform: skew(0.44deg);
    }

    25% {
        clip: rect(91px, 9999px, 53px, 0);
        transform: skew(0.32deg);
    }

    30% {
        clip: rect(38px, 9999px, 32px, 0);
        transform: skew(0.79deg);
    }

    35% {
        clip: rect(83px, 9999px, 1px, 0);
        transform: skew(0.53deg);
    }

    40% {
        clip: rect(25px, 9999px, 96px, 0);
        transform: skew(0.38deg);
    }

    45% {
        clip: rect(57px, 9999px, 73px, 0);
        transform: skew(0.77deg);
    }

    50% {
        clip: rect(99px, 9999px, 17px, 0);
        transform: skew(0.03deg);
    }

    55% {
        clip: rect(60px, 9999px, 77px, 0);
        transform: skew(0.37deg);
    }

    60% {
        clip: rect(35px, 9999px, 46px, 0);
        transform: skew(0.8deg);
    }

    65% {
        clip: rect(10px, 9999px, 52px, 0);
        transform: skew(0.19deg);
    }

    70% {
        clip: rect(88px, 9999px, 35px, 0);
        transform: skew(0.66deg);
    }

    75% {
        clip: rect(80px, 9999px, 60px, 0);
        transform: skew(0.14deg);
    }

    80% {
        clip: rect(52px, 9999px, 99px, 0);
        transform: skew(0.99deg);
    }

    85% {
        clip: rect(62px, 9999px, 78px, 0);
        transform: skew(0.88deg);
    }

    90% {
        clip: rect(15px, 9999px, 75px, 0);
        transform: skew(0.78deg);
    }

    95% {
        clip: rect(96px, 9999px, 96px, 0);
        transform: skew(0.61deg);
    }

    100% {
        clip: rect(74px, 9999px, 8px, 0);
        transform: skew(0.2deg);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
        transform: skew(0.19deg);
    }

    5% {
        clip: rect(59px, 9999px, 34px, 0);
        transform: skew(0.01deg);
    }

    10% {
        clip: rect(4px, 9999px, 76px, 0);
        transform: skew(0.58deg);
    }

    15% {
        clip: rect(82px, 9999px, 37px, 0);
        transform: skew(0.94deg);
    }

    20% {
        clip: rect(13px, 9999px, 86px, 0);
        transform: skew(0.6deg);
    }

    25% {
        clip: rect(77px, 9999px, 34px, 0);
        transform: skew(0.61deg);
    }

    30% {
        clip: rect(22px, 9999px, 41px, 0);
        transform: skew(0.3deg);
    }

    35% {
        clip: rect(49px, 9999px, 78px, 0);
        transform: skew(0.06deg);
    }

    40% {
        clip: rect(63px, 9999px, 15px, 0);
        transform: skew(0.43deg);
    }

    45% {
        clip: rect(86px, 9999px, 20px, 0);
        transform: skew(0.08deg);
    }

    50% {
        clip: rect(12px, 9999px, 66px, 0);
        transform: skew(0.19deg);
    }

    55% {
        clip: rect(93px, 9999px, 88px, 0);
        transform: skew(0.79deg);
    }
}

@keyframes glitch-skew {
    0% {
        transform: skew(2deg);
    }

    10% {
        transform: skew(-2deg);
    }

    20% {
        transform: skew(0deg);
    }

    30% {
        transform: skew(2deg);
    }

    40% {
        transform: skew(-1deg);
    }

    50% {
        transform: skew(0deg);
    }

    60% {
        transform: skew(2deg);
    }

    70% {
        transform: skew(0deg);
    }

    80% {
        transform: skew(-2deg);
    }

    90% {
        transform: skew(1deg);
    }

    100% {
        transform: skew(0deg);
    }
}

.home-preload-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.home-preload-robot {
    width: 220px;
    max-width: 40%;
    border-radius: 50%;
    border: 2px solid var(--rift-cyan);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
    background: #000;
    opacity: 0;
    /* Hidden initially */
    transition: opacity 0.5s ease;
}

.home-preload-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    min-height: 120px;
}

.home-preload-line {
    font-family: 'IBM Plex Mono', monospace;
    /* Typewriter font */
    font-size: 16px;
    /* Slightly larger for readability */
    color: var(--rift-cyan);
    /* Cyberpunk cyan */
    margin: 0;
    text-align: left;
    line-height: 1.5;

    display: none;
    /* Hidden by default */
    position: relative;
    /* Glitch/Flicker effect on the text itself */
    text-shadow: 0 0 5px rgba(0, 245, 255, 0.5);
}

.home-preload-line.active {
    display: block;
}

/* Cursor Effect */
.home-preload-line.active::after {
    content: '_';
    display: inline-block;
    margin-left: 2px;
    color: var(--rift-red);
    animation: cursorBlink 0.8s infinite;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Light Text Glitch Animation (Optional enhancement) */
.home-preload-line.active {
    animation: textFlicker 3s infinite alternate;
}

@keyframes textFlicker {
    0% {
        opacity: 1;
    }

    3% {
        opacity: 0.8;
    }

    5% {
        opacity: 1;
    }

    98% {
        opacity: 1;
    }

    99% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Audio Toggle Visibility Helper */
.home-audio-toggle.menu-active-hidden {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Keep .dots hidden or remove usage in JS since we type everything */
.home-preload-line .dots {
    display: none;
}

.home-preload-skip {
    margin-top: 15px;
    font-family: var(--font-ui);
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 1;
    transition: color 0.3s;
}

.home-preload-skip:hover {
    color: var(--rift-cyan);
}

/* Mobile Layout */
@media (max-width: 600px) {
    .home-preload-body {
        flex-direction: column;
        gap: 20px;
    }

    .home-preload-robot {
        max-width: 160px;
    }

    .home-preload-messages {
        align-items: center;
        width: 100%;
        min-height: auto;
    }

    .home-preload-line {
        text-align: center;
    }
}

/* =========================================
   7. AUDIO TOGGLE
   ========================================= */
/* =========================================
   7. AUDIO TOGGLE
   ========================================= */
.home-audio-toggle {
    position: fixed;
    right: 20px;
    bottom: 60px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--rift-cyan);
    border-radius: 999px;
    /* Pill shape */
    padding: 10px 16px;
    color: var(--rift-text);
    cursor: url('data:image/svg+xml;utf8,<svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><circle cx="16" cy="16" r="13" stroke="%2300F5FF" stroke-width="2" fill="none"/><path d="M16 3L14 10L19 16L13 22L16 29" stroke="%2300F5FF" stroke-width="2" stroke-linecap="round"/></svg>') 16 16, pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.1);
}

.home-audio-toggle:hover {
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
    transform: translateY(-2px);
}

.home-audio-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

/* Speaker SVG */
.icon-speaker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    fill: var(--rift-cyan);
}

.icon-speaker::before,
.icon-speaker::after {
    display: none;
    /* Ensure old pseudos are gone */
}


/* X icon (Red Cross) */
.icon-x {
    position: absolute;
    inset: 0;
    display: block;
    transition: opacity 0.3s;
}

.icon-x::before,
.icon-x::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 2px;
    background: var(--rift-red);
    transform-origin: center;
}

.icon-x::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.icon-x::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* =========================================
   8. FLOATING CONTACT BUTTON
   ========================================= */
.rift-floating-contact {
    position: fixed;
    bottom: 110px;
    right: 20px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(5, 5, 8, 0.95);
    opacity: 0;
    /* Hidden initially */
    pointer-events: none;
    /* Non-clickable initially */
    border: 2px solid var(--rift-red);
    color: var(--rift-red);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 32, 78, 0.4), inset 0 0 10px rgba(255, 32, 78, 0.2);
    transition: all 0.3s ease;
    padding: 0;
    text-decoration: none;
}

.rift-floating-contact:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 32, 78, 0.8);
    background: var(--rift-red);
    color: var(--rift-black);
}

.rift-floating-contact--mobile {
    display: none;
}

.rift-floating-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.rift-floating-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.rift-floating-icon--mobile {
    display: none;
}

@media (max-width: 1100px) and (orientation: portrait) {
    .rift-floating-contact {
        bottom: 170px;
        width: 50px;
        height: 50px;
        right: 20px;
    }

    .rift-floating-contact--desktop {
        display: none;
    }

    .rift-floating-contact--mobile {
        display: flex;
    }

    .home-audio-toggle {
        bottom: 110px !important;
    }

    .rift-floating-icon--desktop {
        display: none;
    }

    .rift-floating-icon--mobile {
        display: flex;
    }
}


.icon-x::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Hint Text */
.home-audio-hint {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--rift-concrete);
    transition: all 0.3s;
}



/* STATE: ACTIVE (Audio ON) */
.home-audio-toggle.is-on {
    background: rgba(0, 245, 255, 0.1);
    border-color: var(--rift-cyan);
}

.home-audio-toggle.is-on .icon-x {
    opacity: 0;
    transform: scale(0.5);
    /* effect */
}

/* Hide Hint when ON */
.home-audio-toggle.is-on .home-audio-hint {
    opacity: 0;
    width: 0;
    pointer-events: none;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Fill speaker when ON? Optional polish */
.home-audio-toggle.is-on .icon-speaker {
    background: rgba(0, 245, 255, 0.3);
}

/* =========================================
   8. TRANSITION SKIP OVERLAY
   ========================================= */
.home-transition-skip {
    position: fixed;
    inset: 0;
    z-index: 99999;
    /* Highest priority */
    background: transparent;
    opacity: 0;
    pointer-events: none;
    /* Initially hidden/unclickable */
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.home-transition-skip.is-visible {
    opacity: 1;
    pointer-events: auto;
    /* Enable click */
}

.home-skip-hint {
    position: absolute;
    bottom: 30px;
    right: 40px;
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--rift-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    transition: opacity 0.3s ease, color 0.3s ease;
    pointer-events: none;
    /* Let clicks pass to container */
}

.home-transition-skip:hover .home-skip-hint {
    opacity: 1;
    color: var(--rift-cyan);
    text-shadow: 0 0 5px var(--rift-cyan);
}

/* =========================================
   9. HOME LABEL (ACCEDI AL CLUB)
   ========================================= */

@keyframes home-label-glitch-soft {

    0%,
    100% {
        transform: translate(-50%, -50%);
        text-shadow: 0 0 0 transparent;
        clip-path: inset(0 0 0 0);
    }

    10% {
        transform: translate(-50%, -50%);
        text-shadow: 2px 0 var(--rift-cyan);
        clip-path: inset(0 0 0 0);
    }

    20% {
        transform: translate(-51%, -50%);
        text-shadow: -2px 0 var(--rift-red);
        clip-path: inset(5% 0 90% 0);
    }

    30% {
        transform: translate(-50%, -50%);
        text-shadow: 0 0 0 transparent;
        clip-path: inset(0 0 0 0);
    }

    70% {
        transform: translate(-49%, -50%);
        text-shadow: 2px 0 var(--rift-cyan);
        clip-path: inset(90% 0 5% 0);
    }

    80% {
        transform: translate(-50%, -50%);
        text-shadow: 0 0 0 transparent;
        clip-path: inset(0 0 0 0);
    }
}

.home-label {
    position: absolute;
    pointer-events: none;
    /* Ignore clicks */
    opacity: 0;
    /* Hidden by default */

    /* Style - Red/Black Theme */
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--rift-red);
    color: var(--rift-red);
    font-family: var(--font-display);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 14px;
    white-space: nowrap;

    /* Position: Shifted Left (Less aggressive than 40%) */
    top: 50%;
    left: 45%;
    transform: translate(-50%, -40%);

    /* Glow/Shadow */
    box-shadow: 0 0 15px rgba(255, 32, 78, 0.2);

    /* Transition */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.home-door-hitbox:hover .home-label {
    opacity: 1;
    transform: translate(-50%, -50%);
    /* Soft Glitch Effect */
    animation: home-label-glitch-soft 3s infinite alternate;
    /* Static glow when not glitching */
    text-shadow: 0 0 5px rgba(255, 32, 78, 0.5);
}

/* =========================================
   CLUB TRANSITION OVERLAY
   ========================================= */
.home-club-transition {
    position: fixed;
    inset: 0;
    /* Pure black transition to the Club intro */
    background: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out;
    z-index: 500;
    /* High z-index to cover everything */
}

.home-club-transition.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* =========================================
   10. MINI FOOTER
   ========================================= */
.service-mini-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgba(5, 5, 8, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 100;
    backdrop-filter: blur(10px);
    font-family: var(--font-ui);
    font-size: 0.7rem;
    color: #666;
}

.mini-footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-footer-left span {
    letter-spacing: 1px;
}

.divider {
    color: #333;
}

.mini-footer-center {
    display: flex;
    gap: 20px;
}

.mini-footer-center a {
    color: #666;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s;
}

.mini-footer-center a:hover {
    color: var(--rift-cyan);
}

.mini-footer-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mini-social-icon {
    width: 16px;
    height: 16px;
    fill: #666;
    transition: fill 0.3s;
}

.mini-footer-right a:hover .mini-social-icon {
    fill: var(--rift-cyan);
}

@media (max-width: 1100px) and (orientation: portrait) {
    .service-mini-footer {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
        gap: 10px;
        text-align: center;
        bottom: 0;
    }

    .footer-address,
    .address-divider {
        display: none;
    }

    .mini-footer-center {
        gap: 15px;
    }
}

/* =========================================
   ROBOT INTERACTION (Refined)
   ========================================= */

/* Hitbox */
.home-robot-hitbox {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25vw;
    height: 40vh;
    z-index: 20;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Thin Cyberpunk Prompt */
.home-robot-prompt {
    position: absolute;
    bottom: 35%;
    /* Reverted to 35% */
    left: 10%;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--rift-cyan);
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 25;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--rift-cyan);
    font-size: 0.85rem;
    letter-spacing: 1px;
    box-shadow: 0 0 5px var(--rift-cyan);
    transform: translateY(10px);
    pointer-events: none;
}

.home-robot-prompt::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--rift-cyan);
}

.home-robot-prompt.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    cursor: pointer;
    transform: translateY(0);
}

.home-robot-prompt:hover {
    background: rgba(0, 245, 255, 0.1);
}

/* Dots Animation */
.prompt-dots {
    display: flex;
    gap: 3px;
    margin-left: 5px;
}

.prompt-dots .dot {
    width: 3px;
    height: 3px;
    background: var(--rift-cyan);
    border-radius: 50%;
    animation: blink-dot 1.4s infinite both;
}

.prompt-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.prompt-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink-dot {

    0%,
    80%,
    100% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }
}

/* Glitch Effect Class (Applied via JS) */
.home-video-wrapper.robot-glitch-active .home-video {
    animation: robot-glitch-anim 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    filter: hue-rotate(90deg) contrast(1.5) !important;
}

@keyframes robot-glitch-anim {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-5px, 5px);
    }

    40% {
        transform: translate(-5px, -5px);
    }

    60% {
        transform: translate(5px, 5px);
    }

    80% {
        transform: translate(5px, -5px);
    }

    100% {
        transform: translate(0);
    }
}

/* Pixel Bubble (Full) */
.home-pixel-bubble {
    position: absolute;
    bottom: 35%;
    /* Reverted to 35% */
    left: 10%;
    width: 350px;
    max-width: 80vw;
    background: rgba(0, 5, 5, 0.95);
    border: 1px solid var(--rift-cyan);
    border-left: 4px solid var(--rift-cyan);
    padding: 15px;
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}

.home-pixel-bubble.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.home-bubble-content {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: var(--rift-cyan);
    line-height: 1.5;
    text-shadow: 0 0 2px rgba(0, 245, 255, 0.5);
}

/* Mobile Adjustments */
@media (max-width: 1100px) and (orientation: portrait) {
    .home-robot-hitbox {
        width: 45vw;
        height: 35vh;
    }

    .home-robot-prompt {
        left: 5%;
        bottom: 55%;
        /* Raised further (was 45%) */
        max-width: 90%;
        font-size: 0.7rem;
    }

    .home-pixel-bubble {
        left: 5%;
        bottom: 55%;
        /* Raised further (was 45%) */
        width: 90vw;
    }

    #home-audio-hint {
        bottom: 220px;
        /* Significance raise to clear toggle (110px) */
        right: 20px;
        max-width: 180px;
    }

    .rift-floating-contact {
        bottom: 300px !important;
        /* Raised above new hint position */
        right: 20px;
    }
}

/* =========================================
   AUDIO HINT BUBBLE
   ========================================= */
#home-audio-hint {
    position: absolute;
    bottom: 110px;
    /* Desktop: Lower, closer to audio toggle (60px) */
    right: 35px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid var(--rift-cyan);
    padding: 8px 12px;
    color: var(--rift-cyan);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    z-index: 9000;
    max-width: 250px;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
    transition: opacity 0.3s, transform 0.3s;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#home-audio-hint:hover {
    background: rgba(0, 245, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.4);
}

/* Arrow pointing down-right */
#home-audio-hint .hint-arrow {
    position: absolute;
    bottom: -5px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 0 solid transparent;
    border-top: 8px solid var(--rift-cyan);
    transform: skewX(-15deg);
    /* Slight skew to point right */
}

/* Adjust Desktop Floating Contact position */
.rift-floating-contact {
    bottom: 190px !important;
    /* Move above the hint */
}

/* =========================================
   MOBILE OVERRIDES (FIXED POSITIONING)
   Placed at the end to ensure cascade priority
   ========================================= */
@media (max-width: 1100px) and (orientation: portrait) {

    /* Raising Robot Prompts layout */
    .home-robot-prompt,
    .home-pixel-bubble {
        bottom: 65%;
    }

    /* Audio Hint - Above Toggle (110px) */
    #home-audio-hint {
        bottom: 175px !important;
        right: 20px;
        max-width: 180px;
    }

    /* Contact Button - Above Hint */
    .rift-floating-contact {
        bottom: 265px !important;
        right: 20px;
    }

    /* Make Door Label Always Visible on Mobile */
    .home-label {
        opacity: 1 !important;
        transform: translate(-50%, -50%) !important;
        pointer-events: none;
        font-size: 6px;
        padding: 3px 7px;
        letter-spacing: 1px;
        left: 70% !important;
        /* Shifting 30% to the right (45% -> 75%) */
    }
}

/* =========================================
   EASTER EGG: Red Dots & Popup
   ========================================= */

/* Easter Egg Dots Container - Positioned near wall hole */
.easter-egg-dots {
    position: absolute;
    bottom: 25%;
    right: 26%;
    display: flex;
    gap: 8px;
    z-index: 100;
    cursor: pointer;
}

/* Individual Red Dots */
.easter-dot {
    width: 12px;
    height: 12px;
    background: var(--rift-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--rift-red),
        0 0 20px rgba(255, 32, 78, 0.5);
    animation: easterPulse 1.5s ease-in-out infinite;
    transition: transform 0.2s ease;
}

.easter-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.easter-dot:nth-child(3) {
    animation-delay: 0.6s;
}

.easter-dot:hover {
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--rift-red),
        0 0 30px rgba(255, 32, 78, 0.8);
}

@keyframes easterPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

/* Easter Egg Popup Modal */
.easter-popup {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.easter-popup.is-open {
    display: flex;
    opacity: 1;
}

.easter-popup-content {
    position: relative;
    background: var(--rift-smog);
    border: 2px solid var(--rift-red);
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    padding: 30px;
    box-shadow: 0 0 40px rgba(255, 32, 78, 0.4),
        inset 0 0 20px rgba(255, 32, 78, 0.1);
    animation: popupGlitch 0.3s ease-out;
}

@keyframes popupGlitch {
    0% {
        transform: translate(0, 0) scale(0.8);
        opacity: 0;
    }

    20% {
        transform: translate(-5px, 5px) scale(0.9);
    }

    40% {
        transform: translate(5px, -5px) scale(1.05);
    }

    60% {
        transform: translate(-3px, 3px) scale(0.98);
    }

    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
}

/* Close Button */
.easter-popup-close {
    position: absolute;
    top: 25%;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--rift-red);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10;
}

.easter-popup-close:hover {
    color: #fff;
    transform: rotate(90deg);
    text-shadow: 0 0 10px var(--rift-red);
}

/* Popup Header */
.easter-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--rift-concrete);
}

.easter-status-lights {
    display: flex;
    gap: 8px;
}

.easter-light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rift-red);
    box-shadow: 0 0 8px var(--rift-red);
    animation: easterBlink 1s infinite;
}

.easter-light:nth-child(2) {
    animation-delay: 0.3s;
}

.easter-light:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes easterBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.easter-popup-code {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--rift-red);
    letter-spacing: 1px;
}

/* Popup Body */
.easter-popup-body {
    position: relative;
    text-align: center;
    padding: 20px 0;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.easter-logo {
    max-width: 280px;
    height: auto;
    display: none;
    /* Hidden by default, controlled by JS */
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.easter-logo.is-visible {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.easter-text-content {
    display: none;
    /* Hidden by default */
    opacity: 0;
    transition: opacity 0.5s ease;
}

.easter-text-content.is-visible {
    display: block;
    opacity: 1;
}

.easter-glitch {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--rift-red);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 20px 0;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 10px rgba(255, 32, 78, 0.8);
    animation: easterGlitchAnim 2s infinite;
}

.easter-glitch::before,
.easter-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.easter-glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--rift-cyan);
    clip: rect(44px, 450px, 56px, 0);
    animation: easterGlitchClip 3s infinite linear alternate-reverse;
}

.easter-glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--rift-acid);
    clip: rect(44px, 450px, 56px, 0);
    animation: easterGlitchClip2 2s infinite linear alternate-reverse;
}

@keyframes easterGlitchAnim {

    0%,
    100% {
        transform: skew(0deg);
    }

    25% {
        transform: skew(2deg);
    }

    50% {
        transform: skew(-2deg);
    }

    75% {
        transform: skew(1deg);
    }
}

@keyframes easterGlitchClip {
    0% {
        clip: rect(32px, 9999px, 86px, 0);
    }

    25% {
        clip: rect(69px, 9999px, 20px, 0);
    }

    50% {
        clip: rect(6px, 9999px, 60px, 0);
    }

    75% {
        clip: rect(98px, 9999px, 89px, 0);
    }

    100% {
        clip: rect(27px, 9999px, 7px, 0);
    }
}

@keyframes easterGlitchClip2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    25% {
        clip: rect(59px, 9999px, 34px, 0);
    }

    50% {
        clip: rect(4px, 9999px, 76px, 0);
    }

    75% {
        clip: rect(82px, 9999px, 37px, 0);
    }

    100% {
        clip: rect(13px, 9999px, 86px, 0);
    }
}

.easter-message {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--rift-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 0 8px rgba(0, 245, 255, 0.6);
}

/* Scanlines Effect */
.easter-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
    animation: easterScanMove 8s linear infinite;
}

@keyframes easterScanMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(20px);
    }
}

/* =========================================
   8. MINI FOOTER (Imported from Service)
   ========================================= */
.service-mini-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgba(5, 5, 8, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 100;
    backdrop-filter: blur(10px);
    font-family: var(--font-ui);
    font-size: 0.7rem;
    color: #666;
}

.mini-footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-footer-left span {
    letter-spacing: 1px;
}

.divider {
    color: #333;
}

.mini-footer-center {
    display: flex;
    gap: 20px;
}

.mini-footer-center a {
    color: #666;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s;
}

.mini-footer-center a:hover {
    color: var(--rift-cyan);
}

.mini-footer-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mini-social-icon {
    width: 16px;
    height: 16px;
    fill: #666;
    transition: fill 0.3s;
}

.mini-footer-right a:hover .mini-social-icon {
    fill: var(--rift-cyan);
}

/* Mobile Adjustments */
@media (max-width: 1100px) and (orientation: portrait) {
    .easter-egg-dots {
        bottom: 50%;
        right: 10%;
        gap: 6px;
    }

    .easter-dot {
        width: 10px;
        height: 10px;
    }




    .easter-glitch {
        font-size: 24px;
    }

    .easter-message {
        font-size: 18px;
    }
}

/* =========================================
   7. MOBILE LANDSCAPE RESPONSIVENESS
   ========================================= */
@media (max-height: 500px) and (orientation: landscape) {

    .feed-header {
        padding: 5px 20px;
    }

    .feed-logo-text {
        transform: translateX(-10px);
        /* Move slightly left */
    }

    .feed-logo-text img {
        height: 25px;
        /* Reduced from 30px */
    }

    .feed-menu-panel {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 20px;
        max-width: 90vw;
    }

    .feed-menu-logo {
        margin-bottom: 10px;
        width: 100%;
    }

    .feed-menu-logo img {
        height: 60px;
    }

    .feed-menu-item {
        width: calc(50% - 10px);
        font-size: 14px;
        padding: 8px 15px;
    }

    .feed-menu-start {
        width: 100%;
        margin-top: 10px;
    }

    .home-preload-inner {
        padding: 15px;
        gap: 10px;
        width: 95%;
    }

    .home-preload-robot {
        width: 100px;
    }

    .home-preload-line {
        font-size: 13px;
    }

    .home-preload-welcome {
        font-size: 14px;
    }

    /* Locura Popup Resize */
    .easter-popup-content {
        padding: 15px;
        max-width: 400px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .easter-glitch {
        font-size: 20px;
    }

    .easter-message {
        font-size: 14px;
    }

    .easter-logo {
        max-width: 180px;
    }

    /* Mini Footer Refinement */
    .service-mini-footer {
        font-size: 0.6rem;
        height: 45px;
        padding: 0 15px;
    }


    .mini-footer-center {
        align-items: flex-end;
        /* Justify towards bottom as requested */
        padding-bottom: 2px;
    }
}

/* Landscape Scaling for Small Screens (Global) */
@media (max-width: 1100px) and (orientation: landscape) {
    body {
        /* Use standard transform instead of zoom to avoid inconsistencies */
        transform: scale(0.6);
        -webkit-transform: scale(0.6);
        -moz-transform: scale(0.6);
        transform-origin: top left;
        -webkit-transform-origin: top left;
        -moz-transform-origin: top left;

        width: 166.7%;
        /* 100% / 0.6 */
        height: 166.7%;
        min-height: 166.7%;

        /* Prevent scrolling / hiding content */
        position: fixed;
        top: 0;
        left: 0;
        overflow: hidden;
        overscroll-behavior: none;
    }
}