:root {
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --bg-color: #ffffff;
    --text-color: #000000;
    --bg-left: #ffffff;
    --text-left: #000000;
    --bg-right: #000000;
    --text-right: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body, html {
    height: 100%;
    width: 100%;
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
    position: fixed;
}

body.page-404, html.page-404 {
    display: flex;
    justify-content: center;
    align-items: center;
    position: static;
}

.container {
    display: flex;
    width: 100%;
    height: 100dvh;
    flex-direction: row;
}

body.page-404 .container {
    text-align: center;
    padding: 20px;
    animation: fadeIn 0.5s ease-out;
    width: auto;
    height: auto;
    flex-direction: column;
}

.swap-layout .container {
    flex-direction: row-reverse;
}

.panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: background-color 0.3s ease;
    padding: 40px;
    overflow: hidden;
}

.panel-left {
    background-color: var(--bg-left);
    color: var(--text-left);
}

.panel-right {
    background-color: var(--bg-right);
    color: var(--text-right);
}

.full-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
}

.content-wrapper {
    text-align: center;
    z-index: 2;
    pointer-events: none;
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 24px;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
}

body.page-404 h1 {
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 0;
}

p {
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: 0.85;
    margin-bottom: 24px;
    font-weight: 400;
    text-align: center;
}

body.page-404 p {
    font-size: 1.5rem;
    margin-top: 10px;
    margin-bottom: 40px;
    font-weight: 400;
    opacity: 0.7;
}

.description {
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: 0.85;
    margin-bottom: 24px;
    font-weight: 400;
    text-align: center;
    max-width: 90%;
}

.socials-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    pointer-events: auto;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.2s ease;
    padding: 8px;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.social-link svg.stroke-icon {
    stroke-width: 2;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-link svg.fill-icon {
    fill: currentColor;
    stroke: none;
}

.btn-home {
    display: inline-block;
    text-decoration: none;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    -webkit-tap-highlight-color: transparent;
}

.btn-home:active {
    background-color: #f0f0f0;
    transform: scale(0.98);
}

@media (hover: hover) {
    .btn-home {
        transition: all 0.3s ease;
    }
    .btn-home:hover {
        background-color: var(--text-color);
        color: var(--bg-color);
    }
}

@media (hover: hover) and (pointer: fine) {
    .social-link:hover {
        opacity: 1;
        transform: scale(1.15);
    }

    .panel img {
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
        filter: grayscale(100%);
    }

    .panel:hover img {
        transform: scale(1.05);
        filter: grayscale(0%);
    }

    .panel-left:hover {
        background-color: #f5f5f5;
    }

    .panel-right:hover {
        background-color: #111111;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
    body.page-404 .container {
        animation: none;
    }
    body.page-404 h1 {
        font-size: 5rem;
    }
    body.page-404 p {
        font-size: 1.2rem;
    }

    .container {
        flex-direction: column;
    }

    .swap-layout .container {
        flex-direction: column-reverse;
    }

    .panel {
        height: 50dvh;
        flex: 0 0 50dvh;
        padding: 10px;
    }

    img {
        width: 110px;
        height: 110px;
        margin-bottom: 12px;
    }

    h1 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .description {
        font-size: 0.85rem;
        line-height: 1.35;
        margin-bottom: 16px;
        max-width: 95%;
    }

    .socials-container {
        gap: 8px;
    }

    .social-link {
        padding: 6px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 600px) and (max-width: 1024px) {
    img {
        width: 200px;
        height: 200px;
        margin-bottom: 32px;
    }

    h1 {
        font-size: 2.5rem;
        margin-bottom: 16px;
    }

    .description {
        font-size: 1.3rem;
        line-height: 1.5;
        margin-bottom: 32px;
    }

    .panel {
        padding: 60px 40px;
    }

    .social-link svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    .container {
        flex-direction: row !important;
    }
    .panel {
        height: 100dvh;
        flex: 1;
    }
    img {
        width: 100px;
        height: 100px;
        margin-bottom: 12px;
    }
}
