@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

/* Variables & Themes */
:root {
    --bg-gradient: radial-gradient(circle at top left, #1e293b, #0f172a, #020617);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --accent: #818cf8;

    --font-title: 'Bricolage Grotesque', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

.personal-theme { --accent: #818cf8; }
.studio-theme { --accent: #f59e0b; }

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: var(--bg-gradient);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 20px;
}

.container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Profile Sections */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar-wrapper {
    margin-bottom: 30px;
    filter: drop-shadow(0 0 20px rgba(129, 140, 248, 0.1));
}

.studio-logo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 20px; /* Squircle style */
    border: 2px solid var(--glass-border);
}

h1, h2 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.bio, .studio-bio {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    text-wrap: balance;
}

#random-struggle {
    font-family: 'JetBrains Mono', monospace;
    font-style: italic;
    color: var(--accent);
    font-size: 0.85em;
    display: block;
    margin: 15px 0;
    padding: 10px;
    border-left: 2px solid var(--accent);
    background: rgba(129, 140, 248, 0.05);
}

/* Links Grid */
.links-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.link-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.link-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -10px var(--accent);
}

.highlight {
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.3);
    position: relative;
    overflow: hidden;
}

.highlight::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: 0.5s;
}

.highlight:hover::after {
    left: 100%;
}

.studio-link-inline {
    font-family: var(--font-title);
    color: #f59e0b; 
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid rgba(245, 158, 11, 0.2);
    transition: var(--transition);
}

.studio-link-inline:hover {
    color: #fbbf24;
    border-bottom-color: #fbbf24;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.link-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.platform {
    font-weight: 600;
    font-size: 0.95rem;
}

.username {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.6;
}

/* Separator & Footer */
.separator {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--glass-border), transparent);
    margin: 20px 0;
}

.footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.credit-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

/* Responsive */
@media (max-width: 480px) {
    body { padding: 40px 16px; }
    h1, h2 { font-size: 1.3rem; }
}