/* ========================================
   Portfolio — Dark, Clean, Link-in-Bio
   ======================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0a0a0a;
    --color-surface: #141414;
    --color-surface-hover: #1a1a1a;
    --color-border: #222222;
    --color-border-hover: #333333;
    --color-text: #f0f0f0;
    --color-text-secondary: #888888;
    --color-text-tertiary: #555555;
    --color-accent: #ffffff;
    --color-accent-hover: #e0e0e0;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --max-width: 640px;
    --transition: 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Layout ---- */

.page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 20px 80px;
}

/* ---- Header / Profile ---- */

.profile {
    text-align: center;
    margin-bottom: 48px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 16px;
    border: 2px solid var(--color-border);
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.profile-bio {
    font-size: 15px;
    color: var(--color-text-secondary);
    max-width: 360px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ---- Section Label ---- */

.section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-tertiary);
    margin-bottom: 16px;
}

/* ---- Currently Building ---- */

.now-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 48px;
    padding: 20px 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.now-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.now-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    flex-shrink: 0;
    box-shadow: 0 0 6px #34d39966;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ---- Project Cards ---- */

.projects {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

.project-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.25s ease;
    display: block;
    cursor: pointer;
}

.project-card:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.project-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-icon.beer {
    background: linear-gradient(135deg, #422006, #78350f);
    color: #fbbf24;
}

.project-icon.chart {
    background: linear-gradient(135deg, #0c1a3d, #1e3a5f);
    color: #60a5fa;
}

.project-icon.ai {
    background: linear-gradient(135deg, #14532d, #166534);
    color: #4ade80;
}

.project-icon.widgets {
    background: linear-gradient(135deg, #3b0764, #581c87);
    color: #c084fc;
}

.project-icon.dashboard {
    background: linear-gradient(135deg, #164e63, #155e75);
    color: #22d3ee;
}

.project-icon.ramble {
    background: linear-gradient(135deg, #3b0764, #6d28d9);
    color: #c084fc;
}

.project-icon.openclaw {
    background: linear-gradient(135deg, #0f1a2e, #1a3a5c);
    color: #38bdf8;
}

.project-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.project-subtitle {
    font-size: 13px;
    color: var(--color-text-tertiary);
    margin-top: 2px;
}

.project-description {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.project-arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 16px;
    color: var(--color-text-tertiary);
    font-size: 13px;
    font-weight: 500;
    gap: 6px;
    transition: color var(--transition);
}

.project-card:hover .project-arrow {
    color: var(--color-text-secondary);
}

/* ---- Project Badge ---- */

.project-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #22d3ee;
    background: #164e6322;
    border: 1px solid #164e6355;
    border-radius: 20px;
}

.project-badge.purple {
    color: #c084fc;
    background: rgba(59, 7, 100, 0.13);
    border-color: rgba(59, 7, 100, 0.33);
}

/* ---- Private / Request Access ---- */

.project-card.no-link {
    cursor: default;
}

.project-card.no-link:hover {
    transform: none;
}

.project-access {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.access-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-tertiary);
    margin-bottom: 14px;
}

.access-buttons {
    display: flex;
    gap: 10px;
}

.btn-access {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text);
    flex: 1;
    justify-content: center;
}

.btn-access:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border-hover);
}

.btn-access svg {
    opacity: 0.6;
}

/* ---- Social Links ---- */

.socials {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--color-surface);
    border-color: var(--color-border-hover);
}

.social-link svg {
    opacity: 0.7;
}

/* ---- Footer ---- */

.footer {
    text-align: center;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.footer p {
    font-size: 12px;
    color: var(--color-text-tertiary);
}

/* ---- Responsive ---- */

@media (max-width: 480px) {
    .page {
        padding: 40px 16px 60px;
    }

    .profile-name {
        font-size: 20px;
    }

    .project-card {
        padding: 20px;
    }

    .now-section {
        padding: 16px 20px;
    }

    .now-item {
        font-size: 13px;
    }
}
