/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --glass-bg:           rgba(255, 255, 255, 0.08);
    --glass-bg-hover:     rgba(255, 255, 255, 0.14);
    --glass-border:       rgba(255, 255, 255, 0.22);
    --glass-border-hover: rgba(255, 255, 255, 0.40);
    --glass-shadow:       0 8px 32px rgba(0, 0, 0, 0.35);
    --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.45);
    --blur:               18px;

    --text-primary:   rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.60);
    --text-muted:     rgba(255, 255, 255, 0.38);

    --accent:         #a78bfa;   /* violet-400 */
    --accent-2:       #67e8f9;   /* cyan-300  */

    --radius-card:  24px;
    --radius-item:  14px;
    --radius-tag:   999px;

    --font: 'Inter', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100dvh;
    font-family: var(--font);
    color: var(--text-primary);
    overflow-x: hidden;
    background: #0a0a1a;
}

/* ============================================================
   ANIMATED BACKGROUND BLOBS
   ============================================================ */
.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(ellipse at 20% 20%, #1a0a3a 0%, #0a0a1a 60%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: drift 18s ease-in-out infinite alternate;
}

.blob-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #6d28d9, #4c1d95);
    top: -150px; left: -150px;
    animation-duration: 20s;
}
.blob-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #0891b2, #164e63);
    top: 30%; right: -100px;
    animation-duration: 16s;
    animation-delay: -6s;
}
.blob-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #be185d, #831843);
    bottom: -100px; left: 30%;
    animation-duration: 22s;
    animation-delay: -10s;
}
.blob-4 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, #065f46, #064e3b);
    bottom: 10%; left: -80px;
    animation-duration: 19s;
    animation-delay: -3s;
}

@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(40px, -30px) scale(1.05); }
    66%  { transform: translate(-20px, 50px) scale(0.97); }
    100% { transform: translate(30px, 20px) scale(1.08); }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================================
   HERO / HEADER
   ============================================================ */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-bottom: 10px;
}

/* Avatar */
.avatar-ring {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 32px rgba(167, 139, 250, 0.45);
    animation: pulse-ring 4s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% { box-shadow: 0 0 28px rgba(167, 139, 250, 0.40); }
    50%       { box-shadow: 0 0 52px rgba(103, 232, 249, 0.55); }
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid rgba(0,0,0,0.3);
}

/* Nickname */
.nickname {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 30%, var(--accent) 70%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    line-height: 1.1;
}

.tagline {
    font-size: 0.95rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    text-align: center;
}

/* ============================================================
   TWO-COLUMN GRID
   ============================================================ */
.grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 560px) {
    .grid-two { grid-template-columns: 1fr; }
}

/* ============================================================
   GLASS CARD — the hero element
   ============================================================ */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    backdrop-filter: blur(var(--blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
    box-shadow:
        var(--glass-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.10);
    padding: 28px;
    transition: background 0.35s, border-color 0.35s, box-shadow 0.35s, transform 0.35s;
    position: relative;
    overflow: hidden;
}

/* Subtle top specular highlight (iOS liquid glass look) */
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-card);
    background: linear-gradient(
        160deg,
        rgba(255,255,255,0.12) 0%,
        rgba(255,255,255,0.03) 40%,
        transparent 70%
    );
    pointer-events: none;
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--glass-shadow-hover),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

/* ============================================================
   CARD TITLE
   ============================================================ */
.card-title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.title-icon {
    font-size: 0.9rem;
}

/* ============================================================
   LINK LIST
   ============================================================ */
.link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-item);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    opacity: 0;
    transition: opacity 0.25s;
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.link-item:hover::before {
    opacity: 1;
}

.link-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s;
}

.link-icon svg {
    width: 16px;
    height: 16px;
    opacity: 0.85;
}

.link-item:hover .link-icon {
    background: rgba(167, 139, 250, 0.20);
    border-color: rgba(167, 139, 250, 0.35);
}

.contact-icon {
    font-size: 1rem;
    font-weight: 600;
    font-style: normal;
    color: var(--text-secondary);
    font-family: monospace;
}

.link-label {
    flex: 1;
}

.link-arrow {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.25s, transform 0.25s;
}

.link-item:hover .link-arrow {
    color: var(--accent);
    transform: translate(2px, -2px);
}

/* ============================================================
   ABOUT CARD
   ============================================================ */
.about-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.about-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
    font-weight: 300;
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================================
   TAGS
   ============================================================ */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 5px 14px;
    border-radius: var(--radius-tag);
    background: rgba(167, 139, 250, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.28);
    color: var(--accent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
    cursor: default;
}

.tag:hover {
    background: rgba(167, 139, 250, 0.22);
    border-color: rgba(167, 139, 250, 0.50);
    transform: scale(1.05);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    text-align: center;
    padding-top: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* ============================================================
   SCROLLBAR (WebKit)
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* ============================================================
   SELECTION
   ============================================================ */
::selection {
    background: rgba(167, 139, 250, 0.35);
    color: #fff;
}
