@font-face {
    font-family: 'VT323';
    src: url('../media/font/VT323-Regular.ttf');
}

:root {
    --text: #dadada;
    --accent: #cc0000;
    --accent-strong: #8f0000;
    --panel: rgba(30, 30, 30, 0.62);
    --panel-border: #333333;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    overflow: hidden;
    color: var(--text);
    font-family: 'VT323', sans-serif;
    background:
        radial-gradient(circle at 20% 15%, rgba(124, 0, 0, 0.3), transparent 34%),
        radial-gradient(circle at 82% 28%, rgba(100, 100, 100, 0.18), transparent 30%),
        linear-gradient(145deg, #020202 0%, #0a0a0a 45%, #111111 100%);
}

.bg-glow {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, rgba(160, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0) 70%);
    transform-origin: center;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform, opacity;
    contain: paint;
    animation: pulse 12s ease-in-out infinite alternate;
}

.hero {
    position: relative;
    z-index: 5;
    width: 100vw;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    pointer-events: none;
}

.hero-card {
    width: min(680px, 92vw);
    text-align: center;
    background-color: var(--panel);
    border: 2px solid var(--panel-border);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.55);
    pointer-events: auto;
}

.hero-card h1 {
    margin: 0 0 12px;
    color: #ededed;
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    line-height: 1;
    letter-spacing: 1px;
}

.hero-card p {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    line-height: 1.05;
}

.hero-card h2 {
    margin: 18px 0 10px;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1;
    color: #f3f3f3;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #f8f8f8;
    text-decoration: none;
    background: linear-gradient(140deg, rgba(140, 0, 0, 0.9), rgba(70, 0, 0, 0.92));
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.contact-button i {
    font-size: 1.6rem;
    line-height: 1;
}

.contact-button:hover,
.contact-button:focus-visible {
    transform: translateY(-2px) scale(1.06);
    filter: brightness(1.12);
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
}

.hero-link {
    display: inline-block;
    margin-top: 6px;
    padding: 10px 18px;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    color: #ffffff;
    text-decoration: none;
    border: 2px solid var(--accent);
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    transition: transform 0.2s ease, filter 0.2s ease;
}

.hero-link:hover,
.hero-link:focus-visible {
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.1);
    outline: none;
}

.bubble-field {
    position: fixed;
    inset: 0;
    z-index: 2;
}

.bubble {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    height: var(--size);
    margin: 0;
    opacity: 1;
    z-index: 2147483646 !important;
    border-radius: 50%;
    overflow: visible;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 8px 30px rgba(0, 0, 0, 0.45);
    pointer-events: auto;
}

.bubble:hover {
    z-index: 50;
}

.bubble-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(6px);
    display: block;
    width: max-content;
    max-width: min(320px, 70vw);
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(8, 8, 8, 0.9);
    color: #f0f0f0;
    font-size: 1.15rem;
    line-height: 0.5;
    white-space: pre-line;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    z-index: 120;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}

.bubble:hover .bubble-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.bubble img {
    display: block;
    width: 100%;
    height: 100%;
    opacity: var(--alpha);
    border-radius: 50%;
    object-fit: cover;
    filter: saturate(1.06) contrast(1.03);
}

.no-images {
    position: absolute;
    left: 50%;
    top: 90%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 7px 12px;
    font-size: 1.6rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #4a4a4a;
    border-radius: 8px;
}

@keyframes pulse {
    from {
        transform: scale(0.96);
        opacity: 0.5;
    }
    to {
        transform: scale(1.06);
        opacity: 0.9;
    }
}

@media (max-width: 700px) {
    body {
        overflow-y: auto;
    }

    .hero {
        min-height: 100dvh;
        padding: 14px;
    }

    .hero-card {
        padding: 18px;
    }

    .bubble {
        width: calc(var(--size) * 0.62);
        height: calc(var(--size) * 0.62);
    }
}

.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483647 !important;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
}

.image-viewer.active {
    position: fixed;
    inset: 0;
    z-index: 2147483647 !important;
    display: flex;
}

.image-viewer-image {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 2px solid #323232;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.image-viewer-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    color: #c3c3c3;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.image-viewer-alt,
.image-viewer-exif {
    margin: 0 0 6px;
}

.image-viewer-alt {
    font-size: 1.2em;
}

.image-viewer-exif {
    font-size: 0.95em;
    color: #9a9a9a;
}

.image-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5em;
    color: #c3c3c3;
    cursor: pointer;
    background-color: rgba(50, 50, 50, 0.8);
    padding: 5px 10px;
    border-radius: 50%;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}


.image-viewer-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}
