:root {
    --background-dark: #18070d;
    --background-medium: #3b0d1d;
    --text-primary: #fff8f9;
    --text-secondary: rgba(255, 240, 244, 0.76);
    --card-background: rgba(30, 8, 16, 0.64);
    --card-border: rgba(255, 220, 230, 0.15);
    --primary-button: #a71f4c;
    --primary-button-light: #d04470;
    --secondary-button: rgba(255, 255, 255, 0.08);
    --secondary-button-border: rgba(255, 255, 255, 0.16);
    --rose-color: #b81f4b;
}

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
    color: var(--text-primary);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    background:
        radial-gradient(ellipse at 14% 15%, rgba(255, 180, 200, 0.13) 0%, transparent 26%),
        radial-gradient(ellipse at 86% 85%, rgba(255, 120, 160, 0.11) 0%, transparent 28%),
        linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.025) 18%, transparent 32%, rgba(0, 0, 0, 0.24) 48%, rgba(255, 255, 255, 0.035) 61%, transparent 76%),
        linear-gradient(62deg, rgba(0, 0, 0, 0.12) 0%, transparent 28%, rgba(255, 255, 255, 0.025) 42%, transparent 58%, rgba(0, 0, 0, 0.16) 78%),
        linear-gradient(145deg, var(--background-dark), var(--background-medium) 50%, var(--background-dark));

    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
    background-image:
        repeating-linear-gradient(
            110deg,
            rgba(255, 255, 255, 0.018) 0,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px,
            transparent 4px
        );
    mix-blend-mode: soft-light;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at center, transparent 35%, rgba(4, 0, 2, 0.42) 100%);
}

.page-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    padding:
        max(42px, env(safe-area-inset-top))
        18px
        max(32px, env(safe-area-inset-bottom));
}

.profile-card {
    width: 100%;
    max-width: 470px;
    padding: 28px 20px 20px;
    text-align: center;
    border: 1px solid var(--card-border);
    border-radius: 30px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
        var(--card-background);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.profile-picture-container {
    position: relative;
    width: 126px;
    height: 126px;
    margin: 0 auto 18px;
    border-radius: 50%;
    box-shadow:
        0 0 0 5px rgba(255, 255, 255, 0.05),
        0 0 0 9px rgba(177, 30, 75, 0.18),
        0 18px 40px rgba(0, 0, 0, 0.45);
}

.profile-picture-container::before {
    content: "";
    position: absolute;
    inset: -12px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(210, 56, 105, 0.28), transparent 68%);
    filter: blur(8px);
}

.profile-picture {
    display: block;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 240, 245, 0.88);
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.profile-name {
    margin-bottom: 9px;
    font-size: clamp(1.55rem, 7vw, 2rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
}

.profile-description {
    max-width: 360px;
    margin: 0 auto 27px;
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.55;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 13px;
    width: 100%;
}

.link-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 78px;
    padding: 15px 17px;
    overflow: hidden;
    color: var(--text-primary);
    text-align: left;
    text-decoration: none;
    border-radius: 19px;
    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease;
}

.link-button::before {
    content: "";
    position: absolute;
    top: -70%;
    left: -25%;
    width: 50%;
    height: 240%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: rotate(25deg);
    transition: left 350ms ease;
}

.link-button:hover::before {
    left: 110%;
}

.link-button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 17px 34px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.link-button:active {
    transform: scale(0.985);
}

.link-button-primary {
    border: 1px solid rgba(255, 210, 225, 0.2);
    background: linear-gradient(135deg, var(--primary-button-light), var(--primary-button) 55%, #771331);
}

.link-button-secondary {
    border: 1px solid var(--secondary-button-border);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
        var(--secondary-button);
}

.link-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 12px;
}

.link-title {
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.link-description {
    color: rgba(255, 245, 248, 0.72);
    font-size: 0.78rem;
    line-height: 1.35;
}

.link-icon {
    position: relative;
    z-index: 1;

    display: grid;
    place-items: center;

    width: 36px;
    min-width: 36px;
    height: 36px;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.1);

    transition:
        transform 160ms ease,
        background-color 160ms ease;
}

.link-icon svg {
    display: block;

    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.link-button:hover .link-icon {
    transform: translate(2px, -2px);
    background: rgba(255, 255, 255, 0.16);
}

.link-button:focus-visible {
    outline: 3px solid rgba(255, 230, 237, 0.9);
    outline-offset: 4px;
}

.background-effects {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.petal {
    position: absolute;
    display: block;
    width: 34px;
    height: 22px;
    opacity: 0.45;
    border-radius: 70% 15% 70% 15%;
    background:
        radial-gradient(circle at 25% 25%, #e15b7e, var(--rose-color) 50%, #5e0b24 100%);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.28),
        inset 3px 3px 5px rgba(255, 255, 255, 0.12);
    filter: blur(0.15px);
}

.petal-1 { top: 8%; left: 7%; transform: rotate(24deg) scale(0.75); }
.petal-2 { top: 21%; right: 5%; transform: rotate(105deg) scale(0.55); }
.petal-3 { top: 64%; left: 3%; transform: rotate(168deg) scale(0.68); }
.petal-4 { right: 9%; bottom: 8%; transform: rotate(228deg) scale(0.85); }
.petal-5 { top: 4%; right: 26%; transform: rotate(74deg) scale(0.42); }
.petal-6 { left: 17%; bottom: 5%; transform: rotate(310deg) scale(0.48); }
.petal-7 { top: 47%; right: 1%; transform: rotate(140deg) scale(0.42); }

.footer {
    margin-top: 24px;
    color: rgba(255, 240, 245, 0.38);
    font-size: 0.72rem;
}

@media (min-width: 700px) {
    .page-container {
        align-items: center;
        padding: 45px 20px;
    }

    .profile-card {
        padding: 35px 30px 24px;
    }

    .profile-picture-container {
        width: 142px;
        height: 142px;
    }
}

@media (max-width: 370px) {
    .page-container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .profile-card {
        padding-right: 15px;
        padding-left: 15px;
        border-radius: 24px;
    }

    .profile-picture-container {
        width: 110px;
        height: 110px;
    }

    .link-button {
        padding: 13px 14px;
    }

    .link-description {
        font-size: 0.73rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
