/* ========================================================
   HOLOGRAPHIC MANIFESTO SECTION
   ======================================================== */

.manifesto-section {
    background:
        radial-gradient(circle at 17% 34%, rgba(231, 56, 50, .21), transparent 28%),
        radial-gradient(circle at 76% 42%, rgba(36, 220, 190, .16), transparent 31%),
        linear-gradient(115deg, #080b11 0%, #111820 52%, #061016 100%);
    background-size: cover;
    color: #fff;
    padding: 100px 0 100px 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Ambient lighting / Glow */
.manifesto-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .13;
    background-image:
        linear-gradient(rgba(179,249,244,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(179,249,244,.04) 1px, transparent 1px);
    background-size: 44px 44px;
}

.manifesto-container {
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    display: block;
    text-align: center;
    align-self: center;
}

/* ELI PROJECTOR */
.eli-projector {
    position: absolute;
    left: max(24px, calc(50vw - 570px));
    top: 50%;
    transform: translateY(-50%);
    width: 256px;
    z-index: 3;
    animation: floatEliHolo 6s ease-in-out infinite;
}

.eli-projector img {
    width: 100%;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.9));
}

@keyframes floatEliHolo {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    50% { transform: translateY(-55%) rotate(3deg); }
}

/* LASER BEAM */
.laser-beam {
    position: absolute;
    left: 186px; /* Origin near ELI's eye */
    top: 48%;
    width: 35vw;
    height: 320px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, rgba(231,56,50,0.9) 0%, rgba(231,56,50,0.2) 60%, transparent 100%);
    clip-path: polygon(0 48.5%, 100% 0, 100% 100%, 0 51.5%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.75;
    animation: pulseLaser 4s infinite alternate;
    mix-blend-mode: screen;
}

@keyframes pulseLaser {
    0% { opacity: 0.5; }
    100% { opacity: 0.85; }
}

/* HOLOGRAPHIC GRID CONTAINER */
.holo-wrapper {
    perspective: 1200px;
    width: 100%;
    max-width: 640px;
    margin-left: auto;
    margin-right: 5%;
}

.holo-screen {
    transform: rotateY(-25deg) rotateX(5deg);
    transform-style: preserve-3d;
    position: relative;
    padding: 64px 48px;
    border: 2px solid rgba(231, 56, 50, 0.5);
    background: rgba(231, 56, 50, 0.08);
    box-shadow: 
        inset 0 0 60px rgba(231, 56, 50, 0.25),
        0 0 80px rgba(231, 56, 50, 0.4);
    border-radius: 16px;
    backdrop-filter: blur(4px);
}

/* Cyber grid background */
.holo-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(231, 56, 50, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(231, 56, 50, 0.2) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    border-radius: 14px;
    opacity: 0.6;
}

/* Corner Accents */
.holo-screen::after {
    content: "";
    position: absolute;
    inset: -2px;
    border: 2px solid transparent;
    background: 
        linear-gradient(to right, #e73832, #e73832) top left,
        linear-gradient(to right, #e73832, #e73832) top left,
        linear-gradient(to right, #e73832, #e73832) bottom right,
        linear-gradient(to right, #e73832, #e73832) bottom right;
    background-size: 40px 4px, 4px 40px;
    background-repeat: no-repeat;
    border-radius: 16px;
    z-index: 5;
    pointer-events: none;
}

.holo-text-container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr;
}

.holo-subtitle {
    font-size: 0.96rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    text-shadow: 0 0 10px rgba(231, 56, 50, 0.8);
    grid-row: 1;
    grid-column: 1;
}

.holo-subtitle span {
    color: #e73832;
}

.holo-phrase {
    font-size: 2.4rem;
    font-weight: 900;
    font-family: var(--font-display);
    line-height: 1.15;
    min-height: 144px;
    display: block;
    text-align: center;
    align-self: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    text-shadow: 0 0 15px rgba(231, 56, 50, 0.7), 0 0 30px rgba(231, 56, 50, 0.4);
    grid-row: 2;
    grid-column: 1;
}

.holo-phrase.active {
    opacity: 1;
    z-index: 2;
}

.holo-phrase span.highlight {
    color: #8ffcf4;
    text-shadow: 0 0 18px rgba(143,252,244,.8), 0 0 36px rgba(143,252,244,.4);
}

/* Hologram Glitch/Flicker */
.holo-flicker {
    animation: flicker 6s infinite alternate;
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.6; text-shadow: 0 0 5px rgba(231,56,50,0.5); }
}

@media (max-width: 1040px) {
    .manifesto-section { padding: 80px 0; flex-direction: column; }
    .eli-projector {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        width: 200px;
        margin: 0 auto 40px;
        animation: floatEliMobile 4s ease-in-out infinite;
    }
    
    .laser-beam {
        left: 50%;
        top: 150px;
        width: 150px;
        height: 20vh;
        transform: translateX(-50%);
        background: linear-gradient(180deg, rgba(231,56,50,0.9) 0%, transparent 100%);
        clip-path: polygon(48% 0, 52% 0, 100% 100%, 0 100%);
    }

    .holo-wrapper {
        perspective: none;
        margin: 0 auto;
    }

    .holo-screen {
        transform: none;
        padding: 40px 20px;
    }

    .holo-phrase { font-size: 2rem; min-height: 120px; position: relative; transform: none; }
    
    @keyframes floatEliMobile {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }
}


/* ========================================================
   CTA FORM FOR MANIFESTO
   ======================================================== */
.cta-wrapper {
    width: 100%;
    margin-top: 40px;
    z-index: 10;
}

.dxv-form {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 170px;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(231,56,50,0.5);
    border-top: 1px solid rgba(255,100,100,0.4);
    background:
        linear-gradient(135deg, rgba(20,8,8,0.85), rgba(10,4,4,0.9)),
        rgba(15, 5, 5, 0.8);
    box-shadow:
        -10px 30px 50px rgba(0,0,0,0.7),
        0 0 30px rgba(231,56,50,0.25),
        inset 0 0 15px rgba(231,56,50,0.1);
    backdrop-filter: blur(16px);
    position: relative;
}

.dxv-terminal-label {
    grid-column: 1 / -1;
    color: rgba(255, 150, 150, 0.84);
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 4px;
    text-shadow: 0 0 14px rgba(231,56,50,0.3);
}

.dxv-terminal-label span {
    color: #e73832;
}

.dxv-input {
    width: 100%;
    height: 52px;
    border: 1px solid rgba(231,56,50,0.2);
    border-radius: 6px;
    outline: none;
    padding: 0 16px;
    background: rgba(8, 2, 2, 0.88);
    color: #fff;
    font-size: 14px;
}

.dxv-input::placeholder {
    color: rgba(255,255,255,0.38);
}

.dxv-input:focus {
    border-color: #ff5a43;
    box-shadow: 0 0 0 3px rgba(231,56,50,0.2);
}

.dxv-btn {
    position: relative;
    overflow: hidden;
    height: 52px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    background: linear-gradient(135deg, #e73832, #ff5a43);
    color: #fff;
    font-size: 14px;
    font-weight: 950;
    box-shadow: 0 18px 42px rgba(231,56,50,0.32);
    transition: transform 0.2s ease, filter 0.2s ease;
    animation: dxvPulse 3.1s ease-in-out infinite;
}

.dxv-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

@keyframes dxvPulse {
    0%, 100% { box-shadow: 0 18px 42px rgba(231,56,50,.30); }
    50% { box-shadow: 0 22px 56px rgba(231,56,50,.46); }
}

.dxv-hidden {
    position: absolute;
    left: -9999px;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 1040px) {
    .cta-wrapper {
        margin: 40px auto 0;
    }
}

@media (max-width: 720px) {
    .dxv-form {
        grid-template-columns: 1fr;
    }
}


.dxv-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -100%;
    width: 30%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(25deg);
    animation: dxvShine 7s infinite ease-in-out;
}

@keyframes dxvShine {
    0%, 75% { left: -100%; }
    100% { left: 200%; }
}


/* ========================================================
   AMBIENT HOLOGRAPHIC PANELS
   ======================================================== */
.holo-ambient-holos {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    perspective: 1000px;
}

.holo-ambient-panel {
    --ambient-transform: rotate(0deg);
    position: absolute;
    width: 172px;
    min-height: 94px;
    padding: 13px;
    border-radius: 8px;
    border: 1px solid rgba(179,249,244,.24);
    background:
        linear-gradient(180deg, rgba(179,249,244,.12), rgba(179,249,244,.035)),
        repeating-linear-gradient(180deg, rgba(179,249,244,.16) 0 1px, transparent 1px 13px);
    box-shadow:
        0 0 26px rgba(36,220,190,.10),
        inset 0 0 18px rgba(179,249,244,.06);
    color: #8ffcf4;
    opacity: .34;
    backdrop-filter: blur(5px);
    transform: var(--ambient-transform);
    transform-style: preserve-3d;
    animation: holoAmbientDrift 8s ease-in-out infinite;
}

.holo-ambient-panel b {
    display: block;
    color: rgba(234,255,251,.76);
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.holo-ambient-panel span {
    display: block;
    margin-top: 7px;
    color: rgba(143,252,244,.68);
    font-size: 10px;
    font-weight: 800;
}

.holo-ambient-panel i {
    display: block;
    height: 1px;
    margin-top: 9px;
    background: linear-gradient(90deg, rgba(143,252,244,.65), transparent);
}

.holo-ambient-left-a {
    left: -52px;
    top: 17%;
    --ambient-transform: rotateY(-24deg) rotateZ(-7deg);
}

.holo-ambient-left-b {
    left: 6%;
    bottom: 12%;
    width: 185px;
    --ambient-transform: rotateY(-18deg) rotateZ(4deg);
    animation-delay: -2.2s;
}

.holo-ambient-right-a {
    right: -58px;
    top: 19%;
    width: 190px;
    --ambient-transform: rotateY(22deg) rotateZ(6deg);
    animation-delay: -1.5s;
}

.holo-ambient-right-b {
    right: 5%;
    bottom: 9%;
    width: 178px;
    --ambient-transform: rotateX(18deg) rotateZ(-3deg);
    animation-delay: -3.4s;
}

@keyframes holoAmbientDrift {
    0%, 100% {
        opacity: .28;
        transform: var(--ambient-transform) translateY(0);
        filter: drop-shadow(0 0 8px rgba(36,220,190,.12));
    }
    50% {
        opacity: .50;
        transform: var(--ambient-transform) translateY(-9px);
        filter: drop-shadow(0 0 16px rgba(36,220,190,.22));
    }
}

@media (max-width: 720px) {
    .holo-ambient-holos {
        display: none;
    }
}
