/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =====================================================
   HTML
===================================================== */

html {
    width: 100%;
    min-height: 100%;
}


/* =====================================================
   BODY
===================================================== */

body {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    font-family: "Inter", sans-serif;

    overflow-x: hidden;

    background: #ffffff;
}


/* =====================================================
   MAIN PAGE
===================================================== */

.profile-page {
    position: relative;

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    padding: 50px 20px 80px;

    display: flex;
    flex-direction: column;
    align-items: center;

    background:
        radial-gradient(
            ellipse 580px 680px at 50% 28%,
            rgba(239, 197, 45, 0.18) 0%,
            rgba(233, 185, 0, 0.13) 15%,
            rgba(220, 165, 0, 0.08) 30%,
            rgba(201, 138, 0, 0.04) 45%,
            rgba(181, 116, 0, 0) 65%
        ),
        #ffffff;

    animation: pageFade 0.7s ease both;
}


/* =====================================================
   PROFILE
===================================================== */

.profile {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}


/* =====================================================
   AVATAR
===================================================== */

.avatar {
    position: relative;

    width: clamp(68px, 18vw, 76px);
    height: clamp(68px, 18vw, 76px);

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;

    overflow: hidden;

    border: 1px solid rgba(181, 116, 0, 0.18);

    box-shadow:
        0 4px 12px rgba(181, 116, 0, 0.10);

    animation: avatarIn 0.5s cubic-bezier(.22, 1, .36, 1) both;

    will-change: transform, opacity;
}


.avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}


/* =====================================================
   USERNAME
===================================================== */

.username {
    margin-top: 13px;

    color: #222222;

    font-family: "Inter", sans-serif;

    font-size: clamp(14px, 3vw, 16px);

    font-weight: 500;

    line-height: 1.4;

    animation:
        textIn 0.65s cubic-bezier(.22, 1, .36, 1) 0.12s both;
}


/* =====================================================
   DESCRIPTION
===================================================== */

.description {
    max-width: 560px;

    margin-top: 12px;

    padding: 0 10px;

    color: #a57922;

    font-family: "Inter", sans-serif;

    font-size: clamp(12px, 2.8vw, 13px);

    font-weight: 400;

    line-height: 1.65;

    text-align: center;

    animation:
        textIn 0.65s cubic-bezier(.22, 1, .36, 1) 0.22s both;
}


/* =====================================================
   LINKS
===================================================== */

.links {
    width: 100%;

    max-width: 560px;

    margin-top: 38px;

    display: flex;
    flex-direction: column;

    gap: 14px;
}


/* =====================================================
   LINK BUTTON
===================================================== */

.link {
    position: relative;

    width: 100%;
    min-height: 58px;

    padding: 13px 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(181, 116, 0, 0.16);

    border-radius: 15px;

    background: rgba(255, 255, 255, 0.94);

    color: #222222;

    font-family: "Inter", sans-serif;

    font-size: clamp(13px, 2vw, 14px);

    font-weight: 400;

    line-height: 1.5;

    text-decoration: none;

    box-shadow:
        0 5px 18px rgba(181, 116, 0, 0.07);

    overflow: hidden;

    transition:
        transform 0.32s cubic-bezier(.22, 1, .36, 1),
        box-shadow 0.32s ease,
        border-color 0.32s ease,
        background-color 0.32s ease;

    animation: 
        linkIn 0.7s ease both;

    will-change: transform;
}


/* =====================================================
   LINK STAGGER
===================================================== */

.link:nth-child(1) {
    animation-delay: 0.38s;
}

.link:nth-child(2) {
    animation-delay: 0.50s;
}


/* =====================================================
   LINK LIGHT EFFECT
===================================================== */

.link::before {
    content: "";

    position: absolute;

    top: 0;
    left: -130%;

    width: 70%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.65) 50%,
            transparent 100%
        );

    transform: skewX(-20deg);

    pointer-events: none;

    transition:
        left 0.65s cubic-bezier(.22, 1, .36, 1);
}


.link:hover::before {
    left: 140%;
}


/* =====================================================
   LINK HOVER
===================================================== */

.link:hover {
    transform: translateY(-4px);

    border-color:
        rgba(181, 116, 0, 0.28);

    background-color: #ffffff;

    box-shadow:
        0 12px 28px rgba(181, 116, 0, 0.13);
}

.link span {
    position: relative;
    z-index: 2;

    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}


/* =====================================================
   LINK ACTIVE
===================================================== */

.link:active {
    transform: translateY(-1px) scale(0.995);
}


/* =====================================================
   SOCIAL MEDIA
===================================================== */

.social-links,
.social-icons,
.socials {
    margin-top: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;
}


/* =====================================================
   SOCIAL ICON BUTTON
===================================================== */

.social-links a,
.social-icons a,
.socials a {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    border: 1px solid rgba(181, 116, 0, 0.17);

    background: rgba(255, 255, 255, 0.96);

    color: #c98a00;

    font-size: 20px;

    text-decoration: none;

    box-shadow:
        0 5px 16px rgba(181, 116, 0, 0.08);

    transition:
        transform 0.3s cubic-bezier(.22, 1, .36, 1),
        box-shadow 0.3s ease,
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;

    animation:
        socialIn 0.6s ease both;

    will-change: transform;
}


/* =====================================================
   SOCIAL STAGGER
===================================================== */

.social-links a:nth-child(1),
.social-icons a:nth-child(1),
.socials a:nth-child(1) {
    animation-delay: 0.64s;
}

.social-links a:nth-child(2),
.social-icons a:nth-child(2),
.socials a:nth-child(2) {
    animation-delay: 0.71s;
}

.social-links a:nth-child(3),
.social-icons a:nth-child(3),
.socials a:nth-child(3) {
    animation-delay: 0.78s;
}

.social-links a:nth-child(4),
.social-icons a:nth-child(4),
.socials a:nth-child(4) {
    animation-delay: 0.85s;
}

.social-links a:nth-child(5),
.social-icons a:nth-child(5),
.socials a:nth-child(5) {
    animation-delay: 0.92s;
}


/* =====================================================
   SOCIAL HOVER
===================================================== */

.social-links a:hover,
.social-icons a:hover,
.socials a:hover {
    transform: translateY(-3px) scale(1.03);

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #b57400 0%,
            #c98a00 30%,
            #dca500 60%,
            #e9b900 100%
        );

    border-color:
        rgba(201, 138, 0, 0.45);

    box-shadow:
        0 10px 24px rgba(181, 116, 0, 0.20);
}


/* =====================================================
   SOCIAL ACTIVE
===================================================== */

.social-links a:active,
.social-icons a:active,
.socials a:active {
    transform: scale(0.94);
}


/* =====================================================
   COPYRIGHT
===================================================== */

.copyright {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 20px;

    width: 100%;

    padding: 0 15px;

    text-align: center;

    color: #999999;

    font-family: "Inter", sans-serif;

    font-size: 11px;

    font-weight: 400;

    line-height: 1.4;

    white-space: nowrap;

    animation:
        textIn 0.7s ease 1s both;
}


/* =====================================================
   PAGE ANIMATION
===================================================== */

@keyframes pageFade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* =====================================================
   AVATAR ANIMATION
===================================================== */

@keyframes avatarIn {

    from {
        opacity: 0;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* =====================================================
   TEXT ANIMATION
===================================================== */

@keyframes textIn {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =====================================================
   LINK ANIMATION
===================================================== */

@keyframes linkIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* =====================================================
   SOCIAL ANIMATION
===================================================== */

@keyframes socialIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 768px) {

    .profile-page {
        padding-top: 42px;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 75px;
    }

    .links {
        max-width: 560px;
        margin-top: 34px;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .profile-page {
        min-height: 100svh;

        padding-top: 40px;
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 75px;
    }

    .avatar {
        width: 72px;
        height: 72px;
    }

    .username {
        margin-top: 13px;

        font-size: 15px;
        font-weight: 500;
    }

    .description {
        max-width: 340px;

        margin-top: 10px;

        font-size: 12px;

        line-height: 1.65;
    }

    .links {
        width: 100%;
        max-width: none;

        margin-top: 30px;

        gap: 12px;
    }

    .link {
        min-height: 55px;

        border-radius: 14px;

        padding: 12px 18px;

        font-size: 13px;
    }

    .social-links,
    .social-icons,
    .socials {
        margin-top: 22px;

        gap: 10px;
    }

    .social-links a,
    .social-icons a,
    .socials a {
        width: 44px;
        height: 44px;

        border-radius: 12px;

        font-size: 19px;
    }

    .copyright {
        bottom: 18px;

        font-size: 10px;
    }
}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 375px) {

    .profile-page {
        padding-top: 32px;

        padding-left: 12px;
        padding-right: 12px;
    }

    .avatar {
        width: 68px;
        height: 68px;
    }

    .username {
        font-size: 14px;
    }

    .description {
        font-size: 11px;
    }

    .links {
        margin-top: 26px;

        gap: 10px;
    }

    .link {
        min-height: 50px;

        font-size: 12px;
    }

    .social-links,
    .social-icons,
    .socials {
        gap: 8px;
    }

    .social-links a,
    .social-icons a,
    .socials a {
        width: 42px;
        height: 42px;

        border-radius: 11px;

        font-size: 18px;
    }

    .copyright {
        bottom: 15px;

        font-size: 9px;

        white-space: normal;
    }
}


/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media (max-width: 320px) {

    .profile-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .avatar {
        width: 64px;
        height: 64px;
    }

    .links {
        margin-top: 23px;
    }

    .link {
        min-height: 47px;

        font-size: 11px;
    }

    .social-links,
    .social-icons,
    .socials {
        gap: 7px;
    }

    .social-links a,
    .social-icons a,
    .socials a {
        width: 40px;
        height: 40px;

        font-size: 17px;
    }
}