:root {
    --primary-blue: #A7D9EF;
    --deep-blue: #020617;
    --mid-blue: #0f172a;
    --line-color: rgba(167, 217, 239, 0.15);
    --glow-color: rgba(167, 217, 239, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', monospace;
    overflow: hidden;
    background-color: var(--deep-blue);
    color: var(--primary-blue);
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

#grid-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.decorative-circles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.1;
}

.decorative-circles .circle-outer {
    width: 85vh;
    height: 85vh;
    border: 1px solid rgba(167, 217, 239, 0.1);
    border-radius: 50%;
}

.decorative-circles .square-rotated {
    position: absolute;
    width: 60vh;
    height: 60vh;
    border: 1px solid rgba(167, 217, 239, 0.1);
    transform: rotate(45deg);
}

.decorative-circles .frame-border {
    position: absolute;
    inset: 0;
    border: 40px solid rgba(15, 23, 42, 0.05);
}

main.content {
    position: relative;
    z-index: 10;
    padding: 3rem 5rem;
}

.corner-brackets {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.corner-bracket {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--primary-blue);
    border-style: solid;
    border-width: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: bracket-expand 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    will-change: transform;
}

.corner-bracket.top-left {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-top-width: 2px;
    border-left-width: 2px;
    animation-name: bracket-top-left;
}

.corner-bracket.top-right {
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    border-top-width: 2px;
    border-right-width: 2px;
    animation-name: bracket-top-right;
}

.corner-bracket.bottom-left {
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    border-bottom-width: 2px;
    border-left-width: 2px;
    animation-name: bracket-bottom-left;
}

.corner-bracket.bottom-right {
    bottom: 50%;
    right: 50%;
    transform: translate(50%, 50%);
    border-bottom-width: 2px;
    border-right-width: 2px;
    animation-name: bracket-bottom-right;
}

main.content:hover .corner-bracket.top-left {
    transform: translate(-10px, -10px);
}

main.content:hover .corner-bracket.top-right {
    transform: translate(10px, -10px);
}

main.content:hover .corner-bracket.bottom-left {
    transform: translate(-10px, 10px);
}

main.content:hover .corner-bracket.bottom-right {
    transform: translate(10px, 10px);
}

.text-content {
    text-align: center;
    opacity: 0;
    animation: fade-in 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    will-change: opacity;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 1.5rem;
}

h1 .surname {
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-blue);
    font-weight: 200;
}

.title-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.title-line .line {
    height: 1px;
    width: 3rem;
    background-color: rgba(167, 217, 239, 0.4);
}

h2 {
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.6em;
    text-transform: uppercase;
    opacity: 0.8;
}

.description {
    max-width: 28rem;
    margin: 0 auto 3rem;
}

.description p {
    font-size: clamp(0.6rem, 0.8vw, 0.7rem);
    line-height: 2;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 300;
}

.links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.links > div {
    display: flex;
    gap: 5px;
}

.links a {
    color: var(--primary-blue);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.links a:hover {
    color: white;
    text-shadow: 0 0 15px var(--glow-color);
}

.links a .icon {
    font-size: 1rem;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.links a:hover .icon {
    opacity: 1;
}

.arrow-connector {
    width: 100px;
    height: 20px;
    color: var(--primary-blue);
    opacity: 0.6;
}

.arrow-connector .arrow-line-left,
.arrow-connector .arrow-line-right {
    stroke: currentColor;
    stroke-width: 1;
    stroke-dasharray: 55;
    stroke-dashoffset: 55;
}

.arrow-connector .arrow-line-left {
    animation: draw-left 0.6s ease-out forwards;
    animation-delay: 0.5s;
}

.arrow-connector .arrow-line-right {
    animation: draw-right 0.6s ease-out forwards;
    animation-delay: 0.5s;
}

.arrow-connector .arrow-head-left,
.arrow-connector .arrow-head-right {
    fill: currentColor;
    opacity: 0;
}

.arrow-connector .arrow-head-left {
    animation: fade-in-left 0.3s ease-out forwards;
    animation-delay: 1s;
}

.arrow-connector .arrow-head-right {
    animation: fade-in-right 0.3s ease-out forwards;
    animation-delay: 1s;
}

@keyframes draw-left {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes draw-right {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fade-in-left {
    0% {
        opacity: 0;
        transform: translateX(10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in-right {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary-blue);
    color: var(--deep-blue);
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@keyframes bracket-top-left {
    from {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    to {
        top: 0;
        left: 0;
        transform: translate(0, 0);
    }
}

@keyframes bracket-top-right {
    from {
        top: 50%;
        right: 50%;
        transform: translate(50%, -50%);
    }
    to {
        top: 0;
        right: 0;
        transform: translate(0, 0);
    }
}

@keyframes bracket-bottom-left {
    from {
        bottom: 50%;
        left: 50%;
        transform: translate(-50%, 50%);
    }
    to {
        bottom: 0;
        left: 0;
        transform: translate(0, 0);
    }
}

@keyframes bracket-bottom-right {
    from {
        bottom: 50%;
        right: 50%;
        transform: translate(50%, 50%);
    }
    to {
        bottom: 0;
        right: 0;
        transform: translate(0, 0);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    30% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
