

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: #111827;
    overflow-x: hidden;
}


/* =========================================
   BACKGROUND
   ========================================= */

.background {
    position: fixed;
    inset: 0;
    z-index: -1;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(245, 245, 247, 0.918),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(237, 233, 254, 0.9),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #eef2ff 50%,
            #f8fafc 100%
        );
}


/* =========================================
   MAIN PROFILE
   ========================================= */

.profile {
    width: 100%;
    max-width: 560px;
    min-height: 100vh;

    margin: 0 auto;
    padding: 48px 20px 30px;

    text-align: center;
}


/* =========================================
   AVATAR
   ========================================= */

.avatar {
    width: 108px;
    height: 108px;

    margin: 0 auto 17px;

    border-radius: 50%;
    overflow: hidden;

    border: 4px solid rgba(255, 255, 255, 0.95);

    background: white;

    box-shadow:
        0 12px 35px rgba(15, 23, 42, 0.14);

    animation: avatarAnimation 0.7s ease;
}

.avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* =========================================
   NAME
   ========================================= */

.profile h1 {
    margin-bottom: 6px;

    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;

    color: #111827;
}

.verified {
    color: #1877f2;
    font-size: 18px;

    vertical-align: middle;
}


/* =========================================
   DESCRIPTION
   ========================================= */

.description {
    margin-bottom: 27px;

    color: #4b5563;

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================
   LINKS
   ========================================= */

.links {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 13px;
}


/* =========================================
   SINGLE LINK
   ========================================= */

.link {
    position: relative;

    width: 100%;
    min-height: 40px;

    padding: 4px 8px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    color: #111827;
    text-decoration: none;

    /* MUHIM:
       Barcha linklar oq/glass bo'lib qoladi */
    background: rgba(255, 255, 255, 0.84);

    border: 1px solid rgba(255, 255, 255, 0.95);

    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.07);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


/* =========================================
   LINK HOVER
   ========================================= */

.link:hover {
    transform: translateY(-3px);

    background: rgba(255, 255, 255, 0.98);

    box-shadow:
        0 14px 32px rgba(15, 23, 42, 0.12);
}


/* =========================================
   LINK LEFT
   ========================================= */

.link-left {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 14px;
}


/* =========================================
   LINK TEXT
   ========================================= */

.link-left span {
    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================
   LINK ICON
   ========================================= */

.link-icon {
    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    color: white;
    font-size: 19px;

    box-shadow:
        0 5px 14px rgba(15, 23, 42, 0.08);
}


/* =========================================
   ICON COLORS
   Faqat ikonka ranglanadi
   ========================================= */

.website .link-icon {
    background: #111827;
}

.telegram .link-icon {
    background: #229ed9;
}

.youtube .link-icon {
    background: #ff0000;
}

.instagram .link-icon {
    background:
        linear-gradient(
            135deg,
            #833ab4,
            #fd1d1d,
            #fcb045
        );
}

.courses .link-icon {
    background: #7c3aed;
}

.services .link-icon {
    background: #059669;
}


/* =========================================
   ARROW
   ========================================= */

.link > i {
    flex-shrink: 0;

    color: #9ca3af;

    font-size: 13px;

    transition:
        transform 0.25s ease,
        color 0.25s ease;
}

.link:hover > i {
    color: #111827;
    transform: translateX(4px);
}


/* =========================================
   SHARE BUTTON
   ========================================= */

.share {
    width: 100%;
    min-height: 58px;

    margin-top: 18px;

    border: none;
    border-radius: 17px;

    background: #111827;
    color: white;

    font-family: inherit;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    box-shadow:
        0 10px 25px rgba(17, 24, 39, 0.18);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.share:hover {
    background: #000000;

    transform: translateY(-3px);

    box-shadow:
        0 15px 30px rgba(17, 24, 39, 0.25);
}

.share:active {
    transform: scale(0.98);
}


/* =========================================
   FOOTER
   ========================================= */

footer {
    margin-top: 34px;

    color: #9ca3af;

    font-size: 11px;
    line-height: 1.6;
}

footer strong {
    display: block;

    margin-bottom: 4px;

    color: #374151;

    font-size: 13px;
}


/* =========================================
   TOAST
   ========================================= */

#toast {
    position: fixed;

    left: 50%;
    bottom: 25px;

    transform:
        translate(-50%, 80px);

    opacity: 0;

    pointer-events: none;

    z-index: 1000;

    padding: 12px 18px;

    border-radius: 12px;

    background: #111827;
    color: white;

    font-size: 13px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.20);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

#toast.show {
    opacity: 1;

    transform:
        translate(-50%, 0);
}


/* =========================================
   AVATAR ANIMATION
   ========================================= */

@keyframes avatarAnimation {

    from {
        opacity: 0;

        transform:
            scale(0.7)
            translateY(10px);
    }

    to {
        opacity: 1;

        transform:
            scale(1)
            translateY(0);
    }
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 768px) {

    .profile {
        max-width: 540px;

        padding:
            42px 20px
            30px;
    }

    .avatar {
        width: 105px;
        height: 105px;
    }

    .profile h1 {
        font-size: 27px;
    }

    .link {
        min-height: 66px;
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    body {
        min-height: 100dvh;
    }

    .profile {
        width: 100%;

        padding:
            34px 15px
            25px;
    }

    .avatar {
        width: 96px;
        height: 96px;

        margin-bottom: 15px;

        border-width: 3px;
    }

    .profile h1 {
        font-size: 24px;

        margin-bottom: 5px;
    }

    .verified {
        font-size: 16px;
    }

    .description {
        margin-bottom: 22px;

        font-size: 13px;
        line-height: 1.55;
    }

    .links {
        gap: 11px;
    }

    .link {
        min-height: 62px;

        padding:
            8px 12px;

        border-radius: 16px;
    }

    .link-left {
        gap: 11px;
    }

    .link-icon {
        width: 43px;
        height: 43px;

        border-radius: 12px;

        font-size: 17px;
    }

    .link-left span {
        font-size: 13px;
    }

    .link > i {
        font-size: 12px;
    }

    .share {
        min-height: 55px;

        margin-top: 16px;

        border-radius: 15px;

        font-size: 13px;
    }

    footer {
        margin-top: 28px;
    }
}


/* =========================================
   SMALL PHONES
   ========================================= */

@media (max-width: 380px) {

    .profile {
        padding:
            28px 11px
            22px;
    }

    .avatar {
        width: 90px;
        height: 90px;
    }

    .profile h1 {
        font-size: 22px;
    }

    .description {
        font-size: 12px;
    }

    .link {
        min-height: 40px;

        padding:
            4px 8px;

        border-radius: 10px;
    }

    .link-icon {
        width: 40px;
        height: 40px;

        border-radius: 11px;

        font-size: 16px;
    }

    .link-left {
        gap: 10px;
    }

    .link-left span {
        font-size: 12px;
    }

    .share {
        min-height: 52px;

        font-size: 12px;
    }
}


/* =========================================
   TOUCH DEVICES
   ========================================= */

@media (hover: none) {

    .link:hover {
        transform: none;

        background:
            rgba(255, 255, 255, 0.84);

        box-shadow:
            0 8px 25px rgba(15, 23, 42, 0.07);
    }

    .link:active {
        transform: scale(0.98);

        background:
            rgba(255, 255, 255, 0.98);
    }

    .share:hover {
        transform: none;
        background: #111827;
    }

    .share:active {
        transform: scale(0.98);
        background: #000000;
    }
}


/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}