@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
    --bg: #050d18;
    --card: #071525;
    --card-2: #0a1829;
    --sidebar: #061321;
    --gradient-dark: #081b30;
    --blue-glow: #147bff;
    --blue: #36a9ff;
    --cyan: #75d5ff;
    --yellow: #ffd928;
    --yellow-bright: #ffe52e;
    --green: #16c784;
    --gold: var(--yellow);
    --gold-2: var(--yellow-bright);
    --line: rgba(54, 169, 255, 0.16);
    --text: #f7fbff;
    --muted: #93a4bc;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        sans-serif;
    background: #05070c;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

.bg-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #05070c;
}

.wash {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    animation: washMove 16s ease-in-out infinite;
}

.wash-left {
    width: 520px;
    height: 520px;
    left: -160px;
    top: 10%;
    background: radial-gradient(circle, rgba(22, 199, 132, 0.16), transparent 70%);
}

.wash-right {
    width: 620px;
    height: 620px;
    right: -180px;
    top: 8%;
    background: radial-gradient(circle, rgba(140, 40, 90, 0.22), transparent 72%);
    animation-delay: -7s;
}

.shape {
    position: absolute;
    pointer-events: none;
    animation: floatShape 12s ease-in-out infinite;
}

.triangle {
    width: 0;
    height: 0;
    top: 18%;
    left: 38%;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 24px solid #16c784;
    animation-duration: 10s;
    animation-delay: -2s;
}

.dots {
    width: 72px;
    height: 88px;
    left: 6%;
    bottom: 18%;
    background-image: radial-gradient(#147bff 1.4px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.7;
    animation-duration: 14s;
    animation-delay: -4s;
}

.hatch {
    width: 78px;
    height: 78px;
    right: 8%;
    top: 28%;
    border-radius: 50%;
    background: repeating-linear-gradient(
        -30deg,
        rgba(54, 169, 255, 0.55) 0 3px,
        transparent 3px 8px
    );
    animation-duration: 16s;
    animation-delay: -6s;
}

.square {
    width: 34px;
    height: 34px;
    right: 7%;
    bottom: 16%;
    border: 3px solid #7b61ff;
    animation-duration: 11s;
    animation-delay: -3s;
}

.circle {
    width: 46px;
    height: 46px;
    top: 8%;
    left: 8%;
    border: 3px solid rgba(20, 123, 255, 0.7);
    border-radius: 50%;
    animation-duration: 13s;
}

.app {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 24px auto;
    padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right));
    padding-bottom: env(safe-area-inset-bottom);
    background: transparent;
}

.workspace {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 22px;
    min-width: 0;
    padding: 28px 0 20px;
}

.hero-row,
.lower-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 270px);
    gap: 22px;
    align-items: start;
    min-width: 0;
}

.qr-card,
.social-card,
.info-card {
    border: 1px solid rgba(54, 169, 255, 0.22);
    border-radius: 24px;
    background: var(--card-2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.profile {
    padding: 8px 4px 0 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.hero-top {
    display: flex;
    gap: 24px;
    align-items: center;
    min-width: 0;
}

.identity {
    min-width: 0;
}

.avatar-wrap {
    position: relative;
    width: 148px;
    min-width: 148px;
    height: 148px;
    margin: 0 24px 24px 0;
}

.avatar {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #f4fbff;
    box-shadow: 0 0 0 6px rgba(20, 123, 255, 0.2);
}

.avatar-ring {
    position: absolute;
    inset: -11px;
    border-radius: 50%;
    border: 3px solid rgba(54, 169, 255, 0.8);
    box-shadow:
        0 0 0 8px rgba(20, 123, 255, 0.1),
        0 0 28px rgba(20, 123, 255, 0.45);
    animation: pulse-ring 2.8s ease-in-out infinite;
}

.online-dot {
    position: absolute;
    right: 10px;
    bottom: 12px;
    z-index: 3;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--green);
    border: 3px solid var(--card);
}

.kicker {
    margin: 0 0 6px;
    color: var(--yellow);
    font-size: 12px;
    font-weight: 700;
}

.identity h1 {
    margin: 0;
    font-size: clamp(26px, 3.4vw, 42px);
    letter-spacing: -0.04em;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.identity h2 {
    margin: 8px 0 14px;
    color: var(--cyan);
    font-size: 18px;
    font-weight: 600;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.meta-row span,
.meta-row a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.meta-row svg {
    width: 13px;
    height: 13px;
    fill: var(--yellow);
}

.about-text {
    margin: 18px 0 20px;
    max-width: 720px;
    color: #b7c6d8;
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 14px;
    color: var(--bg);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.12);
}

.btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.btn-call,
.btn-save,
.qr-download {
    background: linear-gradient(180deg, var(--yellow-bright), var(--yellow));
    box-shadow: 0 8px 20px rgba(255, 217, 40, 0.22);
}

.btn-whatsapp {
    color: #fff;
    background: linear-gradient(180deg, #22d894, var(--green));
}

.btn:hover {
    transform: translateY(-2px);
}

.qr-card {
    padding: 22px 18px 20px;
    text-align: center;
}

.qr-card h3,
.social-card h3,
.info-card h3 {
    margin: 0 0 16px;
    font-size: 18px;
}

.qr-frame {
    position: relative;
    width: min(176px, 100%);
    aspect-ratio: 1;
    height: auto;
    margin: 0 auto 12px;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
}

#qrcode {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#qrcode img,
#qrcode canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.qr-badge {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--yellow-bright), var(--yellow));
    color: var(--bg);
    font-weight: 800;
    transform: translate(-50%, -50%);
}

.qr-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 12px;
}

.qr-download {
    width: 100%;
}

.qr-url {
    display: none;
}

.social-card,
.info-card {
    padding: 20px;
}

.social-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.social-heading h3 {
    margin: 0;
}

.social-sub {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.script {
    color: var(--yellow);
    font-family: Caveat, cursive;
    font-size: 28px;
    transform: rotate(-8deg);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.social-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 64px;
    padding: 8px 10px;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
}

.social-item:hover {
    border-color: rgba(255, 217, 40, 0.35);
    transform: translateY(-2px);
}

.social-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.06);
}

.linkedin {
    color: var(--blue);
}

.github {
    color: var(--cyan);
}

.web {
    color: var(--cyan);
}

.email {
    color: var(--cyan);
}

.upwork {
    color: var(--green);
}

.fiverr {
    color: var(--yellow-bright);
}

.social-item b {
    display: block;
}

.social-item small {
    display: none;
}

.social-item>span:nth-child(2) {
    min-width: 0;
}

.social-item b {
    margin-bottom: 0;
    font-size: 13px;
}

.arrow {
    color: #6f849c;
}

.info-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-card li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-card strong,
.info-card span {
    display: block;
}

.profile,
.qr-card,
.social-card,
.info-card {
    min-width: 0;
}

.info-card strong {
    color: var(--yellow);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.info-card span {
    color: var(--muted);
    font-size: 12px;
}

.info-card blockquote {
    margin: 16px 0 0;
    color: #dbe7f5;
    font-size: 14px;
    font-style: italic;
}

.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 0 4px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-links a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #f7fbff;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card-2);
}

.footer-links svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.footer-links path {
    fill: currentColor;
}

.footer-links a:hover {
    color: var(--yellow);
    border-color: rgba(255, 217, 40, 0.4);
}

.footer-note {
    color: var(--muted);
    font-size: 12px;
}

.footer-connect {
    color: var(--yellow);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

@keyframes pulse-ring {
    0%,
    100% {
        box-shadow:
            0 0 0 8px rgba(20, 123, 255, 0.1),
            0 0 28px rgba(20, 123, 255, 0.45);
    }
    50% {
        box-shadow:
            0 0 0 12px rgba(54, 169, 255, 0.16),
            0 0 36px rgba(20, 123, 255, 0.6);
    }
}

@keyframes floatShape {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(0, 18px, 0) rotate(8deg);
    }
}

@keyframes washMove {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translate3d(24px, -16px, 0) scale(1.08);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shape,
    .wash,
    .avatar-ring {
        animation: none;
    }
}

@media (max-width: 1100px) {
    .social-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .hero-row,
    .lower-row {
        grid-template-columns: 1fr;
    }

    .hero-top {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .avatar-wrap {
        margin: 0 auto 24px;
    }

    .identity,
    .about-text,
    .actions {
        width: 100%;
    }

    .about-text {
        margin-left: auto;
        margin-right: auto;
    }

    .meta-row,
    .actions {
        justify-content: center;
    }

    .qr-card {
        width: min(360px, 100%);
        justify-self: center;
    }

    .info-card ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 20px;
    }

    .triangle,
    .hatch,
    .dots,
    .square {
        display: none;
    }
}

@media (max-width: 720px) {
    .app {
        margin: 12px auto;
    }

    .workspace {
        gap: 16px;
        padding: 16px 0 12px;
    }

    .social-heading {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .script {
        font-size: 22px;
    }

    .avatar-wrap {
        width: 128px;
        min-width: 128px;
        height: 128px;
    }
}

@media (max-width: 560px) {
    .app {
        margin: 8px auto;
        padding-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right));
    }

    .profile {
        padding: 4px 0 0;
    }

    .qr-card,
    .social-card,
    .info-card {
        padding: 16px 14px;
        border-radius: 20px;
    }

    .qr-card {
        width: 100%;
    }

    .avatar-wrap {
        width: 118px;
        min-width: 118px;
        height: 118px;
    }

    .identity h1 {
        font-size: clamp(24px, 8vw, 34px);
    }

    .identity h2 {
        font-size: 16px;
    }

    .actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
    }

    .actions .btn {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 0 10px;
    }

    .social-grid,
    .info-card ul {
        grid-template-columns: 1fr;
    }

    .social-heading {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .app-footer {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 14px;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-links a {
        width: 42px;
        height: 42px;
    }

    .wash-left,
    .wash-right {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 400px) {
    .avatar-wrap {
        width: 104px;
        min-width: 104px;
        height: 104px;
    }

    .script {
        display: none;
    }

    .social-item {
        grid-template-columns: 38px minmax(0, 1fr) auto;
        gap: 8px;
        min-height: 56px;
        padding: 8px;
    }

    .social-icon {
        width: 38px;
        height: 38px;
    }

    .btn {
        white-space: normal;
    }
}