/* ============================================================
   CYBERPUNK.CSS — Blade Runner / Tron Landing Experience
   ============================================================ */

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #05050a;
    font-family: 'Rajdhani', sans-serif;
    color: #e0e0e0;
    cursor: default;
}

/* — Canvas — */
#cityscape {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* — Scanline CRT Overlay — */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.06) 2px,
        rgba(0, 0, 0, 0.06) 4px
    );
    animation: scanlineShift 8s linear infinite;
}

@keyframes scanlineShift {
    0%   { background-position: 0 0; }
    100% { background-position: 0 40px; }
}

/* — Billboard Container — */
.billboard-container {
    position: fixed;
    z-index: 10;
    /* Positioned in the upper-right area like a distant rooftop billboard */
    top: 30%;
    right: 8%;
    transform: perspective(800px) rotateY(-6deg) rotateX(2deg);
    animation: billboardDrift 12s ease-in-out infinite;
}

@keyframes billboardDrift {
    0%, 100% { transform: perspective(800px) rotateY(-6deg) rotateX(2deg); }
    50%      { transform: perspective(800px) rotateY(-4deg) rotateX(1deg); }
}

.billboard-frame {
    position: relative;
    padding: 10px 20px 8px;
    border: 2px solid rgba(255, 42, 109, 0.5);
    border-radius: 2px;
    background: rgba(10, 5, 20, 0.75);
    box-shadow:
        0 0 15px rgba(255, 42, 109, 0.3),
        0 0 60px rgba(255, 42, 109, 0.1),
        inset 0 0 30px rgba(255, 42, 109, 0.05);
}

.billboard-frame::before {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border: 1px solid rgba(255, 42, 109, 0.2);
    border-radius: 4px;
    pointer-events: none;
}

.billboard-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    user-select: none;
}

.billboard-line-1 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: clamp(1.25rem, 3vw, 2.75rem);
    letter-spacing: 0.25em;
    color: #ff2a6d;
    text-shadow:
        0 0 7px #ff2a6d,
        0 0 20px #ff2a6d,
        0 0 42px #ff2a6d,
        0 0 82px rgba(255, 42, 109, 0.6),
        0 0 120px rgba(255, 42, 109, 0.3);
    animation: neonFlicker 4s ease-in-out infinite;
}

.billboard-line-2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: clamp(0.6rem, 1.5vw, 1.4rem);
    letter-spacing: 0.4em;
    color: #05d9e8;
    text-shadow:
        0 0 7px #05d9e8,
        0 0 20px #05d9e8,
        0 0 42px #05d9e8,
        0 0 82px rgba(5, 217, 232, 0.5),
        0 0 120px rgba(5, 217, 232, 0.2);
    animation: neonFlicker2 5s ease-in-out infinite;
}

/* — Neon Flicker Animations — */
@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
        text-shadow:
            0 0 7px #ff2a6d,
            0 0 20px #ff2a6d,
            0 0 42px #ff2a6d,
            0 0 82px rgba(255, 42, 109, 0.6),
            0 0 120px rgba(255, 42, 109, 0.3);
    }
    20%, 24%, 55% {
        opacity: 0.7;
        text-shadow:
            0 0 4px #ff2a6d,
            0 0 10px #ff2a6d,
            0 0 20px rgba(255, 42, 109, 0.4);
    }
}

@keyframes neonFlicker2 {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        opacity: 1;
        text-shadow:
            0 0 7px #05d9e8,
            0 0 20px #05d9e8,
            0 0 42px #05d9e8,
            0 0 82px rgba(5, 217, 232, 0.5),
            0 0 120px rgba(5, 217, 232, 0.2);
    }
    19%, 23%, 54% {
        opacity: 0.75;
        text-shadow:
            0 0 4px #05d9e8,
            0 0 12px rgba(5, 217, 232, 0.4);
    }
}

/* — Billboard Support Beam — */
.billboard-support {
    width: 3px;
    height: 40px;
    margin: 0 auto;
    background: linear-gradient(to bottom, rgba(255, 42, 109, 0.3), transparent);
}

/* — Mode Switcher (A/B test) — */
.mode-switcher {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(10, 10, 25, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(5, 217, 232, 0.25);
    border-radius: 4px;
}

.mode-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: rgba(5, 217, 232, 0.5);
    margin-right: 4px;
}

.mode-btn {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 5px 12px;
    border: 1px solid rgba(5, 217, 232, 0.3);
    border-radius: 2px;
    background: rgba(5, 217, 232, 0.05);
    color: rgba(5, 217, 232, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-btn:hover {
    background: rgba(5, 217, 232, 0.12);
    color: #05d9e8;
    border-color: rgba(5, 217, 232, 0.5);
}

.mode-btn.active {
    background: rgba(5, 217, 232, 0.15);
    color: #05d9e8;
    border-color: #05d9e8;
    box-shadow: 0 0 8px rgba(5, 217, 232, 0.2);
}

.mode-desc {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.7rem;
    color: rgba(5, 217, 232, 0.4);
    margin-left: 8px;
    letter-spacing: 0.05em;
}

.contact-divider {
    color: rgba(5, 217, 232, 0.2);
    font-size: 0.9rem;
    margin: 0 4px;
}

.contact-mode {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-svg {
    width: 20px;
    height: 20px;
    color: #05d9e8;
    transition: all 0.3s ease;
}

.contact-link:hover .contact-svg {
    color: #ff2a6d;
    filter: drop-shadow(0 0 4px rgba(255, 42, 109, 0.5));
}

.contact-toggle {
    font-size: 0.75rem;
    padding: 2px 6px;
    margin-left: 10px;
    border: 1px solid rgba(5, 217, 232, 0.2);
    border-radius: 2px;
    background: rgba(5, 217, 232, 0.05);
    color: rgba(5, 217, 232, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.contact-toggle:hover {
    border-color: rgba(5, 217, 232, 0.5);
    color: #05d9e8;
    background: rgba(5, 217, 232, 0.1);
}

/* — Contact Bar — */
.contact-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    padding: 10px 28px;
    background: rgba(10, 10, 25, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(5, 217, 232, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.contact-bar:hover {
    background: rgba(10, 10, 25, 0.8);
    border-color: rgba(5, 217, 232, 0.5);
    box-shadow: 0 0 20px rgba(5, 217, 232, 0.1);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #05d9e8;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #ff2a6d;
    text-shadow: 0 0 10px rgba(255, 42, 109, 0.5);
}

.contact-icon {
    font-size: 1.1rem;
}

/* — Corner Decorations — */
.ui-corner {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 15;
    pointer-events: none;
}

.corner-decoration {
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: rgba(5, 217, 232, 0.25);
    border-style: solid;
    border-width: 0;
}

.corner-decoration.top-left {
    top: 16px; left: 16px;
    border-top-width: 1px;
    border-left-width: 1px;
}

.corner-decoration.top-right {
    top: 16px; right: 16px;
    border-top-width: 1px;
    border-right-width: 1px;
}

.corner-decoration.bottom-left {
    bottom: 16px; left: 16px;
    border-bottom-width: 1px;
    border-left-width: 1px;
}

.corner-decoration.bottom-right {
    bottom: 16px; right: 16px;
    border-bottom-width: 1px;
    border-right-width: 1px;
}

/* — Responsive Adjustments — */
@media (max-width: 768px) {
    .billboard-container {
        top: 8%;
        right: 50%;
        transform: perspective(800px) rotateY(0deg) translateX(50%);
    }

    @keyframes billboardDrift {
        0%, 100% { transform: perspective(800px) rotateY(0deg) translateX(50%); }
        50%      { transform: perspective(800px) rotateY(-2deg) translateX(50%); }
    }

    .billboard-frame {
        padding: 12px 20px 10px;
    }

    .billboard-line-1 {
        letter-spacing: 0.25em;
    }

    .billboard-line-2 {
        letter-spacing: 0.4em;
    }

    .contact-bar {
        bottom: 16px;
        padding: 8px 20px;
    }

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

@media (max-width: 480px) {
    .billboard-frame {
        padding: 8px 14px 6px;
    }
}
