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

:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --text-primary: #f5f5f5;
    --text-secondary: #a3a3a3;
    --border: #2a2a2a;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--primary-dark);
    min-height: 100vh;
    padding: 0;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 40px;
}

header {
    margin-bottom: 80px;
    text-align: center;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    margin-bottom: 32px;
    border: 1px solid var(--border);
    opacity: 0.95;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.01em;
}

section {
    margin-bottom: 64px;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

p:last-child {
    margin-bottom: 0;
}

.links {
    margin-top: 80px;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--secondary-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.link-card svg {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.substack:hover {
    border-color: #ff6719;
}

.youtube:hover {
    border-color: #ff0000;
}

.linkedin:hover {
    border-color: #0077b5;
}

.github:hover {
    border-color: #6e5494;
}

footer {
    text-align: center;
    margin-top: 96px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Typography enhancements */
@supports (font-variation-settings: normal) {
    body {
        font-family: 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 60px 24px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.375rem;
    }

    p {
        font-size: 1rem;
    }

    .social-links {
        grid-template-columns: 1fr;
    }

    .profile-pic {
        width: 100px;
        height: 100px;
    }

    header {
        margin-bottom: 60px;
    }

    section {
        margin-bottom: 48px;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--accent);
    color: white;
}
