:root {
    --bg-navy: #0A0516;
    --neon-cyan: #00F2FE;
    --vibrant-purple: #A100FF;
    --card-bg: rgba(18, 11, 36, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

body {
    background-color: var(--bg-navy);
    color: var(--text-main);
    font-family: 'Kufam', 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    position: relative;
    /* Safe Area Insets for Mobile Displays (Notch / Home Indicator) */
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
}

/* Background Effects */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 1;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    width: clamp(280px, 80vw, 450px);
    height: clamp(280px, 80vw, 450px);
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    opacity: 0.35;
    pointer-events: none;
}

.orb-1 {
    top: -100px;
    right: -100px;
    background: var(--neon-cyan);
}

.orb-2 {
    bottom: -100px;
    left: -100px;
    background: var(--vibrant-purple);
}

/* Mobile Main Container */
.bio-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

/* Header */
.bio-header {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 14px;
}

.logo-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--vibrant-purple));
    border-radius: 20px;
    filter: blur(12px);
    opacity: 0.7;
    z-index: -1;
}

.brand-logo-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(145deg, rgba(25, 15, 48, 0.95), rgba(10, 5, 22, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-cyan), var(--vibrant-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.brand-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(24px, 7vw, 28px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
    background: linear-gradient(135deg, #FFFFFF 70%, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-slogan {
    color: var(--neon-cyan);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.brand-tagline {
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.5;
    padding: 0 10px;
}

/* Philosophy Card */
.philosophy-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 20px;
    text-align: right;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--neon-cyan);
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.15);
    padding: 3px 8px;
    border-radius: 12px;
    margin-bottom: 6px;
}

.philosophy-text {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

/* Links List */
.links-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.bio-btn {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 60px; /* Touch Target Optimization */
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    color: var(--text-main);
    text-decoration: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.bio-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(90deg, rgba(0, 242, 254, 0.18), rgba(161, 0, 255, 0.18));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    flex-shrink: 0;
}

.cyan-glow i { color: var(--neon-cyan); }
.purple-glow i { color: var(--vibrant-purple); }

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.btn-text .title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
}

.btn-text .subtitle {
    font-size: 10.5px;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    margin-top: 1px;
}

.arrow {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.6;
}

.primary-btn {
    background: rgba(22, 14, 45, 0.85);
}

/* Mobile Active Touch Feedback */
.bio-btn:active {
    transform: scale(0.98);
    background: rgba(30, 20, 60, 0.95);
    border-color: rgba(0, 242, 254, 0.4);
}

.bio-btn:active .arrow {
    color: var(--neon-cyan);
    opacity: 1;
}

/* Desktop Hover States */
@media (hover: hover) {
    .bio-btn:hover {
        transform: translateY(-2px);
        background: rgba(28, 18, 55, 0.9);
        box-shadow: 0 8px 25px rgba(0, 242, 254, 0.12), 0 8px 25px rgba(161, 0, 255, 0.12);
    }

    .bio-btn:hover::before {
        background: linear-gradient(90deg, var(--neon-cyan), var(--vibrant-purple));
    }

    .bio-btn:hover .arrow {
        transform: translateX(-4px);
        color: var(--neon-cyan);
        opacity: 1;
    }
}

/* Footer */
.bio-footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-muted);
}

.mini-logo {
    color: var(--neon-cyan);
    font-weight: 700;
}

.bio-footer p {
    font-size: 10.5px;
    color: rgba(148, 163, 184, 0.4);
}